arkanalyzer 1.0.5

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 (322) hide show
  1. package/LICENSE +201 -0
  2. package/README.en.md +88 -0
  3. package/README.md +98 -0
  4. package/docs/HowToCreatePR.md +55 -0
  5. package/docs/HowToHandleIssues.md +155 -0
  6. package/docs/quickstart.pdf +0 -0
  7. package/lib/Config.d.ts +26 -0
  8. package/lib/Config.d.ts.map +1 -0
  9. package/lib/Config.js +128 -0
  10. package/lib/Scene.d.ts +125 -0
  11. package/lib/Scene.d.ts.map +1 -0
  12. package/lib/Scene.js +762 -0
  13. package/lib/callgraph/algorithm/AbstractAnalysis.d.ts +28 -0
  14. package/lib/callgraph/algorithm/AbstractAnalysis.d.ts.map +1 -0
  15. package/lib/callgraph/algorithm/AbstractAnalysis.js +137 -0
  16. package/lib/callgraph/algorithm/ClassHierarchyAnalysis.d.ts +11 -0
  17. package/lib/callgraph/algorithm/ClassHierarchyAnalysis.d.ts.map +1 -0
  18. package/lib/callgraph/algorithm/ClassHierarchyAnalysis.js +71 -0
  19. package/lib/callgraph/algorithm/RapidTypeAnalysis.d.ts +16 -0
  20. package/lib/callgraph/algorithm/RapidTypeAnalysis.d.ts.map +1 -0
  21. package/lib/callgraph/algorithm/RapidTypeAnalysis.js +147 -0
  22. package/lib/callgraph/common/Statistics.d.ts +58 -0
  23. package/lib/callgraph/common/Statistics.d.ts.map +1 -0
  24. package/lib/callgraph/common/Statistics.js +203 -0
  25. package/lib/callgraph/model/BaseGraph.d.ts +62 -0
  26. package/lib/callgraph/model/BaseGraph.d.ts.map +1 -0
  27. package/lib/callgraph/model/BaseGraph.js +158 -0
  28. package/lib/callgraph/model/CallGraph.d.ts +94 -0
  29. package/lib/callgraph/model/CallGraph.d.ts.map +1 -0
  30. package/lib/callgraph/model/CallGraph.js +339 -0
  31. package/lib/callgraph/model/builder/CallGraphBuilder.d.ts +16 -0
  32. package/lib/callgraph/model/builder/CallGraphBuilder.d.ts.map +1 -0
  33. package/lib/callgraph/model/builder/CallGraphBuilder.js +106 -0
  34. package/lib/callgraph/pointerAnalysis/Context.d.ts +38 -0
  35. package/lib/callgraph/pointerAnalysis/Context.d.ts.map +1 -0
  36. package/lib/callgraph/pointerAnalysis/Context.js +156 -0
  37. package/lib/callgraph/pointerAnalysis/DummyCallCreator.d.ts +23 -0
  38. package/lib/callgraph/pointerAnalysis/DummyCallCreator.d.ts.map +1 -0
  39. package/lib/callgraph/pointerAnalysis/DummyCallCreator.js +104 -0
  40. package/lib/callgraph/pointerAnalysis/Pag.d.ts +209 -0
  41. package/lib/callgraph/pointerAnalysis/Pag.d.ts.map +1 -0
  42. package/lib/callgraph/pointerAnalysis/Pag.js +774 -0
  43. package/lib/callgraph/pointerAnalysis/PagBuilder.d.ts +88 -0
  44. package/lib/callgraph/pointerAnalysis/PagBuilder.d.ts.map +1 -0
  45. package/lib/callgraph/pointerAnalysis/PagBuilder.js +821 -0
  46. package/lib/callgraph/pointerAnalysis/PointerAnalysis.d.ts +64 -0
  47. package/lib/callgraph/pointerAnalysis/PointerAnalysis.d.ts.map +1 -0
  48. package/lib/callgraph/pointerAnalysis/PointerAnalysis.js +502 -0
  49. package/lib/callgraph/pointerAnalysis/PointerAnalysisConfig.d.ts +9 -0
  50. package/lib/callgraph/pointerAnalysis/PointerAnalysisConfig.d.ts.map +1 -0
  51. package/lib/callgraph/pointerAnalysis/PointerAnalysisConfig.js +57 -0
  52. package/lib/callgraph/pointerAnalysis/PtsDS.d.ts +58 -0
  53. package/lib/callgraph/pointerAnalysis/PtsDS.d.ts.map +1 -0
  54. package/lib/callgraph/pointerAnalysis/PtsDS.js +234 -0
  55. package/lib/core/base/Constant.d.ts +17 -0
  56. package/lib/core/base/Constant.d.ts.map +1 -0
  57. package/lib/core/base/Constant.js +53 -0
  58. package/lib/core/base/Decorator.d.ts +15 -0
  59. package/lib/core/base/Decorator.d.ts.map +1 -0
  60. package/lib/core/base/Decorator.js +43 -0
  61. package/lib/core/base/DefUseChain.d.ts +9 -0
  62. package/lib/core/base/DefUseChain.d.ts.map +1 -0
  63. package/lib/core/base/DefUseChain.js +25 -0
  64. package/lib/core/base/Expr.d.ts +219 -0
  65. package/lib/core/base/Expr.d.ts.map +1 -0
  66. package/lib/core/base/Expr.js +896 -0
  67. package/lib/core/base/Local.d.ts +40 -0
  68. package/lib/core/base/Local.d.ts.map +1 -0
  69. package/lib/core/base/Local.js +101 -0
  70. package/lib/core/base/Position.d.ts +39 -0
  71. package/lib/core/base/Position.d.ts.map +1 -0
  72. package/lib/core/base/Position.js +86 -0
  73. package/lib/core/base/Ref.d.ts +75 -0
  74. package/lib/core/base/Ref.d.ts.map +1 -0
  75. package/lib/core/base/Ref.js +286 -0
  76. package/lib/core/base/Stmt.d.ts +109 -0
  77. package/lib/core/base/Stmt.d.ts.map +1 -0
  78. package/lib/core/base/Stmt.js +374 -0
  79. package/lib/core/base/Type.d.ts +220 -0
  80. package/lib/core/base/Type.d.ts.map +1 -0
  81. package/lib/core/base/Type.js +477 -0
  82. package/lib/core/base/Value.d.ts +11 -0
  83. package/lib/core/base/Value.d.ts.map +1 -0
  84. package/lib/core/base/Value.js +16 -0
  85. package/lib/core/common/ArkIRTransformer.d.ts +101 -0
  86. package/lib/core/common/ArkIRTransformer.d.ts.map +1 -0
  87. package/lib/core/common/ArkIRTransformer.js +1674 -0
  88. package/lib/core/common/BodyBuilder.d.ts +10 -0
  89. package/lib/core/common/BodyBuilder.d.ts.map +1 -0
  90. package/lib/core/common/BodyBuilder.js +34 -0
  91. package/lib/core/common/Builtin.d.ts +35 -0
  92. package/lib/core/common/Builtin.d.ts.map +1 -0
  93. package/lib/core/common/Builtin.js +78 -0
  94. package/lib/core/common/CfgBuilder.d.ts +136 -0
  95. package/lib/core/common/CfgBuilder.d.ts.map +1 -0
  96. package/lib/core/common/CfgBuilder.js +1241 -0
  97. package/lib/core/common/Const.d.ts +15 -0
  98. package/lib/core/common/Const.d.ts.map +1 -0
  99. package/lib/core/common/Const.js +34 -0
  100. package/lib/core/common/DummyMainCreater.d.ts +48 -0
  101. package/lib/core/common/DummyMainCreater.d.ts.map +1 -0
  102. package/lib/core/common/DummyMainCreater.js +433 -0
  103. package/lib/core/common/EtsConst.d.ts +65 -0
  104. package/lib/core/common/EtsConst.d.ts.map +1 -0
  105. package/lib/core/common/EtsConst.js +918 -0
  106. package/lib/core/common/ExprUseReplacer.d.ts +18 -0
  107. package/lib/core/common/ExprUseReplacer.d.ts.map +1 -0
  108. package/lib/core/common/ExprUseReplacer.js +88 -0
  109. package/lib/core/common/IRUtils.d.ts +7 -0
  110. package/lib/core/common/IRUtils.d.ts.map +1 -0
  111. package/lib/core/common/IRUtils.js +39 -0
  112. package/lib/core/common/ModelUtils.d.ts +61 -0
  113. package/lib/core/common/ModelUtils.d.ts.map +1 -0
  114. package/lib/core/common/ModelUtils.js +628 -0
  115. package/lib/core/common/RefUseReplacer.d.ts +14 -0
  116. package/lib/core/common/RefUseReplacer.d.ts.map +1 -0
  117. package/lib/core/common/RefUseReplacer.js +50 -0
  118. package/lib/core/common/StmtUseReplacer.d.ts +16 -0
  119. package/lib/core/common/StmtUseReplacer.d.ts.map +1 -0
  120. package/lib/core/common/StmtUseReplacer.js +88 -0
  121. package/lib/core/common/TSConst.d.ts +11 -0
  122. package/lib/core/common/TSConst.d.ts.map +1 -0
  123. package/lib/core/common/TSConst.js +28 -0
  124. package/lib/core/common/TypeInference.d.ts +44 -0
  125. package/lib/core/common/TypeInference.d.ts.map +1 -0
  126. package/lib/core/common/TypeInference.js +519 -0
  127. package/lib/core/common/ValueUtil.d.ts +17 -0
  128. package/lib/core/common/ValueUtil.d.ts.map +1 -0
  129. package/lib/core/common/ValueUtil.js +71 -0
  130. package/lib/core/common/VisibleValue.d.ts +37 -0
  131. package/lib/core/common/VisibleValue.d.ts.map +1 -0
  132. package/lib/core/common/VisibleValue.js +212 -0
  133. package/lib/core/dataflow/DataflowProblem.d.ts +21 -0
  134. package/lib/core/dataflow/DataflowProblem.d.ts.map +1 -0
  135. package/lib/core/dataflow/DataflowProblem.js +33 -0
  136. package/lib/core/dataflow/DataflowResult.d.ts +8 -0
  137. package/lib/core/dataflow/DataflowResult.d.ts.map +1 -0
  138. package/lib/core/dataflow/DataflowResult.js +26 -0
  139. package/lib/core/dataflow/DataflowSolver.d.ts +40 -0
  140. package/lib/core/dataflow/DataflowSolver.d.ts.map +1 -0
  141. package/lib/core/dataflow/DataflowSolver.js +318 -0
  142. package/lib/core/dataflow/Edge.d.ts +16 -0
  143. package/lib/core/dataflow/Edge.d.ts.map +1 -0
  144. package/lib/core/dataflow/Edge.js +40 -0
  145. package/lib/core/dataflow/Fact.d.ts +7 -0
  146. package/lib/core/dataflow/Fact.d.ts.map +1 -0
  147. package/lib/core/dataflow/Fact.js +24 -0
  148. package/lib/core/dataflow/TiantAnalysis.d.ts +37 -0
  149. package/lib/core/dataflow/TiantAnalysis.d.ts.map +1 -0
  150. package/lib/core/dataflow/TiantAnalysis.js +326 -0
  151. package/lib/core/dataflow/UndefinedVariable.d.ts +32 -0
  152. package/lib/core/dataflow/UndefinedVariable.d.ts.map +1 -0
  153. package/lib/core/dataflow/UndefinedVariable.js +235 -0
  154. package/lib/core/dataflow/Util.d.ts +8 -0
  155. package/lib/core/dataflow/Util.d.ts.map +1 -0
  156. package/lib/core/dataflow/Util.js +137 -0
  157. package/lib/core/graph/BasicBlock.d.ts +26 -0
  158. package/lib/core/graph/BasicBlock.d.ts.map +1 -0
  159. package/lib/core/graph/BasicBlock.js +92 -0
  160. package/lib/core/graph/Cfg.d.ts +29 -0
  161. package/lib/core/graph/Cfg.d.ts.map +1 -0
  162. package/lib/core/graph/Cfg.js +154 -0
  163. package/lib/core/graph/DominanceFinder.d.ts +16 -0
  164. package/lib/core/graph/DominanceFinder.d.ts.map +1 -0
  165. package/lib/core/graph/DominanceFinder.js +121 -0
  166. package/lib/core/graph/DominanceTree.d.ts +13 -0
  167. package/lib/core/graph/DominanceTree.d.ts.map +1 -0
  168. package/lib/core/graph/DominanceTree.js +70 -0
  169. package/lib/core/graph/ViewTree.d.ts +115 -0
  170. package/lib/core/graph/ViewTree.d.ts.map +1 -0
  171. package/lib/core/graph/ViewTree.js +16 -0
  172. package/lib/core/graph/builder/ViewTreeBuilder.d.ts +204 -0
  173. package/lib/core/graph/builder/ViewTreeBuilder.d.ts.map +1 -0
  174. package/lib/core/graph/builder/ViewTreeBuilder.js +1046 -0
  175. package/lib/core/model/ArkBody.d.ts +22 -0
  176. package/lib/core/model/ArkBody.d.ts.map +1 -0
  177. package/lib/core/model/ArkBody.js +63 -0
  178. package/lib/core/model/ArkClass.d.ts +110 -0
  179. package/lib/core/model/ArkClass.d.ts.map +1 -0
  180. package/lib/core/model/ArkClass.js +315 -0
  181. package/lib/core/model/ArkExport.d.ts +70 -0
  182. package/lib/core/model/ArkExport.d.ts.map +1 -0
  183. package/lib/core/model/ArkExport.js +143 -0
  184. package/lib/core/model/ArkField.d.ts +60 -0
  185. package/lib/core/model/ArkField.d.ts.map +1 -0
  186. package/lib/core/model/ArkField.js +157 -0
  187. package/lib/core/model/ArkFile.d.ts +62 -0
  188. package/lib/core/model/ArkFile.d.ts.map +1 -0
  189. package/lib/core/model/ArkFile.js +160 -0
  190. package/lib/core/model/ArkImport.d.ts +43 -0
  191. package/lib/core/model/ArkImport.d.ts.map +1 -0
  192. package/lib/core/model/ArkImport.js +109 -0
  193. package/lib/core/model/ArkMethod.d.ts +76 -0
  194. package/lib/core/model/ArkMethod.d.ts.map +1 -0
  195. package/lib/core/model/ArkMethod.js +235 -0
  196. package/lib/core/model/ArkNamespace.d.ts +65 -0
  197. package/lib/core/model/ArkNamespace.d.ts.map +1 -0
  198. package/lib/core/model/ArkNamespace.js +182 -0
  199. package/lib/core/model/ArkSignature.d.ts +98 -0
  200. package/lib/core/model/ArkSignature.d.ts.map +1 -0
  201. package/lib/core/model/ArkSignature.js +281 -0
  202. package/lib/core/model/builder/ArkClassBuilder.d.ts +13 -0
  203. package/lib/core/model/builder/ArkClassBuilder.d.ts.map +1 -0
  204. package/lib/core/model/builder/ArkClassBuilder.js +422 -0
  205. package/lib/core/model/builder/ArkExportBuilder.d.ts +25 -0
  206. package/lib/core/model/builder/ArkExportBuilder.d.ts.map +1 -0
  207. package/lib/core/model/builder/ArkExportBuilder.js +207 -0
  208. package/lib/core/model/builder/ArkFieldBuilder.d.ts +9 -0
  209. package/lib/core/model/builder/ArkFieldBuilder.d.ts.map +1 -0
  210. package/lib/core/model/builder/ArkFieldBuilder.js +189 -0
  211. package/lib/core/model/builder/ArkFileBuilder.d.ts +10 -0
  212. package/lib/core/model/builder/ArkFileBuilder.d.ts.map +1 -0
  213. package/lib/core/model/builder/ArkFileBuilder.js +164 -0
  214. package/lib/core/model/builder/ArkImportBuilder.d.ts +4 -0
  215. package/lib/core/model/builder/ArkImportBuilder.d.ts.map +1 -0
  216. package/lib/core/model/builder/ArkImportBuilder.js +125 -0
  217. package/lib/core/model/builder/ArkMethodBuilder.d.ts +60 -0
  218. package/lib/core/model/builder/ArkMethodBuilder.d.ts.map +1 -0
  219. package/lib/core/model/builder/ArkMethodBuilder.js +419 -0
  220. package/lib/core/model/builder/ArkNamespaceBuilder.d.ts +5 -0
  221. package/lib/core/model/builder/ArkNamespaceBuilder.d.ts.map +1 -0
  222. package/lib/core/model/builder/ArkNamespaceBuilder.js +171 -0
  223. package/lib/core/model/builder/ArkSignatureBuilder.d.ts +9 -0
  224. package/lib/core/model/builder/ArkSignatureBuilder.d.ts.map +1 -0
  225. package/lib/core/model/builder/ArkSignatureBuilder.js +40 -0
  226. package/lib/core/model/builder/builderUtils.d.ts +18 -0
  227. package/lib/core/model/builder/builderUtils.d.ts.map +1 -0
  228. package/lib/core/model/builder/builderUtils.js +449 -0
  229. package/lib/index.d.ts +77 -0
  230. package/lib/index.d.ts.map +1 -0
  231. package/lib/index.js +190 -0
  232. package/lib/save/ArkStream.d.ts +24 -0
  233. package/lib/save/ArkStream.d.ts.map +1 -0
  234. package/lib/save/ArkStream.js +83 -0
  235. package/lib/save/DotPrinter.d.ts +48 -0
  236. package/lib/save/DotPrinter.d.ts.map +1 -0
  237. package/lib/save/DotPrinter.js +229 -0
  238. package/lib/save/GraphPrinter.d.ts +17 -0
  239. package/lib/save/GraphPrinter.d.ts.map +1 -0
  240. package/lib/save/GraphPrinter.js +135 -0
  241. package/lib/save/JsonPrinter.d.ts +28 -0
  242. package/lib/save/JsonPrinter.d.ts.map +1 -0
  243. package/lib/save/JsonPrinter.js +511 -0
  244. package/lib/save/Printer.d.ts +17 -0
  245. package/lib/save/Printer.d.ts.map +1 -0
  246. package/lib/save/Printer.js +27 -0
  247. package/lib/save/PrinterBuilder.d.ts +38 -0
  248. package/lib/save/PrinterBuilder.d.ts.map +1 -0
  249. package/lib/save/PrinterBuilder.js +102 -0
  250. package/lib/save/serializeArkIR.d.ts +3 -0
  251. package/lib/save/serializeArkIR.d.ts.map +1 -0
  252. package/lib/save/serializeArkIR.js +166 -0
  253. package/lib/save/source/SourceBase.d.ts +32 -0
  254. package/lib/save/source/SourceBase.d.ts.map +1 -0
  255. package/lib/save/source/SourceBase.js +93 -0
  256. package/lib/save/source/SourceBody.d.ts +60 -0
  257. package/lib/save/source/SourceBody.d.ts.map +1 -0
  258. package/lib/save/source/SourceBody.js +292 -0
  259. package/lib/save/source/SourceClass.d.ts +27 -0
  260. package/lib/save/source/SourceClass.d.ts.map +1 -0
  261. package/lib/save/source/SourceClass.js +202 -0
  262. package/lib/save/source/SourceField.d.ts +15 -0
  263. package/lib/save/source/SourceField.d.ts.map +1 -0
  264. package/lib/save/source/SourceField.js +68 -0
  265. package/lib/save/source/SourceFilePrinter.d.ts +14 -0
  266. package/lib/save/source/SourceFilePrinter.d.ts.map +1 -0
  267. package/lib/save/source/SourceFilePrinter.js +73 -0
  268. package/lib/save/source/SourceMethod.d.ts +24 -0
  269. package/lib/save/source/SourceMethod.d.ts.map +1 -0
  270. package/lib/save/source/SourceMethod.js +170 -0
  271. package/lib/save/source/SourceModule.d.ts +18 -0
  272. package/lib/save/source/SourceModule.d.ts.map +1 -0
  273. package/lib/save/source/SourceModule.js +120 -0
  274. package/lib/save/source/SourceNamespace.d.ts +13 -0
  275. package/lib/save/source/SourceNamespace.d.ts.map +1 -0
  276. package/lib/save/source/SourceNamespace.js +80 -0
  277. package/lib/save/source/SourceStmt.d.ts +172 -0
  278. package/lib/save/source/SourceStmt.d.ts.map +1 -0
  279. package/lib/save/source/SourceStmt.js +757 -0
  280. package/lib/save/source/SourceTransformer.d.ts +37 -0
  281. package/lib/save/source/SourceTransformer.d.ts.map +1 -0
  282. package/lib/save/source/SourceTransformer.js +338 -0
  283. package/lib/save/source/SourceUtils.d.ts +25 -0
  284. package/lib/save/source/SourceUtils.d.ts.map +1 -0
  285. package/lib/save/source/SourceUtils.js +201 -0
  286. package/lib/transformer/FunctionTransformer.d.ts +3 -0
  287. package/lib/transformer/FunctionTransformer.d.ts.map +1 -0
  288. package/lib/transformer/FunctionTransformer.js +17 -0
  289. package/lib/transformer/SceneTransformer.d.ts +3 -0
  290. package/lib/transformer/SceneTransformer.d.ts.map +1 -0
  291. package/lib/transformer/SceneTransformer.js +17 -0
  292. package/lib/transformer/StaticSingleAssignmentFormer.d.ts +13 -0
  293. package/lib/transformer/StaticSingleAssignmentFormer.d.ts.map +1 -0
  294. package/lib/transformer/StaticSingleAssignmentFormer.js +259 -0
  295. package/lib/transformer/Transformer.d.ts +7 -0
  296. package/lib/transformer/Transformer.d.ts.map +1 -0
  297. package/lib/transformer/Transformer.js +22 -0
  298. package/lib/utils/CfgStructualAnalysis.d.ts +93 -0
  299. package/lib/utils/CfgStructualAnalysis.d.ts.map +1 -0
  300. package/lib/utils/CfgStructualAnalysis.js +955 -0
  301. package/lib/utils/FileUtils.d.ts +18 -0
  302. package/lib/utils/FileUtils.d.ts.map +1 -0
  303. package/lib/utils/FileUtils.js +131 -0
  304. package/lib/utils/callGraphUtils.d.ts +31 -0
  305. package/lib/utils/callGraphUtils.d.ts.map +1 -0
  306. package/lib/utils/callGraphUtils.js +208 -0
  307. package/lib/utils/entryMethodUtils.d.ts +16 -0
  308. package/lib/utils/entryMethodUtils.d.ts.map +1 -0
  309. package/lib/utils/entryMethodUtils.js +139 -0
  310. package/lib/utils/getAllFiles.d.ts +10 -0
  311. package/lib/utils/getAllFiles.d.ts.map +1 -0
  312. package/lib/utils/getAllFiles.js +91 -0
  313. package/lib/utils/json5parser.d.ts +7 -0
  314. package/lib/utils/json5parser.d.ts.map +1 -0
  315. package/lib/utils/json5parser.js +146 -0
  316. package/lib/utils/logger.d.ts +19 -0
  317. package/lib/utils/logger.d.ts.map +1 -0
  318. package/lib/utils/logger.js +90 -0
  319. package/lib/utils/pathTransfer.d.ts +2 -0
  320. package/lib/utils/pathTransfer.d.ts.map +1 -0
  321. package/lib/utils/pathTransfer.js +25 -0
  322. package/package.json +29 -0
