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
- classMethodDeclaration
- classPropertyDeclaration
- functionDeclaration
- interfaceDeclaration
- interfaceMethodDeclaration
- interfacePropertyDeclaration
- lambdaPrimaryExpression
- objectPrimaryExpression
- parameterDeclaration
- variableDeclaration
Constructors
constructor
• new TypeScriptTargetCodeGenerator()
Inherited from
JavaScriptTargetCodeGenerator.constructor
Methods
classMethodDeclaration
▸ classMethodDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
node |
ClassMethodDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:200
classPropertyDeclaration
▸ classPropertyDeclaration(node
): Promise
<TranslatedCodeLine
>
Parameters
Name | Type |
---|---|
node |
ClassPropertyDeclaration |
Returns
Promise
<TranslatedCodeLine
>
Defined in
kipper/target-ts/src/code-generator.ts:228
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:31
interfaceDeclaration
▸ interfaceDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
node |
InterfaceDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:68
interfaceMethodDeclaration
▸ interfaceMethodDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
node |
InterfaceMethodDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:87
interfacePropertyDeclaration
▸ interfacePropertyDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
node |
InterfacePropertyDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:117
lambdaPrimaryExpression
▸ lambdaPrimaryExpression(node
): Promise
<TranslatedExpression
>
Parameters
Name | Type |
---|---|
node |
LambdaPrimaryExpression |
Returns
Promise
<TranslatedExpression
>
Defined in
kipper/target-ts/src/code-generator.ts:129
objectPrimaryExpression
▸ objectPrimaryExpression(node
): Promise
<TranslatedExpression
>
Parameters
Name | Type |
---|---|
node |
ObjectPrimaryExpression |
Returns
Promise
<TranslatedExpression
>
Defined in
kipper/target-ts/src/code-generator.ts:187
parameterDeclaration
▸ parameterDeclaration(node
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
node |
ParameterDeclaration |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/code-generator.ts:177
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:45