/PHP-Parser/test/PhpParser/Builder/ |
H A D | FunctionTest.php | 20 return new Function_($name); 30 new Stmt\Function_('test', [ 49 new Stmt\Function_('test', [ 68 new Stmt\Function_('test', [ 84 $this->assertEquals(new Stmt\Function_('test', [], [ 100 $this->assertEquals(new Stmt\Function_('attrGroup', [ 110 $this->assertEquals(new Stmt\Function_('test', [
|
H A D | NamespaceTest.php | 17 $stmt3 = new Stmt\Function_('someFunction');
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Function_.php | 10 class Function_ extends FunctionLike { class 59 return new Stmt\Function_($this->name, [
|
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/ |
H A D | Function_.php | 7 class Function_ extends MagicConst { class
|
/PHP-Parser/test/PhpParser/Node/Scalar/ |
H A D | MagicConstTest.php | 18 [new MagicConst\Function_(), '__FUNCTION__'],
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Function_.php | 8 class Function_ extends Node\Stmt implements FunctionLike { class
|
/PHP-Parser/ |
H A D | README.md | 119 use PhpParser\Node\Stmt\Function_; 126 if ($node instanceof Function_) { 137 This gives us an AST where the `Function_::$stmts` are empty:
|
H A D | UPGRADE-4.0.md | 32 * `Stmt\Function_::$name` 33 * `Stmt\Function_::$returnType` (for simple types)
|
H A D | UPGRADE-5.0.md | 316 * The `'returnType'` key of `$subNodes` argument of `Node\Stmt\Function_`.
|
H A D | CHANGELOG.md | 435 support attributes, i.e. `Stmt\Class_`, `Stmt\Trait_`, `Stmt\Interface_`, `Stmt\Function_`,
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderFactory.php | 150 public function function(string $name): Builder\Function_ { 151 return new Builder\Function_($name);
|
H A D | PrettyPrinterAbstract.php | 1538 Stmt\Function_::class . '->params' => ', ', 1570 Stmt\Function_::class . '->stmts' => "\n", 1581 Stmt\Function_::class . '->attrGroups' => "\n", 1627 Stmt\Function_::class . '->params' => ['(', '', ''], 1632 Stmt\Function_::class . '->attrGroups' => [null, '', "\n"],
|
/PHP-Parser/test/PhpParser/ |
H A D | ParserTestAbstract.php | 54 $this->assertInstanceOf(Stmt\Function_::class, $fn);
|
H A D | BuilderFactoryTest.php | 31 ['function', Builder\Function_::class],
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 368 new Stmt\Function_('C'),
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 98 } elseif ($node instanceof Stmt\Function_) {
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 170 * `Stmt_Function -> PhpParser\Node\Stmt\Function_` 487 || $node instanceof Stmt\Function_) { 514 || $node instanceof Stmt\Function_) {
|
/PHP-Parser/grammar/ |
H A D | php.y | 475 …{ $$ = Stmt\Function_[$3, ['byRef' => $2, 'params' => $5, 'returnType' => $7, 'stmts' => $8, 'attr… 477 …{ $$ = Stmt\Function_[$4, ['byRef' => $3, 'params' => $6, 'returnType' => $8, 'stmts' => $9, 'attr… 1207 | T_FUNC_C { $$ = Scalar\MagicConst\Function_[]; }
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 109 protected function pScalar_MagicConst_Function(MagicConst\Function_ $node): string { 872 protected function pStmt_Function(Stmt\Function_ $node): string {
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 1609 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(8-3)], ['byRef' => $self->semStack… 1612 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(9-4)], ['byRef' => $self->semStack… 2547 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
|
H A D | Php8.php | 1604 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(8-3)], ['byRef' => $self->semStack… 1607 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(9-4)], ['byRef' => $self->semStack… 2549 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
|