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

Side by Side Diff: pkg/front_end/test/scanner_roundtrip_test.dart

Issue 2746023003: fasta.Keyword implement analyzer.Keyword (Closed)
Patch Set: merge 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:front_end/src/fasta/analyzer/token_utils.dart'; 5 import 'package:front_end/src/fasta/analyzer/token_utils.dart';
6 import 'package:front_end/src/scanner/token.dart'; 6 import 'package:front_end/src/scanner/token.dart';
7 import 'package:test/test.dart';
7 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
8 9
9 import 'scanner_fasta_test.dart'; 10 import 'scanner_fasta_test.dart';
10 import 'scanner_test.dart'; 11 import 'scanner_test.dart';
11 12
12 main() { 13 main() {
13 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
14 defineReflectiveTests(ScannerTest_RoundTrip); 15 defineReflectiveTests(ScannerTest_RoundTrip);
15 }); 16 });
16 } 17 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag 84 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag
84 super.test_scriptTag_withoutSpace(); 85 super.test_scriptTag_withoutSpace();
85 } 86 }
86 87
87 @override 88 @override
88 @failingTest 89 @failingTest
89 void test_scriptTag_withSpace() { 90 void test_scriptTag_withSpace() {
90 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag 91 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag
91 super.test_scriptTag_withSpace(); 92 super.test_scriptTag_withSpace();
92 } 93 }
94
95 void test_pseudo_keywords() {
96 var pseudoAnalyzerKeywords = new Set<Keyword>.from([
97 Keyword.ABSTRACT,
98 Keyword.AS,
99 Keyword.COVARIANT,
100 Keyword.DEFERRED,
101 Keyword.DYNAMIC,
102 Keyword.EXPORT,
103 Keyword.EXTERNAL,
104 Keyword.FACTORY,
105 Keyword.GET,
106 Keyword.IMPLEMENTS,
107 Keyword.IMPORT,
108 Keyword.LIBRARY,
109 Keyword.OPERATOR,
110 Keyword.PART,
111 Keyword.SET,
112 Keyword.STATIC,
113 Keyword.TYPEDEF,
114 ]);
115 for (Keyword keyword in Keyword.values) {
116 expect(keyword.isPseudoKeyword, pseudoAnalyzerKeywords.contains(keyword),
117 reason: keyword.name);
118 }
119 }
93 } 120 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/scanner/token.dart ('k') | pkg/front_end/test/subpackage_relationships_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698