void ITreeWalker.Visit(RangeExpression expression) { expression.Validate(this); expression.From.Accept(this); expression.Step.Accept(this); expression.To.Accept(this); }
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); }
void ITreeWalker.Visit(RangeExpression expression) { expression.Validate(this); InsertRange(() => expression.From.Accept(this), () => expression.To.Accept(this), () => expression.Step.Accept(this)); }