@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.
- package/out/bak/translator.js +39 -119
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.d.ts +0 -3
- package/out/breakpoint/generator/BreakpointNode.js +0 -9
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/shared/constants.js +0 -1
- package/out/breakpoint/shared/constants.js.map +1 -1
- package/out/breakpoint/shared/utils.js +7 -31
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +13 -1
- package/out/common/BaseNode.js +52 -23
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.js +1 -0
- package/out/common/Command.js.map +1 -1
- package/out/common/EventEmitter.d.ts +1 -1
- package/out/common/EventEmitter.js +0 -4
- package/out/common/EventEmitter.js.map +1 -1
- package/out/concepts/App__.d.ts +76 -51
- package/out/concepts/App__.js +190 -87
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +2 -10
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +6 -16
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +0 -1
- package/out/concepts/BindDirective__.js +4 -19
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +1 -3
- package/out/concepts/BindEvent__.js +13 -38
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/CallFunction__.js +2 -10
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +0 -2
- package/out/concepts/CallLogic__.js +27 -38
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Constant__.js +6 -7
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +1 -1
- package/out/concepts/Destination__.js +4 -6
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js +1 -2
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +1 -1
- package/out/concepts/Entity__.js +2 -0
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Event__.d.ts +0 -14
- package/out/concepts/Event__.js +0 -61
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +88 -0
- package/out/concepts/Frontend__.js +143 -1
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +0 -5
- package/out/concepts/Identifier__.js +9 -19
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +1 -3
- package/out/concepts/Logic__.js +13 -16
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +3 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/Param__.js +3 -11
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +1 -9
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/Return__.js +9 -17
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Variable__.js +8 -17
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +2 -17
- package/out/concepts/ViewElement__.js +31 -143
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +6 -6
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/index__.d.ts +0 -5
- package/out/concepts/index__.js +0 -5
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +3 -258
- package/out/concepts/utils/asserts.js +13 -351
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +3 -20
- package/out/generator/genBundleFiles.js +11 -25
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.js +3 -12
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/permission.js +3 -3
- package/out/generator/permission.js.map +1 -1
- package/out/natural/transformTSCode.js +1 -1
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/extendBaseNode.js +22 -6
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/getLogics.js +27 -62
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +1 -6
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.js +11 -28
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +1 -6
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.js +26 -2
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +6 -6
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +16 -16
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.d.ts +27 -0
- package/out/templator/genCurdMultipleKeyBlock.js +709 -37
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +4 -4
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +12 -12
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +4 -4
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js +3 -3
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.d.ts +2 -0
- package/out/templator/genTableBlock.js +124 -11
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +8 -8
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.d.ts +2 -2
- package/out/templator/utils.js.map +1 -1
- package/out/translator/utils.js +18 -0
- package/out/translator/utils.js.map +1 -1
- package/out/utils/i18nInfo.js +2 -7
- package/out/utils/i18nInfo.js.map +1 -1
- package/package.json +2 -2
- package/src/bak/translator.js +43 -121
- package/src/breakpoint/generator/BreakpointNode.ts +0 -12
- package/src/breakpoint/shared/constants.ts +0 -1
- package/src/breakpoint/shared/utils.ts +10 -37
- package/src/common/BaseNode.ts +60 -22
- package/src/common/Command.ts +1 -0
- package/src/common/EventEmitter.ts +1 -6
- package/src/concepts/App__.ts +251 -139
- package/src/concepts/BackendVariable__.ts +2 -10
- package/src/concepts/BindAttribute__.ts +6 -15
- package/src/concepts/BindDirective__.ts +4 -19
- package/src/concepts/BindEvent__.ts +12 -40
- package/src/concepts/CallFunction__.ts +2 -10
- package/src/concepts/CallLogic__.ts +32 -45
- package/src/concepts/Constant__.ts +7 -5
- package/src/concepts/Destination__.ts +4 -6
- package/src/concepts/End__.ts +0 -1
- package/src/concepts/Entity__.ts +3 -1
- package/src/concepts/Event__.ts +0 -70
- package/src/concepts/Frontend__.ts +251 -3
- package/src/concepts/Identifier__.ts +13 -29
- package/src/concepts/LogicItem__.ts +0 -1
- package/src/concepts/Logic__.ts +14 -21
- package/src/concepts/MemberExpression__.ts +3 -3
- package/src/concepts/NewComposite__.ts +6 -4
- package/src/concepts/Param__.ts +3 -11
- package/src/concepts/ProcessElement__.ts +1 -8
- package/src/concepts/Return__.ts +12 -15
- package/src/concepts/Variable__.ts +9 -17
- package/src/concepts/ViewElement__.ts +54 -166
- package/src/concepts/View__.ts +6 -8
- package/src/concepts/index__.ts +0 -5
- package/src/concepts/utils/asserts.ts +4 -367
- package/src/concepts/utils/types.ts +0 -28
- package/src/generator/genBundleFiles.ts +15 -33
- package/src/generator/genReleaseBody.ts +3 -14
- package/src/generator/permission.ts +6 -8
- package/src/natural/transformTSCode.ts +1 -1
- package/src/server/extendBaseNode.ts +41 -22
- package/src/server/getLogics.ts +41 -79
- package/src/server/getMemberIdentifier.ts +1 -7
- package/src/server/naslServer.ts +12 -30
- package/src/server/translator.ts +1 -7
- package/src/service/storage/init.ts +33 -2
- package/src/templator/genCreateBlock.ts +6 -6
- package/src/templator/genCurdEditMultipleKeyBlock.ts +16 -16
- package/src/templator/genCurdMultipleKeyBlock.ts +817 -93
- package/src/templator/genGetBlock.ts +4 -4
- package/src/templator/genGridViewBlock.ts +12 -12
- package/src/templator/genListViewBlock.ts +4 -4
- package/src/templator/genSelectBlock.ts +3 -3
- package/src/templator/genTableBlock.ts +137 -12
- package/src/templator/genUpdateBlock.ts +8 -8
- package/src/templator/utils.ts +2 -2
- package/src/translator/utils.ts +20 -0
- package/src/utils/i18nInfo.ts +2 -7
- package/test/concepts/call-function/fixtures/from-string.json +59 -68
- package/test/concepts/call-function/fixtures/to-string-global-tz.json +58 -67
- package/test/concepts/call-function/fixtures/to-string-no-tz.json +48 -57
- package/test/concepts/call-function/fixtures/to-string-user-tz.json +60 -69
- package/test/concepts/call-function/fixtures/to-string-utc-tz.json +60 -69
- package/test/concepts/call-interface/fixtures/only-interface.json +72 -81
- package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +214 -223
- package/test/concepts/call-interface/fixtures/with-body-no-argument.json +76 -85
- package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +91 -100
- package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +79 -88
- package/test/concepts/call-interface/fixtures/with-headers.json +81 -90
- package/test/concepts/call-interface/fixtures/with-query-no-argument.json +79 -88
- package/test/concepts/call-interface/fixtures/with-query.json +81 -90
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +2 -4
- package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +95 -104
- package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +200 -209
- package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +88 -97
- package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +115 -124
- package/test/concepts/call-logic/fixtures/json-deserialize.json +111 -120
- package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +115 -124
- package/test/concepts/call-logic/fixtures/json-serialize.json +115 -124
- package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +82 -91
- package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +79 -88
- package/test/concepts/call-logic/fixtures/view-component-with-validation.json +135 -144
- package/test/concepts/identifier/fixtures/view-variable.json +136 -145
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +1 -1
- package/test/concepts/view-element/fixtures/default-login.json +212 -221
- package/test/concepts/view-element/fixtures/default-not-found.json +174 -183
- package/test/concepts/view-element/fixtures/with-role-auth.json +82 -91
- package/test/concepts/view-element/fixtures/with-table.json +1834 -1843
- package/test/concepts/view-element/toVue.spec.ts +0 -1
- package/ts-worker/package.json +1 -1
- package/out/concepts/BusinessComponent__.d.ts +0 -641
- package/out/concepts/BusinessComponent__.js +0 -1901
- package/out/concepts/BusinessComponent__.js.map +0 -1
- package/out/concepts/BusinessLogic__.d.ts +0 -38
- package/out/concepts/BusinessLogic__.js +0 -358
- package/out/concepts/BusinessLogic__.js.map +0 -1
- package/out/concepts/CallEvent__.d.ts +0 -97
- package/out/concepts/CallEvent__.js +0 -263
- package/out/concepts/CallEvent__.js.map +0 -1
- package/out/concepts/FrontendType__.d.ts +0 -308
- package/out/concepts/FrontendType__.js +0 -605
- package/out/concepts/FrontendType__.js.map +0 -1
- package/out/concepts/ParamWithGroup__.d.ts +0 -39
- package/out/concepts/ParamWithGroup__.js +0 -85
- package/out/concepts/ParamWithGroup__.js.map +0 -1
- package/src/concepts/BusinessComponent__.ts +0 -2669
- package/src/concepts/BusinessLogic__.ts +0 -376
- package/src/concepts/CallEvent__.ts +0 -334
- package/src/concepts/FrontendType__.ts +0 -919
- 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
|
|
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
|
|
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
|
*
|