@lcap/nasl 3.5.0-beta.4 → 3.6.0-alpha.1

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 (238) hide show
  1. package/out/bak/translator.js +39 -119
  2. package/out/bak/translator.js.map +1 -1
  3. package/out/breakpoint/generator/BreakpointNode.d.ts +0 -3
  4. package/out/breakpoint/generator/BreakpointNode.js +0 -9
  5. package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
  6. package/out/breakpoint/shared/constants.js +0 -1
  7. package/out/breakpoint/shared/constants.js.map +1 -1
  8. package/out/breakpoint/shared/utils.js +7 -31
  9. package/out/breakpoint/shared/utils.js.map +1 -1
  10. package/out/common/BaseNode.d.ts +13 -1
  11. package/out/common/BaseNode.js +52 -23
  12. package/out/common/BaseNode.js.map +1 -1
  13. package/out/common/Command.js +1 -0
  14. package/out/common/Command.js.map +1 -1
  15. package/out/common/EventEmitter.d.ts +1 -1
  16. package/out/common/EventEmitter.js +0 -4
  17. package/out/common/EventEmitter.js.map +1 -1
  18. package/out/concepts/App__.d.ts +76 -51
  19. package/out/concepts/App__.js +190 -87
  20. package/out/concepts/App__.js.map +1 -1
  21. package/out/concepts/BackendVariable__.js +2 -10
  22. package/out/concepts/BackendVariable__.js.map +1 -1
  23. package/out/concepts/BindAttribute__.js +6 -16
  24. package/out/concepts/BindAttribute__.js.map +1 -1
  25. package/out/concepts/BindDirective__.d.ts +0 -1
  26. package/out/concepts/BindDirective__.js +4 -19
  27. package/out/concepts/BindDirective__.js.map +1 -1
  28. package/out/concepts/BindEvent__.d.ts +1 -3
  29. package/out/concepts/BindEvent__.js +13 -38
  30. package/out/concepts/BindEvent__.js.map +1 -1
  31. package/out/concepts/CallFunction__.js +2 -10
  32. package/out/concepts/CallFunction__.js.map +1 -1
  33. package/out/concepts/CallLogic__.d.ts +0 -2
  34. package/out/concepts/CallLogic__.js +27 -38
  35. package/out/concepts/CallLogic__.js.map +1 -1
  36. package/out/concepts/Constant__.js +6 -7
  37. package/out/concepts/Constant__.js.map +1 -1
  38. package/out/concepts/Destination__.d.ts +1 -1
  39. package/out/concepts/Destination__.js +4 -6
  40. package/out/concepts/Destination__.js.map +1 -1
  41. package/out/concepts/End__.js +1 -2
  42. package/out/concepts/End__.js.map +1 -1
  43. package/out/concepts/Entity__.d.ts +1 -1
  44. package/out/concepts/Entity__.js +2 -0
  45. package/out/concepts/Entity__.js.map +1 -1
  46. package/out/concepts/Event__.d.ts +0 -14
  47. package/out/concepts/Event__.js +0 -61
  48. package/out/concepts/Event__.js.map +1 -1
  49. package/out/concepts/Frontend__.d.ts +88 -0
  50. package/out/concepts/Frontend__.js +143 -1
  51. package/out/concepts/Frontend__.js.map +1 -1
  52. package/out/concepts/Identifier__.d.ts +0 -5
  53. package/out/concepts/Identifier__.js +9 -19
  54. package/out/concepts/Identifier__.js.map +1 -1
  55. package/out/concepts/LogicItem__.d.ts +1 -1
  56. package/out/concepts/LogicItem__.js.map +1 -1
  57. package/out/concepts/Logic__.d.ts +1 -3
  58. package/out/concepts/Logic__.js +13 -16
  59. package/out/concepts/Logic__.js.map +1 -1
  60. package/out/concepts/MemberExpression__.d.ts +1 -1
  61. package/out/concepts/MemberExpression__.js +3 -3
  62. package/out/concepts/MemberExpression__.js.map +1 -1
  63. package/out/concepts/NewComposite__.js.map +1 -1
  64. package/out/concepts/Param__.js +3 -11
  65. package/out/concepts/Param__.js.map +1 -1
  66. package/out/concepts/ProcessElement__.js +1 -9
  67. package/out/concepts/ProcessElement__.js.map +1 -1
  68. package/out/concepts/Return__.js +9 -17
  69. package/out/concepts/Return__.js.map +1 -1
  70. package/out/concepts/Variable__.js +8 -17
  71. package/out/concepts/Variable__.js.map +1 -1
  72. package/out/concepts/ViewElement__.d.ts +2 -17
  73. package/out/concepts/ViewElement__.js +31 -143
  74. package/out/concepts/ViewElement__.js.map +1 -1
  75. package/out/concepts/View__.js +6 -6
  76. package/out/concepts/View__.js.map +1 -1
  77. package/out/concepts/index__.d.ts +0 -5
  78. package/out/concepts/index__.js +0 -5
  79. package/out/concepts/index__.js.map +1 -1
  80. package/out/concepts/utils/asserts.d.ts +3 -258
  81. package/out/concepts/utils/asserts.js +13 -351
  82. package/out/concepts/utils/asserts.js.map +1 -1
  83. package/out/concepts/utils/types.d.ts +3 -20
  84. package/out/generator/genBundleFiles.js +11 -25
  85. package/out/generator/genBundleFiles.js.map +1 -1
  86. package/out/generator/genReleaseBody.js +3 -12
  87. package/out/generator/genReleaseBody.js.map +1 -1
  88. package/out/generator/permission.js +3 -3
  89. package/out/generator/permission.js.map +1 -1
  90. package/out/natural/transformTSCode.js +1 -1
  91. package/out/natural/transformTSCode.js.map +1 -1
  92. package/out/server/extendBaseNode.js +22 -6
  93. package/out/server/extendBaseNode.js.map +1 -1
  94. package/out/server/getLogics.js +27 -62
  95. package/out/server/getLogics.js.map +1 -1
  96. package/out/server/getMemberIdentifier.js +1 -6
  97. package/out/server/getMemberIdentifier.js.map +1 -1
  98. package/out/server/naslServer.js +11 -28
  99. package/out/server/naslServer.js.map +1 -1
  100. package/out/server/translator.js +1 -6
  101. package/out/server/translator.js.map +1 -1
  102. package/out/service/storage/init.js +26 -2
  103. package/out/service/storage/init.js.map +1 -1
  104. package/out/templator/genCreateBlock.js +6 -6
  105. package/out/templator/genCreateBlock.js.map +1 -1
  106. package/out/templator/genCurdEditMultipleKeyBlock.js +16 -16
  107. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  108. package/out/templator/genCurdMultipleKeyBlock.d.ts +27 -0
  109. package/out/templator/genCurdMultipleKeyBlock.js +709 -37
  110. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  111. package/out/templator/genGetBlock.js +4 -4
  112. package/out/templator/genGetBlock.js.map +1 -1
  113. package/out/templator/genGridViewBlock.js +12 -12
  114. package/out/templator/genGridViewBlock.js.map +1 -1
  115. package/out/templator/genListViewBlock.js +4 -4
  116. package/out/templator/genListViewBlock.js.map +1 -1
  117. package/out/templator/genSelectBlock.js +3 -3
  118. package/out/templator/genSelectBlock.js.map +1 -1
  119. package/out/templator/genTableBlock.d.ts +2 -0
  120. package/out/templator/genTableBlock.js +124 -11
  121. package/out/templator/genTableBlock.js.map +1 -1
  122. package/out/templator/genUpdateBlock.js +8 -8
  123. package/out/templator/genUpdateBlock.js.map +1 -1
  124. package/out/templator/utils.d.ts +2 -2
  125. package/out/templator/utils.js.map +1 -1
  126. package/out/translator/utils.js +18 -0
  127. package/out/translator/utils.js.map +1 -1
  128. package/out/utils/i18nInfo.js +2 -7
  129. package/out/utils/i18nInfo.js.map +1 -1
  130. package/package.json +2 -2
  131. package/src/bak/translator.js +43 -121
  132. package/src/breakpoint/generator/BreakpointNode.ts +0 -12
  133. package/src/breakpoint/shared/constants.ts +0 -1
  134. package/src/breakpoint/shared/utils.ts +10 -37
  135. package/src/common/BaseNode.ts +60 -22
  136. package/src/common/Command.ts +1 -0
  137. package/src/common/EventEmitter.ts +1 -6
  138. package/src/concepts/App__.ts +251 -139
  139. package/src/concepts/BackendVariable__.ts +2 -10
  140. package/src/concepts/BindAttribute__.ts +6 -15
  141. package/src/concepts/BindDirective__.ts +4 -19
  142. package/src/concepts/BindEvent__.ts +12 -40
  143. package/src/concepts/CallFunction__.ts +2 -10
  144. package/src/concepts/CallLogic__.ts +32 -45
  145. package/src/concepts/Constant__.ts +7 -5
  146. package/src/concepts/Destination__.ts +4 -6
  147. package/src/concepts/End__.ts +0 -1
  148. package/src/concepts/Entity__.ts +3 -1
  149. package/src/concepts/Event__.ts +0 -70
  150. package/src/concepts/Frontend__.ts +251 -3
  151. package/src/concepts/Identifier__.ts +13 -29
  152. package/src/concepts/LogicItem__.ts +0 -1
  153. package/src/concepts/Logic__.ts +14 -21
  154. package/src/concepts/MemberExpression__.ts +3 -3
  155. package/src/concepts/NewComposite__.ts +6 -4
  156. package/src/concepts/Param__.ts +3 -11
  157. package/src/concepts/ProcessElement__.ts +1 -8
  158. package/src/concepts/Return__.ts +12 -15
  159. package/src/concepts/Variable__.ts +9 -17
  160. package/src/concepts/ViewElement__.ts +54 -166
  161. package/src/concepts/View__.ts +6 -8
  162. package/src/concepts/index__.ts +0 -5
  163. package/src/concepts/utils/asserts.ts +4 -367
  164. package/src/concepts/utils/types.ts +0 -28
  165. package/src/generator/genBundleFiles.ts +15 -33
  166. package/src/generator/genReleaseBody.ts +3 -14
  167. package/src/generator/permission.ts +6 -8
  168. package/src/natural/transformTSCode.ts +1 -1
  169. package/src/server/extendBaseNode.ts +41 -22
  170. package/src/server/getLogics.ts +41 -79
  171. package/src/server/getMemberIdentifier.ts +1 -7
  172. package/src/server/naslServer.ts +12 -30
  173. package/src/server/translator.ts +1 -7
  174. package/src/service/storage/init.ts +33 -2
  175. package/src/templator/genCreateBlock.ts +6 -6
  176. package/src/templator/genCurdEditMultipleKeyBlock.ts +16 -16
  177. package/src/templator/genCurdMultipleKeyBlock.ts +817 -93
  178. package/src/templator/genGetBlock.ts +4 -4
  179. package/src/templator/genGridViewBlock.ts +12 -12
  180. package/src/templator/genListViewBlock.ts +4 -4
  181. package/src/templator/genSelectBlock.ts +3 -3
  182. package/src/templator/genTableBlock.ts +137 -12
  183. package/src/templator/genUpdateBlock.ts +8 -8
  184. package/src/templator/utils.ts +2 -2
  185. package/src/translator/utils.ts +20 -0
  186. package/src/utils/i18nInfo.ts +2 -7
  187. package/test/concepts/call-function/fixtures/from-string.json +59 -68
  188. package/test/concepts/call-function/fixtures/to-string-global-tz.json +58 -67
  189. package/test/concepts/call-function/fixtures/to-string-no-tz.json +48 -57
  190. package/test/concepts/call-function/fixtures/to-string-user-tz.json +60 -69
  191. package/test/concepts/call-function/fixtures/to-string-utc-tz.json +60 -69
  192. package/test/concepts/call-interface/fixtures/only-interface.json +72 -81
  193. package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +214 -223
  194. package/test/concepts/call-interface/fixtures/with-body-no-argument.json +76 -85
  195. package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +91 -100
  196. package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +79 -88
  197. package/test/concepts/call-interface/fixtures/with-headers.json +81 -90
  198. package/test/concepts/call-interface/fixtures/with-query-no-argument.json +79 -88
  199. package/test/concepts/call-interface/fixtures/with-query.json +81 -90
  200. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +2 -4
  201. package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +95 -104
  202. package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +200 -209
  203. package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +88 -97
  204. package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +115 -124
  205. package/test/concepts/call-logic/fixtures/json-deserialize.json +111 -120
  206. package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +115 -124
  207. package/test/concepts/call-logic/fixtures/json-serialize.json +115 -124
  208. package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +82 -91
  209. package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +79 -88
  210. package/test/concepts/call-logic/fixtures/view-component-with-validation.json +135 -144
  211. package/test/concepts/identifier/fixtures/view-variable.json +136 -145
  212. package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +1 -1
  213. package/test/concepts/view-element/fixtures/default-login.json +212 -221
  214. package/test/concepts/view-element/fixtures/default-not-found.json +174 -183
  215. package/test/concepts/view-element/fixtures/with-role-auth.json +82 -91
  216. package/test/concepts/view-element/fixtures/with-table.json +1834 -1843
  217. package/test/concepts/view-element/toVue.spec.ts +0 -1
  218. package/ts-worker/package.json +1 -1
  219. package/out/concepts/BusinessComponent__.d.ts +0 -641
  220. package/out/concepts/BusinessComponent__.js +0 -1901
  221. package/out/concepts/BusinessComponent__.js.map +0 -1
  222. package/out/concepts/BusinessLogic__.d.ts +0 -38
  223. package/out/concepts/BusinessLogic__.js +0 -358
  224. package/out/concepts/BusinessLogic__.js.map +0 -1
  225. package/out/concepts/CallEvent__.d.ts +0 -97
  226. package/out/concepts/CallEvent__.js +0 -263
  227. package/out/concepts/CallEvent__.js.map +0 -1
  228. package/out/concepts/FrontendType__.d.ts +0 -308
  229. package/out/concepts/FrontendType__.js +0 -605
  230. package/out/concepts/FrontendType__.js.map +0 -1
  231. package/out/concepts/ParamWithGroup__.d.ts +0 -39
  232. package/out/concepts/ParamWithGroup__.js +0 -85
  233. package/out/concepts/ParamWithGroup__.js.map +0 -1
  234. package/src/concepts/BusinessComponent__.ts +0 -2669
  235. package/src/concepts/BusinessLogic__.ts +0 -376
  236. package/src/concepts/CallEvent__.ts +0 -334
  237. package/src/concepts/FrontendType__.ts +0 -919
  238. package/src/concepts/ParamWithGroup__.ts +0 -101
