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
- forceCastAs
- index
- len
- nullToStr
- numToStr
- repeatString
- slice
- strToNum
- tryCastAs
- 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:178
__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:182
boolToNum
▸ boolToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:90
boolToStr
▸ boolToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:61
forceCastAs
▸ forceCastAs(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:143
index
▸ index(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:109
len
▸ len(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:171
nullToStr
▸ nullToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:73
numToStr
▸ numToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:54
▸ print(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:163
repeatString
▸ repeatString(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:122
slice
▸ slice(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:97
strToNum
▸ strToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:83
tryCastAs
▸ tryCastAs(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:130
undefinedToStr
▸ undefinedToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:78
voidToStr
▸ voidToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-js/src/built-in-generator.ts:68