@idlizer/arktscgen 2.1.10-arktscgen-4 → 2.1.10-arktscgen-6

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.
Files changed (287) hide show
  1. package/build/libarkts-copy/generator/options.json5 +24 -47
  2. package/build/libarkts-copy/native/meson.build +26 -10
  3. package/build/libarkts-copy/native/meson_options.txt +9 -3
  4. package/build/libarkts-copy/native/mingw.cross +2 -0
  5. package/build/libarkts-copy/native/src/bridges.cc +55 -159
  6. package/build/libarkts-copy/native/src/common.cc +316 -97
  7. package/build/libarkts-copy/native/src/common.h +22 -22
  8. package/build/libarkts-copy/native/src/memoryTracker.cc +5 -5
  9. package/build/libarkts-copy/native/src/memoryTracker.h +5 -5
  10. package/build/libarkts-copy/package.json +31 -25
  11. package/build/libarkts-copy/src/Es2pandaNativeModule.ts +139 -116
  12. package/build/libarkts-copy/src/InteropNativeModule.ts +18 -15
  13. package/build/libarkts-copy/src/arkts-api/AbstractVisitor.ts +24 -19
  14. package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +30 -31
  15. package/build/libarkts-copy/src/arkts-api/ProgramProvider.ts +30 -18
  16. package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +30 -12
  17. package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +38 -29
  18. package/build/libarkts-copy/src/arkts-api/index.ts +23 -24
  19. package/build/libarkts-copy/src/arkts-api/node-cache.ts +22 -13
  20. package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +8 -8
  21. package/build/libarkts-copy/src/arkts-api/node-utilities/ArrayExpression.ts +9 -21
  22. package/build/libarkts-copy/src/arkts-api/node-utilities/AssignmentExpression.ts +12 -14
  23. package/build/libarkts-copy/src/arkts-api/node-utilities/BlockStatement.ts +5 -5
  24. package/build/libarkts-copy/src/arkts-api/node-utilities/CallExpression.ts +26 -24
  25. package/build/libarkts-copy/src/arkts-api/node-utilities/ClassDefinition.ts +62 -32
  26. package/build/libarkts-copy/src/arkts-api/node-utilities/ClassProperty.ts +14 -13
  27. package/build/libarkts-copy/src/arkts-api/node-utilities/ETSFunctionType.ts +24 -21
  28. package/build/libarkts-copy/src/arkts-api/node-utilities/ETSImportDeclaration.ts +10 -12
  29. package/build/libarkts-copy/src/arkts-api/node-utilities/ETSModule.ts +14 -18
  30. package/build/libarkts-copy/src/arkts-api/node-utilities/ETSParameterExpression.ts +15 -16
  31. package/build/libarkts-copy/src/arkts-api/node-utilities/ETSStructDeclaration.ts +5 -8
  32. package/build/libarkts-copy/src/arkts-api/node-utilities/ETSTuple.ts +6 -12
  33. package/build/libarkts-copy/src/arkts-api/node-utilities/MemberExpression.ts +12 -11
  34. package/build/libarkts-copy/src/arkts-api/node-utilities/MethodDefinition.ts +14 -33
  35. package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +12 -23
  36. package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +17 -21
  37. package/build/libarkts-copy/src/arkts-api/node-utilities/OpaqueTypeNode.ts +9 -8
  38. package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +21 -16
  39. package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +52 -53
  40. package/build/libarkts-copy/src/arkts-api/node-utilities/TSInterfaceDeclaration.ts +22 -32
  41. package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeParameter.ts +12 -14
  42. package/build/libarkts-copy/src/arkts-api/node-utilities/TSTypeReferencePart.ts +10 -12
  43. package/build/libarkts-copy/src/arkts-api/node-utilities/TryStatement.ts +10 -9
  44. package/build/libarkts-copy/src/arkts-api/node-utilities/VariableDeclarator.ts +10 -12
  45. package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +8 -8
  46. package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +53 -65
  47. package/build/libarkts-copy/src/arkts-api/peers/Config.ts +18 -25
  48. package/build/libarkts-copy/src/arkts-api/peers/Context.ts +35 -42
  49. package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +9 -9
  50. package/build/libarkts-copy/src/arkts-api/peers/ImportPathManager.ts +6 -8
  51. package/build/libarkts-copy/src/arkts-api/peers/Options.ts +8 -8
  52. package/build/libarkts-copy/src/arkts-api/plugins.ts +205 -32
  53. package/build/libarkts-copy/src/arkts-api/static/global.ts +35 -36
  54. package/build/libarkts-copy/src/arkts-api/static/globalUtils.ts +5 -5
  55. package/build/libarkts-copy/src/arkts-api/static/profiler.ts +107 -91
  56. package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +54 -37
  57. package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +86 -69
  58. package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +41 -24
  59. package/build/libarkts-copy/src/arkts-api/utilities/private.ts +69 -62
  60. package/build/libarkts-copy/src/arkts-api/utilities/public.ts +254 -175
  61. package/build/libarkts-copy/src/arkts-api/visitor.ts +599 -756
  62. package/build/libarkts-copy/src/arkts-api/wrapper-compat.ts +8 -8
  63. package/build/libarkts-copy/src/checkSdk.ts +15 -18
  64. package/build/libarkts-copy/src/index.ts +29 -29
  65. package/build/libarkts-copy/src/memo-node-cache.ts +143 -0
  66. package/build/libarkts-copy/src/plugin-utils.ts +64 -45
  67. package/build/libarkts-copy/src/reexport-for-generated.ts +13 -10
  68. package/build/libarkts-copy/src/tracer.ts +76 -70
  69. package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +134 -274
  70. package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +23 -23
  71. package/build/libarkts-copy/src/ts-api/index.ts +27 -35
  72. package/build/libarkts-copy/src/ts-api/static/enums.ts +3 -3
  73. package/build/libarkts-copy/src/ts-api/types.ts +535 -395
  74. package/build/libarkts-copy/src/ts-api/utilities/private.ts +116 -113
  75. package/build/libarkts-copy/src/ts-api/utilities/public.ts +18 -18
  76. package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +33 -49
  77. package/build/libarkts-copy/src/utils.ts +103 -80
  78. package/build/libarkts-copy/tsconfig.json +3 -2
  79. package/lib/index.js +2713 -7729
  80. package/package.json +53 -52
  81. package/templates/Es2pandaNativeModule.ts +1 -0
  82. package/templates/peer.ts +1 -0
  83. package/build/libarkts-copy/native/src/generated/bridges.cc +0 -16375
  84. package/build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts +0 -24
  85. package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +0 -1344
  86. package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +0 -5192
  87. package/build/libarkts-copy/src/generated/factory.ts +0 -1285
  88. package/build/libarkts-copy/src/generated/index.ts +0 -222
  89. package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -44
  90. package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -54
  91. package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -45
  92. package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +0 -165
  93. package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +0 -84
  94. package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +0 -73
  95. package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -109
  96. package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +0 -119
  97. package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -65
  98. package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -111
  99. package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -49
  100. package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -40
  101. package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -40
  102. package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -61
  103. package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -61
  104. package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -110
  105. package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -40
  106. package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -72
  107. package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -94
  108. package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -61
  109. package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +0 -78
  110. package/build/libarkts-copy/src/generated/peers/CallExpression.ts +0 -129
  111. package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -74
  112. package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -68
  113. package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -58
  114. package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +0 -76
  115. package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +0 -365
  116. package/build/libarkts-copy/src/generated/peers/ClassElement.ts +0 -76
  117. package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +0 -62
  118. package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +0 -137
  119. package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +0 -66
  120. package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -40
  121. package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -82
  122. package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +0 -78
  123. package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -58
  124. package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -40
  125. package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -62
  126. package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -40
  127. package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -60
  128. package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -66
  129. package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -40
  130. package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -62
  131. package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +0 -102
  132. package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -90
  133. package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -69
  134. package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -61
  135. package/build/libarkts-copy/src/generated/peers/ETSModule.ts +0 -129
  136. package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -75
  137. package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -79
  138. package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -75
  139. package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -58
  140. package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -59
  141. package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +0 -189
  142. package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -62
  143. package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +0 -55
  144. package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -58
  145. package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -59
  146. package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -89
  147. package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +0 -66
  148. package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +0 -78
  149. package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -58
  150. package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -75
  151. package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +0 -63
  152. package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -66
  153. package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -40
  154. package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +0 -66
  155. package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -64
  156. package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +0 -94
  157. package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +0 -82
  158. package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -84
  159. package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -67
  160. package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -69
  161. package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -72
  162. package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -67
  163. package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +0 -106
  164. package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +0 -74
  165. package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +0 -70
  166. package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -40
  167. package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -162
  168. package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -78
  169. package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +0 -87
  170. package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +0 -62
  171. package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -61
  172. package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +0 -62
  173. package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -40
  174. package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +0 -73
  175. package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -40
  176. package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -40
  177. package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +0 -68
  178. package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -53
  179. package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -45
  180. package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -53
  181. package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -115
  182. package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -62
  183. package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +0 -152
  184. package/build/libarkts-copy/src/generated/peers/NamedType.ts +0 -84
  185. package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -64
  186. package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -58
  187. package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -78
  188. package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -40
  189. package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -94
  190. package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -58
  191. package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -58
  192. package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -101
  193. package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -65
  194. package/build/libarkts-copy/src/generated/peers/Program.ts +0 -206
  195. package/build/libarkts-copy/src/generated/peers/Property.ts +0 -92
  196. package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -65
  197. package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -75
  198. package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -40
  199. package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +0 -310
  200. package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -40
  201. package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -61
  202. package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -40
  203. package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +0 -48
  204. package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -40
  205. package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -83
  206. package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -120
  207. package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -44
  208. package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -66
  209. package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -40
  210. package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -58
  211. package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -70
  212. package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +0 -71
  213. package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -58
  214. package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -61
  215. package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -84
  216. package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -58
  217. package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -58
  218. package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +0 -70
  219. package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -71
  220. package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +0 -73
  221. package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +0 -112
  222. package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -76
  223. package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -61
  224. package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +0 -75
  225. package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +0 -69
  226. package/build/libarkts-copy/src/generated/peers/TSImportType.ts +0 -72
  227. package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -73
  228. package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -64
  229. package/build/libarkts-copy/src/generated/peers/TSInferType.ts +0 -62
  230. package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -61
  231. package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +0 -160
  232. package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -62
  233. package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -62
  234. package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -62
  235. package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +0 -72
  236. package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +0 -79
  237. package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -61
  238. package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -71
  239. package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -68
  240. package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -58
  241. package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -66
  242. package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -58
  243. package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -58
  244. package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -58
  245. package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -74
  246. package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -62
  247. package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -80
  248. package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +0 -71
  249. package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +0 -75
  250. package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -58
  251. package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -58
  252. package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -61
  253. package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +0 -151
  254. package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -71
  255. package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -61
  256. package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -71
  257. package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +0 -121
  258. package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +0 -75
  259. package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -62
  260. package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -68
  261. package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -62
  262. package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +0 -70
  263. package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -58
  264. package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -61
  265. package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -58
  266. package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -58
  267. package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +0 -69
  268. package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -69
  269. package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +0 -68
  270. package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -58
  271. package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -62
  272. package/build/libarkts-copy/src/generated/peers/TryStatement.ts +0 -89
  273. package/build/libarkts-copy/src/generated/peers/TypeNode.ts +0 -81
  274. package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -44
  275. package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -45
  276. package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -61
  277. package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -70
  278. package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -58
  279. package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -68
  280. package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -40
  281. package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -50
  282. package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +0 -113
  283. package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -79
  284. package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -40
  285. package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -40
  286. package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -71
  287. package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -64
