Ejemplo n.º 1
0
 public override int VisitCOMPOUNDSTATEMENT(CASTCompoundStatement node, object param)
 {
     ExtractSubgraphs(node, contextType.CT_COMPOUNDSTATEMENT);
     base.VisitCOMPOUNDSTATEMENT(node);
     m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);
     return(0);
 }
Ejemplo n.º 2
0
        public override int VisitCompoundStatement(MINICParser.CompoundStatementContext context)
        {
            ASTComposite          m_parent = m_parents.Peek();
            CASTCompoundStatement newnode  = new CASTCompoundStatement(context.GetText(), m_parents.Peek(), 1);

            m_parent.AddChild(newnode, m_parentContext.Peek());
            m_parents.Push(newnode);

            this.VisitElementInContext(context.statementList(), m_parentContext, contextType.CT_COMPOUNDSTATEMENT);

            m_parents.Pop();
            return(0);
        }
Ejemplo n.º 3
0
 public virtual Result VisitCOMPOUNDSTATEMENT(CASTCompoundStatement node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }