Interface: VariableDeclarationSemantics
compiler.VariableDeclarationSemantics
Semantics for AST Node VariableDeclaration.
Since
0.3.0
Hierarchy
-
↳
VariableDeclarationSemantics
Table of contents
Properties
Properties
identifier
• identifier: string
The identifier of this variable.
Since
0.5.0
Overrides
DeclarationSemantics.identifier
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:19
isDefined
• isDefined: boolean
If this is true then the variable has a defined value.
Since
0.5.0
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:41
scope
• scope: Scope
<any
, any
, any
>
The scope of this variable.
Since
0.5.0
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:46
storageType
• storageType: KipperStorageType
The storage type option for this variable.
Since
0.5.0
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:24
value
• value: undefined
| Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>>
The assigned value to this variable. If isDefined is false, then this value is undefined.
Since
0.7.0
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:51
valueType
• valueType: RawType
The type of the value as a string.
The identifier of the valueTypeSpecifier.semanticData.identifier typeSpecifier.
Since
0.5.0
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:31
valueTypeSpecifier
• valueTypeSpecifier: IdentifierTypeSpecifierExpression
The type specifier expression for the variable type.
Since
0.10.0
Defined in
kipper/core/src/compiler/ast/nodes/declarations/variable-declaration/variable-declaration-semantics.ts:36