Lines Matching refs:Expr
7 use PhpParser\Node\Expr; alias
8 use PhpParser\Node\Expr\BinaryOp\Concat;
68 $varA = new Expr\Variable('a');
69 $varB = new Expr\Variable('b');
70 $varC = new Expr\Variable('c');
100 $unpack = new Arg(new Expr\Variable('c'), false, true);
103 new Arg(new Expr\Variable('a')),
107 $factory->args([new Expr\Variable('a'), 'b', $unpack])
127 new Expr\FuncCall(
135 new Expr\FuncCall(new Expr\Variable('fn')),
136 $factory->funcCall(new Expr\Variable('fn'))
141 new Expr\MethodCall(
142 new Expr\Variable('obj'),
146 $factory->methodCall(new Expr\Variable('obj'), 'method', [42])
150 new Expr\MethodCall(
151 new Expr\Variable('obj'),
154 $factory->methodCall(new Expr\Variable('obj'), new Identifier('method'))
158 new Expr\MethodCall(
159 new Expr\Variable('obj'),
160 new Expr\Variable('method')
162 $factory->methodCall(new Expr\Variable('obj'), new Expr\Variable('method'))
167 new Expr\StaticCall(
170 [new Arg(new Expr\Variable('baz'))]
172 $factory->staticCall('\Foo', 'bar', [new Expr\Variable('baz')])
176 new Expr\StaticCall(
177 new Expr\Variable('foo'),
178 new Expr\Variable('bar')
180 $factory->staticCall(new Expr\Variable('foo'), new Expr\Variable('bar'))
185 new Expr\New_(new Name\FullyQualified('stdClass')),
190 new Expr\New_(
191 new Expr\Variable('foo'),
194 $factory->new(new Expr\Variable('foo'), ['bar'])
201 new Expr\ConstFetch(new Name('FOO')),
205 new Expr\ClassConstFetch(new Name('Foo'), new Identifier('BAR')),
209 new Expr\ClassConstFetch(new Expr\Variable('foo'), new Identifier('BAR')),
210 $factory->classConstFetch(new Expr\Variable('foo'), 'BAR')
213 new Expr\ClassConstFetch(new Name('Foo'), new Expr\Variable('foo')),
221 new Expr\Variable("foo"),
225 new Expr\Variable(new Expr\Variable("foo")),
233 new Expr\PropertyFetch(new Expr\Variable('foo'), 'bar'),
237 new Expr\PropertyFetch(new Expr\Variable('foo'), 'bar'),
241 new Expr\PropertyFetch(new Expr\Variable('foo'), new Expr\Variable('bar')),
312 ->addStmt(new Expr\Print_(new Expr\Variable('someParam'))))