Lines Matching refs:leaveNode
13 public function leaveNode(Node $node) {
45 public function leaveNode(Node $node);
55 processed ("preorder"). The `leaveNode()` method is called after all children have been visited
83 leaveNode(Name)
86 leaveNode(Scalar_String)
87 leaveNode(Arg)
88 leaveNode(Expr_FuncCall)
91 A common pattern is that `enterNode` is used to collect some information and then `leaveNode`
92 performs modifications based on that. At the time when `leaveNode` is called, all the code inside
106 public function leaveNode(Node $node) {
117 public function leaveNode(Node $node) {
125 Doing this is supported both inside enterNode and leaveNode. However, you have to be mindful about
146 public function leaveNode(Node $node) {
163 public function leaveNode(Node $node) {
182 public function leaveNode(Node $node) {
196 public function leaveNode(Node $node) {
231 leaveNode is reached.
250 This works both in enterNode and leaveNode. Note that this particular case can also be more easily
283 $visitorB->leaveNode(Expr_Variable)
284 $visitorA->leaveNode(Expr_Variable)
285 $visitorB->leaveNode(Stmt_Return)
286 $visitorA->leaveNode(Stmt_Return)
289 That is, when visiting a node, `enterNode()` and `leaveNode()` will always be called for all
290 visitors, with the `leaveNode()` calls happening in the reverse order of the `enterNode()` calls.
305 special enterNode/leaveNode return values: