@idlizer/arktscgen 2.1.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 (229) hide show
  1. package/build/libarkts-copy/generator/options.json5 +155 -0
  2. package/build/libarkts-copy/native/meson.build +62 -0
  3. package/build/libarkts-copy/native/meson_options.txt +24 -0
  4. package/build/libarkts-copy/native/src/bridges.cc +265 -0
  5. package/build/libarkts-copy/native/src/common.cc +231 -0
  6. package/build/libarkts-copy/native/src/common.h +39 -0
  7. package/build/libarkts-copy/native/src/generated/bridges.cc +11979 -0
  8. package/build/libarkts-copy/package.json +51 -0
  9. package/build/libarkts-copy/src/Es2pandaEnums.ts +183 -0
  10. package/build/libarkts-copy/src/Es2pandaNativeModule.ts +123 -0
  11. package/build/libarkts-copy/src/InteropNativeModule.ts +50 -0
  12. package/build/libarkts-copy/src/arkts-api/class-by-peer.ts +31 -0
  13. package/build/libarkts-copy/src/arkts-api/factory/nodeFactory.ts +147 -0
  14. package/build/libarkts-copy/src/arkts-api/index.ts +28 -0
  15. package/build/libarkts-copy/src/arkts-api/node-utilities/createCallExpression.ts +40 -0
  16. package/build/libarkts-copy/src/arkts-api/node-utilities/createNumberLiteral.ts +28 -0
  17. package/build/libarkts-copy/src/arkts-api/node-utilities/createScriptFunction.ts +55 -0
  18. package/build/libarkts-copy/src/arkts-api/peers/ArktsObject.ts +45 -0
  19. package/build/libarkts-copy/src/arkts-api/peers/AstNode.ts +121 -0
  20. package/build/libarkts-copy/src/arkts-api/peers/Config.ts +52 -0
  21. package/build/libarkts-copy/src/arkts-api/peers/Context.ts +46 -0
  22. package/build/libarkts-copy/src/arkts-api/peers/Program.ts +55 -0
  23. package/build/libarkts-copy/src/arkts-api/static/global.ts +67 -0
  24. package/build/libarkts-copy/src/arkts-api/utilities/nativePtrDecoder.ts +69 -0
  25. package/build/libarkts-copy/src/arkts-api/utilities/private.ts +156 -0
  26. package/build/libarkts-copy/src/arkts-api/utilities/public.ts +135 -0
  27. package/build/libarkts-copy/src/arkts-api/visitor.ts +297 -0
  28. package/build/libarkts-copy/src/es2panda.ts +277 -0
  29. package/build/libarkts-copy/src/generated/Es2pandaEnums.ts +1266 -0
  30. package/build/libarkts-copy/src/generated/Es2pandaNativeModule.ts +3745 -0
  31. package/build/libarkts-copy/src/generated/factory.ts +1299 -0
  32. package/build/libarkts-copy/src/generated/index.ts +191 -0
  33. package/build/libarkts-copy/src/generated/node-map.ts +182 -0
  34. package/build/libarkts-copy/src/generated/peers/AnnotatedAstNode.ts +39 -0
  35. package/build/libarkts-copy/src/generated/peers/AnnotatedExpression.ts +49 -0
  36. package/build/libarkts-copy/src/generated/peers/AnnotatedStatement.ts +40 -0
  37. package/build/libarkts-copy/src/generated/peers/AnnotationDeclaration.ts +110 -0
  38. package/build/libarkts-copy/src/generated/peers/AnnotationUsage.ts +74 -0
  39. package/build/libarkts-copy/src/generated/peers/ArrayExpression.ts +98 -0
  40. package/build/libarkts-copy/src/generated/peers/ArrowFunctionExpression.ts +70 -0
  41. package/build/libarkts-copy/src/generated/peers/AssertStatement.ts +57 -0
  42. package/build/libarkts-copy/src/generated/peers/AssignmentExpression.ts +95 -0
  43. package/build/libarkts-copy/src/generated/peers/AstDumper.ts +42 -0
  44. package/build/libarkts-copy/src/generated/peers/AwaitExpression.ts +53 -0
  45. package/build/libarkts-copy/src/generated/peers/BigIntLiteral.ts +53 -0
  46. package/build/libarkts-copy/src/generated/peers/BinaryExpression.ts +95 -0
  47. package/build/libarkts-copy/src/generated/peers/BlockExpression.ts +64 -0
  48. package/build/libarkts-copy/src/generated/peers/BlockStatement.ts +63 -0
  49. package/build/libarkts-copy/src/generated/peers/BooleanLiteral.ts +53 -0
  50. package/build/libarkts-copy/src/generated/peers/BreakStatement.ts +65 -0
  51. package/build/libarkts-copy/src/generated/peers/CallExpression.ts +97 -0
  52. package/build/libarkts-copy/src/generated/peers/CatchClause.ts +64 -0
  53. package/build/libarkts-copy/src/generated/peers/ChainExpression.ts +53 -0
  54. package/build/libarkts-copy/src/generated/peers/CharLiteral.ts +50 -0
  55. package/build/libarkts-copy/src/generated/peers/ClassDeclaration.ts +58 -0
  56. package/build/libarkts-copy/src/generated/peers/ClassDefinition.ts +233 -0
  57. package/build/libarkts-copy/src/generated/peers/ClassElement.ts +80 -0
  58. package/build/libarkts-copy/src/generated/peers/ClassExpression.ts +54 -0
  59. package/build/libarkts-copy/src/generated/peers/ClassProperty.ts +70 -0
  60. package/build/libarkts-copy/src/generated/peers/ClassStaticBlock.ts +58 -0
  61. package/build/libarkts-copy/src/generated/peers/ConditionalExpression.ts +74 -0
  62. package/build/libarkts-copy/src/generated/peers/ContinueStatement.ts +65 -0
  63. package/build/libarkts-copy/src/generated/peers/DebuggerStatement.ts +50 -0
  64. package/build/libarkts-copy/src/generated/peers/Decorator.ts +54 -0
  65. package/build/libarkts-copy/src/generated/peers/DirectEvalExpression.ts +52 -0
  66. package/build/libarkts-copy/src/generated/peers/DoWhileStatement.ts +58 -0
  67. package/build/libarkts-copy/src/generated/peers/ETSClassLiteral.ts +54 -0
  68. package/build/libarkts-copy/src/generated/peers/ETSDynamicFunctionType.ts +40 -0
  69. package/build/libarkts-copy/src/generated/peers/ETSFunctionType.ts +84 -0
  70. package/build/libarkts-copy/src/generated/peers/ETSImportDeclaration.ts +68 -0
  71. package/build/libarkts-copy/src/generated/peers/ETSLaunchExpression.ts +57 -0
  72. package/build/libarkts-copy/src/generated/peers/ETSModule.ts +71 -0
  73. package/build/libarkts-copy/src/generated/peers/ETSNewArrayInstanceExpression.ts +62 -0
  74. package/build/libarkts-copy/src/generated/peers/ETSNewClassInstanceExpression.ts +69 -0
  75. package/build/libarkts-copy/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +60 -0
  76. package/build/libarkts-copy/src/generated/peers/ETSNullType.ts +50 -0
  77. package/build/libarkts-copy/src/generated/peers/ETSPackageDeclaration.ts +51 -0
  78. package/build/libarkts-copy/src/generated/peers/ETSParameterExpression.ts +126 -0
  79. package/build/libarkts-copy/src/generated/peers/ETSPrimitiveType.ts +54 -0
  80. package/build/libarkts-copy/src/generated/peers/ETSReExportDeclaration.ts +51 -0
  81. package/build/libarkts-copy/src/generated/peers/ETSStructDeclaration.ts +51 -0
  82. package/build/libarkts-copy/src/generated/peers/ETSTuple.ts +73 -0
  83. package/build/libarkts-copy/src/generated/peers/ETSTypeReference.ts +58 -0
  84. package/build/libarkts-copy/src/generated/peers/ETSTypeReferencePart.ts +68 -0
  85. package/build/libarkts-copy/src/generated/peers/ETSUndefinedType.ts +50 -0
  86. package/build/libarkts-copy/src/generated/peers/ETSUnionType.ts +53 -0
  87. package/build/libarkts-copy/src/generated/peers/ETSWildcardType.ts +55 -0
  88. package/build/libarkts-copy/src/generated/peers/EmptyStatement.ts +50 -0
  89. package/build/libarkts-copy/src/generated/peers/ExportAllDeclaration.ts +58 -0
  90. package/build/libarkts-copy/src/generated/peers/ExportDefaultDeclaration.ts +56 -0
  91. package/build/libarkts-copy/src/generated/peers/ExportNamedDeclaration.ts +73 -0
  92. package/build/libarkts-copy/src/generated/peers/ExportSpecifier.ts +57 -0
  93. package/build/libarkts-copy/src/generated/peers/Expression.ts +75 -0
  94. package/build/libarkts-copy/src/generated/peers/ExpressionStatement.ts +59 -0
  95. package/build/libarkts-copy/src/generated/peers/ForInStatement.ts +61 -0
  96. package/build/libarkts-copy/src/generated/peers/ForOfStatement.ts +64 -0
  97. package/build/libarkts-copy/src/generated/peers/ForUpdateStatement.ts +61 -0
  98. package/build/libarkts-copy/src/generated/peers/FunctionDecl.ts +40 -0
  99. package/build/libarkts-copy/src/generated/peers/FunctionDeclaration.ts +69 -0
  100. package/build/libarkts-copy/src/generated/peers/FunctionExpression.ts +64 -0
  101. package/build/libarkts-copy/src/generated/peers/FunctionSignature.ts +62 -0
  102. package/build/libarkts-copy/src/generated/peers/Identifier.ts +154 -0
  103. package/build/libarkts-copy/src/generated/peers/IfStatement.ts +65 -0
  104. package/build/libarkts-copy/src/generated/peers/ImportDeclaration.ts +61 -0
  105. package/build/libarkts-copy/src/generated/peers/ImportDefaultSpecifier.ts +54 -0
  106. package/build/libarkts-copy/src/generated/peers/ImportExpression.ts +53 -0
  107. package/build/libarkts-copy/src/generated/peers/ImportNamespaceSpecifier.ts +54 -0
  108. package/build/libarkts-copy/src/generated/peers/ImportSource.ts +49 -0
  109. package/build/libarkts-copy/src/generated/peers/ImportSpecifier.ts +57 -0
  110. package/build/libarkts-copy/src/generated/peers/InterfaceDecl.ts +40 -0
  111. package/build/libarkts-copy/src/generated/peers/LabelledStatement.ts +60 -0
  112. package/build/libarkts-copy/src/generated/peers/Literal.ts +40 -0
  113. package/build/libarkts-copy/src/generated/peers/LoopStatement.ts +40 -0
  114. package/build/libarkts-copy/src/generated/peers/MaybeOptionalExpression.ts +48 -0
  115. package/build/libarkts-copy/src/generated/peers/MemberExpression.ts +95 -0
  116. package/build/libarkts-copy/src/generated/peers/MetaProperty.ts +54 -0
  117. package/build/libarkts-copy/src/generated/peers/MethodDefinition.ts +105 -0
  118. package/build/libarkts-copy/src/generated/peers/NamedType.ts +76 -0
  119. package/build/libarkts-copy/src/generated/peers/NewExpression.ts +56 -0
  120. package/build/libarkts-copy/src/generated/peers/NullLiteral.ts +50 -0
  121. package/build/libarkts-copy/src/generated/peers/NumberLiteral.ts +47 -0
  122. package/build/libarkts-copy/src/generated/peers/ObjectExpression.ts +90 -0
  123. package/build/libarkts-copy/src/generated/peers/OmittedExpression.ts +50 -0
  124. package/build/libarkts-copy/src/generated/peers/OpaqueTypeNode.ts +50 -0
  125. package/build/libarkts-copy/src/generated/peers/PrefixAssertionExpression.ts +57 -0
  126. package/build/libarkts-copy/src/generated/peers/Property.ts +82 -0
  127. package/build/libarkts-copy/src/generated/peers/RegExpLiteral.ts +57 -0
  128. package/build/libarkts-copy/src/generated/peers/ReturnStatement.ts +62 -0
  129. package/build/libarkts-copy/src/generated/peers/ScriptFunction.ts +201 -0
  130. package/build/libarkts-copy/src/generated/peers/SequenceExpression.ts +53 -0
  131. package/build/libarkts-copy/src/generated/peers/SpreadElement.ts +79 -0
  132. package/build/libarkts-copy/src/generated/peers/SrcDumper.ts +82 -0
  133. package/build/libarkts-copy/src/generated/peers/Statement.ts +39 -0
  134. package/build/libarkts-copy/src/generated/peers/StringLiteral.ts +56 -0
  135. package/build/libarkts-copy/src/generated/peers/SuperExpression.ts +50 -0
  136. package/build/libarkts-copy/src/generated/peers/SwitchCaseStatement.ts +62 -0
  137. package/build/libarkts-copy/src/generated/peers/SwitchStatement.ts +63 -0
  138. package/build/libarkts-copy/src/generated/peers/TSAnyKeyword.ts +50 -0
  139. package/build/libarkts-copy/src/generated/peers/TSArrayType.ts +53 -0
  140. package/build/libarkts-copy/src/generated/peers/TSAsExpression.ts +76 -0
  141. package/build/libarkts-copy/src/generated/peers/TSBigintKeyword.ts +50 -0
  142. package/build/libarkts-copy/src/generated/peers/TSBooleanKeyword.ts +50 -0
  143. package/build/libarkts-copy/src/generated/peers/TSClassImplements.ts +60 -0
  144. package/build/libarkts-copy/src/generated/peers/TSConditionalType.ts +63 -0
  145. package/build/libarkts-copy/src/generated/peers/TSConstructorType.ts +65 -0
  146. package/build/libarkts-copy/src/generated/peers/TSEnumDeclaration.ts +81 -0
  147. package/build/libarkts-copy/src/generated/peers/TSEnumMember.ts +66 -0
  148. package/build/libarkts-copy/src/generated/peers/TSExternalModuleReference.ts +53 -0
  149. package/build/libarkts-copy/src/generated/peers/TSFunctionType.ts +67 -0
  150. package/build/libarkts-copy/src/generated/peers/TSImportEqualsDeclaration.ts +61 -0
  151. package/build/libarkts-copy/src/generated/peers/TSImportType.ts +64 -0
  152. package/build/libarkts-copy/src/generated/peers/TSIndexSignature.ts +65 -0
  153. package/build/libarkts-copy/src/generated/peers/TSIndexedAccessType.ts +56 -0
  154. package/build/libarkts-copy/src/generated/peers/TSInferType.ts +54 -0
  155. package/build/libarkts-copy/src/generated/peers/TSInterfaceBody.ts +53 -0
  156. package/build/libarkts-copy/src/generated/peers/TSInterfaceDeclaration.ts +102 -0
  157. package/build/libarkts-copy/src/generated/peers/TSInterfaceHeritage.ts +54 -0
  158. package/build/libarkts-copy/src/generated/peers/TSIntersectionType.ts +54 -0
  159. package/build/libarkts-copy/src/generated/peers/TSLiteralType.ts +54 -0
  160. package/build/libarkts-copy/src/generated/peers/TSMappedType.ts +64 -0
  161. package/build/libarkts-copy/src/generated/peers/TSMethodSignature.ts +71 -0
  162. package/build/libarkts-copy/src/generated/peers/TSModuleBlock.ts +53 -0
  163. package/build/libarkts-copy/src/generated/peers/TSModuleDeclaration.ts +63 -0
  164. package/build/libarkts-copy/src/generated/peers/TSNamedTupleMember.ts +60 -0
  165. package/build/libarkts-copy/src/generated/peers/TSNeverKeyword.ts +50 -0
  166. package/build/libarkts-copy/src/generated/peers/TSNonNullExpression.ts +58 -0
  167. package/build/libarkts-copy/src/generated/peers/TSNullKeyword.ts +50 -0
  168. package/build/libarkts-copy/src/generated/peers/TSNumberKeyword.ts +50 -0
  169. package/build/libarkts-copy/src/generated/peers/TSObjectKeyword.ts +50 -0
  170. package/build/libarkts-copy/src/generated/peers/TSParameterProperty.ts +66 -0
  171. package/build/libarkts-copy/src/generated/peers/TSParenthesizedType.ts +54 -0
  172. package/build/libarkts-copy/src/generated/peers/TSPropertySignature.ts +72 -0
  173. package/build/libarkts-copy/src/generated/peers/TSQualifiedName.ts +63 -0
  174. package/build/libarkts-copy/src/generated/peers/TSSignatureDeclaration.ts +67 -0
  175. package/build/libarkts-copy/src/generated/peers/TSStringKeyword.ts +50 -0
  176. package/build/libarkts-copy/src/generated/peers/TSThisType.ts +50 -0
  177. package/build/libarkts-copy/src/generated/peers/TSTupleType.ts +53 -0
  178. package/build/libarkts-copy/src/generated/peers/TSTypeAliasDeclaration.ts +88 -0
  179. package/build/libarkts-copy/src/generated/peers/TSTypeAssertion.ts +63 -0
  180. package/build/libarkts-copy/src/generated/peers/TSTypeLiteral.ts +53 -0
  181. package/build/libarkts-copy/src/generated/peers/TSTypeOperator.ts +63 -0
  182. package/build/libarkts-copy/src/generated/peers/TSTypeParameter.ts +84 -0
  183. package/build/libarkts-copy/src/generated/peers/TSTypeParameterDeclaration.ts +62 -0
  184. package/build/libarkts-copy/src/generated/peers/TSTypeParameterInstantiation.ts +54 -0
  185. package/build/libarkts-copy/src/generated/peers/TSTypePredicate.ts +60 -0
  186. package/build/libarkts-copy/src/generated/peers/TSTypeQuery.ts +54 -0
  187. package/build/libarkts-copy/src/generated/peers/TSTypeReference.ts +62 -0
  188. package/build/libarkts-copy/src/generated/peers/TSUndefinedKeyword.ts +50 -0
  189. package/build/libarkts-copy/src/generated/peers/TSUnionType.ts +53 -0
  190. package/build/libarkts-copy/src/generated/peers/TSUnknownKeyword.ts +50 -0
  191. package/build/libarkts-copy/src/generated/peers/TSVoidKeyword.ts +50 -0
  192. package/build/libarkts-copy/src/generated/peers/TaggedTemplateExpression.ts +61 -0
  193. package/build/libarkts-copy/src/generated/peers/TemplateElement.ts +59 -0
  194. package/build/libarkts-copy/src/generated/peers/TemplateLiteral.ts +60 -0
  195. package/build/libarkts-copy/src/generated/peers/ThisExpression.ts +50 -0
  196. package/build/libarkts-copy/src/generated/peers/ThrowStatement.ts +54 -0
  197. package/build/libarkts-copy/src/generated/peers/TryStatement.ts +75 -0
  198. package/build/libarkts-copy/src/generated/peers/TypeNode.ts +49 -0
  199. package/build/libarkts-copy/src/generated/peers/TypedAstNode.ts +39 -0
  200. package/build/libarkts-copy/src/generated/peers/TypedStatement.ts +40 -0
  201. package/build/libarkts-copy/src/generated/peers/TypeofExpression.ts +53 -0
  202. package/build/libarkts-copy/src/generated/peers/UnaryExpression.ts +57 -0
  203. package/build/libarkts-copy/src/generated/peers/UndefinedLiteral.ts +50 -0
  204. package/build/libarkts-copy/src/generated/peers/UpdateExpression.ts +60 -0
  205. package/build/libarkts-copy/src/generated/peers/ValidationInfo.ts +42 -0
  206. package/build/libarkts-copy/src/generated/peers/VariableDeclaration.ts +71 -0
  207. package/build/libarkts-copy/src/generated/peers/VariableDeclarator.ts +69 -0
  208. package/build/libarkts-copy/src/generated/peers/WhileStatement.ts +58 -0
  209. package/build/libarkts-copy/src/generated/peers/YieldExpression.ts +56 -0
  210. package/build/libarkts-copy/src/reexport-for-generated.ts +33 -0
  211. package/build/libarkts-copy/src/ts-api/factory/nodeFactory.ts +1375 -0
  212. package/build/libarkts-copy/src/ts-api/factory/nodeTests.ts +110 -0
  213. package/build/libarkts-copy/src/ts-api/index.ts +35 -0
  214. package/build/libarkts-copy/src/ts-api/static/enums.ts +18 -0
  215. package/build/libarkts-copy/src/ts-api/types.ts +920 -0
  216. package/build/libarkts-copy/src/ts-api/utilities/private.ts +289 -0
  217. package/build/libarkts-copy/src/ts-api/utilities/public.ts +55 -0
  218. package/build/libarkts-copy/src/ts-api/visitor/visitor.ts +155 -0
  219. package/build/libarkts-copy/src/utils.ts +89 -0
  220. package/build/libarkts-copy/tsconfig.json +15 -0
  221. package/lib/index.js +11858 -0
  222. package/package.json +54 -0
  223. package/templates/Es2pandaEnums.ts +16 -0
  224. package/templates/Es2pandaNativeModule.ts +32 -0
  225. package/templates/bridges.cc +18 -0
  226. package/templates/factory.ts +34 -0
  227. package/templates/index.ts +16 -0
  228. package/templates/node-map.ts +31 -0
  229. package/templates/peer.ts +32 -0
