public override int VisitMinus(CMinus node)
        {
            ExtractSubgraphs(node, CMinus.CT_EXPRESSION, CMinus.ContextNames);

            base.VisitMinus(node);

            m_ostream.WriteLine("{0}->{1}", currentParent.M_GraphVizName, node.M_GraphVizName);

            return(0);
        }
        public override int VisitMinus(CMinus node)
        {
            int context = m_parentContexts.Peek();
            CEmmitableCodeContainer rep = m_parents.Peek() as CEmmitableCodeContainer;

            rep.AddCode("(-", context);

            foreach (ASTVisitableElement child in
                     node.GetChildrenContext(CMinus.CT_EXPRESSION))
            {
                Visit(child);
            }

            rep.AddCode(")", context);

            return(0);
        }
Exemple #3
0
 public virtual T VisitMinus(CMinus node)
 {
     return(VisitChildren(node));
 }