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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of tree; 5 part of tree;
6 6
7 abstract class Visitor<R> { 7 abstract class Visitor<R> {
8 const Visitor(); 8 const Visitor();
9 9
10 R visitNode(Node node); 10 R visitNode(Node node);
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 } 1085 }
1086 1086
1087 Token getBeginToken() { 1087 Token getBeginToken() {
1088 var token = firstBeginToken(modifiers, type); 1088 var token = firstBeginToken(modifiers, type);
1089 if (token == null) { 1089 if (token == null) {
1090 token = definitions.getBeginToken(); 1090 token = definitions.getBeginToken();
1091 } 1091 }
1092 return token; 1092 return token;
1093 } 1093 }
1094 1094
1095 Token getEndToken() => endToken; 1095 Token getEndToken() {
1096 if (endToken == null) {
1097 return definitions.getEndToken();
1098 }
1099 return endToken;
1100 }
1096 } 1101 }
1097 1102
1098 abstract class Loop extends Statement { 1103 abstract class Loop extends Statement {
1099 Expression get condition; 1104 Expression get condition;
1100 final Statement body; 1105 final Statement body;
1101 1106
1102 Loop(this.body); 1107 Loop(this.body);
1103 1108
1104 bool isValidContinueTarget() => true; 1109 bool isValidContinueTarget() => true;
1105 } 1110 }
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 * argument). 2064 * argument).
2060 * 2065 *
2061 * TODO(ahe): This method is controversial, the team needs to discuss 2066 * TODO(ahe): This method is controversial, the team needs to discuss
2062 * if top-level methods are acceptable and what naming conventions to 2067 * if top-level methods are acceptable and what naming conventions to
2063 * use. 2068 * use.
2064 */ 2069 */
2065 initializerDo(Node node, f(Node node)) { 2070 initializerDo(Node node, f(Node node)) {
2066 SendSet send = node.asSendSet(); 2071 SendSet send = node.asSendSet();
2067 if (send != null) return f(send.arguments.head); 2072 if (send != null) return f(send.arguments.head);
2068 } 2073 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698