Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: pkg/analyzer/lib/src/dart/error/syntactic_errors.dart

Issue 2999303002: map fasta error codes to analyzer (Closed)
Patch Set: rebase Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/fasta/ast_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
diff --git a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
index 6878eeb2cc4354e08fa08ee2ce2525d2193a3459..60a0af1b88064c6979416ea28acf4975c771f855 100644
--- a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
+++ b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
@@ -330,6 +330,11 @@ class ParserErrorCode extends ErrorCode {
"Typedefs can't be declared to be 'external'.",
"Try removing the keyword 'external'.");
+ static const ParserErrorCode EXTRANEOUS_MODIFIER = const ParserErrorCode(
+ 'EXTRANEOUS_MODIFIER',
+ "Can't have modifier '{0}' here.",
+ "Try removing '{0}'.");
+
static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION =
const ParserErrorCode(
'FACTORY_TOP_LEVEL_DECLARATION',
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/fasta/ast_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698