@@ -13,14 +13,14 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { KNativePointer } from "@koalaui/interop"
16
+ import { KNativePointer } from '@koalaui/interop';
17
17
 
18
18
  export abstract class ArktsObject {
19
19
  protected constructor(peer: KNativePointer) {
20
- this.peer = peer
20
+ this.peer = peer;
21
21
  }
22
22
 
23
- peer: KNativePointer
23
+ peer: KNativePointer;
24
24
 
25
25
  public onUpdate(node: ArktsObject) {}
26
26
  }
@@ -31,17 +31,17 @@ export function isSameNativeObject<T extends ArktsObject | number | string | boo
31
31
  ): boolean {
32
32
  if (Array.isArray(first) && Array.isArray(second)) {
33
33
  if (first.length !== second.length) {
34
- return false
34
+ return false;
35
35
  }
36
36
  for (let i = 0; i < first.length; i++) {
37
37
  if (!isSameNativeObject(first[i], second[i])) {
38
- return false
38
+ return false;
39
39
  }
40
40
  }
41
- return true
41
+ return true;
42
42
  }
43
43
  if (first instanceof ArktsObject && second instanceof ArktsObject) {
44
- return first?.peer === second?.peer
44
+ return first?.peer === second?.peer;
45
45
  }
46
- return first === second
46
+ return first === second;
47
47
  }
