Class: KipperTypeScriptTarget
The TypeScript translation target for the Kipper language.
Since
0.10.0
Hierarchy
unknown↳
KipperTypeScriptTarget
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new KipperTypeScriptTarget(semanticAnalyser?, codeGenerator?, builtInGenerator?)
Parameters
| Name | Type |
|---|---|
semanticAnalyser |
TypeScriptTargetSemanticAnalyser |
codeGenerator |
TypeScriptTargetCodeGenerator |
builtInGenerator |
TypeScriptTargetBuiltInGenerator |
Overrides
KipperCompileTarget.constructor
Defined in
kipper/target-ts/src/target.ts:29
Properties
internalObjectIdentifier
▪ Static Readonly internalObjectIdentifier: any = TargetJS.internalObjectIdentifier
The internal identifier for the global Kipper object storing runtime definitions.
Since
0.10.0
Defined in
kipper/target-ts/src/target.ts:21
reservedIdentifiers
▪ Static Readonly reservedIdentifiers: any = TargetJS.reservedIdentifiers
All reserved identifiers in JavaScript/TypeScript that may not be overwritten.
Since
0.10.0
Defined in
kipper/target-ts/src/target.ts:27
Methods
getBuiltInIdentifier
▸ Static getBuiltInIdentifier(signature): string
Fetches the reserved identifier for the translated code.
This will also ensure that BuiltInVariable.local local variables are not registered onto the global object. Those will simply stay as local variables with the same identifier.
Since
0.10.0
Parameters
| Name | Type | Description |
|---|---|---|
signature |
any |
The identifier or signature object to translate to its TypeScript form. |
Returns
string
Defined in
kipper/target-ts/src/target.ts:45
getTypeScriptType
▸ Static getTypeScriptType(kipperType): string
Fetches the typescript equivalent for a KipperBuiltInTypeLiteral.
Since
0.8.0
Parameters
| Name | Type | Description |
|---|---|---|
kipperType |
ProcessedType |
The type to get the equivalent for. |
Returns
string
Defined in
kipper/target-ts/src/target.ts:54