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

Typed lexical binding statement. More...

#include <Compiler_HIR_Model.H>

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

Public Member Functions

 Compiler_HIR_Let_Stmt (std::string value="", const Compiler_Type_Id ty=0, const Source_Span &name_sp={}, Compiler_HIR_Expr *init=nullptr, const Source_Span &sp={}) noexcept
 
- Public Member Functions inherited from Aleph::Compiler_HIR_Stmt
 Compiler_HIR_Stmt (const Compiler_HIR_Stmt_Kind k=Compiler_HIR_Stmt_Kind::Invalid, const Source_Span &sp={}) noexcept
 
- Public Member Functions inherited from Aleph::Compiler_HIR_Node
 Compiler_HIR_Node (const Source_Span &sp={}) noexcept
 

Public Attributes

std::string name
 Bound identifier.
 
Source_Span name_span
 Span of the binding name.
 
Compiler_Type_Id binding_type = 0
 Inferred binding type.
 
Compiler_HIR_Expr * initializer = nullptr
 Optional initializer.
 
- Public Attributes inherited from Aleph::Compiler_HIR_Stmt
Compiler_HIR_Stmt_Kind kind = Compiler_HIR_Stmt_Kind::Invalid
 Runtime node kind.
 
- Public Attributes inherited from Aleph::Compiler_HIR_Node
Source_Span span
 Source region associated with the HIR node.
 

Detailed Description

Typed lexical binding statement.

Definition at line 408 of file Compiler_HIR_Model.H.

Constructor & Destructor Documentation

◆ Compiler_HIR_Let_Stmt()

Aleph::Compiler_HIR_Let_Stmt::Compiler_HIR_Let_Stmt ( std::string  value = "",
const Compiler_Type_Id  ty = 0,
const Source_Span &  name_sp = {},
Compiler_HIR_Expr *  init = nullptr,
const Source_Span &  sp = {} 
)
inlinenoexcept

Definition at line 415 of file Compiler_HIR_Model.H.

Member Data Documentation

◆ binding_type

Compiler_Type_Id Aleph::Compiler_HIR_Let_Stmt::binding_type = 0

Inferred binding type.

Definition at line 412 of file Compiler_HIR_Model.H.

◆ initializer

Compiler_HIR_Expr* Aleph::Compiler_HIR_Let_Stmt::initializer = nullptr

Optional initializer.

Definition at line 413 of file Compiler_HIR_Model.H.

◆ name

std::string Aleph::Compiler_HIR_Let_Stmt::name

Bound identifier.

Definition at line 410 of file Compiler_HIR_Model.H.

Referenced by Aleph::Compiler_HIR_Detail::dump_stmt().

◆ name_span

Source_Span Aleph::Compiler_HIR_Let_Stmt::name_span

Span of the binding name.

Definition at line 411 of file Compiler_HIR_Model.H.


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