/PHP-Parser/test/PhpParser/Node/Stmt/ |
H A D | ClassTest.php | 34 new ClassMethod('fooBar'), 44 new ClassMethod('foo'), 45 new ClassMethod('bar'), 46 new ClassMethod('fooBar'), 71 new ClassMethod('fooBar'), 90 new ClassMethod('fooBar'), 109 new ClassMethod('fooBar'), 123 $methodConstruct = new ClassMethod('__CONSTRUCT'); 124 $methodTest = new ClassMethod('test');
|
H A D | ClassMethodTest.php | 15 $node = new ClassMethod('foo', [ 23 $node = new ClassMethod('foo', ['type' => 0]); 53 $node = new ClassMethod('foo', [ 74 $node = new ClassMethod($name); 102 $method = new ClassMethod('test', [ 114 $method = new ClassMethod('test', [
|
H A D | InterfaceTest.php | 11 new ClassMethod('foo'), 12 new ClassMethod('bar'), 36 new ClassMethod('fooBar'),
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | TraitTest.php | 16 use PhpParser\Node\Stmt\ClassMethod; alias 27 $method1 = new Stmt\ClassMethod('test1'); 28 $method2 = new Stmt\ClassMethod('test2'); 29 $method3 = new Stmt\ClassMethod('test3'); 62 new ClassMethod('foo'), 63 new ClassMethod('bar'), 64 new ClassMethod('fooBar'), 91 new ClassMethod('fooBar'),
|
H A D | MethodTest.php | 33 new Stmt\ClassMethod('test', [ 47 new Stmt\ClassMethod('test', [ 59 new Stmt\ClassMethod('test', [ 73 new Stmt\ClassMethod('test', [ 92 new Stmt\ClassMethod('test', [ 111 new Stmt\ClassMethod('test', [ 126 $this->assertEquals(new Stmt\ClassMethod('test', [], [ 142 $this->assertEquals(new Stmt\ClassMethod('attributeGroup', [ 151 $this->assertEquals(new Stmt\ClassMethod('test', [
|
H A D | InterfaceTest.php | 46 $method = new Stmt\ClassMethod('doSomething'); 63 $method = new Stmt\ClassMethod('doSomething'); 71 $this->assertInstanceOf(Stmt\ClassMethod::class, $contract->stmts[1]); 110 $method = new Stmt\ClassMethod('doSomething');
|
H A D | EnumTest.php | 52 $method = new Stmt\ClassMethod('testMethod');
|
H A D | ClassTest.php | 86 $method = new Stmt\ClassMethod('testMethod');
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | ClassLike.php | 81 * @return ClassMethod[] 86 if ($stmt instanceof ClassMethod) { 98 * @return ClassMethod|null Method node or null if the method does not exist 100 public function getMethod(string $name): ?ClassMethod { 103 if ($stmt instanceof ClassMethod && $lowerName === $stmt->name->toLowerString()) {
|
H A D | ClassMethod.php | 9 class ClassMethod extends Node\Stmt implements FunctionLike { class
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | ParentConnectingVisitorTest.php | 5 use PhpParser\Node\Stmt\ClassMethod; alias 22 $node = (new NodeFinder())->findFirstInstanceof($ast, ClassMethod::class);
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | listRemoval.test | 189 $stmts[0]->stmts[2] = new Node\Stmt\ClassMethod('getBar'); 190 $stmts[0]->stmts[3] = new Node\Stmt\ClassMethod('getBaz');
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Interface_.php | 58 } elseif ($stmt instanceof Stmt\ClassMethod) {
|
H A D | Trait_.php | 44 } elseif ($stmt instanceof Stmt\ClassMethod) {
|
H A D | Enum_.php | 77 } elseif ($stmt instanceof Stmt\ClassMethod) {
|
H A D | Method.php | 138 return new Stmt\ClassMethod($this->name, [
|
H A D | Class_.php | 111 } elseif ($stmt instanceof Stmt\ClassMethod) {
|
/PHP-Parser/ |
H A D | UPGRADE-4.0.md | 30 * `Stmt\ClassMethod::$name` 31 * `Stmt\ClassMethod::$returnType` (for simple types) 65 * Removed `type` subnode on `Class_`, `ClassMethod` and `Property` nodes. Use `flags` instead.
|
H A D | UPGRADE-3.0.md | 26 * The `type` subnode on `Class`, `ClassMethod` and `Property` has been renamed to `flags`. The
|
H A D | UPGRADE-5.0.md | 296 Modifier flags (as used by the `$flags` subnode of `Class_`, `ClassMethod`, `Property`, etc.) are n… 315 * The `'returnType'` key of `$subNodes` argument of `Node\Stmt\ClassMethod`.
|
H A D | CHANGELOG.md | 436 `Stmt\ClassMethod`, `Stmt\ClassConst`, `Stmt\Property`, `Expr\Closure`, `Expr\ArrowFunction` and 775 * Added `ClassMethod::isMagic()` method. 813 * Removed `type` subnode on `Class`, `ClassMethod` and `Property` nodes. Use `flags` instead. 1079 * The `type` subnode on `Class`, `ClassMethod` and `Property` has been renamed to `flags`. The
|
/PHP-Parser/lib/PhpParser/ |
H A D | PrettyPrinterAbstract.php | 1528 Stmt\ClassMethod::class . '->params' => ', ', 1562 Stmt\ClassMethod::class . '->stmts' => "\n", 1582 Stmt\ClassMethod::class . '->attrGroups' => "\n", 1625 Stmt\ClassMethod::class . '->params' => ['(', '', ''], 1631 Stmt\ClassMethod::class . '->attrGroups' => [null, '', "\n"], 1676 Stmt\ClassMethod::class . '->flags' => ['pModifiers', \T_FUNCTION],
|
H A D | ParserAbstract.php | 25 use PhpParser\Node\Stmt\ClassMethod; alias 1113 protected function checkClassMethod(ClassMethod $node, int $modifierPos): void {
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 102 } elseif ($node instanceof Stmt\ClassMethod
|
/PHP-Parser/grammar/ |
H A D | php.y | 853 …{ $$ = Stmt\ClassMethod[$5, ['type' => $2, 'byRef' => $4, 'params' => $7, 'returnType' => $9, 'stm…
|