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

Unified Diff: pkg/front_end/lib/src/fasta/source/stack_listener.dart

Issue 2711463005: Add contextual information about identifiers to the parser listener API. (Closed)
Patch Set: Fix broken import Created 3 years, 10 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/source/stack_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/stack_listener.dart b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
index 23d915588b113e03b5131915b7d25088306c64d8..9293597f37904b4ddd72cbbea7703ce374f9ff34 100644
--- a/pkg/front_end/lib/src/fasta/source/stack_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
@@ -8,6 +8,9 @@ import 'dart:collection' show Queue;
import 'package:front_end/src/fasta/parser.dart' show ErrorKind, Listener;
+import 'package:front_end/src/fasta/parser/identifier_context.dart'
+ show IdentifierContext;
+
import 'package:front_end/src/fasta/scanner.dart' show BeginGroupToken, Token;
import 'package:kernel/ast.dart' show AsyncMarker;
@@ -113,7 +116,7 @@ abstract class StackListener extends Listener {
}
@override
- void handleIdentifier(Token token) {
+ void handleIdentifier(Token token, IdentifierContext context) {
debugEvent("handleIdentifier");
push(token.value);
}

Powered by Google App Engine
This is Rietveld 408576698