Example #1
0
        public override int VisitASSIGN(CASTExpressionAssign node, object param)
        {
            ExtractSubgraphs(node, contextType.CT_EXPRESSION_ASSIGN_LVALUE);
            ExtractSubgraphs(node, contextType.CT_EXPRESSION_ASSIGN_EXPRESSION);

            base.VisitASSIGN(node);

            m_ostream.WriteLine("{0}->{1}", node.MParent.MNodeName, node.MNodeName);

            return(0);
        }
        public override int VisitExpr_ASSIGN(MINICParser.Expr_ASSIGNContext context)
        {
            ASTComposite         m_parent = m_parents.Peek();
            CASTExpressionAssign newnode  = new CASTExpressionAssign(context.GetText(), m_parents.Peek(), 2);

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

            this.VisitTerminalInContext(context, context.IDENTIFIER().Symbol, m_parentContext, contextType.CT_EXPRESSION_ASSIGN_LVALUE);
            this.VisitElementInContext(context.expression(), m_parentContext, contextType.CT_EXPRESSION_ASSIGN_EXPRESSION);
            m_parents.Pop();
            return(0);
        }
 public virtual Result VisitASSIGN(CASTExpressionAssign node, VParam param = default(VParam))
 {
     VisitChildren(node, param);
     return(default(Result));
 }