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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart

Issue 2736093003: [fasta] Add and correct offsets on nodes (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
Index: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
index 13d66e335e398262b19706165c4c22c2c1e5cb25..4a4981502b019aeb76bcb5d2267197d7a42ba6af 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
@@ -200,14 +200,14 @@ class AstBuilder extends ScopeListener {
}
}
- void endSend(Token token) {
+ void endSend(Token beginToken, Token endToken) {
debugEvent("Send");
MethodInvocation arguments = pop();
TypeArgumentList typeArguments = pop();
if (arguments != null) {
- doInvocation(token, typeArguments, arguments);
+ doInvocation(endToken, typeArguments, arguments);
} else {
- doPropertyGet(token);
+ doPropertyGet(endToken);
}
}
@@ -396,7 +396,7 @@ class AstBuilder extends ScopeListener {
debugEvent("NoVariableInitializer");
}
- void endInitializedIdentifier() {
+ void endInitializedIdentifier(Token nameToken) {
debugEvent("InitializedIdentifier");
AstNode node = pop();
VariableDeclaration variable;

Powered by Google App Engine
This is Rietveld 408576698