@@ -1,7 +1,6 @@
1
1
  import type { App } from '../App__';
2
2
  import type { Module } from '../Module__';
3
3
  import type { Namespace } from '../Namespace__';
4
- import type { FrontendType } from '../FrontendType__';
5
4
  import type { Frontend } from '../Frontend__';
6
5
  import type { Backend } from '../Backend__';
7
6
  import type { Integration } from '../Integration__';
@@ -25,7 +24,6 @@ import type { BindDirective } from '../BindDirective__';
25
24
  import type { BindEvent } from '../BindEvent__';
26
25
  import type { BindStyle } from '../BindStyle__';
27
26
  import type { ViewComponent } from '../ViewComponent__';
28
- import type { BusinessComponent } from '../BusinessComponent__';
29
27
  import type { Attribute } from '../Attribute__';
30
28
  import type { Event } from '../Event__';
31
29
  import type { Slot } from '../Slot__';
@@ -33,11 +31,9 @@ import type { Theme } from '../Theme__';
33
31
  import type { StaticString } from '../StaticString__';
34
32
  import type { Logic } from '../Logic__';
35
33
  import type { AuthLogic } from '../AuthLogic__';
36
- import type { BusinessLogic } from '../BusinessLogic__';
37
34
  import type { AuthLogicForCallInterface } from '../AuthLogicForCallInterface__';
