示例#1
0
        public override bool Walk(Conditional node)
        {
            if (node != null)
            {
                if (node.Condition != null)
                {
                    node.Condition.Walk(this);
                }

                if (node.TrueExpression != null)
                {
                    node.TrueExpression.Walk(this);
                }

                if (node.FalseExpression != null)
                {
                    node.FalseExpression.Walk(this);
                }
            }
            return(false);
        }
示例#2
0
 public override bool Walk(Conditional node) { AddNode(node); return true; }
        public override bool Walk(Conditional node)
        {
            if (node != null)
            {
                if (node.Condition != null)
                {
                    node.Condition.Walk(this);
                }

                if (node.TrueExpression != null)
                {
                    node.TrueExpression.Walk(this);
                }

                if (node.FalseExpression != null)
                {
                    node.FalseExpression.Walk(this);
                }
            }
            return false;
        }