Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_Source_Import_Decl Struct Referencefinal

Top-level import declaration naming one other source unit. More...

#include <Compiler_AST.H>

Inheritance diagram for Aleph::Compiler_Source_Import_Decl:
[legend]
Collaboration diagram for Aleph::Compiler_Source_Import_Decl:
[legend]

Public Member Functions

 Compiler_Source_Import_Decl (const Source_Span &kw={}, std::string imported="", const Source_Span &module_sp={}, const Source_Span &semi_sp={}) noexcept
 Constructs one import "name"; declaration.
 
- Public Member Functions inherited from Aleph::Compiler_Import_Decl
 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.
 

Additional Inherited Members

- Public Attributes inherited from Aleph::Compiler_Import_Decl
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.
 

Detailed Description

Top-level import declaration naming one other source unit.

Definition at line 588 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Source_Import_Decl()

Aleph::Compiler_Source_Import_Decl::Compiler_Source_Import_Decl ( const Source_Span &  kw = {},
std::string  imported = "",
const Source_Span &  module_sp = {},
const Source_Span &  semi_sp = {} 
)
inlinenoexcept

Constructs one import "name"; declaration.

Definition at line 591 of file Compiler_AST.H.


The documentation for this struct was generated from the following file: