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

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

Issue 2430873002: Fix error codes (issue 27608) (Closed)
Patch Set: Created 4 years, 2 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') | no next file » | 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 dc2071446d6853a8bcab40d937057569a42a49d4..ffc9fab5dd3619f52fd69ac986b464780551a2cd 100644
--- a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
+++ b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
@@ -209,19 +209,17 @@ class ParserErrorCode extends ErrorCode {
"Try inserting a list or map literal, or remove the type arguments.");
static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode(
- 'EXPECTED_STRING_LITERAL',
- "Expected a string literal.",
- "Try adding a string literal.");
+ 'EXPECTED_STRING_LITERAL', "Expected a string literal.");
/**
* Parameters:
* 0: the token that was expected but not found
*/
- static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode(
- 'EXPECTED_TOKEN', "Expected to find '{0}'.", "Try inserting a '{0}'.");
+ static const ParserErrorCode EXPECTED_TOKEN =
+ const ParserErrorCode('EXPECTED_TOKEN', "Expected to find '{0}'.");
- static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode(
- 'EXPECTED_TYPE_NAME', "Expected a type name.", "Try adding a type name.");
+ static const ParserErrorCode EXPECTED_TYPE_NAME =
+ const ParserErrorCode('EXPECTED_TYPE_NAME', "Expected a type name.");
static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE =
const ParserErrorCode(
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698