|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Abstract base class for all AST nodes. More...
#include <Compiler_AST.H>
Public Member Functions | |
| 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 | |
| Source_Span | span |
| Source region covered by this node. | |
Abstract base class for all AST nodes.
Carries common metadata like the source span.
Definition at line 307 of file Compiler_AST.H.
|
inlineexplicitnoexcept |
Constructs a node with an optional span.
Definition at line 312 of file Compiler_AST.H.
|
virtualdefaultnoexcept |
Virtual destructor to ensure proper cleanup of derived nodes.
| Source_Span Aleph::Compiler_Ast_Node::span |
Source region covered by this node.
Definition at line 309 of file Compiler_AST.H.
Referenced by Aleph::Compiler_HIR_Lowering::lower_expr(), Aleph::Compiler_HIR_Lowering::lower_function(), Aleph::Compiler_HIR_Lowering::lower_stmt(), Aleph::Compiler_Driver::merge_modules_from_order(), Aleph::Compiler_MVP_Frontend::merge_modules_from_order(), and Aleph::Compiler_Parser::parse_call_suffix().