|
2960 | 2960 | "expression literal always returns '{1}'"), \
|
2961 | 2961 | equals_operator, comparison_result)) \
|
2962 | 2962 | \
|
| 2963 | + QLJS_DIAG_TYPE( \ |
| 2964 | + diag_pointless_comp_against_string_expression_literal, "E0373", \ |
| 2965 | + diagnostic_severity::warning, \ |
| 2966 | + { \ |
| 2967 | + source_code_span or_operator; \ |
| 2968 | + }, \ |
| 2969 | + MESSAGE(QLJS_TRANSLATABLE("comparison with a non-empty string literal " \ |
| 2970 | + " always returns '{1}'"), \ |
| 2971 | + or_operator)) \ |
| 2972 | + \ |
2963 | 2973 | QLJS_DIAG_TYPE( \
|
2964 | 2974 | diag_unexpected_function_parameter_is_parenthesized, "E0349", \
|
2965 | 2975 | diagnostic_severity::error, \
|
|
2976 | 2986 | diag_unexpected_colon_after_generic_definition, "E0331", \
|
2977 | 2987 | diagnostic_severity::error, { source_code_span colon; }, \
|
2978 | 2988 | MESSAGE(QLJS_TRANSLATABLE("':' should be 'extends' instead"), colon)) \
|
2979 |
| - \ |
2980 |
| - QLJS_DIAG_TYPE( \ |
2981 |
| - diag_pointless_nullish_coalescing_operator, "E0369", \ |
2982 |
| - diagnostic_severity::warning, { source_code_span question_question; }, \ |
2983 |
| - MESSAGE(QLJS_TRANSLATABLE("nullish coalescing operator does nothing " \ |
2984 |
| - "when left operand is never null"), \ |
2985 |
| - question_question)) \ |
2986 | 2989 | /* END */
|
2987 | 2990 |
|
2988 | 2991 | // QLJS_X_RESERVED_DIAG_TYPES lists reserved error codes. These codes were used
|
|
0 commit comments