コード例 #1
0
        public override int VisitLt(CLt node)
        {
            ExtractSubgraphs(node, CLt.CT_LEFT, CLt.ContextNames);
            ExtractSubgraphs(node, CLt.CT_RIGHT, CLt.ContextNames);

            base.VisitLt(node);

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

            return(0);
        }
コード例 #2
0
        public override int VisitLt(CLt node)
        {
            int context = m_parentContexts.Peek();
            CEmmitableCodeContainer rep = m_parents.Peek() as CEmmitableCodeContainer;

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

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

            return(0);
        }
コード例 #3
0
 public virtual T VisitLt(CLt node)
 {
     return(VisitChildren(node));
 }