Example #1
0
 /**
  * @param GroupNode $astNode
  *
  * @return bool
  */
 public function postVisitGroupNode(GroupNode $astNode)
 {
     if (0 < $astNode->countChildren()) {
         $this->visitContext->popParentId();
     }
     return true;
 }
Example #2
0
 /**
  * @param RuleNode $astNode
  * @return bool
  */
 public function postVisitRuleNode(RuleNode $astNode)
 {
     $this->visitContext->popParentId();
     return true;
 }
 /**
  * @param SyntaxNode $astNode
  * @return bool
  */
 public function postVisitSyntaxNode(SyntaxNode $astNode)
 {
     $this->dotWriter->closeGraph();
     $this->visitContext->popParentId();
     return true;
 }