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

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

Issue 12092020: Revert "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/tree/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index 72682a8f1ae57c7d3cb580e36b1324a9dff110c1..9875b254ada47a304e593c6a2ae888ac3e16d92a 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -1069,10 +1069,12 @@ 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) {
+ VariableDefinitions(this.type, this.modifiers, this.definitions,
+ this.endToken) {
assert(modifiers != null);
}
@@ -1093,7 +1095,7 @@ class VariableDefinitions extends Statement {
return token;
}
- Token getEndToken() => definitions.getEndToken();
+ Token getEndToken() => endToken;
}
abstract class Loop extends Statement {

Powered by Google App Engine
This is Rietveld 408576698