/PHP-Parser/test/code/formatPreservation/ |
H A D | fixup.test | 13 $stmts[0]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 15 $stmts[1]->expr->right = new Expr\BinaryOp\Plus(new Expr\Variable('b'), new Expr\Variable('c')); 17 $stmts[2]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 19 $stmts[3]->expr->cond = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 20 $stmts[3]->expr->if = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 21 $stmts[3]->expr->else = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 23 $stmts[4]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 24 $stmts[5]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 53 $stmts[1]->expr->name = new Expr\BinaryOp\Concat(new Expr\Variable('a'), new Expr\Variable('b')); 55 $stmts[3]->expr->var = new Expr\BinaryOp\Concat(new Expr\Variable('a'), new Expr\Variable('b')); [all …]
|
H A D | emptyListInsertion.test | 44 $stmts[2]->expr->uses[] = new Node\Expr\Variable('c'); 45 $stmts[2]->expr->uses[] = new Node\Expr\Variable('d'); 83 $stmts[0]->expr->args[] = new Node\Expr\Variable('a'); 84 $stmts[0]->expr->args[] = new Node\Expr\Variable('b'); 85 $stmts[1]->expr->args[] = new Node\Expr\Variable('a'); 86 $stmts[1]->expr->args[] = new Node\Expr\Variable('b'); 87 $stmts[2]->expr->args[] = new Node\Expr\Variable('a'); 88 $stmts[2]->expr->args[] = new Node\Expr\Variable('b'); 89 $stmts[3]->expr->args[] = new Node\Expr\Variable('a'); 90 $stmts[3]->expr->args[] = new Node\Expr\Variable('b'); [all …]
|
H A D | listInsertion.test | 8 $stmts[] = new Stmt\Expression(new Expr\Variable('baz')); 114 $node = new Stmt\Expression(new Expr\Variable('baz')); 128 $node = new Stmt\Expression(new Expr\Variable('baz')); 155 $node = new Stmt\Expression(new Expr\Variable('baz')); 169 $node = new Stmt\Expression(new Expr\Variable('baz')); 187 $node = new Stmt\Expression(new Expr\Variable('baz')); 207 $node = new Stmt\Expression(new Expr\Variable('baz')); 250 new Stmt\Expression(new Expr\Variable('a')), 251 new Stmt\Expression(new Expr\Variable('b'))); 267 new Stmt\Expression(new Expr\Variable('a')), [all …]
|
H A D | insertionOfNullable.test | 81 $stmts[1]->expr->dim = new Expr\Variable('a'); 84 $stmts[4]->expr->if = new Expr\Variable('z'); 85 $stmts[5]->expr->key = new Expr\Variable('k'); 86 $stmts[6]->expr->value = new Expr\Variable('v'); 89 $stmts[9]->expr = new Expr\Variable('x'); 94 $stmts[11]->keyVar = new Expr\Variable('z'); 195 $stmts[0]->catches[0]->var = new Expr\Variable('e');
|
H A D | array_spread.test | 9 $array->items[] = new Expr\ArrayItem(new Expr\Variable('b')); 23 $array->items[] = new Expr\ArrayItem(new Expr\Variable('c'), null, false, [], true);
|
H A D | blockConversion.test | 9 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c')); 23 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
|
H A D | indent.test | 6 $stmts[0] = new Stmt\If_(new Expr\Variable('a'), ['stmts' => $stmts]); 17 $stmts[0] = new Stmt\If_(new Expr\Variable('a'), ['stmts' => $stmts]); 30 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('y'));
|
H A D | basic.test | 122 new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b'))); 171 $stmts[0]->exprs[0]->parts[0] = new Expr\Variable('bar'); 172 $stmts[1]->exprs[0]->parts[0] = new Expr\Variable('bar');
|
H A D | classMethodNop.test | 11 $stmts[0]->stmts[0]->stmts[] = new Stmt\Expression(new Node\Expr\Variable('foo')); 30 $stmts[0]->stmts[0]->stmts[] = new Stmt\Expression(new Node\Expr\Variable('foo'));
|
/PHP-Parser/test/PhpParser/ |
H A D | BuilderFactoryTest.php | 68 $varA = new Expr\Variable('a'); 69 $varB = new Expr\Variable('b'); 70 $varC = new Expr\Variable('c'); 142 new Expr\Variable('obj'), 151 new Expr\Variable('obj'), 162 $factory->methodCall(new Expr\Variable('obj'), new Expr\Variable('method')) 178 new Expr\Variable('bar') 180 $factory->staticCall(new Expr\Variable('foo'), new Expr\Variable('bar')) 221 new Expr\Variable("foo"), 225 new Expr\Variable(new Expr\Variable("foo")), [all …]
|
H A D | NodeFinderTest.php | 9 $assign = new Expr\Assign(new Expr\Variable('a'), new Expr\BinaryOp\Concat( 10 new Expr\Variable('b'), new Expr\Variable('c') 21 return $node instanceof Expr\Variable; 35 $this->assertSame($vars, $finder->findInstanceOf($stmts, Expr\Variable::class)); 36 $this->assertSame($vars, $finder->findInstanceOf($stmts[0], Expr\Variable::class)); 44 return $node instanceof Expr\Variable; 58 $this->assertSame($vars[0], $finder->findFirstInstanceOf($stmts, Expr\Variable::class)); 59 $this->assertSame($vars[0], $finder->findFirstInstanceOf($stmts[0], Expr\Variable::class));
|
H A D | PrettyPrinterTest.php | 62 new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')), 63 new Expr\Variable('c') 137 …[new InterpolatedString([new InterpolatedStringPart('foo'), new Expr\Variable('y')], $heredoc), "<… 138 …[new InterpolatedString([new Expr\Variable('y'), new InterpolatedStringPart("STR\n")], $heredoc), … 140 …[new InterpolatedString([new Expr\Variable('y'), new InterpolatedStringPart("\nSTR")], $heredoc), … 141 …[new InterpolatedString([new InterpolatedStringPart("STR\n"), new Expr\Variable('y')], $heredoc), … 143 …[new InterpolatedString([new InterpolatedStringPart("\nSTR"), new Expr\Variable('y')], $heredoc), … 144 …[new InterpolatedString([new InterpolatedStringPart("STR\x80"), new Expr\Variable('y')], $heredoc)… 172 new Expr\PropertyFetch(new Expr\Variable('a'), new Expr\Error())
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | FindingVisitorTest.php | 13 return $node instanceof Node\Expr\Variable; 17 $assign = new Expr\Assign(new Expr\Variable('a'), new Expr\BinaryOp\Concat( 18 new Expr\Variable('b'), new Expr\Variable('c') 37 $assign = new Expr\Assign(new Expr\Variable('a'), new Expr\BinaryOp\Concat( 38 new Expr\Variable('b'), new Expr\Variable('c')
|
H A D | FirstFindingVisitorTest.php | 13 return $node instanceof Node\Expr\Variable; 17 $assign = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 31 $assign = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b'));
|
/PHP-Parser/test/PhpParser/Node/Expr/ |
H A D | CallableLikeTest.php | 27 [new MethodCall(new Variable('this'), 'test', $normalArgs), false], 28 [new MethodCall(new Variable('this'), 'test', $callableArgs), true], 32 [new NullsafeMethodCall(new Variable('this'), 'test', $normalArgs), false], 35 [new NullsafeMethodCall(new Variable('this'), 'test', $callableArgs), true],
|
/PHP-Parser/test/PhpParser/Node/ |
H A D | ParamTest.php | 6 use PhpParser\Node\Expr\Variable; alias 10 $node = new Param(new Variable('foo')); 26 $node = new Param(new Variable('foo')); 42 $node = new Param(new Variable('foo'));
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | ClosureUse.php | 9 public Expr\Variable $var; 20 public function __construct(Expr\Variable $var, bool $byRef = false, array $attributes = []) {
|
H A D | StaticVar.php | 10 public Expr\Variable $var; 22 Expr\Variable $var, ?Node\Expr $default = null, array $attributes = []
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Catch_.php | 12 public ?Expr\Variable $var; 25 array $types, ?Expr\Variable $var = null, array $stmts = [], array $attributes = []
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | ParamTest.php | 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…
|
H A D | FunctionTest.php | 11 use PhpParser\Node\Expr\Variable; alias 38 $param1 = new Node\Param(new Variable('test1')); 39 $param2 = new Node\Param(new Variable('test2')); 40 $param3 = new Node\Param(new Variable('test3'));
|
H A D | MethodTest.php | 12 use PhpParser\Node\Expr\Variable; alias 81 $param1 = new Node\Param(new Variable('test1')); 82 $param2 = new Node\Param(new Variable('test2')); 83 $param3 = new Node\Param(new Variable('test3'));
|
/PHP-Parser/test/PhpParser/Node/Stmt/ |
H A D | ClassMethodTest.php | 6 use PhpParser\Node\Expr\Variable; alias 99 $param = new Param(new Variable('a')); 101 $return = new Return_(new Variable('a'));
|
/PHP-Parser/test/code/parser/expr/ |
H A D | varVarPos.test | 1 Variable variable positions
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Variable.php | 7 class Variable extends Expr { class
|