Run code generator for syntactic_errors.g.dart.

It appears that this code generation step got out of date because
there's no test verifying that code generation has been run (see
https://github.com/dart-lang/sdk/issues/44888).  I will follow up with
a unit test to make sure that it doesn't fall out of date again.

Change-Id: I695897eb24af4f632fbcf917d888d3aca5e0abba
Bug: https://github.com/dart-lang/sdk/issues/44888
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213280
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2021-09-13 17:50:10 +00:00 committed by commit-bot@chromium.org
parent 30abce99f3
commit fcf15f69fc

View file

@ -478,17 +478,16 @@ const ParserErrorCode _LIBRARY_DIRECTIVE_NOT_FIRST = ParserErrorCode(
"Try moving the library directive before any other directives.");
const ParserErrorCode _LITERAL_WITH_CLASS = ParserErrorCode(
'LITERAL_WITH_CLASS',
r"The name of the class '#lexeme' can't be included in a #string literal.",
'LITERAL_WITH_CLASS', r"A #string literal can't be prefixed by '#lexeme'.",
correction: "Try removing '#lexeme'");
const ParserErrorCode _LITERAL_WITH_CLASS_AND_NEW = ParserErrorCode(
'LITERAL_WITH_CLASS_AND_NEW',
r"Neither 'new' nor the name of the class '#lexeme' can be included in a #string literal.",
r"A #string literal can't be prefixed by 'new #lexeme'.",
correction: "Try removing 'new' and '#lexeme'");
const ParserErrorCode _LITERAL_WITH_NEW = ParserErrorCode(
'LITERAL_WITH_NEW', r"A literal can't use 'new'.",
'LITERAL_WITH_NEW', r"A literal can't be prefixed by 'new'.",
correction: "Try removing 'new'");
const ParserErrorCode _MEMBER_WITH_CLASS_NAME = ParserErrorCode(