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

Node representing a function or method call. More...

#include <Compiler_AST.H>

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

Public Member Functions

 Compiler_Call_Expr (Compiler_Expr *func=nullptr, const Source_Span &lparen={}, const Source_Span &rparen={}) noexcept
 Constructs a call expression.
 
- Public Member Functions inherited from Aleph::Compiler_Expr
 Compiler_Expr (const Compiler_Expr_Kind k=Compiler_Expr_Kind::Invalid, const Source_Span &sp={}) noexcept
 Constructs an expression 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

Compiler_Expr * callee = nullptr
 Expression resolving to a callable entity.
 
DynArray< Compiler_Expr * > arguments
 list of call arguments.
 
Source_Span lparen_span
 Location of ‘’('`.
 
Source_Span rparen_span
 Location of ‘’)'`.
 
- Public Attributes inherited from Aleph::Compiler_Expr
Compiler_Expr_Kind kind = Compiler_Expr_Kind::Invalid
 Specific expression type.
 
- Public Attributes inherited from Aleph::Compiler_Ast_Node
Source_Span span
 Source region covered by this node.
 

Detailed Description

Node representing a function or method call.

Example: calculate(a, b, 5).

Definition at line 841 of file Compiler_AST.H.

Constructor & Destructor Documentation

◆ Compiler_Call_Expr()

Aleph::Compiler_Call_Expr::Compiler_Call_Expr ( Compiler_Expr *  func = nullptr,
const Source_Span &  lparen = {},
const Source_Span &  rparen = {} 
)
inlinenoexcept

Constructs a call expression.

Definition at line 849 of file Compiler_AST.H.

Member Data Documentation

◆ arguments

DynArray<Compiler_Expr *> Aleph::Compiler_Call_Expr::arguments

list of call arguments.

Definition at line 844 of file Compiler_AST.H.

◆ callee

Compiler_Expr* Aleph::Compiler_Call_Expr::callee = nullptr

Expression resolving to a callable entity.

Definition at line 843 of file Compiler_AST.H.

◆ lparen_span

Source_Span Aleph::Compiler_Call_Expr::lparen_span

Location of ‘’('`.

Definition at line 845 of file Compiler_AST.H.

◆ rparen_span

Source_Span Aleph::Compiler_Call_Expr::rparen_span

Location of ‘’)'`.

Definition at line 846 of file Compiler_AST.H.


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