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

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

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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;
6
5 abstract class Visitor<R> { 7 abstract class Visitor<R> {
6 const Visitor(); 8 const Visitor();
7 9
8 abstract R visitNode(Node node); 10 abstract R visitNode(Node node);
9 11
10 R visitBlock(Block node) => visitStatement(node); 12 R visitBlock(Block node) => visitStatement(node);
11 R visitBreakStatement(BreakStatement node) => visitGotoStatement(node); 13 R visitBreakStatement(BreakStatement node) => visitGotoStatement(node);
12 R visitCascade(Cascade node) => visitExpression(node); 14 R visitCascade(Cascade node) => visitExpression(node);
13 R visitCascadeReceiver(CascadeReceiver node) => visitExpression(node); 15 R visitCascadeReceiver(CascadeReceiver node) => visitExpression(node);
14 R visitCaseMatch(CaseMatch node) => visitNode(node); 16 R visitCaseMatch(CaseMatch node) => visitNode(node);
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 * argument). 2017 * argument).
2016 * 2018 *
2017 * TODO(ahe): This method is controversial, the team needs to discuss 2019 * TODO(ahe): This method is controversial, the team needs to discuss
2018 * if top-level methods are acceptable and what naming conventions to 2020 * if top-level methods are acceptable and what naming conventions to
2019 * use. 2021 * use.
2020 */ 2022 */
2021 initializerDo(Node node, f(Node node)) { 2023 initializerDo(Node node, f(Node node)) {
2022 SendSet send = node.asSendSet(); 2024 SendSet send = node.asSendSet();
2023 if (send != null) return f(send.arguments.head); 2025 if (send != null) return f(send.arguments.head);
2024 } 2026 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/tree/dartstring.dart ('k') | lib/compiler/implementation/tree/prettyprint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698