Example #1
0
        public virtual void Accept(ExprNodeVisitorWithParent visitor)
        {
            if (visitor.IsVisit(this)) {
                visitor.Visit(this, null);

                foreach (var childNode in ChildNodes) {
                    childNode.AcceptChildnodes(visitor, this);
                }
            }
        }
Example #2
0
        public virtual void AcceptChildnodes(ExprNodeVisitorWithParent visitor, ExprNode parent)
        {
            if (visitor.IsVisit(this))
            {
                visitor.Visit(this, parent);

                foreach (ExprNode childNode in _childNodes)
                {
                    childNode.AcceptChildnodes(visitor, this);
                }
            }
        }