@idlizer/arktscgen 2.1.10-arktscgen-2 → 2.1.10-arktscgen-3a

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 (229) hide show
  1. package/build/libarkts-copy/generator/options.json5 +89 -6
  2. package/build/libarkts-copy/native/meson.build +1 -0
  3. package/build/libarkts-copy/native/src/bridges.cc +10 -4
  4. package/build/libarkts-copy/native/src/common.cc +0 -12
  5. package/build/libarkts-copy/native/src/generated/bridges.cc +416 -723
  6. package/build/libarkts-copy/native/src/memoryTracker.cc +178 -0
  7. package/build/libarkts-copy/native/src/memoryTracker.h +52 -0
  8. package/build/libarkts-copy/package.json +8 -8
  9. package/build/libarkts-copy/src/Es2pandaNativeModule.ts +14 -2
  10. package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +2 -2
  11. package/build/libarkts-copy/src/arkts-api/index.ts +2 -1
  12. package/build/libarkts-copy/src/arkts-api/node-utilities/ScriptFunction.ts +1 -1
  13. package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +4 -1
  14. package/{templates/node-map.ts → build/libarkts-copy/src/arkts-api/peers/DiagnosticKind.ts} +8 -19
  15. package/build/libarkts-copy/src/arkts-api/utilities/extensions.ts +26 -9
  16. package/build/libarkts-copy/src/arkts-api/utilities/performance.ts +309 -0
  17. package/build/libarkts-copy/src/arkts-api/utilities/private.ts +7 -21
  18. package/build/libarkts-copy/src/arkts-api/utilities/public.ts +61 -7
  19. package/build/libarkts-copy/src/arkts-api/visitor.ts +21 -14
  20. package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +1 -0
  21. package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +88 -172
  22. package/build/libarkts-copy/src/generated/factory.ts +2 -3
  23. package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +0 -1
  24. package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +0 -1
  25. package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +0 -1
  26. package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +11 -13
  27. package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +1 -2
  28. package/build/libarkts-copy/src/generated/peers/ArkTsConfig.ts +3 -1
  29. package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +0 -5
  30. package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +12 -14
  31. package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +0 -1
  32. package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +0 -1
  33. package/build/libarkts-copy/src/generated/peers/AstDumper.ts +0 -1
  34. package/build/libarkts-copy/src/generated/peers/AstVerifier.ts +0 -1
  35. package/build/libarkts-copy/src/generated/peers/AstVisitor.ts +0 -1
  36. package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +0 -1
  37. package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +0 -1
  38. package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +0 -1
  39. package/build/libarkts-copy/src/generated/peers/BindingProps.ts +0 -1
  40. package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +0 -1
  41. package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +0 -1
  42. package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +0 -1
  43. package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +1 -2
  44. package/build/libarkts-copy/src/generated/peers/CallExpression.ts +6 -2
  45. package/build/libarkts-copy/src/generated/peers/CatchClause.ts +0 -1
  46. package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +0 -1
  47. package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +0 -1
  48. package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +1 -24
  49. package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +26 -20
  50. package/build/libarkts-copy/src/generated/peers/ClassElement.ts +2 -30
  51. package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +1 -2
  52. package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +10 -12
  53. package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +1 -2
  54. package/build/libarkts-copy/src/generated/peers/CodeGen.ts +0 -1
  55. package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +0 -1
  56. package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +1 -2
  57. package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +0 -1
  58. package/build/libarkts-copy/src/generated/peers/Declaration.ts +0 -1
  59. package/build/libarkts-copy/src/generated/peers/Decorator.ts +0 -1
  60. package/build/libarkts-copy/src/generated/peers/DiagnosticInfo.ts +0 -1
  61. package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +0 -1
  62. package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +0 -1
  63. package/build/libarkts-copy/src/generated/peers/DynamicImportData.ts +0 -1
  64. package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +0 -1
  65. package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +9 -3
  66. package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +0 -1
  67. package/build/libarkts-copy/src/generated/peers/ETSIntrinsicNode.ts +0 -1
  68. package/build/libarkts-copy/src/generated/peers/ETSKeyofType.ts +0 -1
  69. package/build/libarkts-copy/src/generated/peers/ETSModule.ts +12 -14
  70. package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +0 -1
  71. package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +0 -1
  72. package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +0 -1
  73. package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +0 -1
  74. package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +0 -1
  75. package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +13 -15
  76. package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +0 -1
  77. package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +1 -2
  78. package/build/libarkts-copy/src/generated/peers/ETSStringLiteralType.ts +0 -1
  79. package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +0 -1
  80. package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +0 -1
  81. package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +2 -3
  82. package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +3 -4
  83. package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +0 -1
  84. package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +0 -1
  85. package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +1 -2
  86. package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +0 -1
  87. package/build/libarkts-copy/src/generated/peers/ErrorLogger.ts +0 -1
  88. package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +2 -3
  89. package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +0 -1
  90. package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +2 -3
  91. package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +2 -3
  92. package/build/libarkts-copy/src/generated/peers/Expression.ts +0 -1
  93. package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +0 -1
  94. package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +0 -1
  95. package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +0 -1
  96. package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +0 -1
  97. package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +10 -16
  98. package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +2 -3
  99. package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +2 -2
  100. package/build/libarkts-copy/src/generated/peers/IRNode.ts +0 -1
  101. package/build/libarkts-copy/src/generated/peers/Identifier.ts +0 -10
  102. package/build/libarkts-copy/src/generated/peers/IfStatement.ts +0 -1
  103. package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +1 -2
  104. package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +1 -2
  105. package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +0 -1
  106. package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +1 -2
  107. package/build/libarkts-copy/src/generated/peers/ImportSource.ts +0 -1
  108. package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +2 -3
  109. package/build/libarkts-copy/src/generated/peers/IndexInfo.ts +0 -1
  110. package/build/libarkts-copy/src/generated/peers/LabelPair.ts +0 -1
  111. package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +1 -2
  112. package/build/libarkts-copy/src/generated/peers/Literal.ts +0 -1
  113. package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +0 -1
  114. package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +0 -1
  115. package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +0 -1
  116. package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +0 -1
  117. package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +5 -6
  118. package/build/libarkts-copy/src/generated/peers/NamedType.ts +2 -3
  119. package/build/libarkts-copy/src/generated/peers/NewExpression.ts +0 -1
  120. package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +0 -1
  121. package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +0 -1
  122. package/build/libarkts-copy/src/generated/peers/ObjectDescriptor.ts +0 -1
  123. package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +0 -5
  124. package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +0 -1
  125. package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +0 -1
  126. package/build/libarkts-copy/src/generated/peers/OverloadDeclaration.ts +0 -1
  127. package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +0 -1
  128. package/build/libarkts-copy/src/generated/peers/Program.ts +9 -2
  129. package/build/libarkts-copy/src/generated/peers/Property.ts +0 -1
  130. package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +0 -1
  131. package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +0 -1
  132. package/build/libarkts-copy/src/generated/peers/ScopeFindResult.ts +0 -1
  133. package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +22 -19
  134. package/build/libarkts-copy/src/generated/peers/ScriptFunctionData.ts +0 -1
  135. package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +0 -1
  136. package/build/libarkts-copy/src/generated/peers/SignatureInfo.ts +0 -1
  137. package/build/libarkts-copy/src/generated/peers/SourcePosition.ts +2 -1
  138. package/build/libarkts-copy/src/generated/peers/SourceRange.ts +0 -1
  139. package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +0 -5
  140. package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +0 -1
  141. package/build/libarkts-copy/src/generated/peers/Statement.ts +0 -1
  142. package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +0 -1
  143. package/build/libarkts-copy/src/generated/peers/SuggestionInfo.ts +0 -1
  144. package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +0 -1
  145. package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +0 -1
  146. package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +1 -2
  147. package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +0 -1
  148. package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +0 -1
  149. package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +0 -1
  150. package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +0 -1
  151. package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +0 -1
  152. package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +1 -2
  153. package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +0 -1
  154. package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +1 -2
  155. package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +2 -25
  156. package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +0 -1
  157. package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +0 -1
  158. package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +1 -2
  159. package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +1 -2
  160. package/build/libarkts-copy/src/generated/peers/TSImportType.ts +1 -2
  161. package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +0 -1
  162. package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +0 -1
  163. package/build/libarkts-copy/src/generated/peers/TSInferType.ts +1 -2
  164. package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +0 -1
  165. package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +14 -38
  166. package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +0 -1
  167. package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +0 -1
  168. package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +0 -1
  169. package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +1 -2
  170. package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +1 -2
  171. package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +0 -1
  172. package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +0 -1
  173. package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +0 -1
  174. package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +0 -1
  175. package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +0 -1
  176. package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +0 -1
  177. package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +0 -1
  178. package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +0 -1
  179. package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +0 -1
  180. package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +0 -1
  181. package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +0 -1
  182. package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +2 -3
  183. package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +1 -2
  184. package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +0 -1
  185. package/build/libarkts-copy/src/generated/peers/TSThisType.ts +0 -1
  186. package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +0 -1
  187. package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +26 -40
  188. package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +0 -1
  189. package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +0 -1
  190. package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +0 -1
  191. package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +11 -13
  192. package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +1 -2
  193. package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +0 -1
  194. package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +0 -1
  195. package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +0 -1
  196. package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +2 -3
  197. package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +0 -1
  198. package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +0 -1
  199. package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +0 -1
  200. package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +0 -1
  201. package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +2 -3
  202. package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +0 -1
  203. package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +1 -2
  204. package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +0 -1
  205. package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +0 -1
  206. package/build/libarkts-copy/src/generated/peers/TryStatement.ts +1 -2
  207. package/build/libarkts-copy/src/generated/peers/TypeNode.ts +10 -12
  208. package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +0 -1
  209. package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +0 -1
  210. package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +0 -1
  211. package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +0 -1
  212. package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +0 -1
  213. package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +0 -1
  214. package/build/libarkts-copy/src/generated/peers/VReg.ts +0 -1
  215. package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +0 -1
  216. package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +11 -20
  217. package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +0 -1
  218. package/build/libarkts-copy/src/generated/peers/VerificationContext.ts +0 -1
  219. package/build/libarkts-copy/src/generated/peers/VerifierMessage.ts +0 -1
  220. package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +0 -1
  221. package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +0 -1
  222. package/build/libarkts-copy/src/index.ts +2 -1
  223. package/build/libarkts-copy/src/plugin-utils.ts +0 -10
  224. package/build/libarkts-copy/src/reexport-for-generated.ts +1 -20
  225. package/lib/index.js +115 -38
  226. package/package.json +4 -3
  227. package/templates/factory.ts +0 -1
  228. package/templates/peer.ts +0 -1
  229. package/build/libarkts-copy/src/arkts-api/ChainExpressionFilter.ts +0 -79
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -1208,11 +1207,11 @@ export const factory = {
1208
1207
  return updateNodeByNode(SequenceExpression.createSequenceExpression(sequence), original)
1209
1208
  }
