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

Side by Side Diff: lib/compiler/implementation/dart_backend/utils.dart

Issue 10990108: Handle modifiers (abstract) on class nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 class CloningVisitor implements Visitor<Node> { 5 class CloningVisitor implements Visitor<Node> {
6 final TreeElements originalTreeElements; 6 final TreeElements originalTreeElements;
7 final TreeElements cloneTreeElements; 7 final TreeElements cloneTreeElements;
8 8
9 CloningVisitor(this.originalTreeElements) 9 CloningVisitor(this.originalTreeElements)
10 : cloneTreeElements = new TreeElementMapping(); 10 : cloneTreeElements = new TreeElementMapping();
(...skipping 26 matching lines...) Expand all
37 visit(node.expression), node.cascadeOperator); 37 visit(node.expression), node.cascadeOperator);
38 38
39 visitCaseMatch(CaseMatch node) => new CaseMatch( 39 visitCaseMatch(CaseMatch node) => new CaseMatch(
40 node.caseKeyword, visit(node.expression), node.colonToken); 40 node.caseKeyword, visit(node.expression), node.colonToken);
41 41
42 visitCatchBlock(CatchBlock node) => new CatchBlock( 42 visitCatchBlock(CatchBlock node) => new CatchBlock(
43 visit(node.type), visit(node.formals), visit(node.block), 43 visit(node.type), visit(node.formals), visit(node.block),
44 node.onKeyword, node.catchKeyword); 44 node.onKeyword, node.catchKeyword);
45 45
46 visitClassNode(ClassNode node) => new ClassNode( 46 visitClassNode(ClassNode node) => new ClassNode(
47 visit(node.name), visit(node.typeParameters), 47 visit(node.modifiers), visit(node.name), visit(node.typeParameters),
48 visit(node.superclass), visit(node.interfaces), visit(node.defaultClause), 48 visit(node.superclass), visit(node.interfaces), visit(node.defaultClause),
49 node.beginToken, node.extendsKeyword, visit(node.body), node.endToken); 49 node.beginToken, node.extendsKeyword, visit(node.body), node.endToken);
50 50
51 visitConditional(Conditional node) => new Conditional( 51 visitConditional(Conditional node) => new Conditional(
52 visit(node.condition), visit(node.thenExpression), 52 visit(node.condition), visit(node.thenExpression),
53 visit(node.elseExpression), node.questionToken, node.colonToken); 53 visit(node.elseExpression), node.questionToken, node.colonToken);
54 54
55 visitContinueStatement(ContinueStatement node) => new ContinueStatement( 55 visitContinueStatement(ContinueStatement node) => new ContinueStatement(
56 visit(node.target), node.keywordToken, node.semicolonToken); 56 visit(node.target), node.keywordToken, node.semicolonToken);
57 57
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 visitTypeVariable(TypeVariable node) => new TypeVariable( 201 visitTypeVariable(TypeVariable node) => new TypeVariable(
202 visit(node.name), visit(node.bound)); 202 visit(node.name), visit(node.bound));
203 203
204 visitVariableDefinitions(VariableDefinitions node) => new VariableDefinitions( 204 visitVariableDefinitions(VariableDefinitions node) => new VariableDefinitions(
205 visit(node.type), visit(node.modifiers), visit(node.definitions), 205 visit(node.type), visit(node.modifiers), visit(node.definitions),
206 node.endToken); 206 node.endToken);
207 207
208 visitWhile(While node) => new While( 208 visitWhile(While node) => new While(
209 visit(node.condition), visit(node.body), node.whileKeyword); 209 visit(node.condition), visit(node.body), node.whileKeyword);
210 } 210 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698