@@ -13,106 +13,90 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { isNullPtr, KInt, KNativePointer, nullptr } from "@koalaui/interop"
17
- import { global } from "../static/global"
18
- import { allFlags, unpackNode, unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private"
19
- import { throwError } from "../../utils"
20
- import { Es2pandaAstNodeType, Es2pandaModifierFlags } from "../../generated/Es2pandaEnums"
21
- import { ArktsObject } from "./ArktsObject"
22
- import { SourcePosition } from "../../generated/peers/SourcePosition"
23
- import { NodeCache } from "../node-cache"
16
+ import { isNullPtr, KInt, KNativePointer, nullptr } from '@koalaui/interop';
17
+ import { global } from '../static/global';
18
+ import { allFlags, unpackNode, unpackNodeArray, unpackNonNullableNode, unpackString } from '../utilities/private';
19
+ import { throwError } from '../../utils';
20
+ import { Es2pandaAstNodeType, Es2pandaModifierFlags } from '../../../generated/Es2pandaEnums';
21
+ import { ArktsObject } from './ArktsObject';
22
+ import { SourcePosition } from '../../../generated/peers/SourcePosition';
23
+ import { NodeCache } from '../node-cache';
24
24
 
25
25
  export abstract class AstNode extends ArktsObject {
26
- public readonly astNodeType: Es2pandaAstNodeType
26
+ public readonly astNodeType: Es2pandaAstNodeType;
27
27
 
28
28
  protected constructor(peer: KNativePointer, astNodeType: Es2pandaAstNodeType) {
29
- global.profiler.nodeCreated()
29
+ global.profiler.nodeCreated();
30
30
  if (isNullPtr(peer)) {
31
- throwError(`attempted to create AstNode from nullptr`)
31
+ throwError(`attempted to create AstNode from nullptr`);
32
32
  }
33
- super(peer)
34
- this.astNodeType = astNodeType
35
- NodeCache.addToCache(peer, this)
33
+ super(peer);
34
+ this.astNodeType = astNodeType;
35
+ NodeCache.addToCache(peer, this);
36
36
  }
37
37
 
38
38
  public get originalPeer(): KNativePointer {
39
- const result = global.generatedEs2panda._AstNodeOriginalNodeConst(global.context, this.peer)
39
+ const result = global.generatedEs2panda._AstNodeOriginalNodeConst(global.context, this.peer);
40
40
  if (result === nullptr) {
41
- this.originalPeer = this.peer
42
- return this.peer
41
+ this.originalPeer = this.peer;
42
+ return this.peer;
43
43
  }
44
- return result
44
+ return result;
45
45
  }
46
46
 
47
47
  public set originalPeer(peer: KNativePointer) {
48
- global.generatedEs2panda._AstNodeSetOriginalNode(global.context, this.peer, peer)
48
+ global.generatedEs2panda._AstNodeSetOriginalNode(global.context, this.peer, peer);
49
49
  }
50
50
 
51
51
  public get original(): this {
52
- return unpackNonNullableNode(this.originalPeer)
52
+ return unpackNonNullableNode(this.originalPeer);
53
53
  }
54
54
 
55
55
  public getChildren(): readonly AstNode[] {
56
- return unpackNodeArray(global.es2panda._AstNodeChildren(global.context, this.peer))
56
+ return unpackNodeArray(global.es2panda._AstNodeChildren(global.context, this.peer));
57
57
  }
58
58
 
59
59
  public getSubtree(): readonly AstNode[] {
60
60
  return this.getChildren().reduce(
61
61
  (prev: readonly AstNode[], curr) => {
62
- return prev.concat(curr.getSubtree())
62
+ return prev.concat(curr.getSubtree());
63
63
  },
64
64
  [this]
65
- )
65
+ );
66
66
  }
67
67
 
68
68
  public updateModifiers(modifierFlags: KInt | undefined): this {
69
- global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags)
70
- global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, modifierFlags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE)
71
- return this
69
+ global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags);
70
+ global.generatedEs2panda._AstNodeAddModifier(
71
+ global.context,
72
+ this.peer,
73
+ modifierFlags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE
74
+ );
75
+ return this;
72
76
  }
