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

Side by Side Diff: dart/frog/leg/tree/visitors.dart

Issue 8993009: Implement string interpolation up to SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address (some) review comments and update status file Created 9 years 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 | « dart/frog/leg/tree/unparser.dart ('k') | dart/frog/leg/typechecker.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 AbstractVisitor<R> implements Visitor<R> { 5 class AbstractVisitor<R> implements Visitor<R> {
6 abstract R visitNode(Node node); 6 abstract R visitNode(Node node);
7 7
8 R visitBlock(Block node) => visitStatement(node); 8 R visitBlock(Block node) => visitStatement(node);
9 R visitClassNode(ClassNode node) => visitNode(node); 9 R visitClassNode(ClassNode node) => visitNode(node);
10 R visitConditional(Conditional node) => visitExpression(node); 10 R visitConditional(Conditional node) => visitExpression(node);
(...skipping 18 matching lines...) Expand all
29 R visitOperator(Operator node) => visitIdentifier(node); 29 R visitOperator(Operator node) => visitIdentifier(node);
30 R visitParenthesizedExpression(ParenthesizedExpression node) { 30 R visitParenthesizedExpression(ParenthesizedExpression node) {
31 return visitExpression(node); 31 return visitExpression(node);
32 } 32 }
33 R visitPostfix(Postfix node) => visitNodeList(node); 33 R visitPostfix(Postfix node) => visitNodeList(node);
34 R visitPrefix(Prefix node) => visitNodeList(node); 34 R visitPrefix(Prefix node) => visitNodeList(node);
35 R visitReturn(Return node) => visitStatement(node); 35 R visitReturn(Return node) => visitStatement(node);
36 R visitSend(Send node) => visitExpression(node); 36 R visitSend(Send node) => visitExpression(node);
37 R visitSendSet(SendSet node) => visitSend(node); 37 R visitSendSet(SendSet node) => visitSend(node);
38 R visitStatement(Statement node) => visitNode(node); 38 R visitStatement(Statement node) => visitNode(node);
39 R visitStringInterpolation(StringInterpolation node) => visitExpression(node);
40 R visitStringInterpolationPart(StringInterpolationPart node) {
41 return visitNode(node);
42 }
39 R visitThrow(Throw node) => visitStatement(node); 43 R visitThrow(Throw node) => visitStatement(node);
40 R visitTypeAnnotation(TypeAnnotation node) => visitNode(node); 44 R visitTypeAnnotation(TypeAnnotation node) => visitNode(node);
41 R visitVariableDefinitions(VariableDefinitions node) => visitStatement(node); 45 R visitVariableDefinitions(VariableDefinitions node) => visitStatement(node);
42 R visitWhile(While node) => visitLoop(node); 46 R visitWhile(While node) => visitLoop(node);
43 } 47 }
44 48
45 /** 49 /**
46 * This visitor takes another visitor and applies it to every 50 * This visitor takes another visitor and applies it to every
47 * node in the tree. There is currently no way to control the 51 * node in the tree. There is currently no way to control the
48 * traversal. 52 * traversal.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 visitNewExpression(NewExpression node) {} 86 visitNewExpression(NewExpression node) {}
83 visitNodeList(NodeList node) {} 87 visitNodeList(NodeList node) {}
84 visitOperator(Operator node) {} 88 visitOperator(Operator node) {}
85 visitParenthesizedExpression(ParenthesizedExpression node) {} 89 visitParenthesizedExpression(ParenthesizedExpression node) {}
86 visitPostfix(Postfix node) {} 90 visitPostfix(Postfix node) {}
87 visitPrefix(Prefix node) {} 91 visitPrefix(Prefix node) {}
88 visitReturn(Return node) {} 92 visitReturn(Return node) {}
89 visitSend(Send node) {} 93 visitSend(Send node) {}
90 visitSendSet(SendSet node) {} 94 visitSendSet(SendSet node) {}
91 visitStatement(Statement node) {} 95 visitStatement(Statement node) {}
96 visitStringInterpolation(StringInterpolation node) {}
97 visitStringInterpolationPart(StringInterpolationPart node) {}
92 visitThrow(Throw node) {} 98 visitThrow(Throw node) {}
93 visitTypeAnnotation(TypeAnnotation node) {} 99 visitTypeAnnotation(TypeAnnotation node) {}
94 visitVariableDefinitions(VariableDefinitions node) {} 100 visitVariableDefinitions(VariableDefinitions node) {}
95 visitWhile(While node) {} 101 visitWhile(While node) {}
96 } 102 }
OLDNEW
« no previous file with comments | « dart/frog/leg/tree/unparser.dart ('k') | dart/frog/leg/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698