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

Abstract base class for top-level import declarations. More...

#include <Compiler_AST.H>

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

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.
 

Detailed Description

Abstract base class for top-level import declarations.

Definition at line 558 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Import_Decl()

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 = {} 
)
inlinenoexcept

Constructs an import-declaration base node.

Definition at line 567 of file Compiler_AST.H.

Member Data Documentation

◆ keyword_span

Source_Span Aleph::Compiler_Import_Decl::keyword_span

Span of the introducing import keyword.

Definition at line 561 of file Compiler_AST.H.

◆ kind

Specific declaration variant.

Definition at line 560 of file Compiler_AST.H.

◆ module_name

std::string Aleph::Compiler_Import_Decl::module_name

Imported source name without surrounding quotes.

Definition at line 562 of file Compiler_AST.H.

◆ module_name_span

Source_Span Aleph::Compiler_Import_Decl::module_name_span

Span of the imported string literal.

Definition at line 563 of file Compiler_AST.H.

◆ semicolon_span

Source_Span Aleph::Compiler_Import_Decl::semicolon_span

Span of the trailing ;.

Definition at line 564 of file Compiler_AST.H.


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