Lines Matching refs:Node
6 use PhpParser\Node; alias
7 use PhpParser\Node\Arg;
8 use PhpParser\Node\Attribute;
9 use PhpParser\Node\AttributeGroup;
10 use PhpParser\Node\Expr;
11 use PhpParser\Node\Identifier;
12 use PhpParser\Node\Name;
13 use PhpParser\Node\Scalar;
14 use PhpParser\Node\Scalar\Int_;
37 new Expr\ConstFetch(new Node\Name('null'))
41 new Expr\ConstFetch(new Node\Name('true'))
45 new Expr\ConstFetch(new Node\Name('false'))
62 new Node\ArrayItem(new Scalar\Int_(1)),
63 new Node\ArrayItem(new Scalar\Int_(2)),
64 new Node\ArrayItem(new Scalar\Int_(3)),
70 new Node\ArrayItem(
74 new Node\ArrayItem(
100 if ($expectedType instanceof Node\NullableType) {
112 ['array', new Node\Identifier('array')],
113 ['callable', new Node\Identifier('callable')],
114 ['bool', new Node\Identifier('bool')],
115 ['int', new Node\Identifier('int')],
116 ['float', new Node\Identifier('float')],
117 ['string', new Node\Identifier('string')],
118 ['iterable', new Node\Identifier('iterable')],
119 ['object', new Node\Identifier('object')],
120 ['Array', new Node\Identifier('array')],
121 ['CALLABLE', new Node\Identifier('callable')],
122 ['mixed', new Node\Identifier('mixed')],
123 ['Some\Class', new Node\Name('Some\Class')],
124 ['\Foo', new Node\Name\FullyQualified('Foo')],
125 ['self', new Node\Name('self')],
126 [new Node\Name('Some\Class'), new Node\Name('Some\Class')],
132 ['?array', new Node\NullableType(new Node\Identifier('array'))],
133 ['?Some\Class', new Node\NullableType(new Node\Name('Some\Class'))],
135 new Node\NullableType(new Node\Identifier('int')),
136 new Node\NullableType(new Node\Identifier('int'))
139 new Node\NullableType(new Node\Name('Some\Class')),
140 new Node\NullableType(new Node\Name('Some\Class'))
148 new Node\UnionType([
149 new Node\Name('Some\Class'),
150 new Node\Identifier('array'),
152 new Node\UnionType([
153 new Node\Name('Some\Class'),
154 new Node\Identifier('array'),
158 new Node\UnionType([
159 new Node\Identifier('self'),
160 new Node\Identifier('array'),
161 new Node\Name\FullyQualified('Foo')
163 new Node\UnionType([
164 new Node\Identifier('self'),
165 new Node\Identifier('array'),
166 new Node\Name\FullyQualified('Foo')
191 new Node\Param(new Expr\Variable('test'), null, null, true),
203 new Node\Param(new Expr\Variable('test'), null, null, false, true),
215 … new Node\Param(new Expr\Variable('test'), null, null, false, false, [], Modifiers::PUBLIC),
227 … new Node\Param(new Expr\Variable('test'), null, null, false, false, [], Modifiers::PROTECTED),
237 … new Node\Param(new Expr\Variable('test'), null, null, false, false, [], Modifiers::PROTECTED_SET),
249 … new Node\Param(new Expr\Variable('test'), null, null, false, false, [], Modifiers::PRIVATE),
259 … new Node\Param(new Expr\Variable('test'), null, null, false, false, [], Modifiers::PRIVATE_SET),
271 … new Node\Param(new Expr\Variable('test'), null, null, false, false, [], Modifiers::READONLY),
288 …new Node\Param(new Expr\Variable('attributeGroup'), null, null, false, false, [], 0, [$attributeGr…