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

Side by Side Diff: lib/compiler/implementation/tree/nodes.dart

Issue 10917208: Change interfaces to abstract classes in dart2js compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 interface Visitor<R> { 5 abstract class Visitor<R> {
6 R visitBlock(Block node); 6 R visitBlock(Block node);
7 R visitBreakStatement(BreakStatement node); 7 R visitBreakStatement(BreakStatement node);
8 R visitCascade(Cascade node); 8 R visitCascade(Cascade node);
9 R visitCascadeReceiver(CascadeReceiver node); 9 R visitCascadeReceiver(CascadeReceiver node);
10 R visitCaseMatch(CaseMatch node); 10 R visitCaseMatch(CaseMatch node);
11 R visitCatchBlock(CatchBlock node); 11 R visitCatchBlock(CatchBlock node);
12 R visitClassNode(ClassNode node); 12 R visitClassNode(ClassNode node);
13 R visitConditional(Conditional node); 13 R visitConditional(Conditional node);
14 R visitContinueStatement(ContinueStatement node); 14 R visitContinueStatement(ContinueStatement node);
15 R visitDoWhile(DoWhile node); 15 R visitDoWhile(DoWhile node);
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 * argument). 1769 * argument).
1770 * 1770 *
1771 * TODO(ahe): This method is controversial, the team needs to discuss 1771 * TODO(ahe): This method is controversial, the team needs to discuss
1772 * if top-level methods are acceptable and what naming conventions to 1772 * if top-level methods are acceptable and what naming conventions to
1773 * use. 1773 * use.
1774 */ 1774 */
1775 initializerDo(Node node, f(Node node)) { 1775 initializerDo(Node node, f(Node node)) {
1776 SendSet send = node.asSendSet(); 1776 SendSet send = node.asSendSet();
1777 if (send !== null) return f(send.arguments.head); 1777 if (send !== null) return f(send.arguments.head);
1778 } 1778 }
OLDNEW
« lib/compiler/implementation/ssa/builder.dart ('K') | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698