@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,
@@ -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,
@@ -51,7 +50,7 @@ export class TSInferType extends TypeNode {
51
50
  return result
52
51
  }
53
52
  get typeParam(): TSTypeParameter | undefined {
54
- return unpackNode(global.generatedEs2panda._TSInferTypeTypeParamConst(global.context, this.peer))
53
+ return unpackNode(global.generatedEs2panda._TSInferTypeTypeParamConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER)
55
54
  }
56
55
  protected readonly brandTSInferType: undefined
57
56
  }
@@ -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,
@@ -34,10 +33,10 @@ import {
34
33
 
35
34
  import { AnnotationUsage } from "./AnnotationUsage"
36
35
  import { ClassDeclaration } from "./ClassDeclaration"
37
- import { Decorator } from "./Decorator"
38
36
  import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
39
37
  import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
40
38
  import { Identifier } from "./Identifier"
39
+ import { SrcDumper } from "./SrcDumper"
41
40
  import { TSInterfaceBody } from "./TSInterfaceBody"
42
41
  import { TSInterfaceHeritage } from "./TSInterfaceHeritage"
43
42
  import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
@@ -66,10 +65,10 @@ export class TSInterfaceDeclaration extends TypedStatement {
66
65
  return result
67
66
  }
68
67
  get body(): TSInterfaceBody | undefined {
69
- return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer))
68
+ return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_BODY)
70
69
  }
71
70
  get id(): Identifier | undefined {
72
- return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer))
71
+ return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
73
72
  }
74
73
  get internalName(): string {
75
74
  return unpackString(global.generatedEs2panda._TSInterfaceDeclarationInternalNameConst(global.context, this.peer))
@@ -86,13 +85,13 @@ export class TSInterfaceDeclaration extends TypedStatement {
86
85
  return global.generatedEs2panda._TSInterfaceDeclarationIsFromExternalConst(global.context, this.peer)
87
86
  }
88
87
  get typeParams(): TSTypeParameterDeclaration | undefined {
89
- return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationTypeParams(global.context, this.peer))
88
+ return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
90
89
  }
91
90
  get extends(): readonly TSInterfaceHeritage[] {
92
- return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtends(global.context, this.peer))
91
+ return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtends(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_HERITAGE)
93
92
  }
94
93
  get extendsForUpdate(): readonly TSInterfaceHeritage[] {
95
- return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtendsForUpdate(global.context, this.peer))
94
+ return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationExtendsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_HERITAGE)
96
95
  }
