Home
last modified time | relevance | path

Searched refs:Namespace_ (Results 1 – 18 of 18) sorted by relevance

/PHP-Parser/lib/PhpParser/Builder/
H A DNamespace_.php10 class Namespace_ extends Declaration { class
43 return new Stmt\Namespace_($this->name, $this->stmts, $this->attributes);
/PHP-Parser/test/PhpParser/Builder/
H A DNamespaceTest.php11 return new Namespace_($fqn);
19 $expected = new Stmt\Namespace_(
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DNamespace_.php7 class Namespace_ extends MagicConst { class
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DMagicConstTest.php21 [new MagicConst\Namespace_(), '__NAMESPACE__'],
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php380 $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 DNamespace_.php7 class Namespace_ extends Node\Stmt { class
/PHP-Parser/test/PhpParser/
H A DParserTestAbstract.php173 ["namespace Foo;", ['kind' => Stmt\Namespace_::KIND_SEMICOLON]],
174 ["namespace Foo {}", ['kind' => Stmt\Namespace_::KIND_BRACED]],
175 ["namespace {}", ['kind' => Stmt\Namespace_::KIND_BRACED]],
H A DBuilderFactoryTest.php25 ['namespace', Builder\Namespace_::class],
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php34 public function namespace($name): Builder\Namespace_ {
35 return new Builder\Namespace_($name);
H A DParserAbstract.php30 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 DPrettyPrinterAbstract.php317 if ($node instanceof Stmt\Namespace_ && null === $node->name) {
1572 Stmt\Namespace_::class . '->stmts' => "\n",
/PHP-Parser/grammar/
H A Dphp.y246 { $$ = 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 DNameResolver.php56 if ($node instanceof Stmt\Namespace_) {
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php1353 …$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 DPhp8.php1348 …$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 DStandard.php121 protected function pScalar_MagicConst_Namespace(MagicConst\Namespace_ $node): string {
749 protected function pStmt_Namespace(Stmt\Namespace_ $node): string {
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown520 } elseif ($node instanceof Stmt\Namespace_) {
/PHP-Parser/
H A DCHANGELOG.md858 * Added `kind` attribute for `Stmt\Namespace_` node, which is one of `KIND_SEMICOLON` or

Completed in 106 milliseconds