Class: JavaScriptTargetBuiltInGenerator
The TypeScript target-specific built-ins generator for generating the code that allows for the use of built-in functions.
Since
0.10.0
Hierarchy
unknown
↳
JavaScriptTargetBuiltInGenerator
Table of contents
Constructors
Methods
- __name__
- boolToNum
- boolToStr
- index
- len
- nullToStr
- numToStr
- repeatString
- slice
- strToNum
- undefinedToStr
- voidToStr
Constructors
constructor
• new JavaScriptTargetBuiltInGenerator()
Inherited from
KipperTargetBuiltInGenerator.constructor
Methods
__name__
▸ name(varSpec
, programCtx
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
varSpec |
BuiltInVariable |
programCtx |
KipperProgramContext |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:149
boolToNum
▸ boolToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:94
boolToStr
▸ boolToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:65
index
▸ index(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:113
len
▸ len(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:142
nullToStr
▸ nullToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:77
numToStr
▸ numToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:58
▸ print(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:134
repeatString
▸ repeatString(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:126
slice
▸ slice(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:101
strToNum
▸ strToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:87
undefinedToStr
▸ undefinedToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:82
voidToStr
▸ voidToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:72