Home
last modified time | relevance | path

Searched refs:Function_ (Results 1 – 21 of 21) sorted by relevance

/PHP-Parser/test/PhpParser/Builder/
H A DFunctionTest.php20 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 DNamespaceTest.php17 $stmt3 = new Stmt\Function_('someFunction');
/PHP-Parser/lib/PhpParser/Builder/
H A DFunction_.php10 class Function_ extends FunctionLike { class
59 return new Stmt\Function_($this->name, [
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DFunction_.php7 class Function_ extends MagicConst { class
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DMagicConstTest.php18 [new MagicConst\Function_(), '__FUNCTION__'],
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DFunction_.php8 class Function_ extends Node\Stmt implements FunctionLike { class
/PHP-Parser/
H A DREADME.md119 use PhpParser\Node\Stmt\Function_;
126 if ($node instanceof Function_) {
137 This gives us an AST where the `Function_::$stmts` are empty:
H A DUPGRADE-4.0.md32 * `Stmt\Function_::$name`
33 * `Stmt\Function_::$returnType` (for simple types)
H A DUPGRADE-5.0.md316 * The `'returnType'` key of `$subNodes` argument of `Node\Stmt\Function_`.
H A DCHANGELOG.md435 support attributes, i.e. `Stmt\Class_`, `Stmt\Trait_`, `Stmt\Interface_`, `Stmt\Function_`,
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php150 public function function(string $name): Builder\Function_ {
151 return new Builder\Function_($name);
H A DPrettyPrinterAbstract.php1538 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 DParserTestAbstract.php54 $this->assertInstanceOf(Stmt\Function_::class, $fn);
H A DBuilderFactoryTest.php31 ['function', Builder\Function_::class],
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php368 new Stmt\Function_('C'),
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php98 } elseif ($node instanceof Stmt\Function_) {
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown170 * `Stmt_Function -> PhpParser\Node\Stmt\Function_`
487 || $node instanceof Stmt\Function_) {
514 || $node instanceof Stmt\Function_) {
/PHP-Parser/grammar/
H A Dphp.y475 …{ $$ = 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 DStandard.php109 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 DPhp7.php1609 …$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 DPhp8.php1604 …$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…

Completed in 90 milliseconds