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

Node representing a braced sequence of statements. More...

#include <Compiler_AST.H>

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

Public Member Functions

 Compiler_Block_Stmt (const Source_Span &lbrace={}, const Source_Span &rbrace={}) noexcept
 Constructs a block statement.
 
- Public Member Functions inherited from Aleph::Compiler_Stmt
 Compiler_Stmt (const Compiler_Stmt_Kind k=Compiler_Stmt_Kind::Invalid, const Source_Span &sp={}) noexcept
 Constructs a statement base.
 
- 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

DynArray< Compiler_Stmt * > statements
 Sequential statements in the block.
 
Source_Span lbrace_span
 Location of the opening ‘’{'`.
 
Source_Span rbrace_span
 Location of the closing ‘’}'`.
 
- Public Attributes inherited from Aleph::Compiler_Stmt
Compiler_Stmt_Kind kind = Compiler_Stmt_Kind::Invalid
 Specific statement type.
 
- Public Attributes inherited from Aleph::Compiler_Ast_Node
Source_Span span
 Source region covered by this node.
 

Detailed Description

Node representing a braced sequence of statements.

Provides scope for variables declared within it.

Definition at line 945 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Block_Stmt()

Aleph::Compiler_Block_Stmt::Compiler_Block_Stmt ( const Source_Span &  lbrace = {},
const Source_Span &  rbrace = {} 
)
inlinenoexcept

Constructs a block statement.

Definition at line 952 of file Compiler_AST.H.

Member Data Documentation

◆ lbrace_span

Source_Span Aleph::Compiler_Block_Stmt::lbrace_span

Location of the opening ‘’{'`.

Definition at line 948 of file Compiler_AST.H.

◆ rbrace_span

Source_Span Aleph::Compiler_Block_Stmt::rbrace_span

Location of the closing ‘’}'`.

Definition at line 949 of file Compiler_AST.H.

◆ statements

DynArray<Compiler_Stmt *> Aleph::Compiler_Block_Stmt::statements

Sequential statements in the block.

Definition at line 947 of file Compiler_AST.H.


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