1210
1209
  ,
1211
- createArrowFunctionExpression(_function?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
1210
+ createArrowFunctionExpression(_function: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
1212
1211
  return ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations)
1213
1212
  }
1214
1213
  ,
1215
- updateArrowFunctionExpression(original: ArrowFunctionExpression, _function?: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
1214
+ updateArrowFunctionExpression(original: ArrowFunctionExpression, _function: ScriptFunction, annotations?: readonly AnnotationUsage[]): ArrowFunctionExpression {
1216
1215
  if (isSameNativeObject(_function, original.function) && isSameNativeObject(annotations, original.annotations))
1217
1216
  return original
1218
1217
  return updateNodeByNode(ArrowFunctionExpression.createArrowFunctionExpression(_function, annotations), original)
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -36,6 +35,7 @@ import { AnnotationUsage } from "./AnnotationUsage"
36
35
  import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
37
36
  import { Expression } from "./Expression"
38
37
  import { Identifier } from "./Identifier"
38
+ import { SrcDumper } from "./SrcDumper"
39
39
  import { Statement } from "./Statement"
40
40
 
41
41
  export class AnnotationDeclaration extends Statement {
@@ -104,7 +104,7 @@ export class AnnotationDeclaration extends Statement {
104
104
  return this
105
105
  }
106
106
  get baseName(): Identifier | undefined {
107
- return unpackNode(global.generatedEs2panda._AnnotationDeclarationGetBaseNameConst(global.context, this.peer))
107
+ return unpackNode(global.generatedEs2panda._AnnotationDeclarationGetBaseNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
108
108
  }
109
109
  /** @deprecated */
110
110
  emplaceProperties(properties?: AstNode): this {
@@ -121,9 +121,12 @@ export class AnnotationDeclaration extends Statement {
121
121
  global.generatedEs2panda._AnnotationDeclarationSetValueProperties(global.context, this.peer, passNode(properties), index)
122
122
  return this
123
123
  }
124
+ get hasAnnotations(): boolean {
125
+ return global.generatedEs2panda._AnnotationDeclarationHasAnnotationsConst(global.context, this.peer)
126
+ }
124
127
  /** @deprecated */
125
- emplaceAnnotations(source?: AnnotationUsage): this {
126
- global.generatedEs2panda._AnnotationDeclarationEmplaceAnnotations(global.context, this.peer, passNode(source))
128
+ emplaceAnnotation(source?: AnnotationUsage): this {
129
+ global.generatedEs2panda._AnnotationDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
127
130
  return this
128
131
  }
129
132
  /** @deprecated */
@@ -132,15 +135,15 @@ export class AnnotationDeclaration extends Statement {
132
135
  return this
133
136
  }
134
137
  /** @deprecated */
135
- setValueAnnotations(source: AnnotationUsage | undefined, index: number): this {
136
- global.generatedEs2panda._AnnotationDeclarationSetValueAnnotations(global.context, this.peer, passNode(source), index)
138
+ dumpAnnotations(dumper?: SrcDumper): this {
139
+ global.generatedEs2panda._AnnotationDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
137
140
  return this
138
141
  }
139
142
  get annotationsForUpdate(): readonly AnnotationUsage[] {
140
- return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotationsForUpdate(global.context, this.peer))
143
+ return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
141
144
  }
142
145
  get annotations(): readonly AnnotationUsage[] {
143
- return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotations(global.context, this.peer))
146
+ return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
144
147
  }
145
148
  /** @deprecated */
146
149
  setAnnotations(annotationList: readonly AnnotationUsage[]): this {
@@ -152,11 +155,6 @@ export class AnnotationDeclaration extends Statement {
152
155
  global.generatedEs2panda._AnnotationDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
153
156
  return this
154
157
  }
155
- /** @deprecated */
156
- addAnnotations(annotations?: AnnotationUsage): this {
157
- global.generatedEs2panda._AnnotationDeclarationAddAnnotations(global.context, this.peer, passNode(annotations))
158
- return this
159
- }
160
158
  protected readonly brandAnnotationDeclaration: undefined
161
159
  }
162
160
  export function isAnnotationDeclaration(node: object | undefined): node is AnnotationDeclaration {
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -73,7 +72,7 @@ export class AnnotationUsage extends Statement {
73
72
  return this
74
73
  }
75
74
  get baseName(): Identifier | undefined {
76
- return unpackNode(global.generatedEs2panda._AnnotationUsageGetBaseNameConst(global.context, this.peer))
75
+ return unpackNode(global.generatedEs2panda._AnnotationUsageGetBaseNameConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
77
76
  }
78
77
  protected readonly brandAnnotationUsage: undefined
79
78
  }
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -61,6 +60,9 @@ export class ArkTsConfig extends ArktsObject {
61
60
  get outDir(): string {
62
61
  return unpackString(global.generatedEs2panda._ArkTsConfigOutDirConst(global.context, this.peer))
63
62
  }
63
+ get cacheDir(): string {
64
+ return unpackString(global.generatedEs2panda._ArkTsConfigCacheDirConst(global.context, this.peer))
65
+ }
64
66
  get useUrl(): boolean {
65
67
  return global.generatedEs2panda._ArkTsConfigUseUrlConst(global.context, this.peer)
66
68
  }
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -33,7 +32,6 @@ import {
33
32
  } from "../../reexport-for-generated"
34
33
 
35
34
  import { AnnotatedExpression } from "./AnnotatedExpression"
36
- import { Decorator } from "./Decorator"
37
35
  import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
38
36
  import { Expression } from "./Expression"
39
37
  import { TypeNode } from "./TypeNode"
@@ -82,9 +80,6 @@ export class ArrayExpression extends AnnotatedExpression {
82
80
  global.generatedEs2panda._ArrayExpressionSetOptional(global.context, this.peer, optional_arg)
83
81
  return this
84
82
  }
85
- get decorators(): readonly Decorator[] {
86
- return unpackNodeArray(global.generatedEs2panda._ArrayExpressionDecoratorsConst(global.context, this.peer))
87
- }
88
83
  /** @deprecated */
89
84
  clearPreferredType(): this {
90
85
  global.generatedEs2panda._ArrayExpressionClearPreferredType(global.context, this.peer)
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -36,6 +35,7 @@ import { AnnotationUsage } from "./AnnotationUsage"
36
35
  import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
37
36
  import { Expression } from "./Expression"
38
37
  import { ScriptFunction } from "./ScriptFunction"
38
+ import { SrcDumper } from "./SrcDumper"
39
39
  import { TypeNode } from "./TypeNode"
40
40
 
41
41
  export class ArrowFunctionExpression extends Expression {
@@ -69,15 +69,18 @@ export class ArrowFunctionExpression extends Expression {
69
69
  result.setChildrenParentPtr()
70
70
  return result
71
71
  }
72
- get function(): ScriptFunction | undefined {
73
- return unpackNode(global.generatedEs2panda._ArrowFunctionExpressionFunction(global.context, this.peer))
72
+ get function(): ScriptFunction {
73
+ return unpackNonNullableNode(global.generatedEs2panda._ArrowFunctionExpressionFunction(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION)
74
74
  }
75
75
  get createTypeAnnotation(): TypeNode | undefined {
76
76
  return unpackNode(global.generatedEs2panda._ArrowFunctionExpressionCreateTypeAnnotation(global.context, this.peer))
77
77
  }
78
+ get hasAnnotations(): boolean {
79
+ return global.generatedEs2panda._ArrowFunctionExpressionHasAnnotationsConst(global.context, this.peer)
80
+ }
78
81
  /** @deprecated */
79
- emplaceAnnotations(source?: AnnotationUsage): this {
80
- global.generatedEs2panda._ArrowFunctionExpressionEmplaceAnnotations(global.context, this.peer, passNode(source))
82
+ emplaceAnnotation(source?: AnnotationUsage): this {
83
+ global.generatedEs2panda._ArrowFunctionExpressionEmplaceAnnotation(global.context, this.peer, passNode(source))
81
84
  return this
82
85
  }
83
86
  /** @deprecated */
@@ -86,15 +89,15 @@ export class ArrowFunctionExpression extends Expression {
86
89
  return this
87
90
  }
88
91
  /** @deprecated */
89
- setValueAnnotations(source: AnnotationUsage | undefined, index: number): this {
90
- global.generatedEs2panda._ArrowFunctionExpressionSetValueAnnotations(global.context, this.peer, passNode(source), index)
92
+ dumpAnnotations(dumper?: SrcDumper): this {
93
+ global.generatedEs2panda._ArrowFunctionExpressionDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
91
94
  return this
92
95
  }
93
96
  get annotationsForUpdate(): readonly AnnotationUsage[] {
94
- return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotationsForUpdate(global.context, this.peer))
97
+ return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
95
98
  }
96
99
  get annotations(): readonly AnnotationUsage[] {
97
- return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotations(global.context, this.peer))
100
+ return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
98
101
  }
99
102
  /** @deprecated */
100
103
  setAnnotations(annotationList: readonly AnnotationUsage[]): this {
@@ -106,11 +109,6 @@ export class ArrowFunctionExpression extends Expression {
106
109
  global.generatedEs2panda._ArrowFunctionExpressionSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
107
110
  return this
108
111
  }
109
- /** @deprecated */
110
- addAnnotations(annotations?: AnnotationUsage): this {
111
- global.generatedEs2panda._ArrowFunctionExpressionAddAnnotations(global.context, this.peer, passNode(annotations))
112
- return this
113
- }
114
112
  protected readonly brandArrowFunctionExpression: undefined
115
113
  }
116
114
  export function isArrowFunctionExpression(node: object | undefined): node is ArrowFunctionExpression {
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -56,7 +55,7 @@ export class BreakStatement extends Statement {
56
55
  return result
57
56
  }
58
57
  get ident(): Identifier | undefined {
59
- return unpackNode(global.generatedEs2panda._BreakStatementIdent(global.context, this.peer))
58
+ return unpackNode(global.generatedEs2panda._BreakStatementIdent(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
60
59
  }
61
60
  get target(): AstNode | undefined {
62
61
  return unpackNode(global.generatedEs2panda._BreakStatementTargetConst(global.context, this.peer))
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -69,11 +68,16 @@ export class CallExpression extends MaybeOptionalExpression {
69
68
  return this
70
69
  }
71
70
  get typeParams(): TSTypeParameterInstantiation | undefined {
72
- return unpackNode(global.generatedEs2panda._CallExpressionTypeParams(global.context, this.peer))
71
+ return unpackNode(global.generatedEs2panda._CallExpressionTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION)
73
72
  }
74
73
  get arguments(): readonly Expression[] {
75
74
  return unpackNodeArray(global.generatedEs2panda._CallExpressionArguments(global.context, this.peer))
76
75
  }
76
+ /** @deprecated */
77
+ setArguments(argumentsList: readonly Expression[]): this {
78
+ global.generatedEs2panda._CallExpressionSetArguments(global.context, this.peer, passNodeArray(argumentsList), argumentsList.length)
79
+ return this
80
+ }
77
81
  get hasTrailingComma(): boolean {
78
82
  return global.generatedEs2panda._CallExpressionHasTrailingCommaConst(global.context, this.peer)
79
83
  }
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -33,7 +32,6 @@ import {
33
32
  } from "../../reexport-for-generated"
34
33
 
35
34
  import { ClassDefinition } from "./ClassDefinition"
36
- import { Decorator } from "./Decorator"
37
35
  import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
38
36
  import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
39
37
  import { Statement } from "./Statement"
@@ -61,28 +59,7 @@ export class ClassDeclaration extends Statement {
61
59
  return result
62
60
  }
63
61
  get definition(): ClassDefinition {
64
- return unpackNonNullableNode(global.generatedEs2panda._ClassDeclarationDefinition(global.context, this.peer))
65
- }
66
- /** @deprecated */
67
- emplaceDecorators(decorators?: Decorator): this {
68
- global.generatedEs2panda._ClassDeclarationEmplaceDecorators(global.context, this.peer, passNode(decorators))
69
- return this
70
- }
71
- /** @deprecated */
72
- clearDecorators(): this {
73
- global.generatedEs2panda._ClassDeclarationClearDecorators(global.context, this.peer)
74
- return this
75
- }
76
- /** @deprecated */
77
- setValueDecorators(decorators: Decorator | undefined, index: number): this {
78
- global.generatedEs2panda._ClassDeclarationSetValueDecorators(global.context, this.peer, passNode(decorators), index)
79
- return this
80
- }
81
- get decorators(): readonly Decorator[] {
82
- return unpackNodeArray(global.generatedEs2panda._ClassDeclarationDecorators(global.context, this.peer))
83
- }
84
- get decoratorsForUpdate(): readonly Decorator[] {
85
- return unpackNodeArray(global.generatedEs2panda._ClassDeclarationDecoratorsForUpdate(global.context, this.peer))
62
+ return unpackNonNullableNode(global.generatedEs2panda._ClassDeclarationDefinition(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION)
86
63
  }
87
64
  /** @deprecated */
88
65
  setDefinition(def?: ClassDefinition): this {
@@ -24,7 +24,6 @@ import {
24
24
  unpackNonNullableNode,
25
25
  unpackNode,
26
26
  unpackNodeArray,
27
- assertValidPeer,
28
27
  AstNode,
29
28
  KNativePointer,
30
29
  nodeByType,
@@ -40,6 +39,7 @@ import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
40
39
  import { Expression } from "./Expression"
41
40
  import { Identifier } from "./Identifier"
42
41
  import { MethodDefinition } from "./MethodDefinition"
42
+ import { SrcDumper } from "./SrcDumper"
43
43
  import { TSClassImplements } from "./TSClassImplements"
44
44
  import { TSEnumDeclaration } from "./TSEnumDeclaration"
45
45
  import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
@@ -88,7 +88,7 @@ export class ClassDefinition extends TypedAstNode {
88
88
  return result
89
89
  }
90
90
  get ident(): Identifier | undefined {
91
- return unpackNode(global.generatedEs2panda._ClassDefinitionIdent(global.context, this.peer))
91
+ return unpackNode(global.generatedEs2panda._ClassDefinitionIdent(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
92
92
  }
93
93
  /** @deprecated */
94
94
  setIdent(ident?: Identifier): this {
@@ -148,6 +148,9 @@ export class ClassDefinition extends TypedAstNode {
148
148
  get isFromStruct(): boolean {
149
149
  return global.generatedEs2panda._ClassDefinitionIsFromStructConst(global.context, this.peer)
150
150
  }
151
+ get isInitInCctor(): boolean {
152
+ return global.generatedEs2panda._ClassDefinitionIsInitInCctorConst(global.context, this.peer)
153
+ }
151
154
  get isModule(): boolean {
152
155
  return global.generatedEs2panda._ClassDefinitionIsModuleConst(global.context, this.peer)
153
156
  }
@@ -186,6 +189,11 @@ export class ClassDefinition extends TypedAstNode {
186
189
  global.generatedEs2panda._ClassDefinitionSetFromStructModifier(global.context, this.peer)
187
190
  return this
188
191
  }
192
+ /** @deprecated */
193
+ setInitInCctor(): this {
194
+ global.generatedEs2panda._ClassDefinitionSetInitInCctor(global.context, this.peer)
195
+ return this
196
+ }
189
197
  get modifiers(): Es2pandaClassDefinitionModifiers {
190
198
  return global.generatedEs2panda._ClassDefinitionModifiersConst(global.context, this.peer)
191
199
  }
@@ -195,13 +203,13 @@ export class ClassDefinition extends TypedAstNode {
195
203
  return this
196
204
  }
197
205
  get ctor(): MethodDefinition | undefined {
198
- return unpackNode(global.generatedEs2panda._ClassDefinitionCtor(global.context, this.peer))
206
+ return unpackNode(global.generatedEs2panda._ClassDefinitionCtor(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
199
207
  }
200
208
  get typeParams(): TSTypeParameterDeclaration | undefined {
201
- return unpackNode(global.generatedEs2panda._ClassDefinitionTypeParams(global.context, this.peer))
209
+ return unpackNode(global.generatedEs2panda._ClassDefinitionTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
202
210
  }
203
211
  get superTypeParams(): TSTypeParameterInstantiation | undefined {
204
- return unpackNode(global.generatedEs2panda._ClassDefinitionSuperTypeParams(global.context, this.peer))
212
+ return unpackNode(global.generatedEs2panda._ClassDefinitionSuperTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION)
205
213
  }
206
214
  get localTypeCounter(): number {
207
215
  return global.generatedEs2panda._ClassDefinitionLocalTypeCounter(global.context, this.peer)
@@ -210,7 +218,7 @@ export class ClassDefinition extends TypedAstNode {
210
218
  return global.generatedEs2panda._ClassDefinitionLocalIndexConst(global.context, this.peer)
211
219
  }
212
220
  get functionalReferenceReferencedMethod(): MethodDefinition | undefined {
213
- return unpackNode(global.generatedEs2panda._ClassDefinitionFunctionalReferenceReferencedMethodConst(global.context, this.peer))
221
+ return unpackNode(global.generatedEs2panda._ClassDefinitionFunctionalReferenceReferencedMethodConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION)
214
222
  }
215
223
  /** @deprecated */
216
224
  setFunctionalReferenceReferencedMethod(functionalReferenceReferencedMethod?: MethodDefinition): this {
@@ -221,7 +229,7 @@ export class ClassDefinition extends TypedAstNode {
221
229
  return unpackString(global.generatedEs2panda._ClassDefinitionLocalPrefixConst(global.context, this.peer))
222
230
  }
223
231
  get origEnumDecl(): TSEnumDeclaration | undefined {
224
- return unpackNode(global.generatedEs2panda._ClassDefinitionOrigEnumDeclConst(global.context, this.peer))
232
+ return unpackNode(global.generatedEs2panda._ClassDefinitionOrigEnumDeclConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_ENUM_DECLARATION)
225
233
  }
226
234
  get anonClass(): ClassDeclaration | undefined {
227
235
  return unpackNode(global.generatedEs2panda._ClassDefinitionGetAnonClass(global.context, this.peer))
@@ -282,10 +290,10 @@ export class ClassDefinition extends TypedAstNode {
282
290
  return this
283
291
  }
284
292
  get implements(): readonly TSClassImplements[] {
285
- return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplements(global.context, this.peer))
293
+ return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplements(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)
286
294
  }
287
295
  get implementsForUpdate(): readonly TSClassImplements[] {
288
- return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplementsForUpdate(global.context, this.peer))
296
+ return unpackNodeArray(global.generatedEs2panda._ClassDefinitionImplementsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_CLASS_IMPLEMENTS)
289
297
  }
290
298
  /** @deprecated */
291
299
  setCtor(ctor?: MethodDefinition): this {
@@ -312,9 +320,12 @@ export class ClassDefinition extends TypedAstNode {
312
320
  global.generatedEs2panda._ClassDefinitionSetInternalName(global.context, this.peer, internalName)
313
321
  return this
314
322
  }
323
+ get hasAnnotations(): boolean {
324
+ return global.generatedEs2panda._ClassDefinitionHasAnnotationsConst(global.context, this.peer)
325
+ }
315
326
  /** @deprecated */
316
- emplaceAnnotations(source?: AnnotationUsage): this {
317
- global.generatedEs2panda._ClassDefinitionEmplaceAnnotations(global.context, this.peer, passNode(source))
327
+ emplaceAnnotation(source?: AnnotationUsage): this {
328
+ global.generatedEs2panda._ClassDefinitionEmplaceAnnotation(global.context, this.peer, passNode(source))
318
329
  return this
319
330
  }
320
331
  /** @deprecated */
@@ -323,15 +334,15 @@ export class ClassDefinition extends TypedAstNode {
323
334
  return this
324
335
  }
325
336
  /** @deprecated */
326
- setValueAnnotations(source: AnnotationUsage | undefined, index: number): this {
327
- global.generatedEs2panda._ClassDefinitionSetValueAnnotations(global.context, this.peer, passNode(source), index)
337
+ dumpAnnotations(dumper?: SrcDumper): this {
338
+ global.generatedEs2panda._ClassDefinitionDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
328
339
  return this
329
340
  }
330
341
  get annotationsForUpdate(): readonly AnnotationUsage[] {
331
- return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotationsForUpdate(global.context, this.peer))
342
+ return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
332
343
  }
333
344
  get annotations(): readonly AnnotationUsage[] {
334
- return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotations(global.context, this.peer))
345
+ return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
335
346
  }
336
347
  /** @deprecated */
337
348
  setAnnotations(annotationList: readonly AnnotationUsage[]): this {
@@ -343,11 +354,6 @@ export class ClassDefinition extends TypedAstNode {
343
354
  global.generatedEs2panda._ClassDefinitionSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
344
355
  return this
345
356
  }
346
- /** @deprecated */
347
- addAnnotations(annotations?: AnnotationUsage): this {
348
- global.generatedEs2panda._ClassDefinitionAddAnnotations(global.context, this.peer, passNode(annotations))
349
- return this
350
- }
351
357
  setBody = extension_ClassDefinitionSetBody
352
358
  protected readonly brandClassDefinition: undefined
353
359
  }