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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 11783089: Fix VariableDefinitions.endToken for formal parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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: sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index 9875b254ada47a304e593c6a2ae888ac3e16d92a..72682a8f1ae57c7d3cb580e36b1324a9dff110c1 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -1069,12 +1069,10 @@ class TypeVariable extends Node {
}
class VariableDefinitions extends Statement {
- final Token endToken;
final TypeAnnotation type;
final Modifiers modifiers;
final NodeList definitions;
- VariableDefinitions(this.type, this.modifiers, this.definitions,
- this.endToken) {
+ VariableDefinitions(this.type, this.modifiers, this.definitions) {
assert(modifiers != null);
}
@@ -1095,7 +1093,7 @@ class VariableDefinitions extends Statement {
return token;
}
- Token getEndToken() => endToken;
+ Token getEndToken() => definitions.getEndToken();
}
abstract class Loop extends Statement {

Powered by Google App Engine
This is Rietveld 408576698