@idlizer/arktscgen 2.1.10-arktscgen-3 → 2.1.10-arktscgen-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/libarkts-copy/native/src/generated/bridges.cc +39 -37
- package/build/libarkts-copy/package.json +10 -10
- package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +8 -2
- package/build/libarkts-copy/src/arkts-api/node-cache.ts +11 -7
- package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +33 -1
- package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +46 -0
- package/build/libarkts-copy/src/arkts-api/utilities/public.ts +22 -2
- package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +103 -109
- package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +10 -10
- package/build/libarkts-copy/src/generated/factory.ts +5 -6
- package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +3 -0
- package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +9 -15
- package/build/libarkts-copy/src/utils.ts +0 -3
- package/lib/index.js +338 -99
- package/package.json +4 -5
- package/templates/factory.ts +1 -1
- package/templates/peer.ts +1 -1
|
@@ -3197,28 +3197,25 @@ export class Es2pandaNativeModule {
|
|
|
3197
3197
|
_UpdateCharLiteral(context: KNativePointer, original: KNativePointer): KNativePointer {
|
|
3198
3198
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3199
3199
|
}
|
|
3200
|
-
_CreateETSIntrinsicNode(context: KNativePointer): KNativePointer {
|
|
3200
|
+
_CreateETSIntrinsicNode(context: KNativePointer, other: KNativePointer): KNativePointer {
|
|
3201
3201
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3202
3202
|
}
|
|
3203
|
-
_UpdateETSIntrinsicNode(context: KNativePointer, original: KNativePointer): KNativePointer {
|
|
3203
|
+
_UpdateETSIntrinsicNode(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer {
|
|
3204
3204
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3205
3205
|
}
|
|
3206
|
-
_CreateETSIntrinsicNode1(context: KNativePointer,
|
|
3206
|
+
_CreateETSIntrinsicNode1(context: KNativePointer, id: KStringPtr, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
|
|
3207
3207
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3208
3208
|
}
|
|
3209
|
-
_UpdateETSIntrinsicNode1(context: KNativePointer, original: KNativePointer,
|
|
3209
|
+
_UpdateETSIntrinsicNode1(context: KNativePointer, original: KNativePointer, id: KStringPtr, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
|
|
3210
3210
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3211
3211
|
}
|
|
3212
|
-
|
|
3212
|
+
_ETSIntrinsicNodeIdConst(context: KNativePointer, receiver: KNativePointer): KStringPtr {
|
|
3213
3213
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3214
3214
|
}
|
|
3215
|
-
|
|
3216
|
-
throw new Error("This methods was not overloaded by native module initialization")
|
|
3217
|
-
}
|
|
3218
|
-
_ETSIntrinsicNodeTypeConst(context: KNativePointer, receiver: KNativePointer): KInt {
|
|
3215
|
+
_ETSIntrinsicNodeArgumentsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3219
3216
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3220
3217
|
}
|
|
3221
|
-
|
|
3218
|
+
_ETSIntrinsicNodeArguments(context: KNativePointer, receiver: KNativePointer): KNativePointer {
|
|
3222
3219
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
3223
3220
|
}
|
|
3224
3221
|
_CreateETSPackageDeclaration(context: KNativePointer, name: KNativePointer): KNativePointer {
|
|
@@ -5186,6 +5183,9 @@ export class Es2pandaNativeModule {
|
|
|
5186
5183
|
_ArkTsConfigOutDirConst(context: KNativePointer, receiver: KNativePointer): KStringPtr {
|
|
5187
5184
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
5188
5185
|
}
|
|
5186
|
+
_ArkTsConfigCacheDirConst(context: KNativePointer, receiver: KNativePointer): KStringPtr {
|
|
5187
|
+
throw new Error("This methods was not overloaded by native module initialization")
|
|
5188
|
+
}
|
|
5189
5189
|
_ArkTsConfigUseUrlConst(context: KNativePointer, receiver: KNativePointer): KBoolean {
|
|
5190
5190
|
throw new Error("This methods was not overloaded by native module initialization")
|
|
5191
5191
|
}
|
|
@@ -68,7 +68,6 @@ import { ETSTypeReferencePart } from "./peers/ETSTypeReferencePart"
|
|
|
68
68
|
import { ETSUndefinedType } from "./peers/ETSUndefinedType"
|
|
69
69
|
import { ETSUnionType } from "./peers/ETSUnionType"
|
|
70
70
|
import { EmptyStatement } from "./peers/EmptyStatement"
|
|
71
|
-
import { Es2pandaIntrinsicNodeType } from "./Es2pandaEnums"
|
|
72
71
|
import { Es2pandaMetaPropertyKind } from "./Es2pandaEnums"
|
|
73
72
|
import { Es2pandaModifierFlags } from "./Es2pandaEnums"
|
|
74
73
|
import { Es2pandaPrimitiveType } from "./Es2pandaEnums"
|
|
@@ -675,14 +674,14 @@ export const factory = {
|
|
|
675
674
|
return updateNodeByNode(CharLiteral.createCharLiteral(), original)
|
|
676
675
|
}
|
|
677
676
|
,
|
|
678
|
-
createETSIntrinsicNode(
|
|
679
|
-
return ETSIntrinsicNode.
|
|
677
|
+
createETSIntrinsicNode(id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
678
|
+
return ETSIntrinsicNode.create1ETSIntrinsicNode(id, _arguments)
|
|
680
679
|
}
|
|
681
680
|
,
|
|
682
|
-
updateETSIntrinsicNode(original: ETSIntrinsicNode,
|
|
683
|
-
if (isSameNativeObject(
|
|
681
|
+
updateETSIntrinsicNode(original: ETSIntrinsicNode, id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
682
|
+
if (isSameNativeObject(id, original.id) && isSameNativeObject(_arguments, original.arguments))
|
|
684
683
|
return original
|
|
685
|
-
return updateNodeByNode(ETSIntrinsicNode.
|
|
684
|
+
return updateNodeByNode(ETSIntrinsicNode.create1ETSIntrinsicNode(id, _arguments), original)
|
|
686
685
|
}
|
|
687
686
|
,
|
|
688
687
|
createTSModuleBlock(statements: readonly Statement[]): TSModuleBlock {
|
|
@@ -60,6 +60,9 @@ export class ArkTsConfig extends ArktsObject {
|
|
|
60
60
|
get outDir(): string {
|
|
61
61
|
return unpackString(global.generatedEs2panda._ArkTsConfigOutDirConst(global.context, this.peer))
|
|
62
62
|
}
|
|
63
|
+
get cacheDir(): string {
|
|
64
|
+
return unpackString(global.generatedEs2panda._ArkTsConfigCacheDirConst(global.context, this.peer))
|
|
65
|
+
}
|
|
63
66
|
get useUrl(): boolean {
|
|
64
67
|
return global.generatedEs2panda._ArkTsConfigUseUrlConst(global.context, this.peer)
|
|
65
68
|
}
|
|
@@ -32,38 +32,32 @@ import {
|
|
|
32
32
|
} from "../../reexport-for-generated"
|
|
33
33
|
|
|
34
34
|
import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
|
|
35
|
-
import { Es2pandaIntrinsicNodeType } from "./../Es2pandaEnums"
|
|
36
35
|
import { Expression } from "./Expression"
|
|
37
36
|
|
|
38
37
|
export class ETSIntrinsicNode extends Expression {
|
|
39
38
|
constructor(pointer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
|
|
40
39
|
super(pointer, astNodeType)
|
|
41
40
|
}
|
|
42
|
-
static
|
|
43
|
-
const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda.
|
|
41
|
+
static create1ETSIntrinsicNode(id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
42
|
+
const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._CreateETSIntrinsicNode1(global.context, id, passNodeArray(_arguments), _arguments.length), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
|
|
44
43
|
result.setChildrenParentPtr()
|
|
45
44
|
return result
|
|
46
45
|
}
|
|
47
|
-
static updateETSIntrinsicNode(original?: ETSIntrinsicNode): ETSIntrinsicNode {
|
|
48
|
-
const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._UpdateETSIntrinsicNode(global.context, passNode(original)), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
|
|
46
|
+
static updateETSIntrinsicNode(original?: ETSIntrinsicNode, other?: ETSIntrinsicNode): ETSIntrinsicNode {
|
|
47
|
+
const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._UpdateETSIntrinsicNode(global.context, passNode(original), passNode(other)), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
|
|
49
48
|
result.setChildrenParentPtr()
|
|
50
49
|
return result
|
|
51
50
|
}
|
|
52
|
-
static update1ETSIntrinsicNode(original
|
|
53
|
-
const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._UpdateETSIntrinsicNode1(global.context, passNode(original),
|
|
51
|
+
static update1ETSIntrinsicNode(original: ETSIntrinsicNode | undefined, id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
|
|
52
|
+
const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._UpdateETSIntrinsicNode1(global.context, passNode(original), id, passNodeArray(_arguments), _arguments.length), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
|
|
54
53
|
result.setChildrenParentPtr()
|
|
55
54
|
return result
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
result.setChildrenParentPtr()
|
|
60
|
-
return result
|
|
61
|
-
}
|
|
62
|
-
get type(): Es2pandaIntrinsicNodeType {
|
|
63
|
-
return global.generatedEs2panda._ETSIntrinsicNodeTypeConst(global.context, this.peer)
|
|
56
|
+
get id(): string {
|
|
57
|
+
return unpackString(global.generatedEs2panda._ETSIntrinsicNodeIdConst(global.context, this.peer))
|
|
64
58
|
}
|
|
65
59
|
get arguments(): readonly Expression[] {
|
|
66
|
-
return unpackNodeArray(global.generatedEs2panda.
|
|
60
|
+
return unpackNodeArray(global.generatedEs2panda._ETSIntrinsicNodeArguments(global.context, this.peer))
|
|
67
61
|
}
|
|
68
62
|
protected readonly brandETSIntrinsicNode: undefined
|
|
69
63
|
}
|