@idlizer/arktscgen 2.1.9-arktscgen-8 → 2.1.10-arktscgen-2

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 (268) hide show
  1. package/build/libarkts-copy/generator/options.json5 +141 -3
  2. package/build/libarkts-copy/native/mingw.cross +13 -0
  3. package/build/libarkts-copy/native/src/bridges.cc +101 -232
  4. package/build/libarkts-copy/native/src/common.cc +55 -10
  5. package/build/libarkts-copy/native/src/common.h +1 -0
  6. package/build/libarkts-copy/native/src/generated/bridges.cc +1669 -44
  7. package/build/libarkts-copy/package.json +14 -17
  8. package/build/libarkts-copy/src/Es2pandaNativeModule.ts +39 -50
  9. package/build/libarkts-copy/src/arkts-api/ImportStorage.ts +1 -1
  10. package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +6 -5
  11. package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +5 -2
  12. package/build/libarkts-copy/src/arkts-api/node-cache.ts +4 -0
  13. package/build/libarkts-copy/src/arkts-api/node-utilities/ArkTsConfig.ts +7 -6
  14. package/build/libarkts-copy/src/arkts-api/node-utilities/NumberLiteral.ts +3 -1
  15. package/build/libarkts-copy/src/arkts-api/node-utilities/ObjectExpression.ts +25 -6
  16. package/build/libarkts-copy/src/{wrapper-compat/arkts-api/peers/ImportPathManager.ts → arkts-api/node-utilities/OpaqueTypeNode.ts} +8 -17
  17. package/build/libarkts-copy/src/arkts-api/node-utilities/Program.ts +11 -21
  18. package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +7 -0
  19. package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +10 -8
  20. package/build/libarkts-copy/src/arkts-api/peers/Config.ts +6 -0
  21. package/build/libarkts-copy/src/arkts-api/peers/Context.ts +3 -15
  22. package/build/libarkts-copy/src/arkts-api/peers/ExternalSource.ts +4 -0
  23. package/build/libarkts-copy/src/arkts-api/plugins.ts +3 -4
  24. package/build/libarkts-copy/src/arkts-api/static/global.ts +29 -1
  25. package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +68 -5
  26. package/build/libarkts-copy/src/arkts-api/utilities/private.ts +3 -3
  27. package/build/libarkts-copy/src/arkts-api/utilities/public.ts +74 -42
  28. package/build/libarkts-copy/src/arkts-api/visitor.ts +965 -364
  29. package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +98 -91
  30. package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +610 -13
  31. package/build/libarkts-copy/src/generated/factory.ts +2 -2
  32. package/build/libarkts-copy/src/generated/index.ts +3 -2
  33. package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +3 -2
  34. package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +3 -2
  35. package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +3 -2
  36. package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +6 -7
  37. package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +6 -7
  38. package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +4 -0
  39. package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +6 -7
  40. package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +6 -7
  41. package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +5 -6
  42. package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +6 -7
  43. package/build/libarkts-copy/src/generated/peers/AstDumper.ts +3 -0
  44. package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +5 -6
  45. package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +5 -6
  46. package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +5 -6
  47. package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +5 -6
  48. package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +5 -6
  49. package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +5 -6
  50. package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +6 -7
  51. package/build/libarkts-copy/src/generated/peers/CallExpression.ts +5 -6
  52. package/build/libarkts-copy/src/generated/peers/CatchClause.ts +6 -7
  53. package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +5 -6
  54. package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +5 -6
  55. package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +7 -8
  56. package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +9 -8
  57. package/build/libarkts-copy/src/generated/peers/ClassElement.ts +3 -2
  58. package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +5 -6
  59. package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +15 -8
  60. package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +5 -6
  61. package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +5 -6
  62. package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +6 -7
  63. package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +5 -6
  64. package/build/libarkts-copy/src/generated/peers/Decorator.ts +5 -6
  65. package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +5 -6
  66. package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +5 -6
  67. package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +5 -6
  68. package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +5 -6
  69. package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +5 -6
  70. package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +7 -8
  71. package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +5 -6
  72. package/build/libarkts-copy/src/generated/peers/ETSModule.ts +5 -6
  73. package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +5 -6
  74. package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +6 -7
  75. package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +6 -7
  76. package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +5 -6
  77. package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +5 -6
  78. package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +7 -8
  79. package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +5 -6
  80. package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +3 -4
  81. package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +5 -6
  82. package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +5 -6
  83. package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +9 -10
  84. package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +5 -6
  85. package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +6 -7
  86. package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +5 -6
  87. package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +5 -6
  88. package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +5 -6
  89. package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +6 -7
  90. package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +5 -6
  91. package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +5 -6
  92. package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +9 -10
  93. package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +5 -6
  94. package/build/libarkts-copy/src/generated/peers/Expression.ts +7 -2
  95. package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +5 -6
  96. package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +5 -6
  97. package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +5 -6
  98. package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +4 -5
  99. package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +6 -7
  100. package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +6 -7
  101. package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +3 -0
  102. package/build/libarkts-copy/src/generated/peers/Identifier.ts +7 -8
  103. package/build/libarkts-copy/src/generated/peers/IfStatement.ts +5 -6
  104. package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +5 -6
  105. package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +5 -6
  106. package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +5 -6
  107. package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +5 -6
  108. package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +5 -6
  109. package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +5 -6
  110. package/build/libarkts-copy/src/generated/peers/Literal.ts +3 -2
  111. package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +3 -2
  112. package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +3 -2
  113. package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +5 -10
  114. package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +5 -6
  115. package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +5 -6
  116. package/build/libarkts-copy/src/generated/peers/NamedType.ts +5 -6
  117. package/build/libarkts-copy/src/generated/peers/NewExpression.ts +5 -6
  118. package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +5 -6
  119. package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +10 -9
  120. package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +5 -6
  121. package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +5 -6
  122. package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +5 -6
  123. package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +5 -6
  124. package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +5 -6
  125. package/build/libarkts-copy/src/generated/peers/Program.ts +2 -0
  126. package/build/libarkts-copy/src/generated/peers/Property.ts +6 -7
  127. package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +5 -6
  128. package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +6 -7
  129. package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +19 -6
  130. package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +5 -6
  131. package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +6 -0
  132. package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +5 -6
  133. package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +3 -0
  134. package/build/libarkts-copy/src/generated/peers/Statement.ts +3 -2
  135. package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +6 -7
  136. package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +5 -6
  137. package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +5 -6
  138. package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +5 -6
  139. package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +5 -6
  140. package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +5 -6
  141. package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +5 -6
  142. package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +5 -6
  143. package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +5 -6
  144. package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +6 -7
  145. package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +5 -6
  146. package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +5 -6
  147. package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +6 -7
  148. package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +6 -7
  149. package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +5 -6
  150. package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +5 -6
  151. package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +5 -6
  152. package/build/libarkts-copy/src/generated/peers/TSImportType.ts +5 -6
  153. package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +5 -6
  154. package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +5 -6
  155. package/build/libarkts-copy/src/generated/peers/TSInferType.ts +5 -6
  156. package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +5 -6
  157. package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +5 -6
  158. package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +5 -6
  159. package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +5 -6
  160. package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +5 -6
  161. package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +5 -6
  162. package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +5 -6
  163. package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +5 -6
  164. package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +5 -6
  165. package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +5 -6
  166. package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +5 -6
  167. package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +5 -6
  168. package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +5 -6
  169. package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +5 -6
  170. package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +5 -6
  171. package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +5 -6
  172. package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +5 -6
  173. package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +5 -6
  174. package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +5 -6
  175. package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +5 -6
  176. package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +5 -6
  177. package/build/libarkts-copy/src/generated/peers/TSThisType.ts +5 -6
  178. package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +5 -6
  179. package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +6 -7
  180. package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +5 -6
  181. package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +5 -6
  182. package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +5 -6
  183. package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +6 -7
  184. package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +5 -6
  185. package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +5 -6
  186. package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +5 -6
  187. package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +5 -6
  188. package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +5 -6
  189. package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +5 -6
  190. package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +5 -6
  191. package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +5 -6
  192. package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +5 -6
  193. package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +5 -6
  194. package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +6 -7
  195. package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +5 -6
  196. package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +5 -6
  197. package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +5 -6
  198. package/build/libarkts-copy/src/generated/peers/TryStatement.ts +6 -7
  199. package/build/libarkts-copy/src/generated/peers/TypeNode.ts +3 -2
  200. package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +3 -2
  201. package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +3 -2
  202. package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +5 -6
  203. package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +5 -6
  204. package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +5 -6
  205. package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +5 -6
  206. package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +3 -0
  207. package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +5 -6
  208. package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +6 -7
  209. package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +5 -6
  210. package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +5 -6
  211. package/build/libarkts-copy/src/index.ts +2 -0
  212. package/build/libarkts-copy/src/plugin-utils.ts +21 -4
  213. package/build/libarkts-copy/src/reexport-for-generated.ts +11 -0
  214. package/build/libarkts-copy/src/tracer.ts +172 -0
  215. package/lib/index.js +1523 -611
  216. package/package.json +2 -2
  217. package/build/libarkts-copy/src/arkts-api/peers/SourcePosition.ts +0 -38
  218. package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +0 -45
  219. package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +0 -45
  220. package/build/libarkts-copy/src/wrapper-compat/README.md +0 -20
  221. package/build/libarkts-copy/src/wrapper-compat/arkts-api/class-by-peer.ts +0 -46
  222. package/build/libarkts-copy/src/wrapper-compat/arkts-api/factory/nodeFactory.ts +0 -454
  223. package/build/libarkts-copy/src/wrapper-compat/arkts-api/factory/nodeTests.ts +0 -99
  224. package/build/libarkts-copy/src/wrapper-compat/arkts-api/index.ts +0 -87
  225. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrayExpression.ts +0 -38
  226. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ArrowFunctionExpression.ts +0 -35
  227. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/AssignmentExpression.ts +0 -38
  228. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/BlockStatement.ts +0 -27
  229. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/CallExpression.ts +0 -45
  230. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDeclaration.ts +0 -27
  231. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassDefinition.ts +0 -73
  232. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ClassProperty.ts +0 -51
  233. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSFunctionType.ts +0 -42
  234. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSImportDeclaration.ts +0 -39
  235. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ETSParameterExpression.ts +0 -43
  236. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ExpressionStatement.ts +0 -28
  237. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionDeclaration.ts +0 -37
  238. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/FunctionExpression.ts +0 -28
  239. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/IfStatement.ts +0 -37
  240. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MemberExpression.ts +0 -42
  241. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/MethodDefinition.ts +0 -46
  242. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/NumberLiteral.ts +0 -30
  243. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ObjectExpression.ts +0 -37
  244. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/Property.ts +0 -27
  245. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/ScriptFunction.ts +0 -46
  246. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/StructDeclaration.ts +0 -28
  247. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSInterfaceDeclaration.ts +0 -47
  248. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeAliasDeclaration.ts +0 -40
  249. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TSTypeParameter.ts +0 -36
  250. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/TryStatement.ts +0 -41
  251. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclaration.ts +0 -42
  252. package/build/libarkts-copy/src/wrapper-compat/arkts-api/node-utilities/VariableDeclarator.ts +0 -39
  253. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/AstNode.ts +0 -26
  254. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Diagnostic.ts +0 -39
  255. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticInfo.ts +0 -33
  256. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/DiagnosticKind.ts +0 -33
  257. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/Program.ts +0 -105
  258. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SourceRange.ts +0 -38
  259. package/build/libarkts-copy/src/wrapper-compat/arkts-api/peers/SuggestionInfo.ts +0 -33
  260. package/build/libarkts-copy/src/wrapper-compat/arkts-api/static/global.ts +0 -16
  261. package/build/libarkts-copy/src/wrapper-compat/arkts-api/to-be-generated/MemberExpression.ts +0 -108
  262. package/build/libarkts-copy/src/wrapper-compat/arkts-api/types.ts +0 -906
  263. package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/nativePtrDecoder.ts +0 -69
  264. package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/performance.ts +0 -190
  265. package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/private.ts +0 -198
  266. package/build/libarkts-copy/src/wrapper-compat/arkts-api/utilities/public.ts +0 -325
  267. package/build/libarkts-copy/src/wrapper-compat/arkts-api/visitor.ts +0 -421
  268. package/build/libarkts-copy/src/wrapper-compat/index.ts +0 -20
