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

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

Issue 14907008: Remove support for interface in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 7 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 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 26 matching lines...) Expand all
37 37
38 visitCaseMatch(CaseMatch node) => new CaseMatch( 38 visitCaseMatch(CaseMatch node) => new CaseMatch(
39 node.caseKeyword, visit(node.expression), node.colonToken); 39 node.caseKeyword, visit(node.expression), node.colonToken);
40 40
41 visitCatchBlock(CatchBlock node) => new CatchBlock( 41 visitCatchBlock(CatchBlock node) => new CatchBlock(
42 visit(node.type), visit(node.formals), visit(node.block), 42 visit(node.type), visit(node.formals), visit(node.block),
43 node.onKeyword, node.catchKeyword); 43 node.onKeyword, node.catchKeyword);
44 44
45 visitClassNode(ClassNode node) => new ClassNode( 45 visitClassNode(ClassNode node) => new ClassNode(
46 visit(node.modifiers), visit(node.name), visit(node.typeParameters), 46 visit(node.modifiers), visit(node.name), visit(node.typeParameters),
47 visit(node.superclass), visit(node.interfaces), visit(node.defaultClause), 47 visit(node.superclass), visit(node.interfaces),
48 node.beginToken, node.extendsKeyword, visit(node.body), node.endToken); 48 node.beginToken, node.extendsKeyword, visit(node.body), node.endToken);
49 49
50 visitConditional(Conditional node) => new Conditional( 50 visitConditional(Conditional node) => new Conditional(
51 visit(node.condition), visit(node.thenExpression), 51 visit(node.condition), visit(node.thenExpression),
52 visit(node.elseExpression), node.questionToken, node.colonToken); 52 visit(node.elseExpression), node.questionToken, node.colonToken);
53 53
54 visitContinueStatement(ContinueStatement node) => new ContinueStatement( 54 visitContinueStatement(ContinueStatement node) => new ContinueStatement(
55 visit(node.target), node.keywordToken, node.semicolonToken); 55 visit(node.target), node.keywordToken, node.semicolonToken);
56 56
57 visitDoWhile(DoWhile node) => new DoWhile( 57 visitDoWhile(DoWhile node) => new DoWhile(
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 287
288 Node visitStringNode(StringNode node) { 288 Node visitStringNode(StringNode node) {
289 unimplemented('visitNode', node: node); 289 unimplemented('visitNode', node: node);
290 } 290 }
291 291
292 unimplemented(String message, {Node node}) { 292 unimplemented(String message, {Node node}) {
293 throw message; 293 throw message;
294 } 294 }
295 } 295 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698