Home
last modified time | relevance | path

Searched refs:Variable (Results 1 – 25 of 48) sorted by relevance

12

/PHP-Parser/test/code/formatPreservation/
H A Dfixup.test13 $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 DemptyListInsertion.test44 $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 DlistInsertion.test8 $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 DinsertionOfNullable.test81 $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 Darray_spread.test9 $array->items[] = new Expr\ArrayItem(new Expr\Variable('b'));
23 $array->items[] = new Expr\ArrayItem(new Expr\Variable('c'), null, false, [], true);
H A DblockConversion.test9 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
23 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));
H A Dindent.test6 $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 Dbasic.test122 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 DclassMethodNop.test11 $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 DBuilderFactoryTest.php68 $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 DNodeFinderTest.php9 $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 DPrettyPrinterTest.php62 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 DFindingVisitorTest.php13 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 DFirstFindingVisitorTest.php13 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 DCallableLikeTest.php27 [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 DParamTest.php6 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 DClosureUse.php9 public Expr\Variable $var;
20 public function __construct(Expr\Variable $var, bool $byRef = false, array $attributes = []) {
H A DStaticVar.php10 public Expr\Variable $var;
22 Expr\Variable $var, ?Node\Expr $default = null, array $attributes = []
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DCatch_.php12 public ?Expr\Variable $var;
25 array $types, ?Expr\Variable $var = null, array $stmts = [], array $attributes = []
/PHP-Parser/test/PhpParser/Builder/
H A DParamTest.php191 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 DFunctionTest.php11 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 DMethodTest.php12 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 DClassMethodTest.php6 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 DvarVarPos.test1 Variable variable positions
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DVariable.php7 class Variable extends Expr { class

Completed in 24 milliseconds

12