private void SetParsingError(Range source, string message) { if (IsCancellationRequested) return; ParsingError = new ParsingError(message, source.Start, source.Length); }
private void SetParsingError2(Range source, string message) { ParsingError = new ParsingError(message, source.Start, source.Length); }
public bool Contains(Range other) { return this.Start <= other.Start && other.End <= this.End; }
private void SetOrigin(IFormulaToken token, Range value) { _origin[token] = value; }
public static Range Combine(Range x, Range y) { return Range.FromIndices(Math.Min(x.Start, y.Start), Math.Max(x.End, y.End)); }