Lines Matching defs:node
38 public function visitChildren(RuleNode $node)
42 $n = $node->getChildCount();
45 if (!$this->shouldVisitNextChild($node, $result)) {
50 $child = $node->getChild($i);
68 public function visitTerminal(TerminalNode $node)
104 * Aggregates the results of visiting multiple children of a node. After
112 * of the last child visited (or return the initial value if the node has
119 * this method after the first child node is visited.
121 * visit a child node.
145 * @param RuleNode $node The {@see RuleNode} whose children are
154 protected function shouldVisitNextChild(RuleNode $node, $currentResult) : bool