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

Unified Diff: pkg/front_end/lib/src/fasta/parser/main.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/parser/main.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/main.dart b/pkg/front_end/lib/src/fasta/parser/main.dart
index 6937a25827decf3acb355c9f531d7a70379ff455..ef3db0f203d8786b83abd944b5bb065f12aa001f 100644
--- a/pkg/front_end/lib/src/fasta/parser/main.dart
+++ b/pkg/front_end/lib/src/fasta/parser/main.dart
@@ -26,8 +26,10 @@ import 'listener.dart' show
import 'top_level_parser.dart' show
TopLevelParser;
+import 'identifier_context.dart' show IdentifierContext;
+
class DebugListener extends Listener {
- void handleIdentifier(Token token) {
+ void handleIdentifier(Token token, IdentifierContext context) {
logEvent("Identifier: ${token.value}");
}

Powered by Google App Engine
This is Rietveld 408576698