| OLD | NEW |
| 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 #include "vm/ast_printer.h" | 5 #include "vm/ast_printer.h" |
| 6 | 6 |
| 7 #include "vm/handles.h" | 7 #include "vm/handles.h" |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 #include "vm/os.h" | 9 #include "vm/os.h" |
| 10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void AstPrinter::VisitComparisonNode(ComparisonNode* node) { | 151 void AstPrinter::VisitComparisonNode(ComparisonNode* node) { |
| 152 VisitGenericAstNode(node); | 152 VisitGenericAstNode(node); |
| 153 } | 153 } |
| 154 | 154 |
| 155 | 155 |
| 156 void AstPrinter::VisitBinaryOpNode(BinaryOpNode* node) { | 156 void AstPrinter::VisitBinaryOpNode(BinaryOpNode* node) { |
| 157 VisitGenericAstNode(node); | 157 VisitGenericAstNode(node); |
| 158 } | 158 } |
| 159 | 159 |
| 160 | 160 |
| 161 void AstPrinter::VisitStringConcatNode(StringConcatNode* node) { | |
| 162 VisitGenericAstNode(node); | |
| 163 } | |
| 164 | |
| 165 | |
| 166 void AstPrinter::VisitUnaryOpNode(UnaryOpNode* node) { | 161 void AstPrinter::VisitUnaryOpNode(UnaryOpNode* node) { |
| 167 VisitGenericAstNode(node); | 162 VisitGenericAstNode(node); |
| 168 } | 163 } |
| 169 | 164 |
| 170 | 165 |
| 171 void AstPrinter::VisitConditionalExprNode(ConditionalExprNode* node) { | 166 void AstPrinter::VisitConditionalExprNode(ConditionalExprNode* node) { |
| 172 VisitGenericAstNode(node); | 167 VisitGenericAstNode(node); |
| 173 } | 168 } |
| 174 | 169 |
| 175 | 170 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 ASSERT(node_sequence != NULL); | 472 ASSERT(node_sequence != NULL); |
| 478 AstPrinter ast_printer; | 473 AstPrinter ast_printer; |
| 479 const char* function_name = | 474 const char* function_name = |
| 480 parsed_function.function().ToFullyQualifiedCString(); | 475 parsed_function.function().ToFullyQualifiedCString(); |
| 481 OS::Print("Ast for function '%s' {\n", function_name); | 476 OS::Print("Ast for function '%s' {\n", function_name); |
| 482 node_sequence->Visit(&ast_printer); | 477 node_sequence->Visit(&ast_printer); |
| 483 OS::Print("}\n"); | 478 OS::Print("}\n"); |
| 484 } | 479 } |
| 485 | 480 |
| 486 } // namespace dart | 481 } // namespace dart |
| OLD | NEW |