private static FormattingException SyntaxError(TokenInfo tokenInfo, string format, params object[] arguments) { return tokenInfo.Token == Token.EndOfInput ? new FormattingException(tokenInfo.Location, "Unexpected end of input.") : new FormattingException(tokenInfo.Location, Utilities.InvariantFormat(format, arguments)); }
private void Consume() { this.currentTokenInfo = this.nextTokenInfo; this.nextTokenInfo = this.scanner.Scan(); }
private void Consume() { currentTokenInfo = nextTokenInfo; nextTokenInfo = scanner.Scan(); }