73
77
 
74
78
  public dump(indentation: number = 0): string {
75
- const children = this.getChildren()
76
- .map((it) => it.dump(indentation + 1))
77
- const msg =
78
- `${indentation}_`
79
- + ` <mods: ${this.modifierFlags}>`
80
- + this.dumpMessage()
81
- return "> " + " ".repeat(4 * indentation) + msg + "\n" + children.join("")
79
+ const children = this.getChildren().map((it) => it.dump(indentation + 1));
80
+ const msg = `${indentation}_` + ` <mods: ${this.modifierFlags}>` + this.dumpMessage();
81
+ return '> ' + ' '.repeat(4 * indentation) + msg + '\n' + children.join('');
82
82
  }
83
83
 
84
84
  protected dumpMessage(): string {
85
- return ``
85
+ return ``;
86
86
  }
87
87
 
88
88
  public dumpJson(): string {
89
- return unpackString(global.generatedEs2panda._AstNodeDumpJSONConst(global.context, this.peer))
89
+ return unpackString(global.generatedEs2panda._AstNodeDumpJSONConst(global.context, this.peer));
90
90
  }
91
91
 
92
92
  public dumpSrc(): string {
93
- return unpackString(global.generatedEs2panda._AstNodeDumpEtsSrcConst(global.context, this.peer))
93
+ return unpackString(global.generatedEs2panda._AstNodeDumpEtsSrcConst(global.context, this.peer));
94
94
  }
