| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 void AstPrinter::VisitIncrOpLocalNode(IncrOpLocalNode* node) { | 251 void AstPrinter::VisitIncrOpLocalNode(IncrOpLocalNode* node) { |
| 252 VisitGenericLocalNode(node, node->local()); | 252 VisitGenericLocalNode(node, node->local()); |
| 253 } | 253 } |
| 254 | 254 |
| 255 | 255 |
| 256 void AstPrinter::VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node) { | 256 void AstPrinter::VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node) { |
| 257 VisitGenericAstNode(node); | 257 VisitGenericAstNode(node); |
| 258 } | 258 } |
| 259 | 259 |
| 260 | 260 |
| 261 void AstPrinter::VisitIncrOpStaticFieldNode(IncrOpStaticFieldNode* node) { | |
| 262 VisitGenericAstNode(node); | |
| 263 } | |
| 264 | |
| 265 | |
| 266 void AstPrinter::VisitIncrOpIndexedNode(IncrOpIndexedNode* node) { | 261 void AstPrinter::VisitIncrOpIndexedNode(IncrOpIndexedNode* node) { |
| 267 VisitGenericAstNode(node); | 262 VisitGenericAstNode(node); |
| 268 } | 263 } |
| 269 | 264 |
| 270 | 265 |
| 271 void AstPrinter::VisitInstanceCallNode(InstanceCallNode* node) { | 266 void AstPrinter::VisitInstanceCallNode(InstanceCallNode* node) { |
| 272 OS::Print("(%s '%s'(", node->Name(), node->function_name().ToCString()); | 267 OS::Print("(%s '%s'(", node->Name(), node->function_name().ToCString()); |
| 273 node->VisitChildren(this); | 268 node->VisitChildren(this); |
| 274 OS::Print("))"); | 269 OS::Print("))"); |
| 275 } | 270 } |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 ASSERT(node_sequence != NULL); | 492 ASSERT(node_sequence != NULL); |
| 498 AstPrinter ast_printer; | 493 AstPrinter ast_printer; |
| 499 const char* function_name = | 494 const char* function_name = |
| 500 parsed_function.function().ToFullyQualifiedCString(); | 495 parsed_function.function().ToFullyQualifiedCString(); |
| 501 OS::Print("Ast for function '%s' {\n", function_name); | 496 OS::Print("Ast for function '%s' {\n", function_name); |
| 502 node_sequence->Visit(&ast_printer); | 497 node_sequence->Visit(&ast_printer); |
| 503 OS::Print("}\n"); | 498 OS::Print("}\n"); |
| 504 } | 499 } |
| 505 | 500 |
| 506 } // namespace dart | 501 } // namespace dart |
| OLD | NEW |