string Consume(SelectorTokenType tokenType) { Expect(tokenType); string token = CurrentToken.Text; currentPosition++; return token; }
string Consume(SelectorTokenType tokenType) { Expect(tokenType); string token = CurrentToken.Text; currentPosition++; return(token); }
void Expect(SelectorTokenType tokenType) { ParseErrorIfEnd(); if (CurrentToken.TokenType != tokenType) { ParseError(string.Format( "Expected token {0} but found {1}", tokenType, CurrentToken.TokenType)); } }
public SelectorToken(SelectorTokenType type, string text) { this.TokenType = type; this.Text = text; }