38
35
  import type { OverriddenLogic } from '../OverriddenLogic__';
39
36
  import type { Param } from '../Param__';
40
- import type { ParamWithGroup } from '../ParamWithGroup__';
41
37
  import type { Return } from '../Return__';
42
38
  import type { Variable } from '../Variable__';
43
39
  import type { BackendVariable } from '../BackendVariable__';
@@ -61,7 +57,6 @@ import type { Assignment } from '../Assignment__';
61
57
  import type { BatchAssignment } from '../BatchAssignment__';
62
58
  import type { Comment } from '../Comment__';
63
59
  import type { CallLogic } from '../CallLogic__';
64
- import type { CallEvent } from '../CallEvent__';
65
60
  import type { CallFunction } from '../CallFunction__';
66
61
  import type { CallInterface } from '../CallInterface__';
67
62
  import type { Destination } from '../Destination__';
@@ -187,18 +182,6 @@ export declare function isStrictModule(node: unknown): node is Module;
187
182
  * ```
188
183
  */
189
184
  export declare function isStrictNamespace(node: unknown): node is Namespace;
190
- /**
191
- * 严格判断输入为 FrontendType 节点
192
- *
193
- * @description 仅判断节点本身,不包含继承类
194
- * @example
195
- * ```ts
196
- * if (isStrictFrontendType(node)) {
197
- * // 在这个花括号内,node 的类型为 FrontendType
198
- * }
199
- * ```
200
- */
201
- export declare function isStrictFrontendType(node: unknown): node is FrontendType;
202
185
  /**
203
186
  * 严格判断输入为 Frontend 节点
204
187
  *
@@ -475,18 +458,6 @@ export declare function isStrictBindStyle(node: unknown): node is BindStyle;
475
458
  * ```
