/PHP-Parser/test/PhpParser/Node/Stmt/ |
H A D | InterfaceTest.php | 10 $methods = [ 17 $methods[0], 19 $methods[1], 24 $this->assertSame($methods, $interface->getMethods());
|
H A D | ClassTest.php | 43 $methods = [ 51 $methods[0], 53 $methods[1], 55 $methods[2], 59 $this->assertSame($methods, $class->getMethods());
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | TraitTest.php | 61 $methods = [ 69 $methods[0], 71 $methods[1], 73 $methods[2], 77 $this->assertSame($methods, $trait->getMethods());
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Interface_.php | 18 protected array $methods = []; variable in PhpParser\\Builder\\Interface_ 61 $this->methods[] = $stmt; 90 'stmts' => array_merge($this->constants, $this->methods),
|
H A D | Trait_.php | 19 protected array $methods = []; variable in PhpParser\\Builder\\Trait_ 45 $this->methods[] = $stmt; 78 … 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
|
H A D | Enum_.php | 24 protected array $methods = []; variable in PhpParser\\Builder\\Enum_ 78 $this->methods[] = $stmt; 112 'stmts' => array_merge($this->uses, $this->enumCases, $this->constants, $this->methods),
|
H A D | Class_.php | 25 protected array $methods = []; variable in PhpParser\\Builder\\Class_ 112 $this->methods[] = $stmt; 147 … 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | ClassLike.php | 84 $methods = []; 87 $methods[] = $stmt; 90 return $methods;
|
/PHP-Parser/doc/component/ |
H A D | AST_builders.markdown | 19 * methods, functions and parameters 67 // properties will be correctly reordered above the methods 113 Additional helper methods 116 The `BuilderFactory` also provides a number of additional helper methods, which directly return 117 nodes. The following methods are currently available: 140 These methods may be expanded on an as-needed basis. Please open an issue or PR if a common
|
H A D | Error_handling.markdown | 14 location of an error cannot always be determined. The methods for retrieving column information als…
|
H A D | Pretty_printing.markdown | 23 The pretty printer has three basic printing methods: `prettyPrint()`, `prettyPrintFile()` and 60 and override the methods responsible for the node types you are interested in.
|
H A D | Constant_expression_evaluation.markdown | 34 The constant evaluator provides two methods, `evaluateDirectly()` and `evaluateSilently()`, which
|
H A D | Walking_the_AST.markdown | 39 Each node visitor implements an interface with following four methods: 50 The `beforeTraverse()` and `afterTraverse()` methods are called before and after the traversal 78 then the enter/leave methods will be called in the following order: 95 As you usually do not want to implement all four methods, it is recommended that you extend
|
/PHP-Parser/ |
H A D | UPGRADE-3.0.md | 10 * A number of deprecated methods were removed. 130 ### Removed methods, arguments, options 132 The following methods, arguments or options have been removed: 151 * All methods on `PrettyPrinter\Standard` are now protected. Previously most of them were public. 153 `prettyPrintExpr()` methods.
|
H A D | UPGRADE-5.0.md | 34 The `ParserFactory::create()` method has been removed in favor of three new methods that provide mo… 326 …behavior are not provided, but it is possible to override the formatting methods (such as `pStmt_C… 414 …ls in pretty-printer methods should generally continue calling `p()` without additional parameters… 431 …ce` arguments need to be passed down to the `pInfixOp()`, `pPrefixOp()` and `pPostfixOp()` methods. 435 …rs, the node traverser will now call `leaveNode()` and `afterTraverse()` methods in the reverse or… 493 …ich returns an array of tokens. The `startLexing()` and `getNextToken()` methods have been removed. 532 …omment::getLine()`, `Comment::getTokenPos()` and `Comment::getFilePos()` methods have been removed…
|
H A D | CHANGELOG.md | 38 * Added support for passing enum values to various builder methods, like `BuilderFactory::val()`. 139 `startLexing()`, `getTokens()` and `handleHaltCompiler()` methods have been removed. Instead, 151 * The deprecated `Comment::getLine()`, `Comment::getTokenPos()` and `Comment::getFilePos()` methods 203 * Added `isPromoted()`, `isPublic()`, `isProtected()`, `isPrivate()` and `isReadonly()` methods 366 * Builder methods for types now property handle `never` type. 662 * The following methods have been added to `BuilderFactory`: 708 * Added the following methods to `BuilderFactory`, to simplify creation of expressions: 783 * Added `Name` methods `toLowerString()` and `isSpecialClassName()`. 1053 methods. The constructor changed to accept the additional subnode. 1094 * The deprecated `Comment::setLine()` and `Comment::setText()` methods have been removed. [all …]
|
H A D | UPGRADE-2.0.md | 61 The `set()`, `setFirst()`, `append()` and `prepend()` methods of the `Node\Name` class have been
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | implicitPublic.test | 1 Implicitly public properties and methods
|
H A D | staticMethod.test | 1 Some special methods cannot be static
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 49 The `createXYZ()` methods optionally accept an array of lexer options. Some use cases that require 330 methods: 346 The `enterNode()` and `leaveNode()` methods are called on every node, the former when it is entered, 349 All four methods can either return the changed node or not return at all (i.e. `null`) in which 356 Both methods can additionally return the following values: 366 class, which will define empty default implementations for all the above methods.
|