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

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

Issue 2707973008: Fix some parser issues related to generic functin types (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 f4f53485f9bd1a03699f87bd7baded38bcd994db..c4b6f316e6d2ac3b6f9a7112290a5e506d8b0f20 100644
--- a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
+++ b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
@@ -455,6 +455,12 @@ class ParserErrorCode extends ErrorCode {
"The keyword '{0}' cannot be used to name a constructor.",
"Try giving the constructor a different name.");
+ static const ParserErrorCode INVALID_GENERIC_FUNCTION_TYPE =
+ const ParserErrorCode(
+ 'INVALID_GENERIC_FUNCTION_TYPE',
+ "Invalid generic function type.",
+ "Try using a generic function type (returnType 'Function(' parameters ')').");
+
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