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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/dart_backend/utils.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, 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart_backend; 5 part of dart_backend;
6 6
7 class CloningVisitor implements Visitor<Node> { 7 class CloningVisitor implements Visitor<Node> {
8 final TreeElements originalTreeElements; 8 final TreeElements originalTreeElements;
9 final TreeElementMapping cloneTreeElements; 9 final TreeElementMapping cloneTreeElements;
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 visit(node.typeName), visit(node.typeArguments)); 206 visit(node.typeName), visit(node.typeArguments));
207 207
208 visitTypedef(Typedef node) => new Typedef( 208 visitTypedef(Typedef node) => new Typedef(
209 visit(node.returnType), visit(node.name), visit(node.typeParameters), 209 visit(node.returnType), visit(node.name), visit(node.typeParameters),
210 visit(node.formals), node.typedefKeyword, node.endToken); 210 visit(node.formals), node.typedefKeyword, node.endToken);
211 211
212 visitTypeVariable(TypeVariable node) => new TypeVariable( 212 visitTypeVariable(TypeVariable node) => new TypeVariable(
213 visit(node.name), visit(node.bound)); 213 visit(node.name), visit(node.bound));
214 214
215 visitVariableDefinitions(VariableDefinitions node) => new VariableDefinitions( 215 visitVariableDefinitions(VariableDefinitions node) => new VariableDefinitions(
216 visit(node.type), visit(node.modifiers), visit(node.definitions)); 216 visit(node.type), visit(node.modifiers), visit(node.definitions),
217 node.endToken);
217 218
218 visitWhile(While node) => new While( 219 visitWhile(While node) => new While(
219 visit(node.condition), visit(node.body), node.whileKeyword); 220 visit(node.condition), visit(node.body), node.whileKeyword);
220 221
221 Node visitNode(Node node) { 222 Node visitNode(Node node) {
222 unimplemented('visitNode', node: node); 223 unimplemented('visitNode', node: node);
223 } 224 }
224 225
225 Node visitCombinator(Combinator node) { 226 Node visitCombinator(Combinator node) {
226 unimplemented('visitNode', node: node); 227 unimplemented('visitNode', node: node);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 284 }
284 285
285 Node visitStringNode(StringNode node) { 286 Node visitStringNode(StringNode node) {
286 unimplemented('visitNode', node: node); 287 unimplemented('visitNode', node: node);
287 } 288 }
288 289
289 unimplemented(String message, {Node node}) { 290 unimplemented(String message, {Node node}) {
290 throw message; 291 throw message;
291 } 292 }
292 } 293 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698