Navigation
API > API/Runtime > API/Runtime/VerseCompiler > API/Runtime/VerseCompiler/uLang > API/Runtime/VerseCompiler/uLang/Semantics
Inheritance Hierarchy
- CScope
- CLogicalScope
- CClass
- CClassDefinition
- CScopedAccessLevelDefinition
- CCompatConstraintRoot
- CControlScope
- CEnumeration
- CFunction
- CInterface
- CModule
- CSemanticProgram
- CTypeScope
References
| Module | VerseCompiler |
| Header | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/SemanticScope.h |
| Include | #include "uLang/Semantics/SemanticScope.h" |
Syntax
class CLogicalScope : public uLang::CScope
Remarks
A scope that can contain definitions
Variables
| Type | Name | Description | |
|---|---|---|---|
| SemanticRevision | _CumulativeRevision | When anything in this class (methods, data members etc.) or its subclasses was last modified/deleted. | |
| TArray< TSRef< CDefinition > > | _Definitions | All definitions in this scope. | |
| VisitStampType | _LastVisitStamp | To make sure we don't visit the same scope twice during an iteration. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
CLogicalScope
(
const CLogicalScope& |
Delete the generated move/copy constructors so that they don't require full definitions of the types referenced by TSRefArray. | ||
CLogicalScope
(
CLogicalScope&& |
|||
CLogicalScope
(
EKind Kind, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32_t | Allocates an ordinal for the next definition in this scope. | ||
| SQualifier | AsQualifier () |
||
| SmallDefinitionArray | FindDefinitions
(
const CSymbol& Name, |
||
| FilterClass * | FindFirstDefinitionOfKind
(
const CSymbol& Name, |
||
| const TArray< TSRef< CDefinition > > & | |||
| TFilteredDefinitionRange< FilterClass > | |||
| SemanticRevision | GetRevision () |
||
| EIterateResult | IterateRecurseLogicalScopes
(
TFunction< EVisitResult(const CLogicalScope&)>&& Functor |
||
| EIterateResult | IterateRecurseLogicalScopes
(
const TFunction< EVisitResult(const CLogicalScope&)>& Functor |
Iterates through all the logical scopes nested inside this scope. | |
| void | SetRevision
(
SemanticRevision Revision |
||
| ULANG_FORCEINLINE bool | TryMarkVisited
(
VisitStampType VisitStamp |
If this scope has the given visit stamp, return false. |
Overridden from CScope
| Type | Name | Description | |
|---|---|---|---|
| const CLogicalScope * | Iff this scope is a logical scope, return it a pointer to it. Otherwise, return null. | ||
| CLogicalScope * |