476
459
  */
477
460
  export declare function isStrictViewComponent(node: unknown): node is ViewComponent;
478
- /**
479
- * 严格判断输入为 BusinessComponent 节点
480
- *
481
- * @description 仅判断节点本身,不包含继承类
482
- * @example
483
- * ```ts
484
- * if (isStrictBusinessComponent(node)) {
485
- * // 在这个花括号内,node 的类型为 BusinessComponent
486
- * }
487
- * ```
488
- */
489
- export declare function isStrictBusinessComponent(node: unknown): node is BusinessComponent;
490
461
  /**
491
462
  * 严格判断输入为 Attribute 节点
492
463
  *
@@ -571,18 +542,6 @@ export declare function isStrictLogic(node: unknown): node is Logic;
571
542
  * ```
572
543
  */
573
544
  export declare function isStrictAuthLogic(node: unknown): node is AuthLogic;
574
- /**
575
- * 严格判断输入为 BusinessLogic 节点
576
- *
577
- * @description 仅判断节点本身,不包含继承类
578
- * @example
579
- * ```ts
580
- * if (isStrictBusinessLogic(node)) {
581
- * // 在这个花括号内,node 的类型为 BusinessLogic
582
- * }
583
- * ```
584
- */
585
- export declare function isStrictBusinessLogic(node: unknown): node is BusinessLogic;
586
545
  /**
587
546
  * 严格判断输入为 AuthLogicForCallInterface 节点
588
547
  *
@@ -619,18 +578,6 @@ export declare function isStrictOverriddenLogic(node: unknown): node is Overridd
619
578
  * ```
620
579
  */
