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 #ifndef RUNTIME_VM_AST_PRINTER_H_ | 5 #ifndef RUNTIME_VM_AST_PRINTER_H_ |
6 #define RUNTIME_VM_AST_PRINTER_H_ | 6 #define RUNTIME_VM_AST_PRINTER_H_ |
7 | 7 |
8 #include "vm/ast.h" | 8 #include "vm/ast.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 LocalVariable* var, | 37 LocalVariable* var, |
38 int indent = 0); | 38 int indent = 0); |
39 void PrintLocalScope(const LocalScope* scope, | 39 void PrintLocalScope(const LocalScope* scope, |
40 int variable_index, | 40 int variable_index, |
41 int indent = 0); | 41 int indent = 0); |
42 | 42 |
43 void VisitGenericAstNode(AstNode* node); | 43 void VisitGenericAstNode(AstNode* node); |
44 void VisitGenericLocalNode(AstNode* node, const LocalVariable& local); | 44 void VisitGenericLocalNode(AstNode* node, const LocalVariable& local); |
45 void VisitGenericFieldNode(AstNode* node, const Field& field); | 45 void VisitGenericFieldNode(AstNode* node, const Field& field); |
46 | 46 |
| 47 void PrintLocalVariable(const LocalVariable* variable); |
| 48 void PrintNewlineAndIndent(); |
| 49 |
47 intptr_t indent_; | 50 intptr_t indent_; |
48 Log* logger_; | 51 Log* logger_; |
49 | 52 |
50 DISALLOW_COPY_AND_ASSIGN(AstPrinter); | 53 DISALLOW_COPY_AND_ASSIGN(AstPrinter); |
51 }; | 54 }; |
52 | 55 |
53 } // namespace dart | 56 } // namespace dart |
54 | 57 |
55 #endif // RUNTIME_VM_AST_PRINTER_H_ | 58 #endif // RUNTIME_VM_AST_PRINTER_H_ |
OLD | NEW |