/PHP-Parser/test/PhpParser/ |
H A D | NameContextTest.php | 15 $nameContext->addAlias(new Name('Foo'), 'Foo', Use_::TYPE_NORMAL); 37 [Use_::TYPE_NORMAL, 'Test', ['\Test']], 38 [Use_::TYPE_NORMAL, 'Test\Namespaced', ['\Test\Namespaced']], 39 [Use_::TYPE_NORMAL, 'NS\Test', ['\NS\Test', 'Test']], 40 [Use_::TYPE_NORMAL, 'ns\Test', ['\ns\Test', 'Test']], 41 [Use_::TYPE_NORMAL, 'NS\Foo\Bar', ['\NS\Foo\Bar']], 42 [Use_::TYPE_NORMAL, 'ns\foo\Bar', ['\ns\foo\Bar']], 43 [Use_::TYPE_NORMAL, 'Foo', ['\Foo', 'Foo']], 55 [Use_::TYPE_NORMAL, 'self', ['self']], 56 [Use_::TYPE_NORMAL, 'parent', ['parent']], [all …]
|
/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | groupUse.test | 19 type: TYPE_NORMAL (1) 34 type: TYPE_NORMAL (1) 41 type: TYPE_NORMAL (1) 56 type: TYPE_NORMAL (1) 63 type: TYPE_NORMAL (1) 122 type: TYPE_NORMAL (1)
|
H A D | alias.test | 21 type: TYPE_NORMAL (1) 33 type: TYPE_NORMAL (1) 47 type: TYPE_NORMAL (1) 68 type: TYPE_NORMAL (1) 83 type: TYPE_NORMAL (1)
|
H A D | groupUseErrors.test | 17 type: TYPE_NORMAL (1) 35 type: TYPE_NORMAL (1) 52 type: TYPE_NORMAL (1)
|
H A D | invalidName.test | 8 type: TYPE_NORMAL (1) 28 type: TYPE_NORMAL (1)
|
H A D | groupUsePositions.test | 15 type: TYPE_NORMAL (1)
|
H A D | groupUseTrailingComma.test | 15 type: TYPE_NORMAL (1)
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Use_.php | 16 public const TYPE_NORMAL = 1; define in PhpParser\\Node\\Stmt\\Use_ 34 … public function __construct(array $uses, int $type = self::TYPE_NORMAL, array $attributes = []) {
|
H A D | GroupUse.php | 27 …public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attri…
|
/PHP-Parser/lib/PhpParser/ |
H A D | NameContext.php | 41 Stmt\Use_::TYPE_NORMAL => [], 65 Stmt\Use_::TYPE_NORMAL => '', 103 if ($type === Stmt\Use_::TYPE_NORMAL && $name->isSpecialClassName()) { 123 if ($type !== Stmt\Use_::TYPE_NORMAL && $name->isUnqualified()) { 145 return $this->getResolvedName($name, Stmt\Use_::TYPE_NORMAL); 159 if ($type === Stmt\Use_::TYPE_NORMAL) { 178 foreach ($this->origAliases[Stmt\Use_::TYPE_NORMAL] as $alias => $orig) { 235 if (isset($this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName])) { 236 $alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName];
|
H A D | BuilderFactory.php | 162 return new Builder\Use_($name, Use_::TYPE_NORMAL);
|
H A D | NodeDumper.php | 225 Use_::TYPE_NORMAL => 'TYPE_NORMAL',
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | UseTest.php | 10 protected function createUseBuilder($name, $type = Stmt\Use_::TYPE_NORMAL) {
|
/PHP-Parser/test/code/parser/errorHandling/ |
H A D | recovery.test | 440 type: TYPE_NORMAL (1) 470 type: TYPE_NORMAL (1) 596 type: TYPE_NORMAL (1) 620 type: TYPE_NORMAL (1)
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 440 ], Stmt\Use_::TYPE_NORMAL),
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 253 return $this->resolveName($name, Stmt\Use_::TYPE_NORMAL);
|
/PHP-Parser/grammar/ |
H A D | php.y | 257 …USE use_declarations semi { $$ = Stmt\Use_[$2, Stmt\Use_::TYPE_NORMAL]; } 319 …prefixed_use_declaration { $$ = $1; $$->type = Stmt\Use_::TYPE_NORMAL; }
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 1368 …>semValue = new Stmt\Use_($self->semStack[$stackPos-(3-2)], Stmt\Use_::TYPE_NORMAL, $self->getAttr… 1423 …$self->semValue = $self->semStack[$stackPos-(1-1)]; $self->semValue->type = Stmt\Use_::TYPE_NORMAL;
|
H A D | Php8.php | 1363 …>semValue = new Stmt\Use_($self->semStack[$stackPos-(3-2)], Stmt\Use_::TYPE_NORMAL, $self->getAttr… 1418 …$self->semValue = $self->semStack[$stackPos-(1-1)]; $self->semValue->type = Stmt\Use_::TYPE_NORMAL;
|