Home
last modified time | relevance | path

Searched refs:methods (Results 1 – 20 of 20) sorted by relevance

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DInterfaceTest.php10 $methods = [
17 $methods[0],
19 $methods[1],
24 $this->assertSame($methods, $interface->getMethods());
H A DClassTest.php43 $methods = [
51 $methods[0],
53 $methods[1],
55 $methods[2],
59 $this->assertSame($methods, $class->getMethods());
/PHP-Parser/test/PhpParser/Builder/
H A DTraitTest.php61 $methods = [
69 $methods[0],
71 $methods[1],
73 $methods[2],
77 $this->assertSame($methods, $trait->getMethods());
/PHP-Parser/lib/PhpParser/Builder/
H A DInterface_.php18 protected array $methods = []; variable in PhpParser\\Builder\\Interface_
61 $this->methods[] = $stmt;
90 'stmts' => array_merge($this->constants, $this->methods),
H A DTrait_.php19 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 DEnum_.php24 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 DClass_.php25 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 DClassLike.php84 $methods = [];
87 $methods[] = $stmt;
90 return $methods;
/PHP-Parser/doc/component/
H A DAST_builders.markdown19 * 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 DError_handling.markdown14 location of an error cannot always be determined. The methods for retrieving column information als…
H A DPretty_printing.markdown23 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 DConstant_expression_evaluation.markdown34 The constant evaluator provides two methods, `evaluateDirectly()` and `evaluateSilently()`, which
H A DWalking_the_AST.markdown39 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 DUPGRADE-3.0.md10 * 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 DUPGRADE-5.0.md34 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 DCHANGELOG.md38 * 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 DUPGRADE-2.0.md61 The `set()`, `setFirst()`, `append()` and `prepend()` methods of the `Node\Name` class have been
/PHP-Parser/test/code/parser/stmt/class/
H A DimplicitPublic.test1 Implicitly public properties and methods
H A DstaticMethod.test1 Some special methods cannot be static
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown49 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.

Completed in 23 milliseconds