| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_AST_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
| 6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
| 10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 module_specifier_ = module_specifier; | 591 module_specifier_ = module_specifier; |
| 592 } | 592 } |
| 593 InitializationFlag initialization() const override { | 593 InitializationFlag initialization() const override { |
| 594 return kNeedsInitialization; | 594 return kNeedsInitialization; |
| 595 } | 595 } |
| 596 | 596 |
| 597 protected: | 597 protected: |
| 598 ImportDeclaration(Zone* zone, VariableProxy* proxy, | 598 ImportDeclaration(Zone* zone, VariableProxy* proxy, |
| 599 const AstRawString* import_name, | 599 const AstRawString* import_name, |
| 600 const AstRawString* module_specifier, Scope* scope, int pos) | 600 const AstRawString* module_specifier, Scope* scope, int pos) |
| 601 : Declaration(zone, proxy, IMPORT, scope, pos), | 601 : Declaration(zone, proxy, CONST, scope, pos), |
| 602 import_name_(import_name), | 602 import_name_(import_name), |
| 603 module_specifier_(module_specifier) {} | 603 module_specifier_(module_specifier) {} |
| 604 | 604 |
| 605 private: | 605 private: |
| 606 const AstRawString* import_name_; | 606 const AstRawString* import_name_; |
| 607 const AstRawString* module_specifier_; | 607 const AstRawString* module_specifier_; |
| 608 }; | 608 }; |
| 609 | 609 |
| 610 | 610 |
| 611 class ExportDeclaration final : public Declaration { | 611 class ExportDeclaration final : public Declaration { |
| (...skipping 2936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3548 : NULL; \ | 3548 : NULL; \ |
| 3549 } | 3549 } |
| 3550 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3550 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3551 #undef DECLARE_NODE_FUNCTIONS | 3551 #undef DECLARE_NODE_FUNCTIONS |
| 3552 | 3552 |
| 3553 | 3553 |
| 3554 } // namespace internal | 3554 } // namespace internal |
| 3555 } // namespace v8 | 3555 } // namespace v8 |
| 3556 | 3556 |
| 3557 #endif // V8_AST_AST_H_ | 3557 #endif // V8_AST_AST_H_ |
| OLD | NEW |