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

Unified Diff: pkg/front_end/lib/src/fasta/parser/listener.dart

Issue 2746013003: [fasta] Add and correct even more offsets (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/parser/listener.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/listener.dart b/pkg/front_end/lib/src/fasta/parser/listener.dart
index 0df837074403df545660ff6ecfbeadbe4eb2fa7d..b7cbde92920d6a6d1dcc5ad92481b79566b93128 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -165,15 +165,15 @@ class Listener {
void beginFactoryMethod(Token token) {}
- void endFactoryMethod(
- Token beginToken, Token factoryKeyword, Token endToken) {
+ void endFactoryMethod(Token beginToken, Token factoryKeyword,
+ Token formalParametersToken, Token endToken) {
logEvent("FactoryMethod");
}
void beginFormalParameter(Token token) {}
- void endFormalParameter(
- Token covariantKeyword, Token thisKeyword, FormalParameterType kind) {
+ void endFormalParameter(Token covariantKeyword, Token thisKeyword,
+ Token nameToken, FormalParameterType kind) {
logEvent("FormalParameter");
}
@@ -231,7 +231,8 @@ class Listener {
void beginFunction(Token token) {}
- void endFunction(Token getOrSet, Token endToken) {
+ void endFunction(
+ Token getOrSet, Token formalParametersToken, Token endToken) {
logEvent("Function");
}
@@ -255,7 +256,7 @@ class Listener {
void beginFunctionName(Token token) {}
- void endFunctionName(Token token) {
+ void endFunctionName(Token beginToken, Token token) {
logEvent("FunctionName");
}
@@ -510,7 +511,8 @@ class Listener {
/// - initializers
/// - async marker
/// - body
- void endMethod(Token getOrSet, Token beginToken, Token endToken) {
+ void endMethod(Token getOrSet, Token beginToken, Token formalParametersToken,
+ Token endToken) {
logEvent("Method");
}
@@ -646,7 +648,8 @@ class Listener {
/// - formal parameters
/// - async marker
/// - body
- void endTopLevelMethod(Token beginToken, Token getOrSet, Token endToken) {
+ void endTopLevelMethod(Token beginToken, Token getOrSet,
+ Token formalParametersToken, Token endToken) {
logEvent("TopLevelMethod");
}
@@ -726,7 +729,7 @@ class Listener {
/// - Formal parameters
/// - Async marker
/// - Body
- void endUnnamedFunction(Token token) {
+ void endUnnamedFunction(Token beginToken, Token token) {
logEvent("UnnamedFunction");
}

Powered by Google App Engine
This is Rietveld 408576698