Home
last modified time | relevance | path

Searched refs:body (Results 1 – 11 of 11) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/
H A DPropertyHook.php20 public $body; variable in PhpParser\\Node\\PropertyHook
26 * @param null|Expr|Stmt[] $body Hook body
38 public function __construct($name, $body, array $subNodes = [], array $attributes = []) { argument
41 $this->body = $body;
61 if ($this->body instanceof Expr) {
62 return [new Return_($this->body)];
64 return $this->body;
H A DMatchArm.php12 public Expr $body; variable in PhpParser\\Node\\MatchArm
17 public function __construct(?array $conds, Node\Expr $body, array $attributes = []) { argument
19 $this->body = $body;
/PHP-Parser/test/code/prettyPrinter/expr/
H A Dclosure.test9 $comment = 'closure body';
13 $comment = 'closure body';
17 $comment = 'closure body';
20 $comment = 'closure body';
/PHP-Parser/test/code/parser/expr/
H A Dmatch.test24 body: Scalar_String(
34 body: Scalar_String(
71 body: Scalar_String(
112 body: Expr_BinaryOp_Plus(
151 body: Scalar_String(
157 body: Scalar_String(
194 body: Scalar_String(
200 body: Scalar_String(
/PHP-Parser/test/code/parser/stmt/class/
H A Dproperty_hooks.test59 body: array(
77 body: array(
157 body: null
169 body: null
197 body: array(
231 body: array(
471 body: null
483 body: null
495 body: null
507 body: null
[all …]
H A Dproperty_promotion.test132 body: Expr_Variable(
162 body: Scalar_Int(
/PHP-Parser/test/code/parser/scalar/
H A DflexibleDocStringErrors.test43 Invalid body indentation level (expecting an indentation level of at least 5) from 14:6 to 18:8
44 Invalid body indentation level (expecting an indentation level of at least 1) from 20:1 to 22:4
45 Invalid body indentation level (expecting an indentation level of at least 2) from 25:1 to 26:0
46 Invalid body indentation level (expecting an indentation level of at least 1) from 30:1 to 30:4
47 Invalid body indentation level (expecting an indentation level of at least 1) from 34:1 to 35:0
/PHP-Parser/test/code/formatPreservation/
H A Dproperty_hooks.test51 $stmts[0]->stmts[0]->hooks[0]->body[] = new Stmt\Expression(new Expr\Variable('b'));
91 $stmts[0]->stmts[0]->hooks[0]->body = [new Stmt\Return_(new Scalar\Int_(24))];
114 $stmts[0]->stmts[0]->hooks[0]->body = new Scalar\Int_(24);
115 $stmts[0]->stmts[1]->hooks[0]->body = [new Stmt\Return_(new Scalar\Int_(24))];
/PHP-Parser/
H A DREADME.md127 // Clean out the function body
H A DCHANGELOG.md697 * Support error recovery for functions without body (`function ($foo)`).
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php682 return $result . $this->p($node->body);
849 . (\is_array($node->body) ? ' {' . $this->pStmts($node->body) . $this->nl . '}'
850 : ($node->body !== null ? ' => ' . $this->p($node->body) : '') . ';');

Completed in 21 milliseconds