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.md383 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.php1507 Stmt\Function_::class . '->params' => ', ',
1538 Stmt\Function_::class . '->stmts' => "\n",
1549 Stmt\Function_::class . '->attrGroups' => "\n",
1590 Stmt\Function_::class . '->params' => ['(', '', ''],
1595 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/lib/PhpParser/NodeVisitor/
H A DNameResolver.php98 } elseif ($node instanceof Stmt\Function_) {
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php344 new Stmt\Function_('C'),
/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.y470 …{ $$ = Stmt\Function_[$3, ['byRef' => $2, 'params' => $5, 'returnType' => $7, 'stmts' => $8, 'attr…
472 …{ $$ = Stmt\Function_[$4, ['byRef' => $3, 'params' => $6, 'returnType' => $8, 'stmts' => $9, 'attr…
1166 | T_FUNC_C { $$ = Scalar\MagicConst\Function_[]; }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php108 protected function pScalar_MagicConst_Function(MagicConst\Function_ $node): string {
857 protected function pStmt_Function(Stmt\Function_ $node): string {
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php1606 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(8-3)], ['byRef' => $self->semStack…
1609 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(9-4)], ['byRef' => $self->semStack…
2503 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
H A DPhp8.php1600 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(8-3)], ['byRef' => $self->semStack…
1603 …$self->semValue = new Stmt\Function_($self->semStack[$stackPos-(9-4)], ['byRef' => $self->semStack…
2497 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…

Completed in 96 milliseconds