Navigation
API > API/Runtime > API/Runtime/VerseCompiler > API/Runtime/VerseCompiler/uLang > API/Runtime/VerseCompiler/uLang/Semantics
Inheritance Hierarchy
- CAstNode
- CAttributable
- CExpressionBase
- CExprCompoundBase
- CExprCodeBlock
- CExprConcurrentBlockBase
- CExprRace
- CExprRush
- CExprSync
- CExprLet
- CExprMakeArray
- CExprMakeMap
- CExprMakeTuple
References
| Module | VerseCompiler |
| Header | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/Expression.h |
| Include | #include "uLang/Semantics/Expression.h" |
Syntax
class CExprCompoundBase : public uLang::CExpressionBase
Remarks
Base for expressions that have an array of subexpressions Subclasses: CExprMakeArray, CExprMakeMap, CExprMakeTuple, CExprCodeBlock, CExprConcurrentBlockBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSPtrArray< CExpressionBase > | _SubExprs |
Constructors
| Type | Name | Description | |
|---|---|---|---|
CExprCompoundBase
(
int32_t ReserveSubExprNum, |
|||
CExprCompoundBase
(
TSPtrArray< CExpressionBase >&& SubExprs, |
|||
CExprCompoundBase
(
TSPtr< CExpressionBase >&& SubExpr1, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendSubExpr
(
TSPtr< CExpressionBase > SubExpr |
||
| const uLang::CExpressionBase * | |||
| TSPtrArray< CExpressionBase > & | GetSubExprs () |
||
| const TSPtrArray< CExpressionBase > & | GetSubExprs () |
||
| bool | IsEmpty () |
||
| void | PrependSubExpr
(
TSPtr< CExpressionBase > SubExpr |
||
| void | ReplaceSubExpr
(
TSPtr< CExpressionBase > SubExpr, |
||
| void | SetSubExprs
(
TSPtrArray< CExpressionBase > AnalyzedExprs |
||
| int32_t | SubExprNum () |
||
| TSPtrArray< CExpressionBase > && | TakeSubExprs () |
Overridden from CExpressionBase
| Type | Name | Description | |
|---|---|---|---|
| bool | CanFail () |
Returns whether the expression may fail. | |
| const CExpressionBase * | FindFirstAsyncSubExpr
(
const CSemanticProgram& Program |
Returns itself or the first async sub-expression or return nullptr if it and all its sub-expressions are immediate. |
Overridden from CAstNode
| Type | Name | Description | |
|---|---|---|---|
| void | VisitChildren
(
SAstVisitor& Visitor |
Iterates over this AST node's direct children, calling Visitor.Visit for each child. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const CExpressionBase& Other |