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

Abstract base class for all AST nodes. More...

#include <Compiler_AST.H>

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

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.
 

Detailed Description

Abstract base class for all AST nodes.

Carries common metadata like the source span.

Definition at line 307 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Ast_Node()

Aleph::Compiler_Ast_Node::Compiler_Ast_Node ( const Source_Span &  sp = {})
inlineexplicitnoexcept

Constructs a node with an optional span.

Definition at line 312 of file Compiler_AST.H.

◆ ~Compiler_Ast_Node()

virtual Aleph::Compiler_Ast_Node::~Compiler_Ast_Node ( )
virtualdefaultnoexcept

Virtual destructor to ensure proper cleanup of derived nodes.

Member Data Documentation

◆ span


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