Class: TypeScriptTargetBuiltInGenerator
The TypeScript target-specific built-ins generator for generating the code that allows for the use of built-in functions.
Since
0.8.0
Hierarchy
unknown
↳
TypeScriptTargetBuiltInGenerator
Table of contents
Constructors
Methods
- NaN
- __name__
- boolToNum
- boolToStr
- index
- len
- nullToStr
- numToStr
- repeatString
- slice
- strToNum
- undefinedToStr
- voidToStr
Constructors
constructor
• new TypeScriptTargetBuiltInGenerator()
Inherited from
JavaScriptTargetBuiltInGenerator.constructor
Methods
NaN
▸ NaN(varSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
varSpec |
BuiltInVariable |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:195
__name__
▸ name(varSpec
, programCtx
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
varSpec |
BuiltInVariable |
programCtx |
KipperProgramContext |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:191
boolToNum
▸ boolToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:126
boolToStr
▸ boolToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:97
index
▸ index(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:155
len
▸ len(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:184
nullToStr
▸ nullToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:109
numToStr
▸ numToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:90
▸ print(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:176
repeatString
▸ repeatString(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
BuiltInFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:168
slice
▸ slice(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:134
strToNum
▸ strToNum(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:119
undefinedToStr
▸ undefinedToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:114
voidToStr
▸ voidToStr(funcSpec
): Promise
<TranslatedCodeLine
[]>
Parameters
Name | Type |
---|---|
funcSpec |
InternalFunction |
Returns
Promise
<TranslatedCodeLine
[]>
Defined in
kipper/target-ts/src/built-in-generator.ts:104