Lines Matching refs:Name
8 use PhpParser\Node\Name; alias
356 $stmts = [new Node\Expr\New_(new Name('self'))];
380 $stmts = $traverser->traverse([new Stmt\Namespace_(new Name('NS'), $nsStmts)]);
401 new Stmt\Namespace_(new Name('NS'), [
402 new Expr\FuncCall(new Name('foo')),
403 new Expr\ConstFetch(new Name('FOO')),
406 new Expr\FuncCall(new Name('foo')),
407 new Expr\ConstFetch(new Name('FOO')),
438 new Node\UseItem(new Name('A\B'), 'B', 0, ['startLine' => 1]),
439 new Node\UseItem(new Name('C\D'), 'B', 0, ['startLine' => 2]),
445 new Node\UseItem(new Name('a\b'), 'b', 0, ['startLine' => 1]),
446 new Node\UseItem(new Name('c\d'), 'B', 0, ['startLine' => 2]),
452 new Node\UseItem(new Name('A\B'), 'B', 0, ['startLine' => 1]),
453 new Node\UseItem(new Name('C\D'), 'B', 0, ['startLine' => 2]),
458 new Expr\New_(new Name\FullyQualified('self', ['startLine' => 3])),
462 new Expr\New_(new Name\Relative('self', ['startLine' => 3])),
466 new Expr\New_(new Name\FullyQualified('PARENT', ['startLine' => 3])),
470 new Expr\New_(new Name\Relative('STATIC', ['startLine' => 3])),
532 $n1 = new Name('Bar');
533 $n2 = new Name('bar');
535 new Stmt\Namespace_(new Name('Foo'), [
551 $n1 = new Name('Bar');
552 $n2 = new Name('bar');
554 new Stmt\Namespace_(new Name('Foo'), [
563 new Name\FullyQualified('Foo\Bar'), $n1->getAttribute('resolvedName'));
566 new Name\FullyQualified('Foo\bar'), $n2->getAttribute('namespacedName'));