예제 #1
0
 public override int VisitWHILESTATEMENT(CASTWhileStatement node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_WHILESTATEMENT_CONDITION);
     ExtractSubgraphs(node, contextType.CT_WHILESTATEMENT_BODY);
     base.VisitWHILESTATEMENT(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
예제 #2
0
        public override int VisitWhilestatement(MINICParser.WhilestatementContext context)
        {
            ASTComposite       m_parent = m_parents.Peek();
            CASTWhileStatement newnode  = new CASTWhileStatement(context.GetText(), m_parents.Peek(), 2);

            m_parent.AddChild(newnode, m_parentContext.Peek());
            m_parents.Push(newnode);
            this.VisitElementInContext(context.expression(), m_parentContext, contextType.CT_WHILESTATEMENT_CONDITION);
            this.VisitElementInContext(context.statement(), m_parentContext, contextType.CT_WHILESTATEMENT_BODY);

            m_parents.Pop();
            return(0);
        }
예제 #3
0
 public virtual Result VisitWHILESTATEMENT(CASTWhileStatement node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }