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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/listener.dart

Issue 11783089: Fix VariableDefinitions.endToken for formal parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/scanner/listener.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
index b557d939d7a8583f82b3fadc0500191326c638bd..527c6bff21fda6af9d8659f80806e4fc34cb6710 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -105,7 +105,7 @@ class Listener {
void beginFormalParameter(Token token) {
}
- void endFormalParameter(Token token, Token thisKeyword) {
+ void endFormalParameter(Token thisKeyword) {
}
void handleNoFormalParameters(Token token) {
@@ -1211,7 +1211,7 @@ class NodeListener extends ElementListener {
modifiers, compilationUnitElement));
}
- void endFormalParameter(Token token, Token thisKeyword) {
+ void endFormalParameter(Token thisKeyword) {
Expression name = popNode();
if (thisKeyword != null) {
Identifier thisIdentifier = new Identifier(thisKeyword);
@@ -1224,7 +1224,8 @@ class NodeListener extends ElementListener {
TypeAnnotation type = popNode();
Modifiers modifiers = popNode();
pushNode(new VariableDefinitions(type, modifiers,
- new NodeList.singleton(name), token));
+ new NodeList.singleton(name),
+ name.getEndToken()));
}
void endFormalParameters(int count, Token beginToken, Token endToken) {

Powered by Google App Engine
This is Rietveld 408576698