|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Abstract base class for top-level import declarations. More...
#include <Compiler_AST.H>
Public Member Functions | |
| Compiler_Import_Decl (const Compiler_Import_Decl_Kind k=Compiler_Import_Decl_Kind::Invalid, const Source_Span &kw={}, std::string imported="", const Source_Span &module_sp={}, const Source_Span &semi_sp={}, const Source_Span &sp={}) noexcept | |
| Constructs an import-declaration base node. | |
Public Member Functions inherited from Aleph::Compiler_Ast_Node | |
| Compiler_Ast_Node (const Source_Span &sp={}) noexcept | |
| Constructs a node with an optional span. | |
| virtual | ~Compiler_Ast_Node () noexcept=default |
| Virtual destructor to ensure proper cleanup of derived nodes. | |
Public Attributes | |
| Compiler_Import_Decl_Kind | kind = Compiler_Import_Decl_Kind::Invalid |
| Specific declaration variant. | |
| Source_Span | keyword_span |
Span of the introducing import keyword. | |
| std::string | module_name |
| Imported source name without surrounding quotes. | |
| Source_Span | module_name_span |
| Span of the imported string literal. | |
| Source_Span | semicolon_span |
Span of the trailing ;. | |
Public Attributes inherited from Aleph::Compiler_Ast_Node | |
| Source_Span | span |
| Source region covered by this node. | |
Abstract base class for top-level import declarations.
Definition at line 558 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs an import-declaration base node.
Definition at line 567 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Import_Decl::keyword_span |
Span of the introducing import keyword.
Definition at line 561 of file Compiler_AST.H.
| Compiler_Import_Decl_Kind Aleph::Compiler_Import_Decl::kind = Compiler_Import_Decl_Kind::Invalid |
Specific declaration variant.
Definition at line 560 of file Compiler_AST.H.
| std::string Aleph::Compiler_Import_Decl::module_name |
Imported source name without surrounding quotes.
Definition at line 562 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Import_Decl::module_name_span |
Span of the imported string literal.
Definition at line 563 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Import_Decl::semicolon_span |
Span of the trailing ;.
Definition at line 564 of file Compiler_AST.H.