Lines Matching refs:nodes
73 // $stmts is an array of statement nodes
168 nodes, a `Stmt_Function` and a `Stmt_Expression`. The corresponding class names are:
177 As PHP is a large language there are approximately 140 different nodes. In order to make working
180 * `PhpParser\Node\Stmt`s are statement nodes, i.e. language constructs that do not return
183 * `PhpParser\Node\Expr`s are expression nodes, i.e. language constructs that return a value
186 * `PhpParser\Node\Scalar`s are nodes representing scalar values, like `'string'`
190 * There are some nodes not in either of these groups, for example names (`PhpParser\Node\Name`)
202 All nodes also define a `getType()` method that returns the node type. The type is the class name
333 public function beforeTraverse(array $nodes);
336 public function afterTraverse(array $nodes);
339 The `beforeTraverse()` method is called once before the traversal begins and is passed the nodes the
358 * `NodeVisitor::STOP_TRAVERSAL`, in which case no further nodes will be visited.
361 * An array of nodes, which will be merged into the parent array at the offset of the current node.
524 // remove use nodes altogether