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

Unified Diff: pkg/front_end/test/token_test.dart

Issue 2803563003: enhance analyzer to parse uppercase and built-in/pseudo keywords (Closed)
Patch Set: rebase Created 3 years, 8 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/front_end/lib/src/scanner/token.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/token_test.dart
diff --git a/pkg/front_end/test/token_test.dart b/pkg/front_end/test/token_test.dart
index 6e25376804f64c53530765f38fc829436fd74ae8..3358b81ef288e9f04279e4228cb13472189eddff 100644
--- a/pkg/front_end/test/token_test.dart
+++ b/pkg/front_end/test/token_test.dart
@@ -159,6 +159,14 @@ class Foo {
List<Keyword> get _allKeywords =>
new List.from(Keyword.values)..addAll(fasta.Keyword.values);
+ void test_all_keywords() {
+ var keywords = new Set<fasta.Keyword>.from(fasta.Keyword.values);
+ for (Keyword kw in Keyword.values) {
+ expect(keywords.remove(kw), isTrue, reason: kw.name);
+ }
+ expect(keywords, isEmpty);
+ }
+
void test_built_in_keywords() {
var builtInKeywords = new Set<Keyword>.from([
Keyword.ABSTRACT,
« no previous file with comments | « pkg/front_end/lib/src/scanner/token.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698