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

Side by Side Diff: runtime/vm/ast_printer.cc

Issue 15935005: Remove pseudo-node from LoadLocalNode and replace it with a proper AST node. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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) 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 20 matching lines...) Expand all
31 ASSERT(node_sequence != NULL); 31 ASSERT(node_sequence != NULL);
32 for (int i = 0; i < node_sequence->length(); i++) { 32 for (int i = 0; i < node_sequence->length(); i++) {
33 OS::Print("scope %p: ", 33 OS::Print("scope %p: ",
34 node_sequence->scope()); 34 node_sequence->scope());
35 node_sequence->NodeAt(i)->Visit(this); 35 node_sequence->NodeAt(i)->Visit(this);
36 OS::Print("\n"); 36 OS::Print("\n");
37 } 37 }
38 } 38 }
39 39
40 40
41 void AstPrinter::VisitCommaNode(CommaNode* node) {
42 VisitGenericAstNode(node);
43 }
44
45
41 void AstPrinter::VisitCloneContextNode(CloneContextNode* node) { 46 void AstPrinter::VisitCloneContextNode(CloneContextNode* node) {
42 VisitGenericAstNode(node); 47 VisitGenericAstNode(node);
43 } 48 }
44 49
45 50
46 void AstPrinter::VisitArgumentListNode(ArgumentListNode* arguments) { 51 void AstPrinter::VisitArgumentListNode(ArgumentListNode* arguments) {
47 VisitGenericAstNode(arguments); 52 VisitGenericAstNode(arguments);
48 } 53 }
49 54
50 55
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 ASSERT(node_sequence != NULL); 498 ASSERT(node_sequence != NULL);
494 AstPrinter ast_printer; 499 AstPrinter ast_printer;
495 const char* function_name = 500 const char* function_name =
496 parsed_function.function().ToFullyQualifiedCString(); 501 parsed_function.function().ToFullyQualifiedCString();
497 OS::Print("Ast for function '%s' {\n", function_name); 502 OS::Print("Ast for function '%s' {\n", function_name);
498 node_sequence->Visit(&ast_printer); 503 node_sequence->Visit(&ast_printer);
499 OS::Print("}\n"); 504 OS::Print("}\n");
500 } 505 }
501 506
502 } // namespace dart 507 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698