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."); |