Lines Matching refs:stmts
8 $stmts[] = new Stmt\Expression(new Expr\Variable('baz'));
24 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('baz'));
39 $stmts[0]->params[] = new Node\Param(new Expr\Variable('param2'));
52 $stmts[0]->catches[0]->types[] = new Node\Name('Bar');
65 array_unshift($stmts[0]->params, new Node\Param(new Expr\Variable('param0')));
75 $stmts[0]->params[] = new Node\Param(new Expr\Variable('param0'));
87 $stmts[0]->elseifs[] = new Stmt\ElseIf_(new Expr\Variable('cond3'), []);
102 $stmts[0]->catches[] = new Stmt\Catch_([new Node\Name('Bar')], new Expr\Variable('bar'), []);
116 $stmts[] = $node;
130 $stmts[0]->stmts[] = $node;
144 $stmts[0]->name->name = 'Xyz';
156 array_unshift($stmts[0]->stmts, $node);
171 array_unshift($stmts[0]->stmts, $node);
189 array_unshift($stmts[0]->stmts, $node);
209 array_unshift($stmts[0]->stmts, $node);
210 $stmts[0]->stmts[1]->setAttribute('comments', [new Comment('// Bar foo')]);
230 array_unshift($stmts[0]->stmts, $node);
231 $stmts[0]->stmts[1]->setAttribute('comments', []);
249 $stmts[0]->stmts,
266 $stmts[0]->stmts = [
285 array_unshift($stmts[0]->expr->expr->items, new Expr\ArrayItem(new Scalar\LNumber(42)));
286 $stmts[0]->expr->expr->items[] = new Expr\ArrayItem(new Scalar\LNumber(24));
303 $stmts[0]->expr->expr->items[] = new Expr\ArrayItem(new Scalar\LNumber(24));
315 $stmts[0]->returnType->types[] = new Node\Name('C');
325 $stmts[0]->returnType->types[] = new Node\Name('C');
340 $fnStmts =& $stmts[0]->stmts;
341 array_splice($fnStmts, 0, 1, $fnStmts[0]->stmts);
353 array_splice($stmts[0]->expr->var->items, 1, 0, [null]);
363 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('c'));