Skip to content

Commit

Permalink
added diag
Browse files Browse the repository at this point in the history
  • Loading branch information
msharipov committed Mar 14, 2024
1 parent 195cd69 commit 9e034a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/quick-lint-js/diag/diagnostic-types-2.h
Original file line number Diff line number Diff line change
Expand Up @@ -3531,6 +3531,9 @@ struct Diag_Variable_Assigned_To_Self_Is_Noop {
Source_Code_Span assignment_statement;
};




struct Diag_Xor_Used_As_Exponentiation {
[[qljs::diag("E0710", Diagnostic_Severity::warning)]] //
[[qljs::message("'^' is the XOR operator; to exponentiate, use '**' instead",
Expand Down Expand Up @@ -3599,6 +3602,13 @@ struct Diag_TypeScript_Namespace_Alias_Cannot_Use_Import_Type {
ARG(type_keyword))]] //
Source_Code_Span type_keyword;
};

struct Diag_To_String_After_Increment {
[[qljs::diag("E0721", Diagnostic_Severity::error)]] //
[[qljs::message("invalid syntax; missing parentheses around {0}",
ARG(increment))]] //
Source_Code_Span increment;
};
}
QLJS_WARNING_POP

Expand Down

0 comments on commit 9e034a4

Please sign in to comment.