621
580
  export declare function isStrictParam(node: unknown): node is Param;
622
- /**
623
- * 严格判断输入为 ParamWithGroup 节点
624
- *
625
- * @description 仅判断节点本身,不包含继承类
626
- * @example
627
- * ```ts
628
- * if (isStrictParamWithGroup(node)) {
629
- * // 在这个花括号内,node 的类型为 ParamWithGroup
630
- * }
631
- * ```
632
- */
633
- export declare function isStrictParamWithGroup(node: unknown): node is ParamWithGroup;
634
581
  /**
635
582
  * 严格判断输入为 Return 节点
636
583
  *
@@ -907,18 +854,6 @@ export declare function isStrictComment(node: unknown): node is Comment;
907
854
  * ```
908
855
  */
909
856
  export declare function isStrictCallLogic(node: unknown): node is CallLogic;
910
- /**
911
- * 严格判断输入为 CallEvent 节点
912
- *
913
- * @description 仅判断节点本身,不包含继承类
914
- * @example
915
- * ```ts
916
- * if (isStrictCallEvent(node)) {
917
- * // 在这个花括号内,node 的类型为 CallEvent
918
- * }
919
- * ```
920
- */
921
- export declare function isStrictCallEvent(node: unknown): node is CallEvent;
922
857
  /**
923
858
  * 严格判断输入为 CallFunction 节点
924
859
  *
@@ -1798,19 +1733,6 @@ export declare function isModule(node: unknown): node is Type.ModuleNode;
1798
1733
  * ```
1799
1734
  */
1800
1735
  export declare function isNamespace(node: unknown): node is Namespace;
1801
- /**
1802
- * 判断输入为 FrontendType 节点实例
1803
- *
1804
- * @description 包含节点类以及节点继承类的判断
1805
- * @description 等价于`instanceof`运算,FrontendType 节点没有继承类,此判断等价于`isStrictFrontendType`
1806
- * @example
1807
- * ```ts
1808
- * if (isFrontendType(node)) {
1809
- * // 在这个花括号内,node 的类型是 FrontendType 或者 FrontendType 继承类型
1810
- * }
1811
- * ```
1812
- */
1813
- export declare function isFrontendType(node: unknown): node is FrontendType;
1814
1736
  /**
1815
1737
  * 判断输入为 Frontend 节点实例
1816
1738
  *
@@ -2110,19 +2032,6 @@ export declare function isBindStyle(node: unknown): node is BindStyle;
2110
2032
  * ```
2111
2033
  */
