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

Unified Diff: pkg/analyzer/lib/src/dart/scanner/scanner.dart

Issue 2784353003: cleanup scanner (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698