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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/keyword.dart

Issue 2699073003: Support `void` as generic argument.
Patch Set: Add specialized messages for `void` for-ins. Created 3 years, 9 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
Index: pkg/front_end/lib/src/fasta/scanner/keyword.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/keyword.dart b/pkg/front_end/lib/src/fasta/scanner/keyword.dart
index 0e73786a8a7888afd555e7ce7bbe2d99943b5eb0..b54e60dda61b4a57e4bc18b705d4fbcef16c8b7d 100644
--- a/pkg/front_end/lib/src/fasta/scanner/keyword.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/keyword.dart
@@ -44,7 +44,6 @@ class Keyword {
const Keyword("true"),
const Keyword("try"),
const Keyword("var"),
- const Keyword("void"),
const Keyword("while"),
const Keyword("with"),
@@ -68,6 +67,7 @@ class Keyword {
const Keyword("set", isBuiltIn: true),
const Keyword("static", isBuiltIn: true),
const Keyword("typedef", isBuiltIn: true),
+ const Keyword("void", isBuiltIn: true),
const Keyword("async", isPseudo: true),
const Keyword("await", isPseudo: true),

Powered by Google App Engine
This is Rietveld 408576698