Navigation
API > API/Runtime > API/Runtime/VerseCompiler
No longer used, but good ideas enum class EFunctionStringFlag : uint16t { / Name part - omitted or one of: Name = 1<<0, // Prepend name of function Qualified = 1<<1, // Prepends the scope `(/MyModule:) and then the name of the function
/ Type signature part - omitted or one of: SigSimple = 1<<2, // Include just parentheses () SigTyped = 1<<3, // Include parentheses (), any parameter names and types and result type (param1 : Type1, param2 : Type2) : ResultType SigDefaults = 1<<4, // Include parentheses (), any parameter names, types and defaults and result type (param1 : Type1, param2 : Type2 = default2 ) : ResultType
/ Body - omitted or one of: BodyIndicator = 1<<5, // {...} for uLang body and empty for atomic C++ body Body = 1<<6, // full uLang body or empty for atomic C++ body
/ Spacing - omitted (canonical with multi-line) or: Inline = 1<<7, // try to have everything on one line
/ Masks Default_ = Qualified|SigDefaults|Body, // MyClass@function(param1 : Type1, param2 : Type2 = default2 ) : ResultType { } DefaultUnnamed_ = SigDefaults|Body, // (param1 : Type1, param2 : Type2 = default2 ) : ResultType { } DefaultIdent_ = Qualified|SigSimple, // MyClass@function()
Named_ = Name|Qualified, Signature_ = SigSimple|SigTyped|SigDefaults, Body_ = BodyIndicator|Body, Unimplemented_ = SigTyped|SigDefaults|Body }; Distinguishes extension field accessor functions from other functions.
| Name | uLang::EExtensionFieldAccessorKind |
| Type | enum |
| Header File | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/SemanticFunction.h |
| Include Path | #include "uLang/Semantics/SemanticFunction.h" |
Syntax
namespace uLang
{
enum EExtensionFieldAccessorKind
{
Function,
ExtensionDataMember,
ExtensionMethod,
}
}
Values
| Name | Remarks |
|---|---|
| Function | |
| ExtensionDataMember | |
| ExtensionMethod |