95
95
 
96
96
  public dumpModifiers(): string {
97
- return unpackString(global.es2panda._AstNodeDumpModifiers(global.context, this.peer))
97
+ return unpackString(global.es2panda._AstNodeDumpModifiers(global.context, this.peer));
98
98
  }
99
99
 
100
- // public clone(): this {
101
- // return unpackNonNullableNode(global.generatedEs2panda._AstNodeClone(global.context, this.peer, this.parent.peer));
102
- // }
103
-
104
- // public get parent(): AstNode {
105
- // const parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer)
106
- // if (parent === nullptr) {
107
- // throwError(`no parent`)
108
- // }
109
- // return unpackNonNullableNode(parent)
110
- // }
111
-
112
- // public set parent(node: AstNode) {
113
- // global.generatedEs2panda._AstNodeSetParent(global.context, this.peer, node.peer)
114
- // }
115
-
116
100
  public clone(): this {
117
101
  const clonedNode = unpackNonNullableNode(
118
102
  global.generatedEs2panda._AstNodeClone(global.context, this.peer, this.parent?.peer ?? nullptr)
@@ -120,7 +104,7 @@ export abstract class AstNode extends ArktsObject {
120
104
  clonedNode.parent = undefined;
121
105
  return clonedNode as this;
122
106
  }
123
-
107
+
124
108
  public get parent(): AstNode | undefined {
125
109
  const parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer);
126
110
  return unpackNode(parent);
@@ -131,36 +115,40 @@ export abstract class AstNode extends ArktsObject {
131
115
  }
132
116
 
133
117
  public get modifierFlags(): Es2pandaModifierFlags {
134
- return global.generatedEs2panda._AstNodeModifiers(global.context, this.peer)
118
+ return global.generatedEs2panda._AstNodeModifiers(global.context, this.peer);
135
119
  }
136
120
 
137
121
  public set modifierFlags(flags: KInt | undefined) {
138
- global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags)
139
- global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE)
122
+ global.generatedEs2panda._AstNodeClearModifier(global.context, this.peer, allFlags);
123
+ global.generatedEs2panda._AstNodeAddModifier(
124
+ global.context,
125
+ this.peer,
126
+ flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE
127
+ );
140
128
  }
141
-
129
+
142
130
  /** @deprecated Use {@link modifierFlags} instead */
143
131
  public get modifiers(): KInt {
144
- return this.modifierFlags
132
+ return this.modifierFlags;
145
133
  }
146
134
 
147
135
  /** @deprecated Use {@link modifierFlags} instead */
148
136
  public set modifiers(flags: KInt | undefined) {
149
- this.modifierFlags = flags
137
+ this.modifierFlags = flags;
150
138
  }
151
139
 
152
140
  public setChildrenParentPtr(): void {
153
141
  if (this.peer === nullptr) {
154
- throwError('setChildrenParentPtr called on NULLPTR')
142
+ throwError('setChildrenParentPtr called on NULLPTR');
155
143
  }
156
- global.es2panda._AstNodeSetChildrenParentPtr(global.context, this.peer)
144
+ global.es2panda._AstNodeSetChildrenParentPtr(global.context, this.peer);
157
145
  }
