| 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 VM_AST_PRINTER_H_ | 5 #ifndef VM_AST_PRINTER_H_ |
| 6 #define VM_AST_PRINTER_H_ | 6 #define 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 13 matching lines...) Expand all Loading... |
| 24 #define DEFINE_VISITOR_FUNCTION(type, name) \ | 24 #define DEFINE_VISITOR_FUNCTION(type, name) \ |
| 25 virtual void Visit##type(type* node); | 25 virtual void Visit##type(type* node); |
| 26 NODE_LIST(DEFINE_VISITOR_FUNCTION) | 26 NODE_LIST(DEFINE_VISITOR_FUNCTION) |
| 27 #undef DEFINE_VISITOR_FUNCTION | 27 #undef DEFINE_VISITOR_FUNCTION |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 AstPrinter(); | 30 AstPrinter(); |
| 31 ~AstPrinter(); | 31 ~AstPrinter(); |
| 32 | 32 |
| 33 void VisitGenericAstNode(AstNode* node); | 33 void VisitGenericAstNode(AstNode* node); |
| 34 void VisitGenericLocalNode(AstNode* node, const LocalVariable& local); | 34 void VisitGenericLocalNode(AstNode* node, const LocalVariable* local); |
| 35 void VisitGenericFieldNode(AstNode* node, const Field& field); | 35 void VisitGenericFieldNode(AstNode* node, const Field& field); |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(AstPrinter); | 37 DISALLOW_COPY_AND_ASSIGN(AstPrinter); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace dart | 40 } // namespace dart |
| 41 | 41 |
| 42 #endif // VM_AST_PRINTER_H_ | 42 #endif // VM_AST_PRINTER_H_ |
| OLD | NEW |