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
- NaN
- __name__
- boolToNum
- boolToStr
- index
- len
- nullToStr
- numToStr
- repeatString
- slice
- strToNum
- undefinedToStr
- voidToStr
Constructors
constructor
• new JavaScriptTargetBuiltInGenerator()
Inherited from
KipperTargetBuiltInGenerator.constructor
Methods
NaN
▸ NaN(varSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
varSpec |
BuiltInVariable |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:145
__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:141
boolToNum
▸ boolToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:86
boolToStr
▸ boolToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:57
index
▸ index(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:105
len
▸ len(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:134
nullToStr
▸ nullToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:69
numToStr
▸ numToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:50
▸ print(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:126
repeatString
▸ repeatString(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:118
slice
▸ slice(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:93
strToNum
▸ strToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:79
undefinedToStr
▸ undefinedToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:74
voidToStr
▸ voidToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:64