Exemplo n.º 1
0
        public override int VisitEqual(CEqual node)
        {
            ExtractSubgraphs(node, CEqual.CT_LEFT, CEqual.ContextNames);
            ExtractSubgraphs(node, CEqual.CT_RIGHT, CEqual.ContextNames);

            base.VisitEqual(node);

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

            return(0);
        }
Exemplo n.º 2
0
        public override int VisitEqual(CEqual node)
        {
            int context = m_parentContexts.Peek();
            CEmmitableCodeContainer rep = m_parents.Peek() as CEmmitableCodeContainer;

            foreach (ASTVisitableElement child in
                     node.GetChildrenContext(CEqual.CT_LEFT))
            {
                Visit(child);
            }
            rep.AddCode(" == ", context);

            foreach (ASTVisitableElement child in
                     node.GetChildrenContext(CEqual.CT_RIGHT))
            {
                Visit(child);
            }

            return(0);
        }
Exemplo n.º 3
0
 public virtual T VisitEqual(CEqual node)
 {
     return(VisitChildren(node));
 }