2112
2034
  export declare function isViewComponent(node: unknown): node is ViewComponent;
2113
- /**
2114
- * 判断输入为 BusinessComponent 节点实例
2115
- *
2116
- * @description 包含节点类以及节点继承类的判断
2117
- * @description 等价于`instanceof`运算,BusinessComponent 节点没有继承类,此判断等价于`isStrictBusinessComponent`
2118
- * @example
2119
- * ```ts
2120
- * if (isBusinessComponent(node)) {
2121
- * // 在这个花括号内,node 的类型是 BusinessComponent 或者 BusinessComponent 继承类型
2122
- * }
2123
- * ```
2124
- */
2125
- export declare function isBusinessComponent(node: unknown): node is BusinessComponent;
2126
2035
  /**
2127
2036
  * 判断输入为 Attribute 节点实例
2128
2037
  *
@@ -2214,19 +2123,6 @@ export declare function isLogic(node: unknown): node is Type.LogicNode;
2214
2123
  * ```
2215
2124
  */
2216
2125
  export declare function isAuthLogic(node: unknown): node is Type.AuthLogicNode;
2217
- /**
2218
- * 判断输入为 BusinessLogic 节点实例
2219
- *
2220
- * @description 包含节点类以及节点继承类的判断
2221
- * @description 等价于`instanceof`运算,BusinessLogic 节点没有继承类,此判断等价于`isStrictBusinessLogic`
2222
- * @example
2223
- * ```ts
2224
- * if (isBusinessLogic(node)) {
2225
- * // 在这个花括号内,node 的类型是 BusinessLogic 或者 BusinessLogic 继承类型
2226
- * }
2227
- * ```
2228
- */
2229
- export declare function isBusinessLogic(node: unknown): node is BusinessLogic;
2230
2126
  /**
2231
2127
  * 判断输入为 AuthLogicForCallInterface 节点实例
2232
2128
  *
@@ -2270,7 +2166,7 @@ export declare function isAbstractInterface(node: unknown): node is Type.Abstrac
2270
2166
  * 判断输入为 Param 节点实例
2271
2167
  *
2272
2168
  * @description 包含节点类以及节点继承类的判断
2273
- * @description 等价于`instanceof`运算
2169
+ * @description 等价于`instanceof`运算,Param 节点没有继承类,此判断等价于`isStrictParam`
2274
2170
  * @example
2275
2171
  * ```ts
2276
2172
  * if (isParam(node)) {
@@ -2278,20 +2174,7 @@ export declare function isAbstractInterface(node: unknown): node is Type.Abstrac
2278
2174
  * }
2279
2175
  * ```
2280
2176
  */
2281
- export declare function isParam(node: unknown): node is Type.ParamNode;
2282
- /**
2283
- * 判断输入为 ParamWithGroup 节点实例
2284
- *
2285
- * @description 包含节点类以及节点继承类的判断
2286
- * @description 等价于`instanceof`运算,ParamWithGroup 节点没有继承类,此判断等价于`isStrictParamWithGroup`
2287
- * @example
2288
- * ```ts
2289
- * if (isParamWithGroup(node)) {
2290
- * // 在这个花括号内,node 的类型是 ParamWithGroup 或者 ParamWithGroup 继承类型
2291
- * }
2292
- * ```
2293
- */
2294
- export declare function isParamWithGroup(node: unknown): node is ParamWithGroup;
2177
+ export declare function isParam(node: unknown): node is Param;
2295
2178
  /**
2296
2179
  * 判断输入为 Return 节点实例
2297
2180
  *
@@ -2617,19 +2500,6 @@ export declare function isComment(node: unknown): node is Comment;
2617
2500
  * ```
2618
2501
  */
2619
2502
  export declare function isCallLogic(node: unknown): node is Type.CallLogicNode;
2620
- /**
2621
- * 判断输入为 CallEvent 节点实例
2622
- *
2623
- * @description 包含节点类以及节点继承类的判断
2624
- * @description 等价于`instanceof`运算,CallEvent 节点没有继承类,此判断等价于`isStrictCallEvent`
2625
- * @example
2626
- * ```ts
2627
- * if (isCallEvent(node)) {
2628
- * // 在这个花括号内,node 的类型是 CallEvent 或者 CallEvent 继承类型
2629
- * }
2630
- * ```
2631
- */
2632
- export declare function isCallEvent(node: unknown): node is CallEvent;
2633
2503
  /**
2634
2504
  * 判断输入为 CallFunction 节点实例
2635
2505
  *
@@ -3576,18 +3446,6 @@ export declare function assertStrictModule(node: unknown): asserts node is Modul
3576
3446
  * ```
3577
3447
  */
