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

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

Issue 2794653002: fasta tokens implement analyzer token API (Closed)
Patch Set: 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/test/scanner_replacement_test.dart
diff --git a/pkg/front_end/test/scanner_replacement_test.dart b/pkg/front_end/test/scanner_replacement_test.dart
index 63ea94f6bcfd3a64785afcd084da010d82f24886..fd756be72076b8d0412d44a3c47dcd36557fc481 100644
--- a/pkg/front_end/test/scanner_replacement_test.dart
+++ b/pkg/front_end/test/scanner_replacement_test.dart
@@ -4,6 +4,8 @@
import 'dart:convert' show UTF8;
+import 'package:front_end/src/fasta/scanner/abstract_scanner.dart'
+ show fastaSupportsGenericMethodComments;
import 'package:front_end/src/fasta/scanner/precedence.dart'
show BAD_INPUT_INFO, EOF_INFO;
import 'package:front_end/src/fasta/scanner/recover.dart'
@@ -37,7 +39,7 @@ class ScannerTest_Replacement extends ScannerTest {
analyzer.Token scanWithListener(String source, ErrorListener listener,
{bool genericMethodComments: false,
bool lazyAssignmentOperators: false}) {
- if (genericMethodComments) {
+ if (genericMethodComments && !fastaSupportsGenericMethodComments) {
// Fasta doesn't support generic method comments.
// TODO(danrubel): once the analyzer toolchain no longer needs generic
// method comments, remove tests that exercise them.
« pkg/analyzer/lib/src/dart/scanner/scanner.dart ('K') | « pkg/front_end/test/scanner_fasta_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698