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

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

Issue 2799133003: enhance analyzer to parse uppercase and built-in/pseudo keywords (Closed)
Patch Set: 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
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,
« pkg/analyzer/lib/src/generated/error_verifier.dart ('K') | « pkg/front_end/test/scanner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698