3578
3448
  export declare function assertStrictNamespace(node: unknown): asserts node is Namespace;
3579
- /**
3580
- * 严格断言为 FrontendType 节点
3581
- *
3582
- * @description 仅断言节点本身,不包含继承类
3583
- * @example
3584
- * ```ts
3585
- * assertStrictFrontendType(node);
3586
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 FrontendType 类型
3587
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
3588
- * ```
3589
- */
3590
- export declare function assertStrictFrontendType(node: unknown): asserts node is FrontendType;
3591
3449
  /**
3592
3450
  * 严格断言为 Frontend 节点
3593
3451
  *
@@ -3864,18 +3722,6 @@ export declare function assertStrictBindStyle(node: unknown): asserts node is Bi
3864
3722
  * ```
3865
3723
  */
3866
3724
  export declare function assertStrictViewComponent(node: unknown): asserts node is ViewComponent;
3867
- /**
3868
- * 严格断言为 BusinessComponent 节点
3869
- *
3870
- * @description 仅断言节点本身,不包含继承类
3871
- * @example
3872
- * ```ts
3873
- * assertStrictBusinessComponent(node);
3874
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessComponent 类型
3875
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
3876
- * ```
3877
- */
3878
- export declare function assertStrictBusinessComponent(node: unknown): asserts node is BusinessComponent;
3879
3725
  /**
3880
3726
  * 严格断言为 Attribute 节点
3881
3727
  *
@@ -3960,18 +3806,6 @@ export declare function assertStrictLogic(node: unknown): asserts node is Logic;
3960
3806
  * ```
3961
3807
  */
3962
3808
  export declare function assertStrictAuthLogic(node: unknown): asserts node is AuthLogic;
3963
- /**
3964
- * 严格断言为 BusinessLogic 节点
3965
- *
3966
- * @description 仅断言节点本身,不包含继承类
3967
- * @example
3968
- * ```ts
3969
- * assertStrictBusinessLogic(node);
3970
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 类型
3971
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
3972
- * ```
3973
- */
3974
- export declare function assertStrictBusinessLogic(node: unknown): asserts node is BusinessLogic;
3975
3809
  /**
3976
3810
  * 严格断言为 AuthLogicForCallInterface 节点
3977
3811
  *
@@ -4008,18 +3842,6 @@ export declare function assertStrictOverriddenLogic(node: unknown): asserts node
4008
3842
  * ```
4009
3843
  */
4010
3844
  export declare function assertStrictParam(node: unknown): asserts node is Param;
4011
- /**
4012
- * 严格断言为 ParamWithGroup 节点
4013
- *
4014
- * @description 仅断言节点本身,不包含继承类
4015
- * @example
4016
- * ```ts
4017
- * assertStrictParamWithGroup(node);
4018
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ParamWithGroup 类型
4019
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
4020
- * ```
4021
- */
4022
- export declare function assertStrictParamWithGroup(node: unknown): asserts node is ParamWithGroup;
4023
3845
  /**
4024
3846
  * 严格断言为 Return 节点
4025
3847
  *
@@ -4296,18 +4118,6 @@ export declare function assertStrictComment(node: unknown): asserts node is Comm
4296
4118
  * ```
4297
4119
  */
4298
4120
  export declare function assertStrictCallLogic(node: unknown): asserts node is CallLogic;
4299
- /**
4300
- * 严格断言为 CallEvent 节点
4301
- *
4302
- * @description 仅断言节点本身,不包含继承类
4303
- * @example
4304
- * ```ts
4305
- * assertStrictCallEvent(node);
4306
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CallEvent 类型
4307
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
4308
- * ```
4309
- */
4310
- export declare function assertStrictCallEvent(node: unknown): asserts node is CallEvent;
4311
4121
  /**
4312
4122
  * 严格断言为 CallFunction 节点
4313
4123
  *
@@ -5187,19 +4997,6 @@ export declare function assertModule(node: unknown): asserts node is Type.Module
5187
4997
  * ```
5188
4998
  */
