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