97
96
  get anonClass(): ClassDeclaration | undefined {
98
97
  return unpackNode(global.generatedEs2panda._TSInterfaceDeclarationGetAnonClass(global.context, this.peer))
@@ -117,30 +116,12 @@ export class TSInterfaceDeclaration extends TypedStatement {
117
116
  global.generatedEs2panda._TSInterfaceDeclarationSetValueExtends(global.context, this.peer, passNode(_extends), index)
118
117
  return this
119
118
  }
120
- /** @deprecated */
121
- emplaceDecorators(decorators?: Decorator): this {
122
- global.generatedEs2panda._TSInterfaceDeclarationEmplaceDecorators(global.context, this.peer, passNode(decorators))
123
- return this
119
+ get hasAnnotations(): boolean {
120
+ return global.generatedEs2panda._TSInterfaceDeclarationHasAnnotationsConst(global.context, this.peer)
124
121
  }
125
122
  /** @deprecated */
126
- clearDecorators(): this {
127
- global.generatedEs2panda._TSInterfaceDeclarationClearDecorators(global.context, this.peer)
128
- return this
129
- }
130
- /** @deprecated */
131
- setValueDecorators(decorators: Decorator | undefined, index: number): this {
132
- global.generatedEs2panda._TSInterfaceDeclarationSetValueDecorators(global.context, this.peer, passNode(decorators), index)
133
- return this
134
- }
135
- get decorators(): readonly Decorator[] {
136
- return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationDecorators(global.context, this.peer))
137
- }
138
- get decoratorsForUpdate(): readonly Decorator[] {
139
- return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationDecoratorsForUpdate(global.context, this.peer))
140
- }
141
- /** @deprecated */
142
- emplaceAnnotations(source?: AnnotationUsage): this {
143
- global.generatedEs2panda._TSInterfaceDeclarationEmplaceAnnotations(global.context, this.peer, passNode(source))
123
+ emplaceAnnotation(source?: AnnotationUsage): this {
124
+ global.generatedEs2panda._TSInterfaceDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
144
125
  return this
145
126
  }
146
127
  /** @deprecated */
@@ -149,15 +130,15 @@ export class TSInterfaceDeclaration extends TypedStatement {
149
130
  return this
150
131
  }
151
132
  /** @deprecated */
152
- setValueAnnotations(source: AnnotationUsage | undefined, index: number): this {
153
- global.generatedEs2panda._TSInterfaceDeclarationSetValueAnnotations(global.context, this.peer, passNode(source), index)
133
+ dumpAnnotations(dumper?: SrcDumper): this {
134
+ global.generatedEs2panda._TSInterfaceDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
154
135
  return this
155
136
  }
156
137
  get annotationsForUpdate(): readonly AnnotationUsage[] {
157
- return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotationsForUpdate(global.context, this.peer))
138
+ return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
158
139
  }
159
140
  get annotations(): readonly AnnotationUsage[] {
160
- return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotations(global.context, this.peer))
141
+ return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
161
142
  }
162
143
  /** @deprecated */
163
144
  setAnnotations(annotationList: readonly AnnotationUsage[]): this {
@@ -169,11 +150,6 @@ export class TSInterfaceDeclaration extends TypedStatement {
169
150
  global.generatedEs2panda._TSInterfaceDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
170
151
  return this
171
152
  }
172
- /** @deprecated */
173
- addAnnotations(annotations?: AnnotationUsage): this {
174
- global.generatedEs2panda._TSInterfaceDeclarationAddAnnotations(global.context, this.peer, passNode(annotations))
175
- return this
176
- }
177
153
  protected readonly brandTSInterfaceDeclaration: undefined
178
154
  }
