public void SkipAndAdd(int amount) { for (var startPosition = Position; Position < startPosition + amount; Position++) { TokenList.AddCharacter(Source[Position]); } }
public string Evaluate() { while (Position < Source.Length) { CollectionView.Position = Position; if (TrySkipEscapeSymbol()) { continue; } if (TryCloseTag()) { continue; } if (TryOpenTag()) { continue; } TokenList.AddCharacter(CollectionView.GetValue(0)); Position++; } return(TokenList.GetValue()); }