Navigation
API > API/Runtime > API/Runtime/VerseCompiler > API/Runtime/VerseCompiler/uLang > API/Runtime/VerseCompiler/uLang/Semantics
Inheritance Hierarchy
- CAstNode
- CAttributable
- CExpressionBase
- CExprDefinition
- CExprDataDefinition
- CExprFunctionDefinition
- CExprIterationPairDefinition
- CExprTypeAliasDefinition
References
| Module | VerseCompiler |
| Header | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/Expression.h |
| Include | #include "uLang/Semantics/Expression.h" |
Syntax
class CExprDefinition : public uLang::CExpressionBase
Remarks
Represents all definitions (and assignments) supported by Verse. They are: element:valueDomain=value e.g. x:int=5 e.g. f(x:int):int=x*x element:valueDomain e.g. x:int e.g. f(x:int):int element=value e.g. x=5 e.g. f(x:int)=x*x
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSPtr< CExpressionBase > | _Element | ||
| CSymbol | _Name | ||
| TSPtr< CExpressionBase > | _Value | ||
| TSPtr< CExpressionBase > | _ValueDomain |
Constructors
| Type | Name | Description | |
|---|---|---|---|
CExprDefinition
(
EVstMappingType VstMappingType |
|||
CExprDefinition
(
TSPtr< CExpressionBase >&& Element, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const TSPtr< CExpressionBase > & | Element () |
||
| CSymbol | GetName () |
||
| bool | IsNamed () |
||
| void | SetElement
(
TSRef< CExpressionBase >&& Element |
||
| void | |||
| void | SetValue
(
TSRef< CExpressionBase >&& Value |
||
| void | SetValueDomain
(
TSRef< CExpressionBase >&& ValueDomain |
||
| TSPtr< CExpressionBase > | TakeElement () |
||
| TSPtr< CExpressionBase > | TakeValue () |
||
| TSPtr< CExpressionBase > | |||
| const TSPtr< CExpressionBase > & | Value () |
||
| const TSPtr< CExpressionBase > & | ValueDomain () |
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 () |
||
| bool | |||
| 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 |