Index: pkg/analyzer/lib/src/dart/scanner/scanner.dart |
diff --git a/pkg/analyzer/lib/src/dart/scanner/scanner.dart b/pkg/analyzer/lib/src/dart/scanner/scanner.dart |
index a4be9086f60dedba3e56bd1350102d47c55fe67e..821768723e95b5591c59c404527129a734404a7f 100644 |
--- a/pkg/analyzer/lib/src/dart/scanner/scanner.dart |
+++ b/pkg/analyzer/lib/src/dart/scanner/scanner.dart |
@@ -10,8 +10,6 @@ import 'package:analyzer/src/dart/error/syntactic_errors.dart'; |
import 'package:analyzer/src/dart/scanner/reader.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
import 'package:front_end/src/fasta/scanner.dart' as fasta; |
-import 'package:front_end/src/fasta/scanner/abstract_scanner.dart' |
- show fastaSupportsGenericMethodComments; |
import 'package:front_end/src/fasta/scanner/precedence.dart' as fasta; |
import 'package:front_end/src/scanner/errors.dart' show translateErrorToken; |
import 'package:front_end/src/scanner/scanner.dart' as fe; |
@@ -149,7 +147,7 @@ class _Scanner2 implements Scanner { |
Token tokenize() { |
// Note: Fasta always supports lazy assignment operators (`&&=` and `||=`), |
// so we can ignore the `scanLazyAssignmentOperators` flag. |
- if (scanGenericMethodComments && !fastaSupportsGenericMethodComments) { |
+ if (scanGenericMethodComments) { |
// Fasta doesn't support generic method comments. |
// TODO(danrubel): remove this once fasts support has been added. |
throw 'No generic method comment support in Fasta'; |