5189
4999
  export declare function assertNamespace(node: unknown): asserts node is Namespace;
5190
- /**
5191
- * 断言为 FrontendType 节点
5192
- *
5193
- * @description 包含节点类以及节点继承类的判断
5194
- * @description 节点没有继承类时,等价于`assertStrictFrontendType`方法
5195
- * @example
5196
- * ```ts
5197
- * assertFrontendType(node);
5198
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 FrontendType 或者 FrontendType 继承类型
5199
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5200
- * ```
5201
- */
5202
- export declare function assertFrontendType(node: unknown): asserts node is FrontendType;
5203
5000
  /**
5204
5001
  * 断言为 Frontend 节点
5205
5002
  *
@@ -5499,19 +5296,6 @@ export declare function assertBindStyle(node: unknown): asserts node is BindStyl
5499
5296
  * ```
5500
5297
  */
5501
5298
  export declare function assertViewComponent(node: unknown): asserts node is ViewComponent;
5502
- /**
5503
- * 断言为 BusinessComponent 节点
5504
- *
5505
- * @description 包含节点类以及节点继承类的判断
5506
- * @description 节点没有继承类时,等价于`assertStrictBusinessComponent`方法
5507
- * @example
5508
- * ```ts
5509
- * assertBusinessComponent(node);
5510
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessComponent 或者 BusinessComponent 继承类型
5511
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5512
- * ```
5513
- */
5514
- export declare function assertBusinessComponent(node: unknown): asserts node is BusinessComponent;
5515
5299
  /**
5516
5300
  * 断言为 Attribute 节点
5517
5301
  *
@@ -5603,19 +5387,6 @@ export declare function assertLogic(node: unknown): asserts node is Type.LogicNo
5603
5387
  * ```
5604
5388
  */
5605
5389
  export declare function assertAuthLogic(node: unknown): asserts node is Type.AuthLogicNode;
5606
- /**
5607
- * 断言为 BusinessLogic 节点
5608
- *
5609
- * @description 包含节点类以及节点继承类的判断
5610
- * @description 节点没有继承类时,等价于`assertStrictBusinessLogic`方法
5611
- * @example
5612
- * ```ts
5613
- * assertBusinessLogic(node);
5614
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 或者 BusinessLogic 继承类型
5615
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5616
- * ```
5617
- */
5618
- export declare function assertBusinessLogic(node: unknown): asserts node is BusinessLogic;
5619
5390
  /**
5620
5391
  * 断言为 AuthLogicForCallInterface 节点
5621
5392
  *
@@ -5667,20 +5438,7 @@ export declare function assertAbstractInterface(node: unknown): asserts node is
5667
5438
  * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5668
5439
  * ```
5669
5440
  */
5670
- export declare function assertParam(node: unknown): asserts node is Type.ParamNode;
5671
- /**
5672
- * 断言为 ParamWithGroup 节点
5673
- *
5674
- * @description 包含节点类以及节点继承类的判断
5675
- * @description 节点没有继承类时,等价于`assertStrictParamWithGroup`方法
5676
- * @example
5677
- * ```ts
5678
- * assertParamWithGroup(node);
5679
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ParamWithGroup 或者 ParamWithGroup 继承类型
5680
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
5681
- * ```
5682
- */
5683
- export declare function assertParamWithGroup(node: unknown): asserts node is ParamWithGroup;
5441
+ export declare function assertParam(node: unknown): asserts node is Param;
5684
5442
  /**
5685
5443
  * 断言为 Return 节点
5686
5444
  *
@@ -6006,19 +5764,6 @@ export declare function assertComment(node: unknown): asserts node is Comment;
6006
5764
  * ```
6007
5765
  */
6008
5766
  export declare function assertCallLogic(node: unknown): asserts node is Type.CallLogicNode;
6009
- /**
6010
- * 断言为 CallEvent 节点
6011
- *
6012
- * @description 包含节点类以及节点继承类的判断
6013
- * @description 节点没有继承类时,等价于`assertStrictCallEvent`方法
6014
- * @example
6015
- * ```ts
6016
- * assertCallEvent(node);
6017
- * // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CallEvent 或者 CallEvent 继承类型
6018
- * // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
6019
- * ```
6020
- */
6021
- export declare function assertCallEvent(node: unknown): asserts node is CallEvent;
6022
5767
  /**
6023
5768
  * 断言为 CallFunction 节点
6024
5769
  *