@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.
@@ -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, other: KNativePointer): 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, other: KNativePointer): 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
- _CreateETSIntrinsicNode2(context: KNativePointer, type: KInt, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
3212
+ _ETSIntrinsicNodeIdConst(context: KNativePointer, receiver: KNativePointer): KStringPtr {
3213
3213
  throw new Error("This methods was not overloaded by native module initialization")
3214
3214
  }
3215
- _UpdateETSIntrinsicNode2(context: KNativePointer, original: KNativePointer, type: KInt, _arguments: BigUint64Array, _argumentsSequenceLength: KUInt): KNativePointer {
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
- _ETSIntrinsicNodeArgumentsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer {
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(type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
679
- return ETSIntrinsicNode.create2ETSIntrinsicNode(type, _arguments)
677
+ createETSIntrinsicNode(id: string, _arguments: readonly Expression[]): ETSIntrinsicNode {
678
+ return ETSIntrinsicNode.create1ETSIntrinsicNode(id, _arguments)
680
679
  }
681
680
  ,
682
- updateETSIntrinsicNode(original: ETSIntrinsicNode, type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
683
- if (isSameNativeObject(type, original.type) && isSameNativeObject(_arguments, original.arguments))
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.create2ETSIntrinsicNode(type, _arguments), original)
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 create2ETSIntrinsicNode(type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
43
- const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._CreateETSIntrinsicNode2(global.context, type, passNodeArray(_arguments), _arguments.length), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
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?: ETSIntrinsicNode, other?: ETSIntrinsicNode): ETSIntrinsicNode {
53
- const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._UpdateETSIntrinsicNode1(global.context, passNode(original), passNode(other)), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
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
- static update2ETSIntrinsicNode(original: ETSIntrinsicNode | undefined, type: Es2pandaIntrinsicNodeType, _arguments: readonly Expression[]): ETSIntrinsicNode {
58
- const result: ETSIntrinsicNode = new ETSIntrinsicNode(global.generatedEs2panda._UpdateETSIntrinsicNode2(global.context, passNode(original), type, passNodeArray(_arguments), _arguments.length), Es2pandaAstNodeType.AST_NODE_TYPE_ETS_INTRINSIC_NODE_TYPE)
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._ETSIntrinsicNodeArgumentsConst(global.context, this.peer))
60
+ return unpackNodeArray(global.generatedEs2panda._ETSIntrinsicNodeArguments(global.context, this.peer))
67
61
  }
68
62
  protected readonly brandETSIntrinsicNode: undefined
69
63
  }
@@ -13,9 +13,6 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- export class Es2pandaError extends Error { }
17
- export class EarlyExitError extends Error { }
18
-
19
16
  export function throwError(error: string): never {
20
17
  throw new Error(error)
21
18
  }