@@ -23,13 +23,73 @@
23
23
  ],
24
24
  "ignore": {
25
25
  "full": [
26
- "es2panda_Impl",
27
26
  "es2panda_Config",
28
27
  "es2panda_ExternalSource",
29
28
  "es2panda_OverloadInfo",
30
- "es2panda_GlobalContext"
29
+ "es2panda_GlobalContext",
30
+
31
+ // Duplicates of types in ir namespace
32
+ // They will be removed in the fututre.
33
+ 'es2panda_Signature',
34
+ 'es2panda_CheckerContext',
35
+ 'es2panda_Type',
36
+ 'es2panda_TypeRelation',
37
+ 'es2panda_GlobalTypesHolder',
38
+ 'es2panda_Variable',
39
+ 'es2panda_Scope',
40
+ 'es2panda_Path',
41
+ 'es2panda_ResolveResult',
42
+ 'es2panda_RecordTable',
43
+ 'es2panda_BoundContext',
44
+ 'es2panda_ImportPathManager',
45
+ 'es2panda_Options',
46
+ 'es2panda_AstNode',
47
+ 'es2panda_Program',
48
+ 'es2panda_ArkTsConfig',
49
+ 'es2panda_FunctionSignature',
50
+
51
+ 'NodeTransformer',
52
+ 'NodeTraverser',
53
+ 'AstNodeForEachFunction',
54
+ 'ClassBuilder',
55
+ 'ClassInitializerBuilder',
56
+ 'MethodBuilder',
57
+ 'NodePredicate',
58
+ 'PropertyProcessor',
59
+ 'PropertyTraverser',
60
+
61
+ 'checker.*',
62
+ 'varbinder.*',
63
+ 'parser.*',
64
+ 'util.*',
65
+ 'gen.*',
66
+ 'es2panda.*',
67
+ 'ast_verifier.*',
68
+
69
+ 'parser.Program!',
70
+ 'es2panda.ArkTsConfig!',
71
+ // Do not support node type
72
+ //'varbinder.FunctionDecl!',
73
+ //'varbinder.InterfaceDecl!',
74
+ // MemberExpression has checker.ETSFunctionType ExtensionAccessorTypeConst(es2panda_Context context);
75
+ //'checker.ETSFunctionType!',
76
+ //'ir.ETSFunctionType',
77
+
78
+ 'ir.Annotated',
79
+ 'ir.AnnotationAllowed',
80
+ 'ir.Typed',
81
+ 'ir.VectorIterationGuard',
82
+
83
+ 'VoidPtr',
31
84
  ],
32
85
  "partial": [
86
+ {
87
+ interface: "es2panda_Impl",
88
+ methods: [
89
+ "LogSyntaxError", "LogWarning", "LogTypeError", // wrong idl
90
+ "DestroyContext", // cleanup arena (Improve: move this cleanup to another method)
91
+ ],
92
+ },
33
93
  {
34
94
  interface: "MethodDefinition",
35
95
  methods: [
@@ -253,7 +313,16 @@
253
313
  types: ["returnType"]
254
314
  }
255
315
  ]
256
- }
316
+ },
317
+ {
318
+ name: "ClassDeclaration",
319
+ methods: [
320
+ {
321
+ name: "Definition",
322
+ types: ["returnType"]
323
+ }
324
+ ]
325
+ },
257
326
  ],
