public string GetExceptionRangeText(TokenizerFrame startFrame = null) { if (startFrame == null) { return($"\"{SourceText}\" - (Index {CurrentIndex}): "); } return($"\"{SourceText}\" - (Range {startFrame.Index} - {CurrentIndex}): "); }
public bool Restore(TokenizerFrame frame) { if (!moreAt(frame.Index, 0)) { return(false); } currentIndex = frame.Index; return(true); }