Navigation
API > API/Runtime > API/Runtime/VerseCompiler > API/Runtime/VerseCompiler/uLang > API/Runtime/VerseCompiler/uLang/Semantics
Inheritance Hierarchy
- CAstNode
- CAttributable
- CExpressionBase
- CExprIf
References
| Module | VerseCompiler |
| Header | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/Expression.h |
| Include | #include "uLang/Semantics/Expression.h" |
Syntax
class CExprIf : public uLang::CExpressionBase
Remarks
Conditional with failable tests- if (test[]) {clause1}, if (test[]) {clause1} else {else_clause}
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | _bIsFilter | If can be used as a filter in a for(..) { }. Code generation need to know. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
CExprIf
(
TSRef< CExprCodeBlock >&& Condition, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const TSRef< CExprCodeBlock > & | GetCondition () |
||
| const TSPtr< CExpressionBase > & | |||
| const TSPtr< CExpressionBase > & | |||
| void | SetCondition
(
TSRef< CExprCodeBlock >&& Condition |
||
| void | SetElseClause
(
TSPtr< CExpressionBase >&& ElseClause |
||
| void | SetThenClause
(
TSPtr< CExpressionBase >&& ThenClause |
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 | |
|---|---|---|---|
| CUTF8String | GetErrorDesc () |
Text methods. | |
| EAstNodeType | GetNodeType () |
||
| void | VisitChildren
(
SAstVisitor& Visitor |
Iterates over this AST node's direct children, calling Visitor.Visit for each child. | |
| void | VisitImmediates
(
SAstVisitor& Visitor |
Iterates over this AST node's immediate fields, calling Visitor.VisitImmediate for each immediate field. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const CExpressionBase& Other |