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))); }