void ITreeWalker.Visit(RangeExpression expression)
 {
     expression.Validate(this);
     expression.From.Accept(this);
     expression.Step.Accept(this);
     expression.To.Accept(this);
 }
示例#2
0
        void ITreeWalker.Visit(RangeExpression expression)
        {
            var hasStep   = expression.Step is EmptyExpression == false;
            var operation = RngiOperation.Instance;

            expression.Validate(this);

            if (hasStep)
            {
                operation = RngeOperation.Instance;
                expression.Step.Accept(this);
            }

            expression.To.Accept(this);
            expression.From.Accept(this);
            _operations.Add(operation);
        }
示例#3
0
 void ITreeWalker.Visit(RangeExpression expression)
 {
     expression.Validate(this);
     InsertRange(() => expression.From.Accept(this), () => expression.To.Accept(this), () => expression.Step.Accept(this));
 }