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

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

Issue 2700343003: Recover better from illegally named constructors (issue 28807) (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | pkg/analyzer/lib/src/generated/parser.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 70f1124b06a0a49d3849753031dccdcc9035adf5..c0ad9160d7dccae02bda507bcb05f39b9b4263d6 100644
--- a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
+++ b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
@@ -450,6 +450,11 @@ class ParserErrorCode extends ErrorCode {
"Comment references should contain a possibly prefixed identifier and "
"can start with 'new', but shouldn't contain anything else.");
+ static const ParserErrorCode INVALID_CONSTRUCTOR_NAME = const ParserErrorCode(
+ 'INVALID_CONSTRUCTOR_NAME',
+ "The keyword word '{0}' cannot be used to name a constructor.",
scheglov 2017/02/18 17:37:40 Do we need to repeat "word"?
Brian Wilkerson 2017/02/18 17:48:01 Removed, thanks!
+ "Try giving the constructor a different name.");
+
static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode(
'INVALID_HEX_ESCAPE',
"An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits.");
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698