@@ -0,0 +1,191 @@
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ export * from "./peers/TypedAstNode"
17
+ export * from "./peers/AnnotatedAstNode"
18
+ export * from "./peers/TypedStatement"
19
+ export * from "./peers/AnnotatedStatement"
20
+ export * from "./peers/LabelledStatement"
21
+ export * from "./peers/ThrowStatement"
22
+ export * from "./peers/ClassProperty"
23
+ export * from "./peers/TSVoidKeyword"
24
+ export * from "./peers/ETSFunctionType"
25
+ export * from "./peers/TSTypeOperator"
26
+ export * from "./peers/IfStatement"
27
+ export * from "./peers/TSConstructorType"
28
+ export * from "./peers/Decorator"
29
+ export * from "./peers/TSEnumDeclaration"
30
+ export * from "./peers/TSNeverKeyword"
31
+ export * from "./peers/ImportDefaultSpecifier"
32
+ export * from "./peers/ObjectExpression"
33
+ export * from "./peers/ImportSpecifier"
34
+ export * from "./peers/ConditionalExpression"
35
+ export * from "./peers/CallExpression"
36
+ export * from "./peers/BigIntLiteral"
37
+ export * from "./peers/ClassElement"
38
+ export * from "./peers/TSImportType"
39
+ export * from "./peers/TaggedTemplateExpression"
40
+ export * from "./peers/FunctionDeclaration"
41
+ export * from "./peers/ETSTypeReference"
42
+ export * from "./peers/TSTypeReference"
43
+ export * from "./peers/ImportSource"
44
+ export * from "./peers/NamedType"
45
+ export * from "./peers/NumberLiteral"
46
+ export * from "./peers/TSFunctionType"
47
+ export * from "./peers/TemplateElement"
48
+ export * from "./peers/TSInterfaceDeclaration"
49
+ export * from "./peers/VariableDeclaration"
50
+ export * from "./peers/UndefinedLiteral"
51
+ export * from "./peers/MemberExpression"
52
+ export * from "./peers/TSClassImplements"
53
+ export * from "./peers/TSObjectKeyword"
54
+ export * from "./peers/ETSUnionType"
55
+ export * from "./peers/TSPropertySignature"
56
+ export * from "./peers/TSConditionalType"
57
+ export * from "./peers/TSLiteralType"
58
+ export * from "./peers/TSTypeAliasDeclaration"
59
+ export * from "./peers/DebuggerStatement"
60
+ export * from "./peers/ReturnStatement"
61
+ export * from "./peers/ExportDefaultDeclaration"
62
+ export * from "./peers/ScriptFunction"
63
+ export * from "./peers/ClassDefinition"
64
+ export * from "./peers/ArrayExpression"
65
+ export * from "./peers/TSInterfaceBody"
66
+ export * from "./peers/TSTypeQuery"
67
+ export * from "./peers/TSBigintKeyword"
68
+ export * from "./peers/Property"
69
+ export * from "./peers/VariableDeclarator"
70
+ export * from "./peers/StringLiteral"
71
+ export * from "./peers/TSTypeAssertion"
72
+ export * from "./peers/TSExternalModuleReference"
73
+ export * from "./peers/TSUndefinedKeyword"
74
+ export * from "./peers/ETSTuple"
75
+ export * from "./peers/TryStatement"
76
+ export * from "./peers/UnaryExpression"
77
+ export * from "./peers/ForInStatement"
78
+ export * from "./peers/ThisExpression"
79
+ export * from "./peers/TSMethodSignature"
80
+ export * from "./peers/BinaryExpression"
81
+ export * from "./peers/SuperExpression"
82
+ export * from "./peers/AssertStatement"
83
+ export * from "./peers/TSStringKeyword"
84
+ export * from "./peers/AssignmentExpression"
85
+ export * from "./peers/ExpressionStatement"
86
+ export * from "./peers/ETSModule"
87
+ export * from "./peers/MetaProperty"
88
+ export * from "./peers/TSArrayType"
89
+ export * from "./peers/TSSignatureDeclaration"
90
+ export * from "./peers/ExportAllDeclaration"
91
+ export * from "./peers/ExportSpecifier"
92
+ export * from "./peers/TSTupleType"
93
+ export * from "./peers/FunctionExpression"
94
+ export * from "./peers/TSIndexSignature"
95
+ export * from "./peers/TSModuleDeclaration"
96
+ export * from "./peers/ImportDeclaration"
97
+ export * from "./peers/TSParenthesizedType"
98
+ export * from "./peers/Literal"
99
+ export * from "./peers/CharLiteral"
100
+ export * from "./peers/ETSPackageDeclaration"
101
+ export * from "./peers/ETSImportDeclaration"
102
+ export * from "./peers/ETSStructDeclaration"
103
+ export * from "./peers/TSModuleBlock"
104
+ export * from "./peers/ETSNewArrayInstanceExpression"
105
+ export * from "./peers/LoopStatement"
106
+ export * from "./peers/AnnotationDeclaration"
107
+ export * from "./peers/AnnotationUsage"
108
+ export * from "./peers/EmptyStatement"
109
+ export * from "./peers/ETSLaunchExpression"
110
+ export * from "./peers/WhileStatement"
111
+ export * from "./peers/FunctionSignature"
112
+ export * from "./peers/ChainExpression"
113
+ export * from "./peers/TSIntersectionType"
114
+ export * from "./peers/UpdateExpression"
115
+ export * from "./peers/BlockExpression"
116
+ export * from "./peers/TSTypeLiteral"
117
+ export * from "./peers/TSTypeParameter"
118
+ export * from "./peers/TSBooleanKeyword"
119
+ export * from "./peers/SpreadElement"
120
+ export * from "./peers/TSTypePredicate"
121
+ export * from "./peers/ImportNamespaceSpecifier"
122
+ export * from "./peers/ExportNamedDeclaration"
123
+ export * from "./peers/ETSParameterExpression"
124
+ export * from "./peers/TSTypeParameterInstantiation"
125
+ export * from "./peers/NullLiteral"
126
+ export * from "./peers/TSInferType"
127
+ export * from "./peers/SwitchCaseStatement"
128
+ export * from "./peers/YieldExpression"
129
+ export * from "./peers/TSImportEqualsDeclaration"
130
+ export * from "./peers/BooleanLiteral"
131
+ export * from "./peers/TSNumberKeyword"
132
+ export * from "./peers/ClassStaticBlock"
133
+ export * from "./peers/TSNonNullExpression"
134
+ export * from "./peers/PrefixAssertionExpression"
135
+ export * from "./peers/ClassExpression"
136
+ export * from "./peers/ForOfStatement"
137
+ export * from "./peers/TemplateLiteral"
138
+ export * from "./peers/TSUnionType"
139
+ export * from "./peers/TSUnknownKeyword"
140
+ export * from "./peers/Identifier"
141
+ export * from "./peers/OpaqueTypeNode"
142
+ export * from "./peers/BlockStatement"
143
+ export * from "./peers/Statement"
144
+ export * from "./peers/DirectEvalExpression"
145
+ export * from "./peers/TSTypeParameterDeclaration"
146
+ export * from "./peers/MethodDefinition"
147
+ export * from "./peers/TSNullKeyword"
148
+ export * from "./peers/TSInterfaceHeritage"
149
+ export * from "./peers/Expression"
150
+ export * from "./peers/AnnotatedExpression"
151
+ export * from "./peers/MaybeOptionalExpression"
152
+ export * from "./peers/SrcDumper"
153
+ export * from "./peers/ETSClassLiteral"
154
+ export * from "./peers/BreakStatement"
155
+ export * from "./peers/RegExpLiteral"
156
+ export * from "./peers/TSMappedType"
157
+ export * from "./peers/TSAnyKeyword"
158
+ export * from "./peers/ClassDeclaration"
159
+ export * from "./peers/TSIndexedAccessType"
160
+ export * from "./peers/TSQualifiedName"
161
+ export * from "./peers/AwaitExpression"
162
+ export * from "./peers/ValidationInfo"
163
+ export * from "./peers/ContinueStatement"
164
+ export * from "./peers/ETSNewMultiDimArrayInstanceExpression"
165
+ export * from "./peers/TSNamedTupleMember"
166
+ export * from "./peers/ImportExpression"
167
+ export * from "./peers/AstDumper"
168
+ export * from "./peers/ETSNullType"
169
+ export * from "./peers/ETSUndefinedType"
170
+ export * from "./peers/TypeofExpression"
171
+ export * from "./peers/TSEnumMember"
172
+ export * from "./peers/SwitchStatement"
173
+ export * from "./peers/DoWhileStatement"
174
+ export * from "./peers/CatchClause"
175
+ export * from "./peers/SequenceExpression"
176
+ export * from "./peers/ArrowFunctionExpression"
177
+ export * from "./peers/OmittedExpression"
178
+ export * from "./peers/ETSNewClassInstanceExpression"
179
+ export * from "./peers/TSAsExpression"
180
+ export * from "./peers/ForUpdateStatement"
181
+ export * from "./peers/ETSTypeReferencePart"
182
+ export * from "./peers/ETSReExportDeclaration"
183
+ export * from "./peers/ETSPrimitiveType"
184
+ export * from "./peers/TypeNode"
185
+ export * from "./peers/NewExpression"
186
+ export * from "./peers/TSParameterProperty"
187
+ export * from "./peers/ETSWildcardType"
188
+ export * from "./peers/TSThisType"
189
+ export * from "./peers/ETSDynamicFunctionType"
190
+ export * from "./peers/InterfaceDecl"
191
+ export * from "./peers/FunctionDecl"
@@ -0,0 +1,182 @@
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ import {
17
+ global,
18
+ passNode,
19
+ unpackNonNullableNode,
20
+ Es2pandaMemberExpressionKind,
21
+ assertValidPeer,
22
+ AstNode,
23
+ Es2pandaAstNodeType,
24
+ KNativePointer
25
+ } from "../reexport-for-generated"
26
+
27
+ import * as peers from "./index"
28
+
29
+ export const nodes = new Map<Es2pandaAstNodeType, { new(peer: KNativePointer): AstNode }>([
30
+ [44, peers.LabelledStatement],
31
+ [145, peers.ThrowStatement],
32
+ [17, peers.ClassProperty],
33
+ [93, peers.TSVoidKeyword],
34
+ [66, peers.ETSFunctionType],
35
+ [116, peers.TSTypeOperator],
36
+ [38, peers.IfStatement],
37
+ [125, peers.TSConstructorType],
38
+ [22, peers.Decorator],
39
+ [86, peers.TSEnumDeclaration],
40
+ [98, peers.TSNeverKeyword],
41
+ [41, peers.ImportDefaultSpecifier],
42
+ [43, peers.ImportSpecifier],
43
+ [19, peers.ConditionalExpression],
44
+ [10, peers.CallExpression],
45
+ [5, peers.BigIntLiteral],
46
+ [111, peers.TSImportType],
47
+ [140, peers.TaggedTemplateExpression],
48
+ [34, peers.FunctionDeclaration],
49
+ [71, peers.ETSTypeReference],
50
+ [127, peers.TSTypeReference],
51
+ [48, peers.NamedType],
52
+ [52, peers.NumberLiteral],
53
+ [124, peers.TSFunctionType],
54
+ [141, peers.TemplateElement],
55
+ [130, peers.TSInterfaceDeclaration],
56
+ [149, peers.VariableDeclaration],
57
+ [51, peers.UndefinedLiteral],
58
+ [45, peers.MemberExpression],
59
+ [138, peers.TSClassImplements],
60
+ [96, peers.TSObjectKeyword],
61
+ [73, peers.ETSUnionType],
62
+ [104, peers.TSPropertySignature],
63
+ [110, peers.TSConditionalType],
64
+ [108, peers.TSLiteralType],
65
+ [126, peers.TSTypeAliasDeclaration],
66
+ [21, peers.DebuggerStatement],
67
+ [58, peers.ReturnStatement],
68
+ [27, peers.ExportDefaultDeclaration],
69
+ [59, peers.ScriptFunction],
70
+ [14, peers.ClassDefinition],
71
+ [131, peers.TSInterfaceBody],
72
+ [136, peers.TSTypeQuery],
73
+ [97, peers.TSBigintKeyword],
74
+ [55, peers.Property],
75
+ [150, peers.VariableDeclarator],
76
+ [61, peers.StringLiteral],
77
+ [139, peers.TSTypeAssertion],
78
+ [88, peers.TSExternalModuleReference],
79
+ [94, peers.TSUndefinedKeyword],
80
+ [80, peers.ETSTuple],
81
+ [146, peers.TryStatement],
82
+ [147, peers.UnaryExpression],
83
+ [31, peers.ForInStatement],
84
+ [143, peers.ThisExpression],
85
+ [105, peers.TSMethodSignature],
86
+ [6, peers.BinaryExpression],
87
+ [82, peers.SuperExpression],
88
+ [3, peers.AssertStatement],
89
+ [91, peers.TSStringKeyword],
90
+ [30, peers.ExpressionStatement],
91
+ [81, peers.ETSModule],
92
+ [46, peers.MetaProperty],
93
+ [101, peers.TSArrayType],
94
+ [106, peers.TSSignatureDeclaration],
95
+ [26, peers.ExportAllDeclaration],
96
+ [29, peers.ExportSpecifier],
97
+ [133, peers.TSTupleType],
98
+ [35, peers.FunctionExpression],
99
+ [135, peers.TSIndexSignature],
100
+ [122, peers.TSModuleDeclaration],
101
+ [39, peers.ImportDeclaration],
102
+ [107, peers.TSParenthesizedType],
103
+ [13, peers.CharLiteral],
104
+ [69, peers.ETSPackageDeclaration],
105
+ [78, peers.ETSImportDeclaration],
106
+ [83, peers.ETSStructDeclaration],
107
+ [114, peers.TSModuleBlock],
108
+ [75, peers.ETSNewArrayInstanceExpression],
109
+ [1, peers.AnnotationDeclaration],
110
+ [2, peers.AnnotationUsage],
111
+ [25, peers.EmptyStatement],
112
+ [74, peers.ETSLaunchExpression],
113
+ [151, peers.WhileStatement],
114
+ [12, peers.ChainExpression],
115
+ [112, peers.TSIntersectionType],
116
+ [148, peers.UpdateExpression],
117
+ [154, peers.BlockExpression],
118
+ [103, peers.TSTypeLiteral],
119
+ [117, peers.TSTypeParameter],
120
+ [92, peers.TSBooleanKeyword],
121
+ [120, peers.TSTypePredicate],
122
+ [42, peers.ImportNamespaceSpecifier],
123
+ [28, peers.ExportNamedDeclaration],
124
+ [79, peers.ETSParameterExpression],
125
+ [119, peers.TSTypeParameterInstantiation],
126
+ [50, peers.NullLiteral],
127
+ [109, peers.TSInferType],
128
+ [84, peers.SwitchCaseStatement],
129
+ [152, peers.YieldExpression],
130
+ [123, peers.TSImportEqualsDeclaration],
131
+ [8, peers.BooleanLiteral],
132
+ [89, peers.TSNumberKeyword],
133
+ [18, peers.ClassStaticBlock],
134
+ [99, peers.TSNonNullExpression],
135
+ [54, peers.PrefixAssertionExpression],
136
+ [16, peers.ClassExpression],
137
+ [32, peers.ForOfStatement],
138
+ [142, peers.TemplateLiteral],
139
+ [102, peers.TSUnionType],
140
+ [95, peers.TSUnknownKeyword],
141
+ [36, peers.Identifier],
142
+ [153, peers.OpaqueTypeNode],
143
+ [7, peers.BlockStatement],
144
+ [23, peers.DirectEvalExpression],
145
+ [118, peers.TSTypeParameterDeclaration],
146
+ [47, peers.MethodDefinition],
147
+ [100, peers.TSNullKeyword],
148
+ [132, peers.TSInterfaceHeritage],
149
+ [70, peers.ETSClassLiteral],
150
+ [9, peers.BreakStatement],
151
+ [56, peers.RegExpLiteral],
152
+ [113, peers.TSMappedType],
153
+ [90, peers.TSAnyKeyword],
154
+ [15, peers.ClassDeclaration],
155
+ [129, peers.TSIndexedAccessType],
156
+ [128, peers.TSQualifiedName],
157
+ [4, peers.AwaitExpression],
158
+ [20, peers.ContinueStatement],
159
+ [76, peers.ETSNewMultiDimArrayInstanceExpression],
160
+ [134, peers.TSNamedTupleMember],
161
+ [40, peers.ImportExpression],
162
+ [62, peers.ETSNullType],
163
+ [63, peers.ETSUndefinedType],
164
+ [144, peers.TypeofExpression],
165
+ [87, peers.TSEnumMember],
166
+ [85, peers.SwitchStatement],
167
+ [24, peers.DoWhileStatement],
168
+ [11, peers.CatchClause],
169
+ [60, peers.SequenceExpression],
170
+ [0, peers.ArrowFunctionExpression],
171
+ [53, peers.OmittedExpression],
172
+ [77, peers.ETSNewClassInstanceExpression],
173
+ [137, peers.TSAsExpression],
174
+ [33, peers.ForUpdateStatement],
175
+ [72, peers.ETSTypeReferencePart],
176
+ [57, peers.ETSReExportDeclaration],
177
+ [68, peers.ETSPrimitiveType],
178
+ [49, peers.NewExpression],
179
+ [121, peers.TSParameterProperty],
180
+ [67, peers.ETSWildcardType],
181
+ [115, peers.TSThisType],
182
+ ])
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ import {
17
+ global,
18
+ passNode,
19
+ passNodeArray,
20
+ unpackNonNullableNode,
21
+ unpackNode,
22
+ unpackNodeArray,
23
+ assertValidPeer,
24
+ AstNode,
25
+ Es2pandaAstNodeType,
26
+ KNativePointer,
27
+ nodeByType,
28
+ ArktsObject,
29
+ unpackString
30
+ } from "../../reexport-for-generated"
31
+
32
+ export class AnnotatedAstNode extends AstNode {
33
+ constructor(pointer: KNativePointer) {
34
+ super(pointer)
35
+ }
36
+ }
37
+ export function isAnnotatedAstNode(node: object | undefined): node is AnnotatedAstNode {
38
+ return node instanceof AnnotatedAstNode
39
+ }
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ import {
17
+ global,
18
+ passNode,
19
+ passNodeArray,
20
+ unpackNonNullableNode,
21
+ unpackNode,
22
+ unpackNodeArray,
23
+ assertValidPeer,
24
+ AstNode,
25
+ Es2pandaAstNodeType,
26
+ KNativePointer,
27
+ nodeByType,
28
+ ArktsObject,
29
+ unpackString
30
+ } from "../../reexport-for-generated"
31
+
32
+ import { Expression } from "./Expression"
33
+ import { TypeNode } from "./TypeNode"
34
+ export class AnnotatedExpression extends Expression {
35
+ constructor(pointer: KNativePointer) {
36
+ super(pointer)
37
+ }
38
+ get typeAnnotation(): TypeNode | undefined {
39
+ return unpackNode(global.generatedEs2panda._AnnotatedExpressionTypeAnnotationConst(global.context, this.peer))
40
+ }
41
+ /** @deprecated */
42
+ setTsTypeAnnotation(typeAnnotation?: TypeNode): this {
43
+ global.generatedEs2panda._AnnotatedExpressionSetTsTypeAnnotation(global.context, this.peer, passNode(typeAnnotation))
44
+ return this
45
+ }
46
+ }
47
+ export function isAnnotatedExpression(node: object | undefined): node is AnnotatedExpression {
48
+ return node instanceof AnnotatedExpression
49
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ import {
17
+ global,
18
+ passNode,
19
+ passNodeArray,
20
+ unpackNonNullableNode,
21
+ unpackNode,
22
+ unpackNodeArray,
23
+ assertValidPeer,
24
+ AstNode,
25
+ Es2pandaAstNodeType,
26
+ KNativePointer,
27
+ nodeByType,
28
+ ArktsObject,
29
+ unpackString
30
+ } from "../../reexport-for-generated"
31
+
32
+ import { Statement } from "./Statement"
33
+ export class AnnotatedStatement extends Statement {
34
+ constructor(pointer: KNativePointer) {
35
+ super(pointer)
36
+ }
37
+ }
38
+ export function isAnnotatedStatement(node: object | undefined): node is AnnotatedStatement {
39
+ return node instanceof AnnotatedStatement
40
+ }
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ import {
17
+ global,
18
+ passNode,
19
+ passNodeArray,
20
+ unpackNonNullableNode,
21
+ unpackNode,
22
+ unpackNodeArray,
23
+ assertValidPeer,
24
+ AstNode,
25
+ Es2pandaAstNodeType,
26
+ KNativePointer,
27
+ nodeByType,
28
+ ArktsObject,
29
+ unpackString
30
+ } from "../../reexport-for-generated"
31
+
32
+ import { AnnotationUsage } from "./AnnotationUsage"
33
+ import { Expression } from "./Expression"
34
+ import { Identifier } from "./Identifier"
35
+ import { Statement } from "./Statement"
36
+ export class AnnotationDeclaration extends Statement {
37
+ constructor(pointer: KNativePointer) {
38
+ assertValidPeer(pointer, 1)
39
+ super(pointer)
40
+ }
41
+ static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
42
+ return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), properties.length))
43
+ }
44
+ static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration {
45
+ return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr)))
46
+ }
47
+ static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[]): AnnotationDeclaration {
48
+ return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), properties.length))
49
+ }
50
+ get internalName(): string {
51
+ return unpackString(global.generatedEs2panda._AnnotationDeclarationInternalNameConst(global.context, this.peer))
52
+ }
53
+ /** @deprecated */
54
+ setInternalName(internalName: string): this {
55
+ global.generatedEs2panda._AnnotationDeclarationSetInternalName(global.context, this.peer, internalName)
56
+ return this
57
+ }
58
+ get expr(): Expression | undefined {
59
+ return unpackNode(global.generatedEs2panda._AnnotationDeclarationExprConst(global.context, this.peer))
60
+ }
61
+ get properties(): readonly AstNode[] {
62
+ return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationPropertiesConst(global.context, this.peer))
63
+ }
64
+ /** @deprecated */
65
+ addProperties(properties: readonly AstNode[]): this {
66
+ global.generatedEs2panda._AnnotationDeclarationAddProperties(global.context, this.peer, passNodeArray(properties), properties.length)
67
+ return this
68
+ }
69
+ get isSourceRetention(): boolean {
70
+ return global.generatedEs2panda._AnnotationDeclarationIsSourceRetentionConst(global.context, this.peer)
71
+ }
72
+ get isBytecodeRetention(): boolean {
73
+ return global.generatedEs2panda._AnnotationDeclarationIsBytecodeRetentionConst(global.context, this.peer)
74
+ }
75
+ get isRuntimeRetention(): boolean {
76
+ return global.generatedEs2panda._AnnotationDeclarationIsRuntimeRetentionConst(global.context, this.peer)
77
+ }
78
+ /** @deprecated */
79
+ setSourceRetention(): this {
80
+ global.generatedEs2panda._AnnotationDeclarationSetSourceRetention(global.context, this.peer)
81
+ return this
82
+ }
83
+ /** @deprecated */
84
+ setBytecodeRetention(): this {
85
+ global.generatedEs2panda._AnnotationDeclarationSetBytecodeRetention(global.context, this.peer)
86
+ return this
87
+ }
88
+ /** @deprecated */
89
+ setRuntimeRetention(): this {
90
+ global.generatedEs2panda._AnnotationDeclarationSetRuntimeRetention(global.context, this.peer)
91
+ return this
92
+ }
93
+ get baseName(): Identifier | undefined {
94
+ return unpackNode(global.generatedEs2panda._AnnotationDeclarationGetBaseNameConst(global.context, this.peer))
95
+ }
96
+ get annotations(): readonly AnnotationUsage[] {
97
+ return unpackNodeArray(global.generatedEs2panda._AnnotationDeclarationAnnotationsConst(global.context, this.peer))
98
+ }
99
+ /** @deprecated */
100
+ setAnnotations(annotations: readonly AnnotationUsage[]): this {
101
+ global.generatedEs2panda._AnnotationDeclarationSetAnnotations(global.context, this.peer, passNodeArray(annotations), annotations.length)
102
+ return this
103
+ }
104
+ }
105
+ export function isAnnotationDeclaration(node: object | undefined): node is AnnotationDeclaration {
106
+ return node instanceof AnnotationDeclaration
107
+ }
108
+ if (!nodeByType.has(1)) {
109
+ nodeByType.set(1, AnnotationDeclaration)
110
+ }