Esempio n. 1
0
        public virtual T VisitChildren(ASTElement node)
        {
            T netResult = default(T);

            foreach (ASTElement child in node.GetChildren())
            {
                netResult = AggregateResult(netResult, child.Accept(this));
            }

            return(netResult);
        }
Esempio n. 2
0
 public void AddChild(ASTElement child, int contextIndex)
 {
     m_children[contextIndex].Add(child);
 }
Esempio n. 3
0
 public virtual T Visit(ASTElement node)
 {
     return(node.Accept(this));
 }