Skip to content

Commit

Permalink
cleanup after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
msharipov committed Mar 16, 2024
1 parent 212fea1 commit de3ddee
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
4 changes: 4 additions & 0 deletions po/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2429,6 +2429,10 @@ msgstr ""
msgid "function 'let' call may be confused for destructuring; remove parentheses to declare a variable"
msgstr ""

#: src/quick-lint-js/diag/diagnostic-metadata-generated.cpp
msgid "invalid syntax; missing parentheses around '{0}'"
msgstr ""

#: test/test-diagnostic-formatter.cpp
#: test/test-vim-qflist-json-diag-reporter.cpp
msgid "something happened"
Expand Down
14 changes: 14 additions & 0 deletions src/quick-lint-js/diag/diagnostic-metadata-generated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6975,6 +6975,20 @@ const QLJS_CONSTINIT Diagnostic_Info all_diagnostic_infos[] = {
},
},
},

// Diag_Invalid_Operator_Directly_After_Postfix
{
.code = 721,
.severity = Diagnostic_Severity::error,
.message_formats = {
QLJS_TRANSLATABLE("invalid syntax; missing parentheses around '{0}'"),
},
.message_args = {
{
Diagnostic_Message_Arg_Info(offsetof(Diag_Invalid_Operator_Directly_After_Postfix, postfix_expression), Diagnostic_Arg_Type::source_code_span),
},
},
},
};
}

Expand Down
3 changes: 2 additions & 1 deletion src/quick-lint-js/diag/diagnostic-metadata-generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,11 @@ namespace quick_lint_js {
QLJS_DIAG_TYPE_NAME(Diag_Unintuitive_Bitshift_Precedence) \
QLJS_DIAG_TYPE_NAME(Diag_TypeScript_Namespace_Alias_Cannot_Use_Import_Type) \
QLJS_DIAG_TYPE_NAME(Diag_Confusing_Let_Call) \
QLJS_DIAG_TYPE_NAME(Diag_Invalid_Operator_Directly_After_Postfix) \
/* END */
// clang-format on

inline constexpr int Diag_Type_Count = 465;
inline constexpr int Diag_Type_Count = 466;

extern const Diagnostic_Info all_diagnostic_infos[Diag_Type_Count];
}
Expand Down
4 changes: 2 additions & 2 deletions src/quick-lint-js/i18n/translation-table-generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ namespace quick_lint_js {
using namespace std::literals::string_view_literals;

constexpr std::uint32_t translation_table_locale_count = 5;
constexpr std::uint16_t translation_table_mapping_table_size = 607;
constexpr std::size_t translation_table_string_table_size = 82490;
constexpr std::uint16_t translation_table_mapping_table_size = 610;
constexpr std::size_t translation_table_string_table_size = 82736;
constexpr std::size_t translation_table_locale_table_size = 35;

QLJS_CONSTEVAL std::uint16_t translation_table_const_look_up(
Expand Down
3 changes: 1 addition & 2 deletions src/quick-lint-js/i18n/translation-table-test-generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ struct Translated_String {
};

// clang-format off
inline const Translated_String test_translation_table[606] = {

inline const Translated_String test_translation_table[609] = {
{
"\"global-groups\" entries must be strings"_translatable,
u8"\"global-groups\" entries must be strings",
Expand Down
1 change: 1 addition & 0 deletions test/test-parse-warning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ TEST_F(Test_Parse_Warning, invalid_operator_directly_after_postfix) {
test_parse_and_visit_expression(u8"(x--)?.constructor"_sv, no_diags);
}
}
}

// quick-lint-js finds bugs in JavaScript programs.
// Copyright (C) 2020 Matthew "strager" Glazar
Expand Down

0 comments on commit de3ddee

Please sign in to comment.