Lines Matching refs:args
62 $args = magicSplit(
68 assertArgs(0, $args, $name);
73 assertArgs(1, $args, $name);
74 return '$this->getAttributes($this->tokenStartStack[' . $args[0] . '], '
75 . ' $this->tokenEndStack[' . $args[0] . '])';
79 return '$$ = array(' . implode(', ', $args) . ')';
83 assertArgs(2, $args, $name);
85 return $args[0] . '[] = ' . $args[1] . '; $$ = ' . $args[0];
89 assertArgs(2, $args, $name);
91 …return 'if (' . $args[1] . ' !== null) { ' . $args[0] . '[] = ' . $args[1] . '; } $$ = ' . $args[0…
95 assertArgs(1, $args, $name);
97 … return 'if (' . $args[0] . ' instanceof Stmt\Block) { $$ = ' . $args[0] . '->stmts; } '
98 . 'else if (' . $args[0] . ' === null) { $$ = []; } '
99 . 'else { $$ = [' . $args[0] . ']; }';
103 assertArgs(1, $args, $name);
105 return 'substr(' . $args[0] . ', 1)';
109 assertArgs(3, $args, $name);
111 … return 'foreach (' . $args[0] . ' as $s) { if ($s instanceof Node\InterpolatedStringPart) {'
112 …alue = Node\Scalar\String_::parseEscapeSequences($s->value, ' . $args[1] . ', ' . $args[2] . '); }…
116 assertArgs(1, $args, $name);
118 …return $args[0] . ' = $this->maybeCreateNop($this->tokenStartStack[#1], $this->tokenEndStack[$stac…
122 assertArgs(1, $args, $name);
124 return $args[0] . ' = $this->maybeCreateZeroLengthNop($this->tokenPos);';
133 function assertArgs($num, $args, $name) { argument
134 if ($num != count($args)) {