Class: ScopeDeclaration
compiler.ScopeDeclaration
An symbol table entry of a variable, parameter or function declaration inside a Kipper scope.
Abstract base class for ScopeVariableDeclaration, ScopeParameterDeclaration and ScopeFunctionDeclaration. This is used like an entry for a symbol table, where the important information about a variable, parameter or function is stored.
Since
0.1.2
Hierarchy
ScopeDeclaration
Table of contents
Constructors
Accessors
Constructors
constructor
• new ScopeDeclaration()
Accessors
builtInStructure
• Abstract get builtInStructure(): undefined | BuiltInVariable | BuiltInFunction | BuiltInType
Returns the built-in structure of this declaration, if this declaration is based on one.
Since
0.11.0
Returns
undefined | BuiltInVariable | BuiltInFunction | BuiltInType
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:39
hasValue
• Abstract get hasValue(): boolean
Returns whether the declaration has a value.
Since
0.10.0
Returns
boolean
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:57
identifier
• Abstract get identifier(): string
Returns
string
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:20
isBuiltIn
• Abstract get isBuiltIn(): boolean
Returns whether this declaration is a built-in declaration.
Since
0.11.0
Returns
boolean
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:33
isCallable
• Abstract get isCallable(): boolean
Returns whether the declaration has a callable value (function).
Since
0.10.0
Returns
boolean
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:63
isDefined
• Abstract get isDefined(): boolean
Returns whether the scope declaration was defined during its declaration.
Since
0.10.0
Returns
boolean
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:51
node
• Abstract get node(): undefined | Declaration<DeclarationSemantics, DeclarationTypeSemantics>
Returns
undefined | Declaration<DeclarationSemantics, DeclarationTypeSemantics>
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:19
programCtx
• get programCtx(): undefined | KipperProgramContext
Fetches the program context instance for this token.
Returns
undefined | KipperProgramContext
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:25
type
• Abstract get type(): ProcessedType
The value type of this declaration.
Since
0.10.0
Returns
Defined in
kipper/core/src/compiler/semantics/symbol-table/entry/scope-declaration.ts:45