Class: TypeScriptTargetCodeGenerator
The TypeScript target-specific code generator for translating Kipper code into TypeScript.
Since
0.8.0
Hierarchy
unknown
↳
TypeScriptTargetCodeGenerator
Table of contents
Constructors
Methods
Constructors
constructor
• new TypeScriptTargetCodeGenerator()
Inherited from
JavaScriptTargetCodeGenerator.constructor
Methods
functionDeclaration
▸ functionDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Translates a FunctionDeclaration into the TypeScript language.
Parameters
Name | Type |
---|---|
node |
FunctionDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:19
variableDeclaration
▸ variableDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Translates a VariableDeclaration into the TypeScript language.
Parameters
Name | Type |
---|---|
node |
VariableDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:33