179
155
  export function isTSInterfaceDeclaration(node: object | undefined): node is TSInterfaceDeclaration {
@@ -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,
@@ -52,7 +51,7 @@ export class TSMappedType extends TypeNode {
52
51
  return result
53
52
  }
54
53
  get typeParameter(): TSTypeParameter | undefined {
55
- return unpackNode(global.generatedEs2panda._TSMappedTypeTypeParameter(global.context, this.peer))
54
+ return unpackNode(global.generatedEs2panda._TSMappedTypeTypeParameter(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER)
56
55
  }
57
56
  get typeAnnotation(): TypeNode | undefined {
58
57
  return unpackNode(global.generatedEs2panda._TSMappedTypeTypeAnnotation(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,
@@ -56,7 +55,7 @@ export class TSMethodSignature extends AstNode {
56
55
  return unpackNode(global.generatedEs2panda._TSMethodSignatureKey(global.context, this.peer))
57
56
  }
58
57
  get typeParams(): TSTypeParameterDeclaration | undefined {
59
- return unpackNode(global.generatedEs2panda._TSMethodSignatureTypeParams(global.context, this.peer))
58
+ return unpackNode(global.generatedEs2panda._TSMethodSignatureTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
60
59
  }
61
60
  get params(): readonly Expression[] {
62
61
  return unpackNodeArray(global.generatedEs2panda._TSMethodSignatureParamsConst(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,
@@ -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,
@@ -54,13 +53,13 @@ export class TSQualifiedName extends Expression {
54
53
  return unpackNode(global.generatedEs2panda._TSQualifiedNameLeft(global.context, this.peer))
55
54
  }
56
55
  get right(): Identifier | undefined {
57
- return unpackNode(global.generatedEs2panda._TSQualifiedNameRight(global.context, this.peer))
56
+ return unpackNode(global.generatedEs2panda._TSQualifiedNameRight(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
58
57
  }
59
58
  get name(): string {
60
59
  return unpackString(global.generatedEs2panda._TSQualifiedNameNameConst(global.context, this.peer))
61
60
  }
62
61
  get resolveLeftMostQualifiedName(): TSQualifiedName | undefined {
63
- return unpackNode(global.generatedEs2panda._TSQualifiedNameResolveLeftMostQualifiedName(global.context, this.peer))
62
+ return unpackNode(global.generatedEs2panda._TSQualifiedNameResolveLeftMostQualifiedName(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_QUALIFIED_NAME)
64
63
  }
65
64
  protected readonly brandTSQualifiedName: undefined
66
65
  }
@@ -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,
@@ -55,7 +54,7 @@ export class TSSignatureDeclaration extends TypedAstNode {
55
54
  return result
56
55
  }
57
56
  get typeParams(): TSTypeParameterDeclaration | undefined {
58
- return unpackNode(global.generatedEs2panda._TSSignatureDeclarationTypeParams(global.context, this.peer))
57
+ return unpackNode(global.generatedEs2panda._TSSignatureDeclarationTypeParams(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
59
58
  }
60
59
  get params(): readonly Expression[] {
61
60
  return unpackNodeArray(global.generatedEs2panda._TSSignatureDeclarationParamsConst(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,
@@ -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,
@@ -34,10 +33,10 @@ import {
34
33
 
35
34
  import { AnnotatedStatement } from "./AnnotatedStatement"
36
35
  import { AnnotationUsage } from "./AnnotationUsage"
37
- import { Decorator } from "./Decorator"
38
36
  import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
39
37
  import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
40
38
  import { Identifier } from "./Identifier"
39
+ import { SrcDumper } from "./SrcDumper"
41
40
  import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration"
42
41
  import { TypeNode } from "./TypeNode"
43
42
 
@@ -85,30 +84,35 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement {
85
84
  return result
86
85
  }
87
86
  get id(): Identifier | undefined {
88
- return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationId(global.context, this.peer))
87
+ return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationId(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
89
88
  }
90
89
  get typeParams(): TSTypeParameterDeclaration | undefined {
91
- return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeParamsConst(global.context, this.peer))
92
- }
93
- get decorators(): readonly Decorator[] {
94
- return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationDecoratorsConst(global.context, this.peer))
90
+ return unpackNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeParamsConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION)
95
91
  }
96
92
  /** @deprecated */
97
93
  setTypeParameters(typeParams?: TSTypeParameterDeclaration): this {
98
94
  global.generatedEs2panda._TSTypeAliasDeclarationSetTypeParameters(global.context, this.peer, passNode(typeParams))
99
95
  return this
100
96
  }
101
- get annotations(): readonly AnnotationUsage[] {
102
- return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotationsConst(global.context, this.peer))
97
+ /** @deprecated */
98
+ clearTypeParamterTypes(): this {
99
+ global.generatedEs2panda._TSTypeAliasDeclarationClearTypeParamterTypes(global.context, this.peer)
100
+ return this
101
+ }
102
+ get typeAnnotation(): TypeNode {
103
+ return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeAnnotationConst(global.context, this.peer))
103
104
  }
104
105
  /** @deprecated */
105
- setAnnotations(annotations: readonly AnnotationUsage[]): this {
106
- global.generatedEs2panda._TSTypeAliasDeclarationSetAnnotations(global.context, this.peer, passNodeArray(annotations), annotations.length)
106
+ setTsTypeAnnotation(typeAnnotation?: TypeNode): this {
107
+ global.generatedEs2panda._TSTypeAliasDeclarationSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation))
107
108
  return this
108
109
  }
110
+ get hasAnnotations(): boolean {
111
+ return global.generatedEs2panda._TSTypeAliasDeclarationHasAnnotationsConst(global.context, this.peer)
112
+ }
109
113
  /** @deprecated */
110
- emplaceAnnotations(annotations?: AnnotationUsage): this {
111
- global.generatedEs2panda._TSTypeAliasDeclarationEmplaceAnnotations(global.context, this.peer, passNode(annotations))
114
+ emplaceAnnotation(source?: AnnotationUsage): this {
115
+ global.generatedEs2panda._TSTypeAliasDeclarationEmplaceAnnotation(global.context, this.peer, passNode(source))
112
116
  return this
113
117
  }
114
118
  /** @deprecated */
@@ -117,42 +121,24 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement {
117
121
  return this
118
122
  }
119
123
  /** @deprecated */
120
- setValueAnnotations(annotations: AnnotationUsage | undefined, index: number): this {
121
- global.generatedEs2panda._TSTypeAliasDeclarationSetValueAnnotations(global.context, this.peer, passNode(annotations), index)
124
+ dumpAnnotations(dumper?: SrcDumper): this {
125
+ global.generatedEs2panda._TSTypeAliasDeclarationDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
122
126
  return this
123
127
  }
124
128
  get annotationsForUpdate(): readonly AnnotationUsage[] {
125
- return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotationsForUpdate(global.context, this.peer))
129
+ return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
126
130
  }
127
- /** @deprecated */
128
- clearTypeParamterTypes(): this {
129
- global.generatedEs2panda._TSTypeAliasDeclarationClearTypeParamterTypes(global.context, this.peer)
130
- return this
131
- }
132
- /** @deprecated */
133
- emplaceDecorators(decorators?: Decorator): this {
134
- global.generatedEs2panda._TSTypeAliasDeclarationEmplaceDecorators(global.context, this.peer, passNode(decorators))
135
- return this
136
- }
137
- /** @deprecated */
138
- clearDecorators(): this {
139
- global.generatedEs2panda._TSTypeAliasDeclarationClearDecorators(global.context, this.peer)
140
- return this
131
+ get annotations(): readonly AnnotationUsage[] {
132
+ return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
141
133
  }
142
134
  /** @deprecated */
143
- setValueDecorators(decorators: Decorator | undefined, index: number): this {
144
- global.generatedEs2panda._TSTypeAliasDeclarationSetValueDecorators(global.context, this.peer, passNode(decorators), index)
135
+ setAnnotations(annotationList: readonly AnnotationUsage[]): this {
136
+ global.generatedEs2panda._TSTypeAliasDeclarationSetAnnotations(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
145
137
  return this
146
138
  }
147
- get decoratorsForUpdate(): readonly Decorator[] {
148
- return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationDecoratorsForUpdate(global.context, this.peer))
149
- }
150
- get typeAnnotation(): TypeNode {
151
- return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeAnnotationConst(global.context, this.peer))
152
- }
153
139
  /** @deprecated */
154
- setTsTypeAnnotation(typeAnnotation?: TypeNode): this {
155
- global.generatedEs2panda._TSTypeAliasDeclarationSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation))
140
+ setAnnotations1(annotationList: readonly AnnotationUsage[]): this {
141
+ global.generatedEs2panda._TSTypeAliasDeclarationSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
156
142
  return this
157
143
  }
158
144
  protected readonly brandTSTypeAliasDeclaration: undefined
@@ -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,
@@ -37,6 +36,7 @@ import { Es2pandaAstNodeType } from "./../Es2pandaEnums"
37
36
  import { Es2pandaModifierFlags } from "./../Es2pandaEnums"
38
37
  import { Expression } from "./Expression"
39
38
  import { Identifier } from "./Identifier"
39
+ import { SrcDumper } from "./SrcDumper"
40
40
  import { TypeNode } from "./TypeNode"
41
41
 
42
42
  export class TSTypeParameter extends Expression {
@@ -59,7 +59,7 @@ export class TSTypeParameter extends Expression {
59
59
  return result
60
60
  }
61
61
  get name(): Identifier | undefined {
62
- return unpackNode(global.generatedEs2panda._TSTypeParameterName(global.context, this.peer))
62
+ return unpackNode(global.generatedEs2panda._TSTypeParameterName(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER)
63
63
  }
64
64
  get constraint(): TypeNode | undefined {
65
65
  return unpackNode(global.generatedEs2panda._TSTypeParameterConstraint(global.context, this.peer))
@@ -77,9 +77,12 @@ export class TSTypeParameter extends Expression {
77
77
  global.generatedEs2panda._TSTypeParameterSetDefaultType(global.context, this.peer, passNode(defaultType))
78
78
  return this
79
79
  }
80
+ get hasAnnotations(): boolean {
81
+ return global.generatedEs2panda._TSTypeParameterHasAnnotationsConst(global.context, this.peer)
82
+ }
80
83
  /** @deprecated */
81
- emplaceAnnotations(source?: AnnotationUsage): this {
82
- global.generatedEs2panda._TSTypeParameterEmplaceAnnotations(global.context, this.peer, passNode(source))
84
+ emplaceAnnotation(source?: AnnotationUsage): this {
85
+ global.generatedEs2panda._TSTypeParameterEmplaceAnnotation(global.context, this.peer, passNode(source))
83
86
  return this
84
87
  }
85
88
  /** @deprecated */
@@ -88,15 +91,15 @@ export class TSTypeParameter extends Expression {
88
91
  return this
89
92
  }
90
93
  /** @deprecated */
91
- setValueAnnotations(source: AnnotationUsage | undefined, index: number): this {
92
- global.generatedEs2panda._TSTypeParameterSetValueAnnotations(global.context, this.peer, passNode(source), index)
94
+ dumpAnnotations(dumper?: SrcDumper): this {
95
+ global.generatedEs2panda._TSTypeParameterDumpAnnotationsConst(global.context, this.peer, passNode(dumper))
93
96
  return this
94
97
  }
95
98
  get annotationsForUpdate(): readonly AnnotationUsage[] {
96
- return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotationsForUpdate(global.context, this.peer))
99
+ return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotationsForUpdate(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
97
100
  }
98
101
  get annotations(): readonly AnnotationUsage[] {
99
- return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotations(global.context, this.peer))
102
+ return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotations(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE)
100
103
  }
101
104
  /** @deprecated */
102
105
  setAnnotations(annotationList: readonly AnnotationUsage[]): this {
@@ -108,11 +111,6 @@ export class TSTypeParameter extends Expression {
108
111
  global.generatedEs2panda._TSTypeParameterSetAnnotations1(global.context, this.peer, passNodeArray(annotationList), annotationList.length)
109
112
  return this
110
113
  }
111
- /** @deprecated */
112
- addAnnotations(annotations?: AnnotationUsage): this {
113
- global.generatedEs2panda._TSTypeParameterAddAnnotations(global.context, this.peer, passNode(annotations))
114
- return this
115
- }
116
114
  protected readonly brandTSTypeParameter: undefined
117
115
  }
118
116
  export function isTSTypeParameter(node: object | undefined): node is TSTypeParameter {
@@ -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,
@@ -51,7 +50,7 @@ export class TSTypeParameterDeclaration extends Expression {
51
50
  return result
52
51
  }
53
52
  get params(): readonly TSTypeParameter[] {
54
- return unpackNodeArray(global.generatedEs2panda._TSTypeParameterDeclarationParamsConst(global.context, this.peer))
53
+ return unpackNodeArray(global.generatedEs2panda._TSTypeParameterDeclarationParamsConst(global.context, this.peer), Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER)
55
54
  }
56
55
  /** @deprecated */
57
56
  addParam(param?: TSTypeParameter): 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,
@@ -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,