Home
last modified time | relevance | path

Searched refs:Name (Results 1 – 25 of 170) sorted by relevance

1234567

/PHP-Parser/test/PhpParser/Node/
H A DNameTest.php10 $name = new Name('foo\bar');
13 $name = new Name($name);
18 $name = new Name('foo');
23 $name = new Name('foo\bar');
84 $this->assertEquals(new Name('foo\bar\baz'), Name::concat('foo', 'bar\baz'));
87 Name\FullyQualified::concat(['foo'], new Name('bar'))
93 Name\Relative::concat(new Name\FullyQualified('foo\bar'), 'baz', $attributes)
96 $this->assertEquals(new Name('foo'), Name::concat(null, 'foo'));
97 $this->assertEquals(new Name('foo'), Name::concat('foo', null));
140 new Name('');
[all …]
/PHP-Parser/test/code/parser/stmt/namespace/
H A DgroupUse.test14 prefix: Name(
20 name: Name(
29 prefix: Name(
35 name: Name(
42 name: Name(
51 prefix: Name(
57 name: Name(
64 name: Name(
73 prefix: Name(
95 prefix: Name(
[all …]
H A DnotBraced.test13 name: Name(
19 name: Name(
27 name: Name(
33 name: Name(
H A DgroupUseTrailingComma.test10 prefix: Name(
16 name: Name(
25 prefix: Name(
31 name: Name(
H A Dalias.test25 name: Name(
37 name: Name(
51 name: Name(
60 name: Name(
72 name: Name(
87 name: Name(
101 name: Name(
116 name: Name(
130 name: Name(
142 name: Name(
H A DgroupUseErrors.test12 prefix: Name(
18 name: Name(
30 prefix: Name(
36 name: Name(
56 name: Name(
70 name: Name(
77 name: Name(
H A Dbraced.test14 name: Name(
20 name: Name(
32 name: Name(
/PHP-Parser/lib/PhpParser/
H A DNameContext.php5 use PhpParser\Node\Name; alias
6 use PhpParser\Node\Name\FullyQualified;
10 /** @var null|Name Current namespace */
11 protected ?Name $namespace;
50 * @param Name $name Original name
96 * @param Name $name Name to resolve
101 public function getResolvedName(Name $name, int $type): ?Name {
142 * @return Name Resolved name
144 public function getResolvedClassName(Name $name): Name {
254 return new Name($name);
[all …]
H A DBuilderHelpers.php8 use PhpParser\Node\Name; alias
9 use PhpParser\Node\Name\FullyQualified;
102 * @param Name|string $name The name to normalize
104 * @return Name The normalized name
106 public static function normalizeName($name): Name {
107 if ($name instanceof Name) {
124 return new Name($name);
133 * @param Expr|Name|string $name The name to normalize
135 * @return Name|Expr The normalized name or expression
229 new Name('null')
[all …]
/PHP-Parser/test/code/parser/stmt/function/
H A DdisjointNormalFormTypes.test32 0: Name(
35 1: Name(
42 0: Name(
45 1: Name(
71 0: Name(
74 1: Name(
79 1: Name(
147 0: Name(
150 1: Name(
157 0: Name(
[all …]
H A DintersectionTypes.test29 0: Name(
32 1: Name(
64 0: Name(
67 1: Name(
84 0: Name(
87 1: Name(
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DConstFetch.php6 use PhpParser\Node\Name; alias
9 /** @var Name Constant name */
10 public Name $name;
15 * @param Name $name Constant name
18 public function __construct(Name $name, array $attributes = []) {
/PHP-Parser/test/PhpParser/Node/Expr/
H A DCallableLikeTest.php6 use PhpParser\Node\Name; alias
25 [new FuncCall(new Name('test'), $normalArgs), false],
26 [new FuncCall(new Name('test'), $callableArgs), true],
29 [new StaticCall(new Name('Test'), 'test', $normalArgs), false],
30 [new StaticCall(new Name('Test'), 'test', $callableArgs), true],
31 [new New_(new Name('Test'), $normalArgs), false],
34 [new New_(new Name('Test'), $callableArgs), true],
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php8 use PhpParser\Node\Name; alias
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')),
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');
[all …]
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DGroupUse.php5 use PhpParser\Node\Name; alias
14 /** @var Name Prefix for uses */
15 public Name $prefix;
22 * @param Name $prefix Prefix for uses
27 …public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attri…
/PHP-Parser/test/code/parser/expr/
H A DkeywordsInNamespacedName.test16 name: Name(
23 name: Name(
30 name: Name(
37 name: Name(
44 name: Name(
50 name: Name(
77 name: Name(
/PHP-Parser/test/code/parser/stmt/class/
H A Dtrait.test61 0: Name(
70 0: Name(
107 0: Name(
110 1: Name(
113 2: Name(
119 trait: Name(
126 0: Name(
129 1: Name(
135 trait: Name(
147 trait: Name(
[all …]
/PHP-Parser/test/PhpParser/Builder/
H A DUseTest.php6 use PhpParser\Node\Name; alias
17 new \PhpParser\Node\UseItem(new Name('Foo\Bar'), null)
20 $node = $this->createUseBuilder(new Name('Foo\Bar'))->as('XYZ')->getNode();
22 new \PhpParser\Node\UseItem(new Name('Foo\Bar'), 'XYZ')
27 new \PhpParser\Node\UseItem(new Name('foo\bar'), 'foo')
32 new \PhpParser\Node\UseItem(new Name('foo\BAR'), 'FOO')
H A DParamTest.php12 use PhpParser\Node\Name; alias
37 new Expr\ConstFetch(new Node\Name('null'))
41 new Expr\ConstFetch(new Node\Name('true'))
45 new Expr\ConstFetch(new Node\Name('false'))
125 ['self', new Node\Name('self')],
126 [new Node\Name('Some\Class'), new Node\Name('Some\Class')],
149 new Node\Name('Some\Class'),
153 new Node\Name('Some\Class'),
161 new Node\Name\FullyQualified('Foo')
166 new Node\Name\FullyQualified('Foo')
[all …]
/PHP-Parser/test/PhpParser/
H A DNameContextTest.php5 use PhpParser\Node\Name; alias
14 $nameContext->startNamespace(new Name('NS'));
15 $nameContext->addAlias(new Name('Foo'), 'Foo', Use_::TYPE_NORMAL);
16 $nameContext->addAlias(new Name('Foo\Bar'), 'Alias', Use_::TYPE_NORMAL);
17 $nameContext->addAlias(new Name('Foo\fn'), 'fn', Use_::TYPE_FUNCTION);
18 $nameContext->addAlias(new Name('Foo\CN'), 'CN', Use_::TYPE_CONSTANT);
21 $possibleNames = array_map(function (Name $name) {
/PHP-Parser/test/code/parser/expr/uvs/
H A DconstDeref.test26 name: Name(
38 name: Name(
52 name: Name(
66 name: Name(
86 class: Name(
126 class: Name(
141 class: Name(
158 class: Name(
173 class: Name(
188 class: Name(
[all …]
/PHP-Parser/test/code/parser/stmt/
H A DtryCatch.test29 name: Name(
40 0: Name(
50 name: Name(
61 0: Name(
71 name: Name(
85 name: Name(
101 0: Name(
H A Dattributes.test40 name: Name(
47 name: Name(
54 name: Name(
69 name: Name(
103 name: Name(
125 name: Name(
175 name: Name(
204 name: Name(
226 name: Name(
251 name: Name(
[all …]
/PHP-Parser/test/code/parser/scalar/
H A DnumberSeparators.test60 name: Name(
78 name: Name(
90 name: Name(
102 name: Name(
119 name: Name(
131 name: Name(
143 name: Name(
155 name: Name(
167 name: Name(
/PHP-Parser/lib/PhpParser/Node/
H A DAttribute.php9 /** @var Name Attribute name */
10 public Name $name;
20 public function __construct(Name $name, array $args = [], array $attributes = []) {

Completed in 43 milliseconds

1234567