Index: pkg/front_end/test/scanner_roundtrip_test.dart |
diff --git a/pkg/front_end/test/scanner_roundtrip_test.dart b/pkg/front_end/test/scanner_roundtrip_test.dart |
index 398376b8efc7b8c0d34c3955118cebf7c295f08e..aa3d3d385518d5d4ecbc1465a1df49b432f933ee 100644 |
--- a/pkg/front_end/test/scanner_roundtrip_test.dart |
+++ b/pkg/front_end/test/scanner_roundtrip_test.dart |
@@ -4,6 +4,7 @@ |
import 'package:front_end/src/fasta/analyzer/token_utils.dart'; |
import 'package:front_end/src/scanner/token.dart'; |
+import 'package:test/test.dart'; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
import 'scanner_fasta_test.dart'; |
@@ -90,4 +91,30 @@ class ScannerTest_RoundTrip extends ScannerTest { |
// TODO(paulberry,ahe): Fasta scanner doesn't support script tag |
super.test_scriptTag_withSpace(); |
} |
+ |
+ void test_pseudo_keywords() { |
+ var pseudoAnalyzerKeywords = new Set<Keyword>.from([ |
+ Keyword.ABSTRACT, |
+ Keyword.AS, |
+ Keyword.COVARIANT, |
+ Keyword.DEFERRED, |
+ Keyword.DYNAMIC, |
+ Keyword.EXPORT, |
+ Keyword.EXTERNAL, |
+ Keyword.FACTORY, |
+ Keyword.GET, |
+ Keyword.IMPLEMENTS, |
+ Keyword.IMPORT, |
+ Keyword.LIBRARY, |
+ Keyword.OPERATOR, |
+ Keyword.PART, |
+ Keyword.SET, |
+ Keyword.STATIC, |
+ Keyword.TYPEDEF, |
+ ]); |
+ for (Keyword keyword in Keyword.values) { |
+ expect(keyword.isPseudoKeyword, pseudoAnalyzerKeywords.contains(keyword), |
+ reason: keyword.name); |
+ } |
+ } |
} |