258
327
  fragments: [
259
328
  {
@@ -281,6 +350,14 @@
281
350
  {
282
351
  interface: "ScriptFunction",
283
352
  methods: [
353
+ {
354
+ name: "getSignaturePointer",
355
+ definition: "extension_ScriptFunctionGetSignaturePointer",
356
+ },
357
+ {
358
+ name: "setSignaturePointer",
359
+ definition: "extension_ScriptFunctionSetSignaturePointer",
360
+ },
284
361
  {
285
362
  name: "getPreferredReturnTypePointer",
286
363
  definition: "extension_ScriptFunctionGetPreferredReturnTypePointer",
@@ -289,8 +366,69 @@
289
366
  name: "setPreferredReturnTypePointer",
290
367
  definition: "extension_ScriptFunctionSetPreferredReturnTypePointer",
291
368
  },
369
+ {
370
+ name: "setParams",
371
+ definition: "extension_ScriptFunctionSetParams",
372
+ },
373
+ ]
374
+ },
375
+ {
376
+ interface: "ClassDefinition",
377
+ methods: [
378
+ {
379
+ name: "setBody",
380
+ definition: "extension_ClassDefinitionSetBody",
381
+ },
292
382
  ]
293
383
  },
384
+ {
385
+ interface: "Expression",
386
+ methods: [
387
+ {
388
+ name: "getPreferredTypePointer",
389
+ definition: "extension_ExpressionGetPreferredTypePointer",
390
+ },
391
+ {
392
+ name: "setPreferredTypePointer",
393
+ definition: "extension_ExpressionSetPreferredTypePointer",
394
+ },
395
+ ]
396
+ },
397
+ {
398
+ interface: "Program",
399
+ methods: [
400
+ {
401
+ name: "getExternalSources",
402
+ definition: "extension_ProgramGetExternalSources",
403
+ },
404
+ ],
405
+ },
406
+ {
407
+ interface: "es2panda_SourcePosition",
408
+ methods: [
409
+ {
410
+ name: "getLine",
411
+ definition: "extension_SourcePositionGetLine",
412
+ },
413
+ {
414
+ name: "getCol",
415
+ definition: "extension_SourcePositionGetCol",
416
+ },
417
+ {
418
+ name: "toString",
419
+ definition: "extension_SourcePositionToString",
420
+ },
421
+ ],
422
+ },
423
+ {
424
+ interface: "NumberLiteral",
425
+ methods: [
426
+ {
427
+ name: "value",
428
+ definition: "extension_NumberLiteralValue",
429
+ },
430
+ ],
431
+ },
294
432
  ],
295
433
  parameters: [
296
434
  {
@@ -1,3 +1,16 @@
1
+ # Copyright (c) 2025 Huawei Device Co., Ltd.
2
+ # Licensed under the Apache License, Version 2.0 (the "License");
3
+ # you may not use this file except in compliance with the License.
4
+ # You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ #
8
+ # Unless required by applicable law or agreed to in writing, software
9
+ # distributed under the License is distributed on an "AS IS" BASIS,
10
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ # See the License for the specific language governing permissions and
12
+ # limitations under the License.
13
+
1
14
  [binaries]
2
15
  c = 'x86_64-w64-mingw32-gcc'
3
16
  cpp = 'x86_64-w64-mingw32-g++'
@@ -19,15 +19,6 @@
19
19
  #include <string>
20
20
  #include <mutex>
21
21
 
22
- KNativePointer impl_AstNodeRecheck(KNativePointer contextPtr, KNativePointer nodePtr)
23
- {
24
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
25
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
26
- GetImpl()->AstNodeRecheck(context, node);
27
- return nullptr;
28
- }
29
- KOALA_INTEROP_2(AstNodeRecheck, KNativePointer, KNativePointer, KNativePointer)
30
-
31
22
  KNativePointer impl_AstNodeRebind(KNativePointer contextPtr, KNativePointer nodePtr)
32
23
  {
33
24
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -57,17 +48,6 @@ KNativePointer impl_AnnotationAllowedAnnotationsConst(KNativePointer contextPtr,
57
48
  }
58
49
  KOALA_INTEROP_3(AnnotationAllowedAnnotationsConst, KNativePointer, KNativePointer, KNativePointer, KNativePointer)
59
50
 
60
- /*
61
- KNativePointer impl_AstNodeVariableConst(KNativePointer contextPtr, KNativePointer nodePtr)
62
- {
63
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
64
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
65
-
66
- return GetImpl()->AstNodeVariableConst(context, node);
67
- }
68
- KOALA_INTEROP_2(AstNodeVariableConst, KNativePointer, KNativePointer, KNativePointer)
69
- */
70
-
71
51
  KNativePointer impl_VariableDeclaration(KNativePointer contextPtr, KNativePointer variablePtr)
72
52
  {
73
53
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -86,15 +66,6 @@ KNativePointer impl_DeclNode(KNativePointer contextPtr, KNativePointer declPtr)
86
66
  }
87
67
  KOALA_INTEROP_2(DeclNode, KNativePointer, KNativePointer, KNativePointer)
88
68
 
89
- /*
90
- KNativePointer impl_AstNodeScopeConst(KNativePointer contextPtr, KNativePointer nodePtr)
91
- {
92
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
93
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
94
- return GetImpl()->AstNodeScopeConst(context, node);
95
- }
96
- KOALA_INTEROP_2(AstNodeScopeConst, KNativePointer, KNativePointer, KNativePointer)
97
- */
98
69
  KNativePointer impl_ScopeSetParent(KNativePointer contextPtr, KNativePointer nodePtr, KNativePointer parentPtr)
99
70
  {
100
71
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -105,16 +76,6 @@ KNativePointer impl_ScopeSetParent(KNativePointer contextPtr, KNativePointer nod
105
76
  }
106
77
  KOALA_INTEROP_3(ScopeSetParent, KNativePointer, KNativePointer, KNativePointer, KNativePointer)
107
78
 
108
- /*
109
- KNativePointer impl_CreateNumberLiteral(KNativePointer contextPtr, KDouble value)
110
- {
111
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
112
-
113
- return GetImpl()->CreateNumberLiteral(context, value);
114
- }
115
- KOALA_INTEROP_2(CreateNumberLiteral, KNativePointer, KNativePointer, KDouble)
116
- */
117
-
118
79
  KNativePointer impl_ETSParserCreateExpression(KNativePointer contextPtr, KStringPtr& sourceCodePtr, KInt flagsT)
119
80
  {
120
81
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -124,42 +85,6 @@ KNativePointer impl_ETSParserCreateExpression(KNativePointer contextPtr, KString
124
85
  }
125
86
  KOALA_INTEROP_3(ETSParserCreateExpression, KNativePointer, KNativePointer, KStringPtr, KInt)
126
87
 
127
- KBoolean impl_IsProgram(KNativePointer contextPtr, KNativePointer nodePtr)
128
- {
129
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
130
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
131
- return GetImpl()->AstNodeIsProgramConst(context, node);
132
- }
133
- KOALA_INTEROP_2(IsProgram, KBoolean, KNativePointer, KNativePointer)
134
-
135
- KBoolean impl_IsBlockStatement(KNativePointer nodePtr)
136
- {
137
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
138
- return GetImpl()->IsBlockStatement(node);
139
- }
140
- KOALA_INTEROP_1(IsBlockStatement, KBoolean, KNativePointer)
141
-
142
- KNativePointer impl_ProceedToState(KNativePointer contextPtr, KInt state)
143
- {
144
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
145
- return GetImpl()->ProceedToState(context, intToState(state));
146
- }
147
- KOALA_INTEROP_2(ProceedToState, KNativePointer, KNativePointer, KInt)
148
-
149
- KNativePointer impl_ContextProgram(KNativePointer contextPtr)
150
- {
151
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
152
- return GetImpl()->ContextProgram(context);
153
- }
154
- KOALA_INTEROP_1(ContextProgram, KNativePointer, KNativePointer)
155
-
156
- KBoolean impl_IsIdentifier(KNativePointer nodePtr)
157
- {
158
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
159
- return GetImpl()->IsIdentifier(node);
160
- }
161
- KOALA_INTEROP_1(IsIdentifier, KBoolean, KNativePointer)
162
-
163
88
  KNativePointer impl_CreateContextFromString(KNativePointer configPtr, KStringPtr& sourcePtr, KStringPtr& filenamePtr)
164
89
  {
165
90
  auto config = reinterpret_cast<es2panda_Config*>(configPtr);
@@ -174,40 +99,6 @@ KNativePointer impl_CreateContextFromFile(KNativePointer configPtr, KStringPtr&
174
99
  }
175
100
  KOALA_INTEROP_2(CreateContextFromFile, KNativePointer, KNativePointer, KStringPtr)
176
101
 
177
- KInt impl_ContextState(KNativePointer contextPtr)
178
- {
179
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
180
-
181
- return static_cast<KInt>(GetImpl()->ContextState(context));
182
- }
183
- KOALA_INTEROP_1(ContextState, KInt, KNativePointer)
184
-
185
- KNativePointer impl_ContextErrorMessage(KNativePointer contextPtr)
186
- {
187
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
188
-
189
- return StageArena::strdup(GetImpl()->ContextErrorMessage(context));
190
- }
191
- KOALA_INTEROP_1(ContextErrorMessage, KNativePointer, KNativePointer)
192
-
193
- KNativePointer impl_GetAllErrorMessages(KNativePointer contextPtr)
194
- {
195
- auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
196
-
197
- return StageArena::strdup(GetImpl()->GetAllErrorMessages(context));
198
- }
199
- KOALA_INTEROP_1(GetAllErrorMessages, KNativePointer, KNativePointer)
200
-
201
- /*
202
- KNativePointer impl_CallExpressionSignature(KNativePointer context, KNativePointer classInstance)
203
- {
204
- const auto _context = reinterpret_cast<es2panda_Context*>(context);
205
- const auto _classInstance = reinterpret_cast<es2panda_AstNode*>(classInstance);
206
- const auto result = GetImpl()->CallExpressionSignature(_context, _classInstance);
207
- return result;
208
- }
209
- KOALA_INTEROP_2(CallExpressionSignature, KNativePointer, KNativePointer, KNativePointer)
210
- */
211
102
  KNativePointer impl_SignatureFunction(KNativePointer context, KNativePointer classInstance)
212
103
  {
213
104
  const auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -217,15 +108,6 @@ KNativePointer impl_SignatureFunction(KNativePointer context, KNativePointer cla
217
108
  }
218
109
  KOALA_INTEROP_2(SignatureFunction, KNativePointer, KNativePointer, KNativePointer)
219
110
 
220
- KNativePointer impl_DeclarationFromIdentifier(KNativePointer context, KNativePointer identifier)
221
- {
222
- const auto _context = reinterpret_cast<es2panda_Context*>(context);
223
- const auto _identifier = reinterpret_cast<es2panda_AstNode*>(identifier);
224
- const auto result = GetImpl()->DeclarationFromIdentifier(_context, _identifier);
225
- return result;
226
- }
227
- KOALA_INTEROP_2(DeclarationFromIdentifier, KNativePointer, KNativePointer, KNativePointer)
228
-
229
111
  static KNativePointer impl_ProgramExternalSources(KNativePointer contextPtr, KNativePointer instancePtr)
230
112
  {
231
113
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -272,27 +154,6 @@ static KNativePointer impl_ExternalSourcePrograms(KNativePointer instance)
272
154
  }
273
155
  KOALA_INTEROP_1(ExternalSourcePrograms, KNativePointer, KNativePointer);
274
156
 
275
- KBoolean impl_IsClassProperty(KNativePointer nodePtr)
276
- {
277
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
278
- return GetImpl()->IsClassProperty(node);
279
- }
280
- KOALA_INTEROP_1(IsClassProperty, KBoolean, KNativePointer)
281
-
282
- KBoolean impl_IsETSUnionType(KNativePointer nodePtr)
283
- {
284
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
285
- return GetImpl()->IsETSUnionType(node);
286
- }
287
- KOALA_INTEROP_1(IsETSUnionType, KBoolean, KNativePointer)
288
-
289
- KBoolean impl_IsETSFunctionType(KNativePointer nodePtr)
290
- {
291
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
292
- return GetImpl()->IsETSFunctionType(node);
293
- }
294
- KOALA_INTEROP_1(IsETSFunctionType, KBoolean, KNativePointer)
295
-
296
157
  KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt importKinds, KNativePointerArray specifiers, KUInt specifiersSequenceLength, KNativePointer source, KNativePointer program, KInt importFlag)
297
158
  {
298
159
  const auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -307,15 +168,6 @@ KNativePointer impl_ETSParserBuildImportDeclaration(KNativePointer context, KInt
307
168
  }
308
169
  KOALA_INTEROP_7(ETSParserBuildImportDeclaration, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt, KNativePointer, KNativePointer, KInt)
309
170
 
310
- void impl_InsertETSImportDeclarationAndParse(KNativePointer context, KNativePointer program, KNativePointer importDeclaration)
311
- {
312
- const auto _context = reinterpret_cast<es2panda_Context*>(context);
313
- const auto _program = reinterpret_cast<es2panda_Program*>(program);
314
- const auto _import = reinterpret_cast<es2panda_AstNode*>(importDeclaration);
315
- GetImpl()->InsertETSImportDeclarationAndParse(_context, _program, _import);
316
- }
317
- KOALA_INTEROP_V3(InsertETSImportDeclarationAndParse, KNativePointer, KNativePointer, KNativePointer)
318
-
319
171
  KNativePointer impl_ETSParserGetImportPathManager(KNativePointer contextPtr)
320
172
  {
321
173
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -323,37 +175,13 @@ KNativePointer impl_ETSParserGetImportPathManager(KNativePointer contextPtr)
323
175
  }
324
176
  KOALA_INTEROP_1(ETSParserGetImportPathManager, KNativePointer, KNativePointer);
325
177
 
326
- KNativePointer impl_CreateSourcePosition(KNativePointer context, KInt index, KInt line)
327
- {
328
- auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
329
- return GetImpl()->CreateSourcePosition(_context_, index, line);
330
- }
331
- KOALA_INTEROP_3(CreateSourcePosition, KNativePointer, KNativePointer, KInt, KInt);
332
-
333
- KInt impl_SourcePositionIndex(KNativePointer context, KNativePointer instance)
334
- {
335
- auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
336
- auto&& _instance_ = reinterpret_cast<es2panda_SourcePosition *>(instance);
337
- return GetImpl()->SourcePositionIndex(_context_, _instance_);
338
- }
339
- KOALA_INTEROP_2(SourcePositionIndex, KInt, KNativePointer, KNativePointer);
340
-
341
- KInt impl_SourcePositionLine(KNativePointer context, KNativePointer instance)
178
+ KInt impl_SourcePositionCol(KNativePointer context, KNativePointer instance)
342
179
  {
343
180
  auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
344
181
  auto&& _instance_ = reinterpret_cast<es2panda_SourcePosition *>(instance);
345
- return GetImpl()->SourcePositionLine(_context_, _instance_);
182
+ return GetImpl()->SourcePositionCol(_context_, _instance_);
346
183
  }
347
- KOALA_INTEROP_2(SourcePositionLine, KInt, KNativePointer, KNativePointer);
348
-
349
- KNativePointer impl_CreateSourceRange(KNativePointer context, KNativePointer start, KNativePointer end)
350
- {
351
- auto&& _context_ = reinterpret_cast<es2panda_Context *>(context);
352
- auto&& _start_ = reinterpret_cast<es2panda_SourcePosition *>(start);
353
- auto&& _end_ = reinterpret_cast<es2panda_SourcePosition *>(end);
354
- return GetImpl()->CreateSourceRange(_context_, _start_, _end_);
355
- }
356
- KOALA_INTEROP_3(CreateSourceRange, KNativePointer, KNativePointer, KNativePointer, KNativePointer);
184
+ KOALA_INTEROP_2(SourcePositionCol, KInt, KNativePointer, KNativePointer);
357
185
 
358
186
  KNativePointer impl_ConfigGetOptions(KNativePointer config)
359
187
  {
@@ -405,6 +233,40 @@ KOALA_INTEROP_V1(DestroyGlobalContext, KNativePointer)
405
233
  // All these "Checker_" bridges are related to checker namespace in es2panda, so work with them carefully
406
234
  // Checker.Type does reset on recheck, so modifying them makes no sence
407
235
  // It seems that compiler does not provide API to convert Checker.Type to ir.Type
236
+ KNativePointer impl_Checker_CreateOpaqueTypeNode(KNativePointer context, KNativePointer type)
237
+ {
238
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
239
+ auto _type = reinterpret_cast<es2panda_Type*>(type);
240
+ return GetImpl()->CreateOpaqueTypeNode(_context, _type);
241
+ }
242
+ KOALA_INTEROP_2(Checker_CreateOpaqueTypeNode, KNativePointer, KNativePointer, KNativePointer)
243
+
244
+ KNativePointer impl_Checker_ScriptFunctionSignature(KNativePointer context, KNativePointer node)
245
+ {
246
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
247
+ auto _node = reinterpret_cast<es2panda_AstNode*>(node);
248
+ return GetImpl()->ScriptFunctionSignature(_context, _node);
249
+ }
250
+ KOALA_INTEROP_2(Checker_ScriptFunctionSignature, KNativePointer, KNativePointer, KNativePointer)
251
+
252
+ void impl_Checker_ScriptFunctionSetSignature(KNativePointer context, KNativePointer node, KNativePointer signature)
253
+ {
254
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
255
+ auto _node = reinterpret_cast<es2panda_AstNode*>(node);
256
+ auto _signature = reinterpret_cast<es2panda_Signature*>(signature);
257
+ GetImpl()->ScriptFunctionSetSignature(_context, _node, _signature);
258
+ return;
259
+ }
260
+ KOALA_INTEROP_V3(Checker_ScriptFunctionSetSignature, KNativePointer, KNativePointer, KNativePointer)
261
+
262
+ KNativePointer impl_Checker_SignatureReturnType(KNativePointer context, KNativePointer signature)
263
+ {
264
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
265
+ auto _signature = reinterpret_cast<es2panda_Signature*>(signature);
266
+ return GetImpl()->SignatureReturnType(_context, _signature);
267
+ }
268
+ KOALA_INTEROP_2(Checker_SignatureReturnType, KNativePointer, KNativePointer, KNativePointer)
269
+
408
270
  KNativePointer impl_Checker_ScriptFunctionGetPreferredReturnType(KNativePointer context, KNativePointer node)
409
271
  {
410
272
  auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -423,6 +285,24 @@ void impl_Checker_ScriptFunctionSetPreferredReturnType(KNativePointer context, K
423
285
  }
424
286
  KOALA_INTEROP_V3(Checker_ScriptFunctionSetPreferredReturnType, KNativePointer, KNativePointer, KNativePointer)
425
287
 
288
+ KNativePointer impl_Checker_ExpressionGetPreferredType(KNativePointer context, KNativePointer node)
289
+ {
290
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
291
+ auto _node = reinterpret_cast<es2panda_AstNode*>(node);
292
+ return GetImpl()->ExpressionPreferredTypeConst(_context, _node);
293
+ }
294
+ KOALA_INTEROP_2(Checker_ExpressionGetPreferredType, KNativePointer, KNativePointer, KNativePointer)
295
+
296
+ void impl_Checker_ExpressionSetPreferredType(KNativePointer context, KNativePointer node, KNativePointer type)
297
+ {
298
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
299
+ auto _node = reinterpret_cast<es2panda_AstNode*>(node);
300
+ auto _type = reinterpret_cast<es2panda_Type*>(type);
301
+ GetImpl()->ExpressionSetPreferredType(_context, _node, _type);
302
+ return;
303
+ }
304
+ KOALA_INTEROP_V3(Checker_ExpressionSetPreferredType, KNativePointer, KNativePointer, KNativePointer)
305
+
426
306
  KNativePointer impl_Checker_TypeToString(KNativePointer context, KNativePointer type)
427
307
  {
428
308
  auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -432,6 +312,14 @@ KNativePointer impl_Checker_TypeToString(KNativePointer context, KNativePointer
432
312
  }
433
313
  KOALA_INTEROP_2(Checker_TypeToString, KNativePointer, KNativePointer, KNativePointer)
434
314
 
315
+ KNativePointer impl_Checker_TypeClone(KNativePointer context, KNativePointer type)
316
+ {
317
+ auto _context = reinterpret_cast<es2panda_Context*>(context);
318
+ auto _type = reinterpret_cast<es2panda_Type*>(type);
319
+ return GetImpl()->TypeClone(_context, _type);
320
+ }
321
+ KOALA_INTEROP_2(Checker_TypeClone, KNativePointer, KNativePointer, KNativePointer)
322
+
435
323
  KNativePointer impl_Checker_TypeNodeGetType(KNativePointer context, KNativePointer astNode)
436
324
  {
437
325
  auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -486,12 +374,6 @@ KNativePointer impl_ClassVariableDeclaration(KNativePointer context, KNativePoin
486
374
  }
487
375
  KOALA_INTEROP_2(ClassVariableDeclaration, KNativePointer, KNativePointer, KNativePointer)
488
376
 
489
- KBoolean impl_IsMethodDefinition(KNativePointer nodePtr)
490
- {
491
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
492
- return GetImpl()->IsMethodDefinition(node);
493
- }
494
- KOALA_INTEROP_1(IsMethodDefinition, KBoolean, KNativePointer)
495
377
  KNativePointer impl_TSInterfaceBodyBodyPtr(KNativePointer context, KNativePointer receiver)
496
378
  {
497
379
  const auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -512,30 +394,6 @@ KNativePointer impl_AnnotationDeclarationPropertiesPtrConst(KNativePointer conte
512
394
  }
513
395
  KOALA_INTEROP_2(AnnotationDeclarationPropertiesPtrConst, KNativePointer, KNativePointer, KNativePointer);
514
396
 
515
- KNativePointer impl_SourceRangeStart(KNativePointer context, KNativePointer range)
516
- {
517
- const auto _context = reinterpret_cast<es2panda_Context*>(context);
518
- const auto _range = reinterpret_cast<es2panda_SourceRange*>(range);
519
- auto result = GetImpl()->SourceRangeStart(_context, _range);
520
- return result;
521
- }
522
- KOALA_INTEROP_2(SourceRangeStart, KNativePointer, KNativePointer, KNativePointer)
523
-
524
- KNativePointer impl_SourceRangeEnd(KNativePointer context, KNativePointer range) {
525
- const auto _context = reinterpret_cast<es2panda_Context*>(context);
526
- const auto _range = reinterpret_cast<es2panda_SourceRange*>(range);
527
- auto result = GetImpl()->SourceRangeEnd(_context, _range);
528
- return result;
529
- }
530
- KOALA_INTEROP_2(SourceRangeEnd, KNativePointer, KNativePointer, KNativePointer)
531
-
532
- KBoolean impl_IsArrayExpression(KNativePointer nodePtr)
533
- {
534
- auto node = reinterpret_cast<es2panda_AstNode*>(nodePtr);
535
- return GetImpl()->IsArrayExpression(node);
536
- }
537
- KOALA_INTEROP_1(IsArrayExpression, KBoolean, KNativePointer)
538
-
539
397
  KNativePointer impl_ETSParserGetGlobalProgramAbsName(KNativePointer contextPtr)
540
398
  {
541
399
  auto context = reinterpret_cast<es2panda_Context*>(contextPtr);
@@ -553,10 +411,12 @@ KNativePointer impl_CreateDiagnosticKind(KNativePointer context, KStringPtr& mes
553
411
  }
554
412
  KOALA_INTEROP_3(CreateDiagnosticKind, KNativePointer, KNativePointer, KStringPtr, KInt)
555
413
 
556
- KNativePointer impl_CreateDiagnosticInfo(KNativePointer context, KNativePointer kind, KStringArray argsPtr, KInt argc)
414
+ KNativePointer impl_CreateDiagnosticInfo(KNativePointer context, KNativePointer kind, KStringArray argsPtr,
415
+ KInt argc, KNativePointer pos)
557
416
  {
558
417
  const auto _context = reinterpret_cast<es2panda_Context*>(context);
559
418
  const auto _kind = reinterpret_cast<es2panda_DiagnosticKind*>(kind);
419
+ const auto _pos = reinterpret_cast<es2panda_SourcePosition *>(pos);
560
420
  const std::size_t headerLen = 4;
561
421
  const char** _args = new const char*[argc];
562
422
  std::size_t position = headerLen;
@@ -567,15 +427,17 @@ KNativePointer impl_CreateDiagnosticInfo(KNativePointer context, KNativePointer
567
427
  _args[i] = strdup(std::string(reinterpret_cast<const char*>(argsPtr + position), strLen).c_str());
568
428
  position += strLen;
569
429
  }
570
- return GetImpl()->CreateDiagnosticInfo(_context, _kind, _args, argc);
430
+ return GetImpl()->CreateDiagnosticInfo(_context, _kind, _args, argc, _pos);
571
431
  }
572
- KOALA_INTEROP_4(CreateDiagnosticInfo, KNativePointer, KNativePointer, KNativePointer, KStringArray, KInt)
432
+ KOALA_INTEROP_5(CreateDiagnosticInfo, KNativePointer, KNativePointer, KNativePointer,
433
+ KStringArray, KInt, KNativePointer)
573
434
 
574
435
  KNativePointer impl_CreateSuggestionInfo(KNativePointer context, KNativePointer kind, KStringArray argsPtr,
575
- KInt argc, KStringPtr& substitutionCode)
436
+ KInt argc, KStringPtr& substitutionCode, KNativePointer range)
576
437
  {
577
438
  const auto _context = reinterpret_cast<es2panda_Context*>(context);
578
439
  const auto _kind = reinterpret_cast<es2panda_DiagnosticKind *>(kind);
440
+ const auto _range = reinterpret_cast<es2panda_SourceRange *>(range);
579
441
  const std::size_t headerLen = 4;
580
442
  const char** _args = new const char*[argc];
581
443
  std::size_t position = headerLen;
@@ -587,9 +449,9 @@ KNativePointer impl_CreateSuggestionInfo(KNativePointer context, KNativePointer
587
449
  position += strLen;
588
450
  }
589
451
  const auto _substitutionCode = getStringCopy(substitutionCode);
590
- return GetImpl()->CreateSuggestionInfo(_context, _kind, _args, argc, _substitutionCode);
452
+ return GetImpl()->CreateSuggestionInfo(_context, _kind, _args, argc, _substitutionCode, _range);
591
453
  }
592
- KOALA_INTEROP_5(CreateSuggestionInfo, KNativePointer, KNativePointer, KNativePointer, KStringArray, KInt, KStringPtr)
454
+ KOALA_INTEROP_6(CreateSuggestionInfo, KNativePointer, KNativePointer, KNativePointer, KStringArray, KInt, KStringPtr, KNativePointer)
593
455
 
594
456
  void impl_LogDiagnostic(KNativePointer context, KNativePointer kind, KStringArray argvPtr,
595
457
  KInt argc, KNativePointer pos)
@@ -611,24 +473,6 @@ void impl_LogDiagnostic(KNativePointer context, KNativePointer kind, KStringArra
611
473
  }
612
474
  KOALA_INTEROP_V5(LogDiagnostic, KNativePointer, KNativePointer, KStringArray, KInt, KNativePointer)
613
475
 
614
- void impl_LogDiagnosticWithSuggestion(KNativePointer context, KNativePointer diagnosticInfo,
615
- KNativePointer suggestionInfo, KNativePointer range)
616
- {
617
- const auto _context = reinterpret_cast<es2panda_Context*>(context);
618
- const auto _diagnosticInfo = reinterpret_cast<es2panda_DiagnosticInfo*>(diagnosticInfo);
619
- const auto _suggestionInfo = reinterpret_cast<es2panda_SuggestionInfo*>(suggestionInfo);
620
- const auto _range = reinterpret_cast<es2panda_SourceRange*>(range);
621
- GetImpl()->LogDiagnosticWithSuggestion(_context, _diagnosticInfo, _suggestionInfo, _range);
622
- }
623
- KOALA_INTEROP_V4(LogDiagnosticWithSuggestion, KNativePointer, KNativePointer, KNativePointer, KNativePointer)
624
-
625
- KInt impl_GenerateStaticDeclarationsFromContext(KNativePointer contextPtr, KStringPtr &outputPath)
626
- {
627
- auto context = reinterpret_cast<es2panda_Context *>(contextPtr);
628
- return GetImpl()->GenerateStaticDeclarationsFromContext(context, outputPath.data());
629
- }
630
- KOALA_INTEROP_2(GenerateStaticDeclarationsFromContext, KInt, KNativePointer, KStringPtr)
631
-
632
476
  KNativePointer impl_AnnotationUsageIrPropertiesPtrConst(KNativePointer context, KNativePointer receiver)
633
477
  {
634
478
  const auto _context = reinterpret_cast<es2panda_Context*>(context);
@@ -640,12 +484,12 @@ KNativePointer impl_AnnotationUsageIrPropertiesPtrConst(KNativePointer context,
640
484
  KOALA_INTEROP_2(AnnotationUsageIrPropertiesPtrConst, KNativePointer, KNativePointer, KNativePointer);
641
485
 
642
486
  KInt impl_GenerateTsDeclarationsFromContext(KNativePointer contextPtr, KStringPtr &outputDeclEts, KStringPtr &outputEts,
643
- KBoolean exportAll, KBoolean isolated)
487
+ KBoolean exportAll, KBoolean isolated, KStringPtr &recordFile)
644
488
  {
645
489
  auto context = reinterpret_cast<es2panda_Context *>(contextPtr);
646
- return GetImpl()->GenerateTsDeclarationsFromContext(context, outputDeclEts.data(), outputEts.data(), exportAll, isolated );
490
+ return GetImpl()->GenerateTsDeclarationsFromContext(context, outputDeclEts.data(), outputEts.data(), exportAll, isolated, recordFile.data() );
647
491
  }
648
- KOALA_INTEROP_5(GenerateTsDeclarationsFromContext, KInt, KNativePointer, KStringPtr, KStringPtr, KBoolean, KBoolean)
492
+ KOALA_INTEROP_6(GenerateTsDeclarationsFromContext, KInt, KNativePointer, KStringPtr, KStringPtr, KBoolean, KBoolean, KStringPtr)
649
493
 
650
494
  // Improve: simplify
651
495
  KNativePointer impl_CreateContextGenerateAbcForExternalSourceFiles(
@@ -670,3 +514,28 @@ KNativePointer impl_CreateContextGenerateAbcForExternalSourceFiles(
670
514
  config, fileNamesCount, argv);
671
515
  }
672
516
  KOALA_INTEROP_3(CreateContextGenerateAbcForExternalSourceFiles, KNativePointer, KNativePointer, KInt, KStringArray)
517
+
518
+ KInt impl_GetCompilationMode(KNativePointer configPtr)
519
+ {
520
+ auto _config = reinterpret_cast<es2panda_Config *>(configPtr);
521
+ auto _options = const_cast<es2panda_Options *>(GetImpl()->ConfigGetOptions(_config));
522
+ return GetImpl()->OptionsUtilGetCompilationModeConst(nullptr, _options);
523
+ }
524
+ KOALA_INTEROP_1(GetCompilationMode, KInt, KNativePointer);
525
+
526
+ KNativePointer impl_CreateTypeNodeFromTsType(KNativePointer context, KNativePointer nodePtr)
527
+ {
528
+ const auto _context = reinterpret_cast<es2panda_Context*>(context);
529
+ const auto _nodePtr = reinterpret_cast<es2panda_AstNode*>(nodePtr);
530
+ auto _tsType = GetImpl()->TypedTsType(_context, _nodePtr);
531
+ if (_tsType == nullptr) {
532
+ _tsType = GetImpl()->ExpressionTsType(_context, _nodePtr);
533
+ }
534
+ if (_tsType == nullptr) {
535
+ return nullptr;
536
+ }
537
+ const auto _nodeTsType = reinterpret_cast<es2panda_Type*>(_tsType);
538
+ auto _typeAnnotation = GetImpl()->CreateOpaqueTypeNode(_context, _nodeTsType);
539
+ return _typeAnnotation;
540
+ }
541
+ KOALA_INTEROP_2(CreateTypeNodeFromTsType, KNativePointer, KNativePointer, KNativePointer);