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

Unified Diff: pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart

Issue 2872433005: more work aligning fasta.Token with analyzer.Token (Closed)
Patch Set: Created 3 years, 7 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/lib/src/fasta/testing/validating_instrumentation.dart
diff --git a/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart b/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
index b473961e9e249cbea9a8d206f650001a9047bc42..ecc6981f11009cca976e9ac10a54ff891001b58b 100644
--- a/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
+++ b/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
@@ -9,6 +9,7 @@ import 'package:front_end/src/base/instrumentation.dart';
import 'package:front_end/src/fasta/messages.dart';
import 'package:front_end/src/fasta/scanner.dart';
import 'package:front_end/src/fasta/scanner/io.dart';
+import 'package:front_end/src/scanner/token.dart' as analyzer;
/// Implementation of [Instrumentation] which checks property/value pairs
/// against expectations encoded in source files using "/*@...*/" comments.
@@ -99,7 +100,7 @@ class ValidatingInstrumentation implements Instrumentation {
var testedFeaturesState = _testedFeaturesState.putIfAbsent(uri, () => {});
ScannerResult result = scan(bytes, includeComments: true);
for (Token token = result.tokens; !token.isEof; token = token.next) {
- for (Token commentToken = token.precedingCommentTokens;
+ for (analyzer.Token commentToken = token.precedingComments;
commentToken != null;
commentToken = commentToken.next) {
String lexeme = commentToken.lexeme;

Powered by Google App Engine
This is Rietveld 408576698