Searched refs:Namespace_ (Results 1 – 18 of 18) sorted by relevance
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Namespace_.php | 10 class Namespace_ extends Declaration { class 43 return new Stmt\Namespace_($this->name, $this->stmts, $this->attributes);
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | NamespaceTest.php | 11 return new Namespace_($fqn); 19 $expected = new Stmt\Namespace_(
|
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/ |
H A D | Namespace_.php | 7 class Namespace_ extends MagicConst { class
|
/PHP-Parser/test/PhpParser/Node/Scalar/ |
H A D | MagicConstTest.php | 21 [new MagicConst\Namespace_(), '__NAMESPACE__'],
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 380 $stmts = $traverser->traverse([new Stmt\Namespace_(new Name('NS'), $nsStmts)]); 389 $stmts = $traverser->traverse([new Stmt\Namespace_(null, $nsStmts)]); 401 new Stmt\Namespace_(new Name('NS'), [ 405 new Stmt\Namespace_(null, [ 535 new Stmt\Namespace_(new Name('Foo'), [ 554 new Stmt\Namespace_(new Name('Foo'), [
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Namespace_.php | 7 class Namespace_ extends Node\Stmt { class
|
/PHP-Parser/test/PhpParser/ |
H A D | ParserTestAbstract.php | 173 ["namespace Foo;", ['kind' => Stmt\Namespace_::KIND_SEMICOLON]], 174 ["namespace Foo {}", ['kind' => Stmt\Namespace_::KIND_BRACED]], 175 ["namespace {}", ['kind' => Stmt\Namespace_::KIND_BRACED]],
|
H A D | BuilderFactoryTest.php | 25 ['namespace', Builder\Namespace_::class],
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderFactory.php | 34 public function namespace($name): Builder\Namespace_ { 35 return new Builder\Namespace_($name);
|
H A D | ParserAbstract.php | 30 use PhpParser\Node\Stmt\Namespace_; alias 572 if ($stmt instanceof Node\Stmt\Namespace_) { 589 if ($stmt instanceof Node\Stmt\Namespace_) { 617 private function fixupNamespaceAttributes(Node\Stmt\Namespace_ $stmt): void { 636 private function getNamespaceErrorAttributes(Namespace_ $node): array { 662 if ($stmt instanceof Node\Stmt\Namespace_) { 1057 protected function checkNamespace(Namespace_ $node): void { 1060 if ($stmt instanceof Namespace_) {
|
H A D | PrettyPrinterAbstract.php | 317 if ($node instanceof Stmt\Namespace_ && null === $node->name) { 1572 Stmt\Namespace_::class . '->stmts' => "\n",
|
/PHP-Parser/grammar/ |
H A D | php.y | 246 { $$ = Stmt\Namespace_[$2, null]; 247 $$->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); 250 { $$ = Stmt\Namespace_[$2, $4]; 251 $$->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 254 { $$ = Stmt\Namespace_[null, $3]; 255 $$->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1208 | T_NS_C { $$ = Scalar\MagicConst\Namespace_[]; }
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 56 if ($node instanceof Stmt\Namespace_) {
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 1353 …$self->semValue = new Stmt\Namespace_($self->semStack[$stackPos-(3-2)], null, $self->getAttributes… 1354 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); 1358 …$self->semValue = new Stmt\Namespace_($self->semStack[$stackPos-(5-2)], $self->semStack[$stackPos-… 1359 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1363 …$self->semValue = new Stmt\Namespace_(null, $self->semStack[$stackPos-(4-3)], $self->getAttributes… 1364 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 2550 …$self->semValue = new Scalar\MagicConst\Namespace_($self->getAttributes($self->tokenStartStack[$st…
|
H A D | Php8.php | 1348 …$self->semValue = new Stmt\Namespace_($self->semStack[$stackPos-(3-2)], null, $self->getAttributes… 1349 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); 1353 …$self->semValue = new Stmt\Namespace_($self->semStack[$stackPos-(5-2)], $self->semStack[$stackPos-… 1354 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1358 …$self->semValue = new Stmt\Namespace_(null, $self->semStack[$stackPos-(4-3)], $self->getAttributes… 1359 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 2552 …$self->semValue = new Scalar\MagicConst\Namespace_($self->getAttributes($self->tokenStartStack[$st…
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 121 protected function pScalar_MagicConst_Namespace(MagicConst\Namespace_ $node): string { 749 protected function pStmt_Namespace(Stmt\Namespace_ $node): string {
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 520 } elseif ($node instanceof Stmt\Namespace_) {
|
/PHP-Parser/ |
H A D | CHANGELOG.md | 858 * Added `kind` attribute for `Stmt\Namespace_` node, which is one of `KIND_SEMICOLON` or
|
Completed in 108 milliseconds