@@ -0,0 +1,918 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2024 Huawei Device Co., Ltd.
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.COMPONENT_ATTRIBUTE = exports.API_INTERNAL = exports.COMPONENT_INSTANCE = exports.COMPONENT_COMMON = exports.COMPONENT_PATH = exports.SPECIAL_CONTAINER_COMPONENT = exports.COMPONENT_BUILD_FUNCTION = exports.COMPONENT_BRANCH_FUNCTION = exports.COMPONENT_IF_BRANCH = exports.COMPONENT_IF = exports.COMPONENT_LAZY_FOR_EACH = exports.COMPONENT_FOR_EACH = exports.COMPONENT_REPEAT = exports.COMPONENT_CUSTOMVIEW = exports.COMPONENT_POP_FUNCTION = exports.COMPONENT_CREATE_FUNCTION = exports.isEtsContainerComponent = exports.isEtsSystemComponent = exports.isEtsAtomicComponent = exports.BUILDER_PARAM_DECORATOR = exports.BUILDER_DECORATOR = exports.ENTRY_DECORATOR = exports.COMPONENT_DECORATOR = exports.BUILDIN_ATOMIC_COMPONENT = exports.BUILDIN_SYSTEM_COMPONENT = exports.ETS_COMPILER_OPTIONS = void 0;
21
+ const path_1 = __importDefault(require("path"));
22
+ exports.ETS_COMPILER_OPTIONS = {
23
+ ets: {
24
+ emitDecorators: [
25
+ {
26
+ name: 'Entry',
27
+ emitParameters: true,
28
+ },
29
+ {
30
+ name: 'Component',
31
+ emitParameters: false,
32
+ },
33
+ {
34
+ name: 'Reusable',
35
+ emitParameters: false,
36
+ },
37
+ {
38
+ name: 'CustomDialog',
39
+ emitParameters: false,
40
+ },
41
+ {
42
+ name: 'Consume',
43
+ emitParameters: true,
44
+ },
45
+ {
46
+ name: 'Link',
47
+ emitParameters: false,
48
+ },
49
+ {
50
+ name: 'LocalStorageLink',
51
+ emitParameters: true,
52
+ },
53
+ {
54
+ name: 'LocalStorageProp',
55
+ emitParameters: true,
56
+ },
57
+ {
58
+ name: 'ObjectLink',
59
+ emitParameters: false,
60
+ },
61
+ {
62
+ name: 'Prop',
63
+ emitParameters: false,
64
+ },
65
+ {
66
+ name: 'Provide',
67
+ emitParameters: true,
68
+ },
69
+ {
70
+ name: 'State',
71
+ emitParameters: false,
72
+ },
73
+ {
74
+ name: 'StorageLink',
75
+ emitParameters: true,
76
+ },
77
+ {
78
+ name: 'StorageProp',
79
+ emitParameters: true,
80
+ },
81
+ {
82
+ name: 'Builder',
83
+ emitParameters: false,
84
+ },
85
+ {
86
+ name: 'BuilderParam',
87
+ emitParameters: false,
88
+ },
89
+ {
90
+ name: 'Observed',
91
+ emitParameters: false,
92
+ },
93
+ {
94
+ name: 'Require',
95
+ emitParameters: false,
96
+ },
97
+ {
98
+ name: 'Sendable',
99
+ emitParameters: false,
100
+ },
101
+ ],
102
+ propertyDecorators: [
103
+ {
104
+ name: 'Link',
105
+ needInitialization: false,
106
+ },
107
+ {
108
+ name: 'Prop',
109
+ needInitialization: false,
110
+ },
111
+ {
112
+ name: 'ObjectLink',
113
+ needInitialization: false,
114
+ },
115
+ {
116
+ name: 'Consume',
117
+ needInitialization: false,
118
+ },
119
+ ],
120
+ render: {
121
+ method: ['build', 'pageTransition'],
122
+ decorator: 'Builder',
123
+ },
124
+ components: [
125
+ 'AbilityComponent',
126
+ 'AlphabetIndexer',
127
+ 'Animator',
128
+ 'Badge',
129
+ 'Blank',
130
+ 'Button',
131
+ 'Calendar',
132
+ 'CalendarPicker',
133
+ 'Camera',
134
+ 'Canvas',
135
+ 'Checkbox',
136
+ 'CheckboxGroup',
137
+ 'Circle',
138
+ 'ColorPicker',
139
+ 'ColorPickerDialog',
140
+ 'Column',
141
+ 'ColumnSplit',
142
+ 'ContentSlot',
143
+ 'Counter',
144
+ 'DataPanel',
145
+ 'DatePicker',
146
+ 'Divider',
147
+ 'EffectComponent',
148
+ 'Ellipse',
149
+ 'EmbeddedComponent',
150
+ 'Flex',
151
+ 'FolderStack',
152
+ 'FormComponent',
153
+ 'FormLink',
154
+ 'FrictionMotion',
155
+ 'Gauge',
156
+ 'GeometryView',
157
+ 'Grid',
158
+ 'GridCol',
159
+ 'GridContainer',
160
+ 'GridItem',
161
+ 'GridRow',
162
+ 'Hyperlink',
163
+ 'Image',
164
+ 'ImageAnimator',
165
+ 'Line',
166
+ 'List',
167
+ 'ListItem',
168
+ 'ListItemGroup',
169
+ 'LoadingProgress',
170
+ 'Marquee',
171
+ 'MediaCachedImage',
172
+ 'Menu',
173
+ 'MenuItem',
174
+ 'MenuItemGroup',
175
+ 'NavDestination',
176
+ 'NavRouter',
177
+ 'Navigation',
178
+ 'Navigator',
179
+ 'NodeContainer',
180
+ 'Option',
181
+ 'PageTransitionEnter',
182
+ 'PageTransitionExit',
183
+ 'Panel',
184
+ 'Particle',
185
+ 'Path',
186
+ 'PatternLock',
187
+ 'Piece',
188
+ 'PluginComponent',
189
+ 'Polygon',
190
+ 'Polyline',
191
+ 'Progress',
192
+ 'QRCode',
193
+ 'Radio',
194
+ 'Rating',
195
+ 'Rect',
196
+ 'Refresh',
197
+ 'RelativeContainer',
198
+ 'RemoteWindow',
199
+ 'RootScene',
200
+ 'Row',
201
+ 'RowSplit',
202
+ 'RichText',
203
+ 'Screen',
204
+ 'Scroll',
205
+ 'ScrollBar',
206
+ 'ScrollMotion',
207
+ 'Search',
208
+ 'Section',
209
+ 'Select',
210
+ 'Shape',
211
+ 'Sheet',
212
+ 'SideBarContainer',
213
+ 'Slider',
214
+ 'Span',
215
+ 'Stack',
216
+ 'Stepper',
217
+ 'StepperItem',
218
+ 'Swiper',
219
+ 'TabContent',
220
+ 'Tabs',
221
+ 'Text',
222
+ 'TextPicker',
223
+ 'TextClock',
224
+ 'TextArea',
225
+ 'TextInput',
226
+ 'TextTimer',
227
+ 'TimePicker',
228
+ 'Toggle',
229
+ 'Video',
230
+ 'Web',
231
+ 'WindowScene',
232
+ 'WithTheme',
233
+ 'XComponent',
234
+ 'WaterFlow',
235
+ 'FlowItem',
236
+ 'ImageSpan',
237
+ 'LocationButton',
238
+ 'PasteButton',
239
+ 'SaveButton',
240
+ 'SpringMotion',
241
+ 'SpringProp',
242
+ 'SymbolSpan',
243
+ 'SymbolGlyph',
244
+ 'UIExtensionComponent',
245
+ 'RichEditor',
246
+ 'Component3D',
247
+ 'ContainerSpan',
248
+ 'ForEach',
249
+ 'LazyForEach',
250
+ ],
251
+ extend: {
252
+ decorator: ['Extend', 'AnimatableExtend'],
253
+ components: [
254
+ {
255
+ name: 'AbilityComponent',
256
+ type: 'AbilityComponentAttribute',
257
+ instance: 'AbilityComponentInstance',
258
+ },
259
+ {
260
+ name: 'AlphabetIndexer',
261
+ type: 'AlphabetIndexerAttribute',
262
+ instance: 'AlphabetIndexerInstance',
263
+ },
264
+ {
265
+ name: 'Animator',
266
+ type: 'AnimatorAttribute',
267
+ instance: 'AnimatorInstance',
268
+ },
269
+ {
270
+ name: 'Badge',
271
+ type: 'BadgeAttribute',
272
+ instance: 'BadgeInstance',
273
+ },
274
+ {
275
+ name: 'Blank',
276
+ type: 'BlankAttribute',
277
+ instance: 'BlankInstance',
278
+ },
279
+ {
280
+ name: 'Button',
281
+ type: 'ButtonAttribute',
282
+ instance: 'ButtonInstance',
283
+ },
284
+ {
285
+ name: 'Calendar',
286
+ type: 'CalendarAttribute',
287
+ instance: 'CalendarInstance',
288
+ },
289
+ {
290
+ name: 'CalendarPicker',
291
+ type: 'CalendarPickerAttribute',
292
+ instance: 'CalendarPickerInstance',
293
+ },
294
+ {
295
+ name: 'Camera',
296
+ type: 'CameraAttribute',
297
+ instance: 'CameraInstance',
298
+ },
299
+ {
300
+ name: 'Canvas',
301
+ type: 'CanvasAttribute',
302
+ instance: 'CanvasInstance',
303
+ },
304
+ {
305
+ name: 'Checkbox',
306
+ type: 'CheckboxAttribute',
307
+ instance: 'CheckboxInstance',
308
+ },
309
+ {
310
+ name: 'CheckboxGroup',
311
+ type: 'CheckboxGroupAttribute',
312
+ instance: 'CheckboxGroupInstance',
313
+ },
314
+ {
315
+ name: 'Circle',
316
+ type: 'CircleAttribute',
317
+ instance: 'CircleInstance',
318
+ },
319
+ {
320
+ name: 'ColorPicker',
321
+ type: 'ColorPickerAttribute',
322
+ instance: 'ColorPickerInstance',
323
+ },
324
+ {
325
+ name: 'ColorPickerDialog',
326
+ type: 'ColorPickerDialogAttribute',
327
+ instance: 'ColorPickerDialogInstance',
328
+ },
329
+ {
330
+ name: 'Column',
331
+ type: 'ColumnAttribute',
332
+ instance: 'ColumnInstance',
333
+ },
334
+ {
335
+ name: 'ColumnSplit',
336
+ type: 'ColumnSplitAttribute',
337
+ instance: 'ColumnSplitInstance',
338
+ },
339
+ {
340
+ name: 'Counter',
341
+ type: 'CounterAttribute',
342
+ instance: 'CounterInstance',
343
+ },
344
+ {
345
+ name: 'DataPanel',
346
+ type: 'DataPanelAttribute',
347
+ instance: 'DataPanelInstance',
348
+ },
349
+ {
350
+ name: 'DatePicker',
351
+ type: 'DatePickerAttribute',
352
+ instance: 'DatePickerInstance',
353
+ },
354
+ {
355
+ name: 'Divider',
356
+ type: 'DividerAttribute',
357
+ instance: 'DividerInstance',
358
+ },
359
+ {
360
+ name: 'EffectComponent',
361
+ type: 'EffectComponentAttribute',
362
+ instance: 'EffectComponentInstance',
363
+ },
364
+ {
365
+ name: 'Ellipse',
366
+ type: 'EllipseAttribute',
367
+ instance: 'EllipseInstance',
368
+ },
369
+ {
370
+ name: 'EmbeddedComponent',
371
+ type: 'EmbeddedComponentAttribute',
372
+ instance: 'EmbeddedComponentInstance',
373
+ },
374
+ {
375
+ name: 'Flex',
376
+ type: 'FlexAttribute',
377
+ instance: 'FlexInstance',
378
+ },
379
+ {
380
+ name: 'FormComponent',
381
+ type: 'FormComponentAttribute',
382
+ instance: 'FormComponentInstance',
383
+ },
384
+ {
385
+ name: 'Gauge',
386
+ type: 'GaugeAttribute',
387
+ instance: 'GaugeInstance',
388
+ },
389
+ {
390
+ name: 'GeometryView',
391
+ type: 'GeometryViewAttribute',
392
+ instance: 'GeometryViewInstance',
393
+ },
394
+ {
395
+ name: 'Grid',
396
+ type: 'GridAttribute',
397
+ instance: 'GridInstance',
398
+ },
399
+ {
400
+ name: 'GridItem',
401
+ type: 'GridItemAttribute',
402
+ instance: 'GridItemInstance',
403
+ },
404
+ {
405
+ name: 'GridContainer',
406
+ type: 'GridContainerAttribute',
407
+ instance: 'GridContainerInstance',
408
+ },
409
+ {
410
+ name: 'Hyperlink',
411
+ type: 'HyperlinkAttribute',
412
+ instance: 'HyperlinkInstance',
413
+ },
414
+ {
415
+ name: 'Image',
416
+ type: 'ImageAttribute',
417
+ instance: 'ImageInstance',
418
+ },
419
+ {
420
+ name: 'ImageAnimator',
421
+ type: 'ImageAnimatorAttribute',
422
+ instance: 'ImageAnimatorInstance',
423
+ },
424
+ {
425
+ name: 'Line',
426
+ type: 'LineAttribute',
427
+ instance: 'LineInstance',
428
+ },
429
+ {
430
+ name: 'List',
431
+ type: 'ListAttribute',
432
+ instance: 'ListInstance',
433
+ },
434
+ {
435
+ name: 'ListItem',
436
+ type: 'ListItemAttribute',
437
+ instance: 'ListItemInstance',
438
+ },
439
+ {
440
+ name: 'ListItemGroup',
441
+ type: 'ListItemGroupAttribute',
442
+ instance: 'ListItemGroupInstance',
443
+ },
444
+ {
445
+ name: 'LoadingProgress',
446
+ type: 'LoadingProgressAttribute',
447
+ instance: 'LoadingProgressInstance',
448
+ },
449
+ {
450
+ name: 'Marquee',
451
+ type: 'MarqueeAttribute',
452
+ instance: 'MarqueeInstance',
453
+ },
454
+ {
455
+ name: 'MediaCachedImage',
456
+ type: 'MediaCachedImageAttribute',
457
+ instance: 'MediaCachedImageInstance',
458
+ },
459
+ {
460
+ name: 'Menu',
461
+ type: 'MenuAttribute',
462
+ instance: 'MenuInstance',
463
+ },
464
+ {
465
+ name: 'MenuItem',
466
+ type: 'MenuItemAttribute',
467
+ instance: 'MenuItemInstance',
468
+ },
469
+ {
470
+ name: 'MenuItemGroup',
471
+ type: 'MenuItemGroupAttribute',
472
+ instance: 'MenuItemGroupInstance',
473
+ },
474
+ {
475
+ name: 'NavDestination',
476
+ type: 'NavDestinationAttribute',
477
+ instance: 'NavDestinationInstance',
478
+ },
479
+ {
480
+ name: 'NavRouter',
481
+ type: 'NavRouterAttribute',
482
+ instance: 'NavRouterInstance',
483
+ },
484
+ {
485
+ name: 'Navigation',
486
+ type: 'NavigationAttribute',
487
+ instance: 'NavigationInstance',
488
+ },
489
+ {
490
+ name: 'Navigator',
491
+ type: 'NavigatorAttribute',
492
+ instance: 'NavigatorInstance',
493
+ },
494
+ {
495
+ name: 'Option',
496
+ type: 'OptionAttribute',
497
+ instance: 'OptionInstance',
498
+ },
499
+ {
500
+ name: 'PageTransitionEnter',
501
+ type: 'PageTransitionEnterAttribute',
502
+ instance: 'PageTransitionEnterInstance',
503
+ },
504
+ {
505
+ name: 'PageTransitionExit',
506
+ type: 'PageTransitionExitAttribute',
507
+ instance: 'PageTransitionExitInstance',
508
+ },
509
+ {
510
+ name: 'Panel',
511
+ type: 'PanelAttribute',
512
+ instance: 'PanelInstance',
513
+ },
514
+ {
515
+ name: 'Path',
516
+ type: 'PathAttribute',
517
+ instance: 'PathInstance',
518
+ },
519
+ {
520
+ name: 'PatternLock',
521
+ type: 'PatternLockAttribute',
522
+ instance: 'PatternLockInstance',
523
+ },
524
+ {
525
+ name: 'Piece',
526
+ type: 'PieceAttribute',
527
+ instance: 'PieceInstance',
528
+ },
529
+ {
530
+ name: 'PluginComponent',
531
+ type: 'PluginComponentAttribute',
532
+ instance: 'PluginComponentInstance',
533
+ },
534
+ {
535
+ name: 'Polygon',
536
+ type: 'PolygonAttribute',
537
+ instance: 'PolygonInstance',
538
+ },
539
+ {
540
+ name: 'Polyline',
541
+ type: 'PolylineAttribute',
542
+ instance: 'PolylineInstance',
543
+ },
544
+ {
545
+ name: 'Progress',
546
+ type: 'ProgressAttribute',
547
+ instance: 'ProgressInstance',
548
+ },
549
+ {
550
+ name: 'QRCode',
551
+ type: 'QRCodeAttribute',
552
+ instance: 'QRCodeInstance',
553
+ },
554
+ {
555
+ name: 'Radio',
556
+ type: 'RadioAttribute',
557
+ instance: 'RadioInstance',
558
+ },
559
+ {
560
+ name: 'Rating',
561
+ type: 'RatingAttribute',
562
+ instance: 'RatingInstance',
563
+ },
564
+ {
565
+ name: 'Rect',
566
+ type: 'RectAttribute',
567
+ instance: 'RectInstance',
568
+ },
569
+ {
570
+ name: 'RelativeContainer',
571
+ type: 'RelativeContainerAttribute',
572
+ instance: 'RelativeContainerInstance',
573
+ },
574
+ {
575
+ name: 'Refresh',
576
+ type: 'RefreshAttribute',
577
+ instance: 'RefreshInstance',
578
+ },
579
+ {
580
+ name: 'RemoteWindow',
581
+ type: 'RemoteWindowAttribute',
582
+ instance: 'RemoteWindowInstance',
583
+ },
584
+ {
585
+ name: 'RootScene',
586
+ type: 'RootSceneAttribute',
587
+ instance: 'RootSceneInstance',
588
+ },
589
+ {
590
+ name: 'Row',
591
+ type: 'RowAttribute',
592
+ instance: 'RowInstance',
593
+ },
594
+ {
595
+ name: 'RowSplit',
596
+ type: 'RowSplitAttribute',
597
+ instance: 'RowSplitInstance',
598
+ },
599
+ {
600
+ name: 'RichText',
601
+ type: 'RichTextAttribute',
602
+ instance: 'RichTextInstance',
603
+ },
604
+ {
605
+ name: 'Screen',
606
+ type: 'ScreenAttribute',
607
+ instance: 'ScreenInstance',
608
+ },
609
+ {
610
+ name: 'Scroll',
611
+ type: 'ScrollAttribute',
612
+ instance: 'ScrollInstance',
613
+ },
614
+ {
615
+ name: 'ScrollBar',
616
+ type: 'ScrollBarAttribute',
617
+ instance: 'ScrollBarInstance',
618
+ },
619
+ {
620
+ name: 'Search',
621
+ type: 'SearchAttribute',
622
+ instance: 'SearchInstance',
623
+ },
624
+ {
625
+ name: 'Section',
626
+ type: 'SectionAttribute',
627
+ instance: 'SectionInstance',
628
+ },
629
+ {
630
+ name: 'Select',
631
+ type: 'SelectAttribute',
632
+ instance: 'SelectInstance',
633
+ },
634
+ {
635
+ name: 'Shape',
636
+ type: 'ShapeAttribute',
637
+ instance: 'ShapeInstance',
638
+ },
639
+ {
640
+ name: 'Sheet',
641
+ type: 'SheetAttribute',
642
+ instance: 'SheetInstance',
643
+ },
644
+ {
645
+ name: 'SideBarContainer',
646
+ type: 'SideBarContainerAttribute',
647
+ instance: 'SideBarContainerInstance',
648
+ },
649
+ {
650
+ name: 'Slider',
651
+ type: 'SliderAttribute',
652
+ instance: 'SliderInstance',
653
+ },
654
+ {
655
+ name: 'Span',
656
+ type: 'SpanAttribute',
657
+ instance: 'SpanInstance',
658
+ },
659
+ {
660
+ name: 'Stack',
661
+ type: 'StackAttribute',
662
+ instance: 'StackInstance',
663
+ },
664
+ {
665
+ name: 'Stepper',
666
+ type: 'StepperAttribute',
667
+ instance: 'StepperInstance',
668
+ },
669
+ {
670
+ name: 'StepperItem',
671
+ type: 'StepperItemAttribute',
672
+ instance: 'StepperItemInstance',
673
+ },
674
+ {
675
+ name: 'Swiper',
676
+ type: 'SwiperAttribute',
677
+ instance: 'SwiperInstance',
678
+ },
679
+ {
680
+ name: 'TabContent',
681
+ type: 'TabContentAttribute',
682
+ instance: 'TabContentInstance',
683
+ },
684
+ {
685
+ name: 'Tabs',
686
+ type: 'TabsAttribute',
687
+ instance: 'TabsInstance',
688
+ },
689
+ {
690
+ name: 'Text',
691
+ type: 'TextAttribute',
692
+ instance: 'TextInstance',
693
+ },
694
+ {
695
+ name: 'TextPicker',
696
+ type: 'TextPickerAttribute',
697
+ instance: 'TextPickerInstance',
698
+ },
699
+ {
700
+ name: 'TextClock',
701
+ type: 'TextClockAttribute',
702
+ instance: 'TextClockInstance',
703
+ },
704
+ {
705
+ name: 'TextArea',
706
+ type: 'TextAreaAttribute',
707
+ instance: 'TextAreaInstance',
708
+ },
709
+ {
710
+ name: 'TextInput',
711
+ type: 'TextInputAttribute',
712
+ instance: 'TextInputInstance',
713
+ },
714
+ {
715
+ name: 'TextTimer',
716
+ type: 'TextTimerAttribute',
717
+ instance: 'TextTimerInstance',
718
+ },
719
+ {
720
+ name: 'TimePicker',
721
+ type: 'TimePickerAttribute',
722
+ instance: 'TimePickerInstance',
723
+ },
724
+ {
725
+ name: 'Toggle',
726
+ type: 'ToggleAttribute',
727
+ instance: 'ToggleInstance',
728
+ },
729
+ {
730
+ name: 'Video',
731
+ type: 'VideoAttribute',
732
+ instance: 'VideoInstance',
733
+ },
734
+ {
735
+ name: 'Web',
736
+ type: 'WebAttribute',
737
+ instance: 'WebInstance',
738
+ },
739
+ {
740
+ name: 'WindowScene',
741
+ type: 'WindowSceneAttribute',
742
+ instance: 'WindowSceneInstance',
743
+ },
744
+ {
745
+ name: 'XComponent',
746
+ type: 'XComponentAttribute',
747
+ instance: 'XComponentInstance',
748
+ },
749
+ {
750
+ name: 'GridRow',
751
+ type: 'GridRowAttribute',
752
+ instance: 'GridRowInstance',
753
+ },
754
+ {
755
+ name: 'GridCol',
756
+ type: 'GridColAttribute',
757
+ instance: 'GridColInstance',
758
+ },
759
+ {
760
+ name: 'WaterFlow',
761
+ type: 'WaterFlowAttribute',
762
+ instance: 'WaterFlowInstance',
763
+ },
764
+ {
765
+ name: 'FlowItem',
766
+ type: 'FlowItemAttribute',
767
+ instance: 'FlowItemInstance',
768
+ },
769
+ {
770
+ name: 'ImageSpan',
771
+ type: 'ImageSpanAttribute',
772
+ instance: 'ImageSpanInstance',
773
+ },
774
+ {
775
+ name: 'LocationButton',
776
+ type: 'LocationButtonAttribute',
777
+ instance: 'LocationButtonInstance',
778
+ },
779
+ {
780
+ name: 'PasteButton',
781
+ type: 'PasteButtonAttribute',
782
+ instance: 'PasteButtonInstance',
783
+ },
784
+ {
785
+ name: 'SaveButton',
786
+ type: 'SaveButtonAttribute',
787
+ instance: 'SaveButtonInstance',
788
+ },
789
+ {
790
+ name: 'UIExtensionComponent',
791
+ type: 'UIExtensionComponentAttribute',
792
+ instance: 'UIExtensionComponentInstance',
793
+ },
794
+ {
795
+ name: 'RichEditor',
796
+ type: 'RichEditorAttribute',
797
+ instance: 'RichEditorInstance',
798
+ },
799
+ {
800
+ name: 'Component3D',
801
+ type: 'Component3DAttribute',
802
+ instance: 'Component3DInstance',
803
+ },
804
+ {
805
+ name: 'ContainerSpan',
806
+ type: 'ContainerSpanAttribute',
807
+ instance: 'ContainerSpanInstance',
808
+ },
809
+ ],
810
+ },
811
+ styles: {
812
+ decorator: 'Styles',
813
+ component: {
814
+ name: 'Common',
815
+ type: 'T',
816
+ instance: 'CommonInstance',
817
+ },
818
+ property: 'stateStyles',
819
+ },
820
+ concurrent: {
821
+ decorator: 'Concurrent',
822
+ },
823
+ customComponent: 'CustomComponent',
824
+ libs: [],
825
+ },
826
+ };
827
+ exports.BUILDIN_SYSTEM_COMPONENT = new Set(exports.ETS_COMPILER_OPTIONS.ets.components);
828
+ exports.BUILDIN_ATOMIC_COMPONENT = new Set([
829
+ 'AbilityComponent',
830
+ 'AlphabetIndexer',
831
+ 'Animator',
832
+ 'Blank',
833
+ 'CalendarPicker',
834
+ 'Camera',
835
+ 'Circle',
836
+ 'Component3D',
837
+ 'ContentSlot',
838
+ 'Divider',
839
+ 'Ellipse',
840
+ 'EmbeddedComponent',
841
+ 'FormComponent',
842
+ 'FrictionMotion',
843
+ 'GeometryView',
844
+ 'Image',
845
+ 'ImageAnimator',
846
+ 'ImageSpan',
847
+ 'Line',
848
+ 'LoadingProgress',
849
+ 'LocationButton',
850
+ 'Marquee',
851
+ 'MediaCachedImage',
852
+ 'NodeContainer',
853
+ 'PageTransitionEnter',
854
+ 'PageTransitionExit',
855
+ 'Particle',
856
+ 'PasteButton',
857
+ 'Path',
858
+ 'PatternLock',
859
+ 'Polygon',
860
+ 'Polyline',
861
+ 'Progress',
862
+ 'Radio',
863
+ 'Rect',
864
+ 'RemoteWindow',
865
+ 'RichEditor',
866
+ 'RichText',
867
+ 'SaveButton',
868
+ 'ScrollMotion',
869
+ 'Search',
870
+ 'Slider',
871
+ 'Span',
872
+ 'SpringMotion',
873
+ 'SpringProp',
874
+ 'SymbolSpan',
875
+ 'SymbolGlyph',
876
+ 'TextArea',
877
+ 'TextInput',
878
+ 'UIExtensionComponent',
879
+ 'Video',
880
+ 'Web',
881
+ ]);
882
+ exports.COMPONENT_DECORATOR = new Set(['Reusable', 'Component', 'ComponentV2', 'CustomDialog']);
883
+ exports.ENTRY_DECORATOR = 'Entry';
884
+ exports.BUILDER_DECORATOR = 'Builder';
885
+ exports.BUILDER_PARAM_DECORATOR = 'BuilderParam';
886
+ function isEtsAtomicComponent(name) {
887
+ return exports.BUILDIN_ATOMIC_COMPONENT.has(name);
888
+ }
889
+ exports.isEtsAtomicComponent = isEtsAtomicComponent;
890
+ function isEtsSystemComponent(name) {
891
+ return exports.BUILDIN_SYSTEM_COMPONENT.has(name);
892
+ }
893
+ exports.isEtsSystemComponent = isEtsSystemComponent;
894
+ function isEtsContainerComponent(name) {
895
+ return isEtsSystemComponent(name) && !isEtsAtomicComponent(name);
896
+ }
897
+ exports.isEtsContainerComponent = isEtsContainerComponent;
898
+ exports.COMPONENT_CREATE_FUNCTION = 'create';
899
+ exports.COMPONENT_POP_FUNCTION = 'pop';
900
+ exports.COMPONENT_CUSTOMVIEW = 'View';
901
+ exports.COMPONENT_REPEAT = 'Repeat';
902
+ exports.COMPONENT_FOR_EACH = 'ForEach';
903
+ exports.COMPONENT_LAZY_FOR_EACH = 'LazyForEach';
904
+ exports.COMPONENT_IF = 'If';
905
+ exports.COMPONENT_IF_BRANCH = 'IfBranch';
906
+ exports.COMPONENT_BRANCH_FUNCTION = 'branch';
907
+ exports.COMPONENT_BUILD_FUNCTION = 'build';
908
+ exports.SPECIAL_CONTAINER_COMPONENT = new Set([
909
+ exports.COMPONENT_IF,
910
+ exports.COMPONENT_IF_BRANCH,
911
+ exports.COMPONENT_CUSTOMVIEW,
912
+ exports.COMPONENT_REPEAT,
913
+ ]);
914
+ exports.COMPONENT_PATH = path_1.default.sep + 'component' + path_1.default.sep;
915
+ exports.COMPONENT_COMMON = 'Common';
916
+ exports.COMPONENT_INSTANCE = 'Instance';
917
+ exports.API_INTERNAL = path_1.default.sep + '@internal' + path_1.default.sep;
918
+ exports.COMPONENT_ATTRIBUTE = 'Attribute';