Class: Type
compiler.Type
The abstract base type of a general type that may exist/be valid, but also may not. This is a general representation to store a type's information in the semantic data and CompilableASTNode.typeData type data of an CompilableASTNode.
Since
0.10.0
Hierarchy
Type
↳
RawType
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• Protected
new Type(identifier
)
Parameters
Name | Type |
---|---|
identifier |
string |
Defined in
kipper/core/src/compiler/semantics/types/base/type.ts:11
Properties
_identifier
• Protected
Readonly
_identifier: string
Defined in
kipper/core/src/compiler/semantics/types/base/type.ts:9
Accessors
identifier
• get
identifier(): string
The identifier of this type.
Since
0.10.0
Returns
string
Defined in
kipper/core/src/compiler/semantics/types/base/type.ts:19
Methods
toString
▸ Abstract
toString(): string
Returns the full string representation of this type.
This also includes generic type arguments if this type is a generic type.
Since
0.12.0
Returns
string
Defined in
kipper/core/src/compiler/semantics/types/base/type.ts:29