158
146
 
159
147
  public override onUpdate(original: AstNode): void {
160
148
  // Improve: Update modifiers only for specific AST nodes in the generated factory code
161
- this.modifierFlags = original.modifierFlags
149
+ this.modifierFlags = original.modifierFlags;
162
150
 
163
- global.es2panda._AstNodeOnUpdate(global.context, this.peer, original.peer)
151
+ global.es2panda._AstNodeOnUpdate(global.context, this.peer, original.peer);
164
152
  }
165
153
 
166
154
  public get isExport(): boolean {
@@ -174,7 +162,7 @@ export abstract class AstNode extends ArktsObject {
174
162
  public get isStatic(): boolean {
175
163
  return global.generatedEs2panda._AstNodeIsStaticConst(global.context, this.peer);
176
164
  }
177
-
165
+
178
166
  public get startPosition(): SourcePosition {
179
167
  return new SourcePosition(global.generatedEs2panda._AstNodeStartConst(global.context, this.peer));
180
168
  }
@@ -13,46 +13,40 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { ArktsObject } from "./ArktsObject"
17
- import { global } from "../static/global"
18
- import { passStringArray } from "../utilities/private"
19
- import { KNativePointer, nullptr } from "@koalaui/interop"
20
- import { Es2pandaCompilationMode } from "../../generated/Es2pandaEnums"
16
+ import { ArktsObject } from './ArktsObject';
17
+ import { global } from '../static/global';
18
+ import { passStringArray } from '../utilities/private';
19
+ import { KNativePointer, nullptr } from '@koalaui/interop';
20
+ import { Es2pandaCompilationMode } from '../../../generated/Es2pandaEnums';
21
21
 
22
22
  export class Config extends ArktsObject {
23
23
  constructor(peer: KNativePointer) {
24
- super(peer)
24
+ super(peer);
25
25
  // Improve: wait for getter from api
26
- this.path = ``
26
+ this.path = ``;
27
27
  }
28
28
 
29
- static create(
30
- input: readonly string[]
31
- ): Config {
32
- return new Config(
33
- global.es2panda._CreateConfig(input.length, passStringArray(input))
34
- )
29
+ static create(input: readonly string[]): Config {
30
+ return new Config(global.es2panda._CreateConfig(input.length, passStringArray(input)));
35
31
  }
36
32
 
37
33
  static createDefault(): Config {
38
34
  if (global.configIsInitialized()) {
39
- console.warn(`Config already initialized`)
40
- return new Config(
41
- global.config
42
- )
35
+ console.warn(`Config already initialized`);
36
+ return new Config(global.config);
43
37
  }
44
38
  return new Config(
45
39
  global.es2panda._CreateConfig(
46
40
  4,
47
- passStringArray(["", "--arktsconfig", "./arktsconfig.json", global.filePath])
41
+ passStringArray(['', '--arktsconfig', './arktsconfig.json', global.filePath])
48
42
  )
49
- )
43
+ );
50
44
  }
51
45
 
52
46
  destroy() {
53
- if (this.peer != nullptr) {
54
- global.es2panda._DestroyConfig(this.peer)
55
- this.peer = nullptr
47
+ if (this.peer !== nullptr) {
48
+ global.es2panda._DestroyConfig(this.peer);
49
+ this.peer = nullptr;
56
50
  }
57
51
  }
58
52
 
@@ -60,6 +54,5 @@ export class Config extends ArktsObject {
60
54
  return global.es2panda._GetCompilationMode(this.peer);
61
55
  }
62
56
 
63
-
64
- readonly path: string
65
- }
57
+ readonly path: string;
58
+ }
@@ -13,33 +13,29 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { ArktsObject } from "./ArktsObject"
17
- import { Program } from "../../generated"
18
- import { global } from "../static/global"
19
- import { passString, passStringArray } from "../utilities/private"
20
- import { KNativePointer, nullptr, KBoolean } from "@koalaui/interop"
21
- import { Config } from "./Config"
22
- import { filterSource, throwError } from "../../utils"
23
- import { AstNode } from "./AstNode"
16
+ import { ArktsObject } from './ArktsObject';
17
+ import { Program } from '../../../generated';
18
+ import { global } from '../static/global';
19
+ import { passString, passStringArray } from '../utilities/private';
20
+ import { KNativePointer, nullptr, KBoolean } from '@koalaui/interop';
21
+ import { Config } from './Config';
22
+ import { filterSource, throwError } from '../../utils';
23
+ import { AstNode } from './AstNode';
24
24
 
25
25
  export class Context extends ArktsObject {
26
26
  constructor(peer: KNativePointer) {
27
- super(peer)
27
+ super(peer);
28
28
  }
29
29
 
30
30
  static createFromString(source: string): Context {
31
31
  if (!global.configIsInitialized()) {
32
- throw new Error(`Config not initialized`)
32
+ throw new Error(`Config not initialized`);
33
33
  }
34
34
  return new Context(
35
- global.es2panda._CreateContextFromString(
36
- global.config,
37
- passString(source),
38
- passString(global.filePath)
39
- )
40
- )
35
+ global.generatedEs2panda._CreateContextFromString(global.config, passString(source), passString(global.filePath))
36
+ );
41
37
  }
42
-
38
+
43
39
  /** @deprecated Use {@link createCacheFromFile} instead */
44
40
  static createCacheContextFromFile(
45
41
  configPtr: KNativePointer,
@@ -48,47 +44,46 @@ export class Context extends ArktsObject {
48
44
  isExternal: KBoolean
49
45
  ): Context {
50
46
  return new Context(
51
- global.es2panda._CreateCacheContextFromFile(configPtr, passString(fileName), globalContextPtr, isExternal)
47
+ global.generatedEs2panda._CreateCacheContextFromFile(configPtr, passString(fileName), globalContextPtr, isExternal)
52
48
  );
53
49
  }
54
50
 
55
51
  static createFromFile(filePath: string): Context {
56
- return new Context(
57
- global.es2panda._CreateContextFromFile(
58
- global.config,
59
- passString(filePath)
60
- )
61
- )
52
+ return new Context(global.generatedEs2panda._CreateContextFromStringWithHistory(global.config, passString(filePath), passString(filePath)));
53
+ return new Context(global.generatedEs2panda._CreateContextFromFile(global.config, passString(filePath)));
62
54
  }
63
55
 
64
56
  static createCacheFromFile(filePath: string, config: Config, globalContext: GlobalContext, isExternal: boolean) {
65
57
  return new Context(
66
- global.es2panda._CreateCacheContextFromFile(
58
+ global.generatedEs2panda._CreateCacheContextFromFile(
67
59
  config.peer,
68
60
  passString(filePath),
69
61
  globalContext.peer,
70
62
  isExternal
71
63
  )
72
- )
64
+ );
73
65
  }
74
66
 
75
- static createContextGenerateAbcForExternalSourceFiles(
76
- filenames: string[]): Context {
67
+ static createContextGenerateAbcForExternalSourceFiles(filenames: string[]): Context {
77
68
  if (!global.configIsInitialized()) {
78
69
  throwError(`Config not initialized`);
79
70
  }
80
71
  return new Context(
81
- global.es2panda._CreateContextGenerateAbcForExternalSourceFiles(global.config, filenames.length, passStringArray(filenames))
72
+ global.generatedEs2panda._CreateContextGenerateAbcForExternalSourceFiles(
73
+ global.config,
74
+ filenames.length,
75
+ passStringArray(filenames)
76
+ )
82
77
  );
83
78
  }
84
79
 
85
80
  destroy() {
86
- if (this.peer != nullptr) {
87
- global.es2panda._DestroyContext(this.peer)
88
- this.peer = nullptr
81
+ if (this.peer !== nullptr) {
82
+ global.es2panda._DestroyContext(this.peer);
83
+ this.peer = nullptr;
89
84
  }
90
85
  }
91
-
86
+
92
87
  /** @deprecated */
93
88
  static destroyAndRecreate(ast: AstNode): Context {
94
89
  console.log('[TS WRAPPER] DESTROY AND RECREATE');
@@ -105,27 +100,25 @@ export class Context extends ArktsObject {
105
100
  }
106
101
 
107
102
  export class GlobalContext extends ArktsObject {
108
- static create(
109
- config: Config, externalFileList: string[]
110
- ): GlobalContext {
103
+ static create(config: Config, externalFileList: string[]): GlobalContext {
111
104
  return new GlobalContext(
112
- global.es2panda._CreateGlobalContext(
105
+ global.generatedEs2panda._CreateGlobalContext(
113
106
  config.peer,
114
107
  passStringArray(externalFileList),
115
108
  externalFileList.length,
116
109
  false
117
110
  )
118
- )
111
+ );
119
112
  }
120
113
 
121
114
  constructor(peer: KNativePointer) {
122
- super(peer)
115
+ super(peer);
123
116
  }
124
117
 
125
118
  destroy() {
126
- if (this.peer != nullptr) {
127
- global.es2panda._DestroyGlobalContext(this.peer)
128
- this.peer = nullptr
119
+ if (this.peer !== nullptr) {
120
+ global.generatedEs2panda._DestroyGlobalContext(this.peer);
121
+ this.peer = nullptr;
129
122
  }
130
123
  }
131
124
  }
@@ -13,29 +13,29 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { global } from "../static/global"
17
- import { acceptNativeObjectArrayResult, unpackString } from "../utilities/private"
18
- import { KNativePointer, nullptr } from "@koalaui/interop"
19
- import { Program } from "../../generated"
20
- import { ArktsObject } from "./ArktsObject"
16
+ import { global } from '../static/global';
17
+ import { acceptNativeObjectArrayResult, unpackString } from '../utilities/private';
18
+ import { KNativePointer, nullptr } from '@koalaui/interop';
19
+ import { Program } from '../../../generated';
20
+ import { ArktsObject } from './ArktsObject';
21
21
 
22
22
  export class ExternalSource extends ArktsObject {
23
23
  constructor(peer: KNativePointer) {
24
- super(peer)
24
+ super(peer);
25
25
  }
26
26
 
27
27
  getName(): string {
28
- return unpackString(global.es2panda._ExternalSourceName(this.peer))
28
+ return unpackString(global.es2panda._ExternalSourceName(this.peer));
29
29
  }
30
30
 
31
31
  get programs(): Program[] {
32
32
  return acceptNativeObjectArrayResult<Program>(
33
33
  global.es2panda._ExternalSourcePrograms(this.peer),
34
34
  (instance: KNativePointer) => new Program(instance)
35
- )
35
+ );
36
36
  }
37
37
 
38
38
  static instantiate(peer: KNativePointer) {
39
- return new ExternalSource(peer)
39
+ return new ExternalSource(peer);
40
40
  }
41
41
  }
@@ -13,18 +13,16 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { ArktsObject } from "./ArktsObject"
17
- import { global } from "../static/global"
18
- import { KNativePointer } from "@koalaui/interop"
16
+ import { ArktsObject } from './ArktsObject';
17
+ import { global } from '../static/global';
18
+ import { KNativePointer } from '@koalaui/interop';
19
19
 
20
20
  export class ImportPathManager extends ArktsObject {
21
21
  constructor(peer: KNativePointer) {
22
- super(peer)
22
+ super(peer);
23
23
  }
24
24
 
25
25
  static create(): ImportPathManager {
26
- return new ImportPathManager(
27
- global.es2panda._ETSParserGetImportPathManager(global.context)
28
- );
26
+ return new ImportPathManager(global.es2panda._ETSParserGetImportPathManager(global.context));
29
27
  }
30
- }
28
+ }
@@ -13,22 +13,22 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
- import { KNativePointer } from "@koalaui/interop"
17
- import { ArktsObject } from "./ArktsObject"
18
- import { global } from "../static/global"
19
- import { Config } from "./Config"
20
- import { ArkTsConfig } from "../../generated"
16
+ import { KNativePointer } from '@koalaui/interop';
17
+ import { ArktsObject } from './ArktsObject';
18
+ import { global } from '../static/global';
19
+ import { Config } from './Config';
20
+ import { ArkTsConfig } from '../../../generated';
21
21
 
22
22
  export class Options extends ArktsObject {
23
23
  constructor(peer: KNativePointer) {
24
- super(peer)
24
+ super(peer);
25
25
  }
26
26
 
27
27
  static createOptions(config: Config) {
28
- return new Options(global.es2panda._ConfigGetOptions(config.peer))
28
+ return new Options(global.es2panda._ConfigGetOptions(config.peer));
29
29
  }
30
30
 
31
31
  getArkTsConfig(): ArkTsConfig {
32
- return new ArkTsConfig(global.es2panda._OptionsArkTsConfig(global.context, this.peer))
32
+ return new ArkTsConfig(global.es2panda._OptionsArkTsConfig(global.context, this.peer));
33
33
  }
34
34
  }