@lcap/nasl 3.7.0-alpha.1 → 3.7.0-beta.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/automate/engine/utils.d.ts +1 -1
- package/out/automate/engine/utils.js +3 -7
- package/out/automate/engine/utils.js.map +1 -1
- package/out/automate/template/myProcess.js +65 -65
- package/out/automate/template/myProcess.js.map +1 -1
- package/out/bak/translator.js +42 -12
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.d.ts +2 -0
- package/out/breakpoint/generator/BreakpointNode.js +7 -0
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/breakpoint/shared/constants.js +1 -0
- package/out/breakpoint/shared/constants.js.map +1 -1
- package/out/breakpoint/shared/utils.js +1 -1
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +4 -3
- package/out/common/BaseNode.js +61 -10
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/ComponentAPI.d.ts +5 -3
- package/out/common/EventEmitter.d.ts +1 -0
- package/out/common/EventEmitter.js.map +1 -1
- package/out/concepts/Abort__.d.ts +5 -4
- package/out/concepts/Abort__.js +5 -7
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/AbstractInterface__.d.ts +9 -6
- package/out/concepts/AbstractInterface__.js +8 -11
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +5 -12
- package/out/concepts/Anchor__.js +5 -44
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +10 -47
- package/out/concepts/AnonymousFunction__.js +14 -159
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +321 -437
- package/out/concepts/App__.js +460 -986
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +5 -12
- package/out/concepts/Argument__.js +11 -46
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +8 -5
- package/out/concepts/Assignee__.js +9 -66
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +5 -6
- package/out/concepts/AssignmentLine__.js +7 -11
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +5 -26
- package/out/concepts/Assignment__.js +5 -64
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +14 -51
- package/out/concepts/Attribute__.js +36 -126
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +10 -10
- package/out/concepts/AuthInterface__.js +18 -13
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +6 -3
- package/out/concepts/AuthLogicForCallInterface__.js +6 -32
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.d.ts +19 -19
- package/out/concepts/AuthLogic__.js +26 -25
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +19 -47
- package/out/concepts/BackendVariable__.js +43 -134
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +6 -13
- package/out/concepts/Backend__.js +13 -50
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BaseSetter__.d.ts +25 -0
- package/out/concepts/BaseSetter__.js +53 -0
- package/out/concepts/BaseSetter__.js.map +1 -0
- package/out/concepts/BatchAssignment__.d.ts +9 -21
- package/out/concepts/BatchAssignment__.js +11 -86
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +5 -22
- package/out/concepts/BinaryExpression__.js +32 -59
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +60 -107
- package/out/concepts/BindAttribute__.js +144 -251
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +26 -42
- package/out/concepts/BindDirective__.js +63 -105
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +27 -36
- package/out/concepts/BindEvent__.js +50 -109
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +24 -41
- package/out/concepts/BindStyle__.js +48 -88
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/Block__.d.ts +5 -2
- package/out/concepts/Block__.js +5 -31
- package/out/concepts/Block__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +5 -0
- package/out/concepts/BooleanLiteral__.js +8 -1
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +47 -49
- package/out/concepts/BusinessComponent__.js +122 -444
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.d.ts +5 -0
- package/out/concepts/BusinessLogic__.js +8 -1
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +6 -4
- package/out/concepts/CallAuthInterface__.js +6 -34
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +5 -0
- package/out/concepts/CallConnector__.js +11 -2
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallEvent__.d.ts +6 -7
- package/out/concepts/CallEvent__.js +11 -40
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +17 -9
- package/out/concepts/CallFunction__.js +84 -130
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +6 -7
- package/out/concepts/CallInterface__.js +14 -41
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +11 -24
- package/out/concepts/CallLogic__.js +68 -140
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +70 -126
- package/out/concepts/CallQueryComponent__.js +134 -308
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CapsulesSetter__.d.ts +109 -0
- package/out/concepts/CapsulesSetter__.js +163 -0
- package/out/concepts/CapsulesSetter__.js.map +1 -0
- package/out/concepts/Comment__.d.ts +5 -0
- package/out/concepts/Comment__.js +8 -1
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +6 -26
- package/out/concepts/CompletionProperty__.js +24 -74
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +6 -13
- package/out/concepts/ConfigGroup__.js +13 -50
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +5 -11
- package/out/concepts/ConfigPropertyValue__.js +11 -19
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +11 -18
- package/out/concepts/ConfigProperty__.js +25 -58
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +6 -13
- package/out/concepts/Configuration__.js +6 -49
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +11 -18
- package/out/concepts/Connection__.js +25 -58
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.d.ts +28 -34
- package/out/concepts/ConnectorTrigger__.js +55 -50
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +106 -504
- package/out/concepts/Connector__.js +134 -791
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +27 -55
- package/out/concepts/Constant__.js +45 -137
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.d.ts +6 -5
- package/out/concepts/CountersignPolicy__.js +8 -12
- package/out/concepts/CountersignPolicy__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +11 -18
- package/out/concepts/DataSource__.js +25 -58
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +5 -6
- package/out/concepts/DatabaseTypeAnnotation__.js +11 -13
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/DefaultValue__.d.ts +7 -19
- package/out/concepts/DefaultValue__.js +6 -56
- package/out/concepts/DefaultValue__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +10 -21
- package/out/concepts/Destination__.js +15 -55
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +5 -4
- package/out/concepts/End__.js +7 -8
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +20 -26
- package/out/concepts/EntityIndex__.js +40 -39
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +17 -56
- package/out/concepts/EntityProperty__.js +70 -181
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +18 -26
- package/out/concepts/Entity__.js +38 -98
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +15 -21
- package/out/concepts/EnumItem__.js +27 -31
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/EnumSelectSetter__.d.ts +109 -0
- package/out/concepts/EnumSelectSetter__.js +163 -0
- package/out/concepts/EnumSelectSetter__.js.map +1 -0
- package/out/concepts/Enum__.d.ts +10 -28
- package/out/concepts/Enum__.js +35 -102
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/EventDeclaration__.d.ts +41 -0
- package/out/concepts/EventDeclaration__.js +81 -0
- package/out/concepts/EventDeclaration__.js.map +1 -0
- package/out/concepts/Event__.d.ts +16 -27
- package/out/concepts/Event__.js +37 -78
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +8 -25
- package/out/concepts/ExternalDestination__.js +8 -58
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +7 -55
- package/out/concepts/ForEachStatement__.js +6 -128
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +38 -46
- package/out/concepts/FrontendLibrary__.js +55 -121
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +8 -12
- package/out/concepts/FrontendType__.js +15 -109
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/FrontendVariable__.d.ts +5 -0
- package/out/concepts/FrontendVariable__.js +8 -1
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +9 -41
- package/out/concepts/Frontend__.js +36 -209
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +13 -34
- package/out/concepts/Function__.js +22 -194
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +6 -7
- package/out/concepts/I18nInfo__.js +14 -14
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/IconSetter__.d.ts +29 -0
- package/out/concepts/IconSetter__.js +62 -0
- package/out/concepts/IconSetter__.js.map +1 -0
- package/out/concepts/Identifier__.d.ts +5 -0
- package/out/concepts/Identifier__.js +20 -6
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +5 -12
- package/out/concepts/IfStatement__.js +5 -44
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/ImageSetter__.d.ts +25 -0
- package/out/concepts/ImageSetter__.js +53 -0
- package/out/concepts/ImageSetter__.js.map +1 -0
- package/out/concepts/ImportedInterface__.d.ts +9 -0
- package/out/concepts/ImportedInterface__.js +11 -1
- package/out/concepts/ImportedInterface__.js.map +1 -1
- package/out/concepts/InputSetter__.d.ts +29 -0
- package/out/concepts/InputSetter__.js +62 -0
- package/out/concepts/InputSetter__.js.map +1 -0
- package/out/concepts/Integration__.d.ts +7 -26
- package/out/concepts/Integration__.js +6 -93
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +34 -62
- package/out/concepts/InterfaceParam__.js +63 -147
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +42 -48
- package/out/concepts/Interface__.js +89 -158
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +5 -4
- package/out/concepts/JSBlock__.js +8 -8
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +5 -0
- package/out/concepts/JavaLogic__.js +14 -3
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicDeclaration__.d.ts +289 -0
- package/out/concepts/LogicDeclaration__.js +352 -0
- package/out/concepts/LogicDeclaration__.js.map +1 -0
- package/out/concepts/LogicItem__.d.ts +39 -45
- package/out/concepts/LogicItem__.js +76 -62
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +45 -63
- package/out/concepts/Logic__.js +159 -280
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +6 -4
- package/out/concepts/MatchCase__.js +16 -68
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +8 -14
- package/out/concepts/Match__.js +17 -49
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +8 -23
- package/out/concepts/MemberExpression__.js +85 -103
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +36 -54
- package/out/concepts/MetadataType__.js +44 -119
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +5 -6
- package/out/concepts/MicroApp__.js +30 -18
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +99 -128
- package/out/concepts/Module__.js +133 -532
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +31 -33
- package/out/concepts/MsgTriggerEvent__.js +39 -67
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +11 -14
- package/out/concepts/MsgTriggerLauncher__.js +18 -44
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/MultiApprovalPolicy__.d.ts +8 -9
- package/out/concepts/MultiApprovalPolicy__.js +7 -13
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +112 -138
- package/out/concepts/Namespace__.js +122 -501
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +11 -21
- package/out/concepts/NewComposite__.js +48 -146
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +6 -14
- package/out/concepts/NewList__.js +7 -77
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +6 -14
- package/out/concepts/NewMap__.js +7 -77
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +6 -0
- package/out/concepts/New__.js +9 -0
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +5 -0
- package/out/concepts/NullLiteral__.js +5 -0
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumberInputSetter__.d.ts +45 -0
- package/out/concepts/NumberInputSetter__.js +98 -0
- package/out/concepts/NumberInputSetter__.js.map +1 -0
- package/out/concepts/NumericLiteral__.d.ts +6 -13
- package/out/concepts/NumericLiteral__.js +8 -45
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +7 -17
- package/out/concepts/OqlQueryComponent__.js +16 -53
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +38 -59
- package/out/concepts/OverriddenLogic__.js +55 -252
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Paginate__.d.ts +59 -0
- package/out/concepts/Paginate__.js +158 -0
- package/out/concepts/Paginate__.js.map +1 -0
- package/out/concepts/ParamWithGroup__.d.ts +13 -10
- package/out/concepts/ParamWithGroup__.js +15 -6
- package/out/concepts/ParamWithGroup__.js.map +1 -1
- package/out/concepts/Param__.d.ts +33 -76
- package/out/concepts/Param__.js +63 -159
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +5 -6
- package/out/concepts/Point__.js +11 -13
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +12 -20
- package/out/concepts/ProcessComponent__.js +32 -90
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +21 -66
- package/out/concepts/ProcessElement__.js +48 -360
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +5 -4
- package/out/concepts/ProcessOutcome__.js +8 -8
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +5 -4
- package/out/concepts/ProcessOutcomes__.js +6 -7
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +16 -26
- package/out/concepts/Process__.js +29 -186
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/PropDeclaration__.d.ts +99 -0
- package/out/concepts/PropDeclaration__.js +183 -0
- package/out/concepts/PropDeclaration__.js.map +1 -0
- package/out/concepts/PropertySelectSetter__.d.ts +25 -0
- package/out/concepts/PropertySelectSetter__.js +53 -0
- package/out/concepts/PropertySelectSetter__.js.map +1 -0
- package/out/concepts/QueryAggregateExpression__.d.ts +6 -13
- package/out/concepts/QueryAggregateExpression__.js +11 -46
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +5 -0
- package/out/concepts/QueryFieldExpression__.js +17 -4
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +6 -3
- package/out/concepts/QueryFromExpression__.js +14 -34
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +5 -12
- package/out/concepts/QueryGroupByExpression__.js +5 -44
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +29 -26
- package/out/concepts/QueryJoinExpression__.js +34 -52
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +5 -22
- package/out/concepts/QueryLimitExpression__.js +5 -57
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +5 -22
- package/out/concepts/QueryOrderByExpression__.js +5 -57
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +37 -34
- package/out/concepts/QuerySelectExpression__.js +37 -59
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +5 -6
- package/out/concepts/Rect__.js +17 -15
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +28 -56
- package/out/concepts/Return__.js +50 -139
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +5 -11
- package/out/concepts/Role__.js +21 -21
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +8 -20
- package/out/concepts/SelectMembers__.js +10 -58
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SequentialPolicy__.d.ts +5 -0
- package/out/concepts/SequentialPolicy__.js +5 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -1
- package/out/concepts/SetterOption__.d.ts +49 -0
- package/out/concepts/SetterOption__.js +99 -0
- package/out/concepts/SetterOption__.js.map +1 -0
- package/out/concepts/SlotDeclaration__.d.ts +213 -0
- package/out/concepts/SlotDeclaration__.js +287 -0
- package/out/concepts/SlotDeclaration__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +7 -31
- package/out/concepts/Slot__.js +27 -72
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +6 -17
- package/out/concepts/SqlQueryComponent__.js +14 -54
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +5 -4
- package/out/concepts/Start__.js +5 -7
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +6 -12
- package/out/concepts/StaticString__.js +14 -21
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +5 -2
- package/out/concepts/StringInterpolation__.js +7 -33
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +6 -1
- package/out/concepts/StringLiteral__.js +16 -2
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +13 -49
- package/out/concepts/StructureProperty__.js +35 -137
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +13 -21
- package/out/concepts/Structure__.js +28 -90
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +6 -13
- package/out/concepts/SwitchCase__.js +6 -45
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchSetter__.d.ts +25 -0
- package/out/concepts/SwitchSetter__.js +53 -0
- package/out/concepts/SwitchSetter__.js.map +1 -0
- package/out/concepts/SwitchStatement__.d.ts +6 -3
- package/out/concepts/SwitchStatement__.js +5 -31
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/ThemeVariable__.d.ts +29 -0
- package/out/concepts/ThemeVariable__.js +58 -0
- package/out/concepts/ThemeVariable__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +5 -6
- package/out/concepts/Theme__.js +11 -13
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +29 -35
- package/out/concepts/Transactional__.js +54 -56
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +8 -20
- package/out/concepts/TriggerEvent__.js +13 -57
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +12 -17
- package/out/concepts/TriggerLauncher__.js +30 -27
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +8 -11
- package/out/concepts/TypeAnnotation__.js +40 -89
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +5 -0
- package/out/concepts/TypeParam__.js +12 -1
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +5 -12
- package/out/concepts/UnaryExpression__.js +8 -45
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +5 -0
- package/out/concepts/Unparsed__.js +8 -1
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +6 -7
- package/out/concepts/UseComponent__.js +11 -13
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +7 -28
- package/out/concepts/ValidationRule__.js +18 -71
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +30 -58
- package/out/concepts/Variable__.js +51 -140
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlockWithImage__.d.ts +33 -0
- package/out/concepts/ViewBlockWithImage__.js +63 -0
- package/out/concepts/ViewBlockWithImage__.js.map +1 -0
- package/out/concepts/ViewBlock__.d.ts +11 -12
- package/out/concepts/ViewBlock__.js +22 -18
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponentDeclaration__.d.ts +721 -0
- package/out/concepts/ViewComponentDeclaration__.js +808 -0
- package/out/concepts/ViewComponentDeclaration__.js.map +1 -0
- package/out/concepts/ViewElement__.d.ts +38 -37
- package/out/concepts/ViewElement__.js +415 -432
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +39 -46
- package/out/concepts/View__.js +509 -342
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +6 -13
- package/out/concepts/WhileStatement__.js +6 -45
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.js +68 -33
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.process.js +101 -3
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +31 -31
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +24 -8
- package/out/concepts/index__.js +24 -8
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +1079 -313
- package/out/concepts/utils/asserts.js +1461 -441
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +82 -30
- package/out/config.d.ts +9 -0
- package/out/config.js +5 -0
- package/out/config.js.map +1 -1
- package/out/decorators/index.d.ts +1 -6
- package/out/decorators/index.js +7 -16
- package/out/decorators/index.js.map +1 -1
- package/out/enums/KEYWORDS.js +2 -0
- package/out/enums/KEYWORDS.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +2 -0
- package/out/generator/genBundleFiles.js +105 -25
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +2 -4
- package/out/generator/genReleaseBody.js +0 -1
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/permission.d.ts +5 -1
- package/out/generator/permission.js +3 -2
- package/out/generator/permission.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +3 -1
- package/out/index.js.map +1 -1
- package/out/natural/genNaturalTS.js +2 -5
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/index.d.ts +2 -0
- package/out/natural/index.js +2 -0
- package/out/natural/index.js.map +1 -1
- package/out/natural/naslStdlibMap.d.ts +1 -2
- package/out/natural/naslStdlibMap.js +32 -23
- package/out/natural/naslStdlibMap.js.map +1 -1
- package/out/natural/prompt/analyzeClaims.d.ts +1 -0
- package/out/natural/prompt/analyzeClaims.js +21 -0
- package/out/natural/prompt/analyzeClaims.js.map +1 -0
- package/out/natural/prompt/executeClaims.d.ts +1 -0
- package/out/natural/prompt/executeClaims.js +73 -0
- package/out/natural/prompt/executeClaims.js.map +1 -0
- package/out/natural/transformTSCode.js +13 -2
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/createUiTs.d.ts +2 -1
- package/out/server/createUiTs.js +133 -161
- package/out/server/createUiTs.js.map +1 -1
- package/out/server/entity2LogicNamespace.js +1 -15
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +36 -9
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.js +9 -9
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getConnector.d.ts +1 -0
- package/out/server/getConnector.js +38 -35
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getFunctions.js +3 -3
- package/out/server/getFunctions.js.map +1 -1
- package/out/server/getLogics.js +51 -15
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +87 -144
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.d.ts +11 -1
- package/out/server/naslServer.js +118 -74
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +24 -5
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.d.ts +1 -0
- package/out/service/storage/init.js +12 -7
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +16 -16
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +23 -23
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.d.ts +2 -2
- package/out/templator/genCurdMultipleKeyBlock.js +28 -38
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +15 -15
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genEnumSelectBlock.js +8 -8
- package/out/templator/genEnumSelectBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +18 -20
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +10 -10
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genQueryComponent.js +32 -37
- package/out/templator/genQueryComponent.js.map +1 -1
- package/out/templator/genSelectBlock.js +10 -10
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +18 -10
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +15 -15
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.d.ts +19 -24
- package/out/templator/utils.js +20 -30
- package/out/templator/utils.js.map +1 -1
- package/out/translator/types.d.ts +2 -0
- package/out/utils/index.d.ts +6 -1
- package/out/utils/index.js +37 -4
- package/out/utils/index.js.map +1 -1
- package/out/utils/string.d.ts +12 -0
- package/out/utils/string.js +15 -1
- package/out/utils/string.js.map +1 -1
- package/out/utils/time-slicing/performance.js +3 -3
- package/out/utils/time-slicing/performance.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.auth.ts +4 -0
- package/sandbox/stdlib/nasl.collection.ts +5 -3
- package/sandbox/stdlib/nasl.core.ts +16 -1
- package/sandbox/stdlib/nasl.oql.ts +2 -2
- package/sandbox/stdlib/nasl.process.ts +18 -0
- package/sandbox/stdlib/nasl.ui.components.h5.ts +1751 -0
- package/sandbox/stdlib/nasl.ui.components.pc.ts +3479 -0
- package/sandbox/stdlib/nasl.ui.definition.ts +53 -2688
- package/sandbox/stdlib/nasl.ui.ts +2 -1
- package/sandbox/stdlib/nasl.util.ts +7 -5
- package/sandbox-natural/stdlib/nasl.core.ts +3 -0
- package/sandbox-natural/stdlib/nasl.oql.ts +4 -3
- package/src/automate/engine/utils.js +3 -7
- package/src/automate/template/myProcess.js +65 -65
- package/src/bak/translator.js +62 -29
- package/src/breakpoint/generator/BreakpointNode.ts +9 -0
- package/src/breakpoint/shared/constants.ts +1 -0
- package/src/breakpoint/shared/utils.ts +1 -1
- package/src/common/BaseNode.ts +71 -9
- package/src/common/ComponentAPI.ts +6 -3
- package/src/common/EventEmitter.ts +1 -0
- package/src/concepts/Abort__.ts +8 -8
- package/src/concepts/AbstractInterface__.ts +14 -14
- package/src/concepts/Anchor__.ts +8 -60
- package/src/concepts/AnonymousFunction__.ts +21 -198
- package/src/concepts/App__.ts +1151 -1837
- package/src/concepts/Argument__.ts +16 -64
- package/src/concepts/Assignee__.ts +14 -72
- package/src/concepts/AssignmentLine__.ts +9 -14
- package/src/concepts/Assignment__.ts +9 -92
- package/src/concepts/Attribute__.ts +49 -176
- package/src/concepts/AuthInterface__.ts +19 -20
- package/src/concepts/AuthLogicForCallInterface__.ts +9 -36
- package/src/concepts/AuthLogic__.ts +45 -46
- package/src/concepts/BackendVariable__.ts +45 -167
- package/src/concepts/Backend__.ts +13 -57
- package/src/concepts/BaseSetter__.ts +72 -0
- package/src/concepts/BatchAssignment__.ts +18 -105
- package/src/concepts/BinaryExpression__.ts +36 -89
- package/src/concepts/BindAttribute__.ts +194 -343
- package/src/concepts/BindDirective__.ts +80 -135
- package/src/concepts/BindEvent__.ts +62 -126
- package/src/concepts/BindStyle__.ts +59 -112
- package/src/concepts/Block__.ts +8 -34
- package/src/concepts/BooleanLiteral__.ts +12 -5
- package/src/concepts/BusinessComponent__.ts +201 -502
- package/src/concepts/BusinessLogic__.ts +15 -15
- package/src/concepts/CallAuthInterface__.ts +10 -39
- package/src/concepts/CallConnector__.ts +15 -6
- package/src/concepts/CallEvent__.ts +16 -45
- package/src/concepts/CallFunction__.ts +104 -134
- package/src/concepts/CallInterface__.ts +20 -47
- package/src/concepts/CallLogic__.ts +93 -175
- package/src/concepts/CallQueryComponent__.ts +226 -520
- package/src/concepts/CapsulesSetter__.ts +254 -0
- package/src/concepts/Comment__.ts +11 -5
- package/src/concepts/CompletionProperty__.ts +29 -100
- package/src/concepts/ConfigGroup__.ts +13 -57
- package/src/concepts/ConfigPropertyValue__.ts +14 -26
- package/src/concepts/ConfigProperty__.ts +28 -68
- package/src/concepts/Configuration__.ts +9 -56
- package/src/concepts/Connection__.ts +27 -68
- package/src/concepts/ConnectorTrigger__.ts +57 -65
- package/src/concepts/Connector__.ts +339 -1448
- package/src/concepts/Constant__.ts +59 -182
- package/src/concepts/CountersignPolicy__.ts +12 -18
- package/src/concepts/DataSource__.ts +29 -68
- package/src/concepts/DatabaseTypeAnnotation__.ts +14 -19
- package/src/concepts/DefaultValue__.ts +10 -74
- package/src/concepts/Destination__.ts +28 -80
- package/src/concepts/End__.ts +11 -9
- package/src/concepts/EntityIndex__.ts +44 -51
- package/src/concepts/EntityProperty__.ts +86 -238
- package/src/concepts/Entity__.ts +43 -111
- package/src/concepts/EnumItem__.ts +29 -40
- package/src/concepts/EnumSelectSetter__.ts +254 -0
- package/src/concepts/Enum__.ts +38 -129
- package/src/concepts/EventDeclaration__.ts +95 -0
- package/src/concepts/Event__.ts +43 -92
- package/src/concepts/ExternalDestination__.ts +17 -91
- package/src/concepts/ForEachStatement__.ts +15 -198
- package/src/concepts/FrontendLibrary__.ts +111 -161
- package/src/concepts/FrontendType__.ts +21 -118
- package/src/concepts/FrontendVariable__.ts +10 -4
- package/src/concepts/Frontend__.ts +44 -250
- package/src/concepts/Function__.ts +28 -220
- package/src/concepts/I18nInfo__.ts +18 -20
- package/src/concepts/IconSetter__.ts +72 -0
- package/src/concepts/Identifier__.ts +27 -16
- package/src/concepts/IfStatement__.ts +9 -60
- package/src/concepts/ImageSetter__.ts +65 -0
- package/src/concepts/ImportedInterface__.ts +17 -4
- package/src/concepts/InputSetter__.ts +72 -0
- package/src/concepts/Integration__.ts +10 -114
- package/src/concepts/InterfaceParam__.ts +67 -186
- package/src/concepts/Interface__.ts +106 -200
- package/src/concepts/JSBlock__.ts +11 -11
- package/src/concepts/JavaLogic__.ts +19 -9
- package/src/concepts/LogicDeclaration__.ts +657 -0
- package/src/concepts/LogicItem__.ts +91 -96
- package/src/concepts/Logic__.ts +287 -434
- package/src/concepts/MatchCase__.ts +22 -72
- package/src/concepts/Match__.ts +23 -67
- package/src/concepts/MemberExpression__.ts +136 -132
- package/src/concepts/MetadataType__.ts +72 -167
- package/src/concepts/MicroApp__.ts +34 -29
- package/src/concepts/Module__.ts +259 -681
- package/src/concepts/MsgTriggerEvent__.ts +44 -79
- package/src/concepts/MsgTriggerLauncher__.ts +21 -54
- package/src/concepts/MultiApprovalPolicy__.ts +10 -18
- package/src/concepts/Namespace__.ts +278 -652
- package/src/concepts/NewComposite__.ts +62 -170
- package/src/concepts/NewList__.ts +12 -94
- package/src/concepts/NewMap__.ts +12 -94
- package/src/concepts/New__.ts +13 -2
- package/src/concepts/NullLiteral__.ts +8 -2
- package/src/concepts/NumberInputSetter__.ts +104 -0
- package/src/concepts/NumericLiteral__.ts +13 -63
- package/src/concepts/OqlQueryComponent__.ts +23 -71
- package/src/concepts/OverriddenLogic__.ts +71 -287
- package/src/concepts/Paginate__.ts +185 -0
- package/src/concepts/ParamWithGroup__.ts +26 -17
- package/src/concepts/Param__.ts +70 -211
- package/src/concepts/Point__.ts +14 -19
- package/src/concepts/ProcessComponent__.ts +33 -104
- package/src/concepts/ProcessElement__.ts +67 -422
- package/src/concepts/ProcessOutcome__.ts +12 -11
- package/src/concepts/ProcessOutcomes__.ts +9 -9
- package/src/concepts/Process__.ts +36 -200
- package/src/concepts/PropDeclaration__.ts +209 -0
- package/src/concepts/PropertySelectSetter__.ts +65 -0
- package/src/concepts/QueryAggregateExpression__.ts +18 -65
- package/src/concepts/QueryFieldExpression__.ts +22 -10
- package/src/concepts/QueryFromExpression__.ts +21 -41
- package/src/concepts/QueryGroupByExpression__.ts +8 -60
- package/src/concepts/QueryJoinExpression__.ts +64 -101
- package/src/concepts/QueryLimitExpression__.ts +9 -86
- package/src/concepts/QueryOrderByExpression__.ts +9 -86
- package/src/concepts/QuerySelectExpression__.ts +70 -118
- package/src/concepts/Rect__.ts +22 -23
- package/src/concepts/Return__.ts +60 -185
- package/src/concepts/Role__.ts +22 -29
- package/src/concepts/SelectMembers__.ts +16 -77
- package/src/concepts/SequentialPolicy__.ts +7 -2
- package/src/concepts/SetterOption__.ts +111 -0
- package/src/concepts/SlotDeclaration__.ts +488 -0
- package/src/concepts/Slot__.ts +35 -105
- package/src/concepts/SqlQueryComponent__.ts +21 -73
- package/src/concepts/Start__.ts +7 -8
- package/src/concepts/StaticString__.ts +16 -26
- package/src/concepts/StringInterpolation__.ts +9 -36
- package/src/concepts/StringLiteral__.ts +16 -7
- package/src/concepts/StructureProperty__.ts +38 -176
- package/src/concepts/Structure__.ts +32 -102
- package/src/concepts/SwitchCase__.ts +10 -62
- package/src/concepts/SwitchSetter__.ts +65 -0
- package/src/concepts/SwitchStatement__.ts +9 -35
- package/src/concepts/ThemeVariable__.ts +71 -0
- package/src/concepts/Theme__.ts +15 -17
- package/src/concepts/Transactional__.ts +67 -77
- package/src/concepts/TriggerEvent__.ts +14 -76
- package/src/concepts/TriggerLauncher__.ts +34 -38
- package/src/concepts/TypeAnnotation__.ts +50 -100
- package/src/concepts/TypeParam__.ts +10 -5
- package/src/concepts/UnaryExpression__.ts +12 -62
- package/src/concepts/Unparsed__.ts +11 -5
- package/src/concepts/UseComponent__.ts +14 -19
- package/src/concepts/ValidationRule__.ts +26 -105
- package/src/concepts/Variable__.ts +71 -195
- package/src/concepts/ViewBlockWithImage__.ts +80 -0
- package/src/concepts/ViewBlock__.ts +24 -27
- package/src/concepts/ViewComponentDeclaration__.ts +1670 -0
- package/src/concepts/ViewElement__.ts +502 -486
- package/src/concepts/View__.ts +576 -389
- package/src/concepts/WhileStatement__.ts +11 -62
- package/src/concepts/basics/stdlib/nasl.auth.ts +97 -34
- package/src/concepts/basics/stdlib/nasl.process.ts +103 -7
- package/src/concepts/basics/stdlib/nasl.util.ts +31 -31
- package/src/concepts/index__.ts +24 -8
- package/src/concepts/utils/asserts.ts +1544 -446
- package/src/concepts/utils/types.ts +121 -41
- package/src/config.ts +6 -0
- package/src/decorators/index.ts +3 -8
- package/src/enums/KEYWORDS.ts +2 -0
- package/src/generator/genBundleFiles.ts +129 -29
- package/src/generator/genReleaseBody.ts +0 -2
- package/src/generator/permission.ts +2 -2
- package/src/index.ts +1 -0
- package/src/natural/genNaturalTS.ts +2 -2
- package/src/natural/index.ts +3 -0
- package/src/natural/naslStdlibMap.ts +25 -19
- package/src/natural/prompt/analyzeClaims.ts +16 -0
- package/src/natural/prompt/executeClaims.ts +69 -0
- package/src/natural/transformTSCode.ts +12 -2
- package/src/server/createUiTs.ts +121 -155
- package/src/server/entity2LogicNamespace.ts +1 -16
- package/src/server/extendBaseNode.ts +46 -15
- package/src/server/formatTsUtils.ts +13 -13
- package/src/server/getConnector.ts +43 -35
- package/src/server/getFunctions.ts +3 -3
- package/src/server/getLogics.ts +34 -17
- package/src/server/getMemberIdentifier.ts +101 -145
- package/src/server/naslServer.ts +136 -74
- package/src/server/translator.ts +23 -5
- package/src/service/storage/init.ts +15 -8
- package/src/templator/genCreateBlock.ts +16 -16
- package/src/templator/genCurdEditMultipleKeyBlock.ts +23 -23
- package/src/templator/genCurdMultipleKeyBlock.ts +34 -44
- package/src/templator/genEditTableBlock.ts +15 -15
- package/src/templator/genEnumSelectBlock.ts +8 -8
- package/src/templator/genGridViewBlock.ts +18 -20
- package/src/templator/genListViewBlock.ts +10 -10
- package/src/templator/genQueryComponent.ts +33 -38
- package/src/templator/genSelectBlock.ts +10 -10
- package/src/templator/genTableBlock.ts +20 -12
- package/src/templator/genUpdateBlock.ts +15 -15
- package/src/templator/utils.ts +21 -30
- package/src/translator/types.ts +4 -0
- package/src/utils/index.ts +40 -5
- package/src/utils/string.ts +14 -0
- package/src/utils/time-slicing/performance.ts +3 -3
- package/test/concepts/call-interface/__snapshots__/getQuickInfoOffset.spec.ts.snap +1 -1
- package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -1
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +7 -8
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +5 -5
- package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -2
- package/test/concepts/member-expression/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -1
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/member-expression/fixtures/elements.table-view.data.json +363 -10
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +655 -611
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +127 -6
- package/test/concepts/view-element/fixtures/table-data-source-calllogic-with-server-validation.json +2074 -0
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +11 -0
- package/test/concepts/view-element/toVue.spec.ts +0 -1
- package/ts-worker/src/start.js +1 -0
- package/out/concepts/ViewComponent__.d.ts +0 -568
- package/out/concepts/ViewComponent__.js +0 -809
- package/out/concepts/ViewComponent__.js.map +0 -1
- package/src/concepts/ViewComponent__.ts +0 -1444
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
3
|
+
exports.isStrictLogic = exports.isStrictTheme = exports.isStrictLogicDeclaration = exports.isStrictSlotDeclaration = exports.isStrictEventDeclaration = exports.isStrictPropDeclaration = exports.isStrictEvent = exports.isStrictAttribute = exports.isStrictBusinessComponent = exports.isStrictViewComponentDeclaration = exports.isStrictPropertySelectSetter = exports.isStrictImageSetter = exports.isStrictIconSetter = exports.isStrictNumberInputSetter = exports.isStrictCapsulesSetter = exports.isStrictEnumSelectSetter = exports.isStrictSetterOption = exports.isStrictSwitchSetter = exports.isStrictInputSetter = exports.isStrictThemeVariable = exports.isStrictBindStyle = exports.isStrictBindEvent = exports.isStrictBindDirective = exports.isStrictBindAttribute = exports.isStrictViewElement = exports.isStrictView = exports.isStrictMetadataType = exports.isStrictEntityIndex = exports.isStrictEntityProperty = exports.isStrictEntity = exports.isStrictDataSource = exports.isStrictEnumItem = exports.isStrictEnum = exports.isStrictStructureProperty = exports.isStrictStructure = exports.isStrictTypeParam = exports.isStrictDatabaseTypeAnnotation = exports.isStrictTypeAnnotation = exports.isStrictMicroApp = exports.isStrictIntegration = exports.isStrictBackend = exports.isStrictFrontend = exports.isStrictFrontendType = exports.isStrictNamespace = exports.isStrictModule = exports.isStrictApp = exports.assertFileNode = exports.isFileNode = exports.assertBaseNode = exports.isBaseNode = void 0;
|
|
4
|
+
exports.isStrictMatch = exports.isStrictMatchCase = exports.isStrictBinaryExpression = exports.isStrictNumericLiteral = exports.isStrictStaticString = exports.isStrictStringInterpolation = exports.isStrictStringLiteral = exports.isStrictBooleanLiteral = exports.isStrictNullLiteral = exports.isStrictIdentifier = exports.isStrictBlock = exports.isStrictJavaLogic = exports.isStrictJSBlock = exports.isStrictAnchor = exports.isStrictArgument = exports.isStrictValidationRule = exports.isStrictExternalDestination = exports.isStrictDestination = exports.isStrictCallInterface = exports.isStrictCallFunction = exports.isStrictCallEvent = exports.isStrictCallLogic = exports.isStrictComment = exports.isStrictBatchAssignment = exports.isStrictAssignment = exports.isStrictWhileStatement = exports.isStrictForEachStatement = exports.isStrictSwitchCase = exports.isStrictSwitchStatement = exports.isStrictIfStatement = exports.isStrictEnd = exports.isStrictStart = exports.isStrictAbort = exports.isStrictDefaultValue = exports.isStrictTransactional = exports.isStrictInterfaceParam = exports.isStrictInterface = exports.isStrictAnonymousFunction = exports.isStrictFunction = exports.isStrictConstant = exports.isStrictFrontendVariable = exports.isStrictBackendVariable = exports.isStrictVariable = exports.isStrictReturn = exports.isStrictParamWithGroup = exports.isStrictParam = exports.isStrictBusinessLogic = exports.isStrictOverriddenLogic = exports.isStrictAuthLogicForCallInterface = exports.isStrictAuthLogic = void 0;
|
|
5
|
+
exports.isStrictConnector = exports.isStrictMsgTriggerLauncher = exports.isStrictTriggerLauncher = exports.isStrictConnectorTrigger = exports.isStrictMsgTriggerEvent = exports.isStrictTriggerEvent = exports.isStrictCallAuthInterface = exports.isStrictAuthInterface = exports.isStrictViewBlockWithImage = exports.isStrictViewBlock = exports.isStrictFrontendLibrary = exports.isStrictAssignmentLine = exports.isStrictSelectMembers = exports.isStrictRect = exports.isStrictPoint = exports.isStrictUseComponent = exports.isStrictCompletionProperty = exports.isStrictI18nInfo = exports.isStrictConfigPropertyValue = exports.isStrictConfigProperty = exports.isStrictConfigGroup = exports.isStrictConfiguration = exports.isStrictRole = exports.isStrictProcessOutcomes = exports.isStrictAssignee = exports.isStrictProcessOutcome = exports.isStrictCountersignPolicy = exports.isStrictSequentialPolicy = exports.isStrictProcessComponent = exports.isStrictProcessElement = exports.isStrictProcess = exports.isStrictOqlQueryComponent = exports.isStrictSqlQueryComponent = exports.isStrictQueryLimitExpression = exports.isStrictQuerySelectExpression = exports.isStrictQueryGroupByExpression = exports.isStrictQueryOrderByExpression = exports.isStrictQueryAggregateExpression = exports.isStrictQueryFieldExpression = exports.isStrictQueryJoinExpression = exports.isStrictQueryFromExpression = exports.isStrictCallQueryComponent = exports.isStrictPaginate = exports.isStrictNewMap = exports.isStrictNewList = exports.isStrictNewComposite = exports.isStrictNew = exports.isStrictUnparsed = exports.isStrictMemberExpression = exports.isStrictUnaryExpression = void 0;
|
|
6
|
+
exports.isAuthLogic = exports.isLogic = exports.isTheme = exports.isLogicDeclaration = exports.isSlotDeclaration = exports.isEventDeclaration = exports.isPropDeclaration = exports.isEvent = exports.isAttribute = exports.isBusinessComponent = exports.isViewComponentDeclaration = exports.isPropertySelectSetter = exports.isImageSetter = exports.isIconSetter = exports.isNumberInputSetter = exports.isCapsulesSetter = exports.isEnumSelectSetter = exports.isSetterOption = exports.isSwitchSetter = exports.isInputSetter = exports.isBaseSetter = exports.isThemeVariable = exports.isBindStyle = exports.isBindEvent = exports.isBindDirective = exports.isBindAttribute = exports.isViewElement = exports.isView = exports.isMetadataType = exports.isEntityIndex = exports.isEntityProperty = exports.isEntity = exports.isDataSource = exports.isEnumItem = exports.isEnum = exports.isStructureProperty = exports.isStructure = exports.isTypeParam = exports.isDatabaseTypeAnnotation = exports.isTypeAnnotation = exports.isMicroApp = exports.isIntegration = exports.isBackend = exports.isFrontend = exports.isFrontendType = exports.isNamespace = exports.isModule = exports.isApp = exports.isStrictConnection = exports.isStrictCallConnector = void 0;
|
|
7
|
+
exports.isBinaryExpression = exports.isNumericLiteral = exports.isStaticString = exports.isStringInterpolation = exports.isStringLiteral = exports.isBooleanLiteral = exports.isNullLiteral = exports.isIdentifier = exports.isBlock = exports.isJavaLogic = exports.isJSBlock = exports.isAnchor = exports.isArgument = exports.isValidationRule = exports.isExternalDestination = exports.isDestination = exports.isCallInterface = exports.isCallFunction = exports.isCallEvent = exports.isCallLogic = exports.isComment = exports.isBatchAssignment = exports.isAssignment = exports.isWhileStatement = exports.isForEachStatement = exports.isSwitchCase = exports.isSwitchStatement = exports.isIfStatement = exports.isEnd = exports.isStart = exports.isAbort = exports.isDefaultValue = exports.isTransactional = exports.isInterfaceParam = exports.isInterface = exports.isImportedInterface = exports.isAnonymousFunction = exports.isFunction = exports.isLogicItem = exports.isConstant = exports.isFrontendVariable = exports.isBackendVariable = exports.isVariable = exports.isReturn = exports.isParamWithGroup = exports.isParam = exports.isAbstractInterface = exports.isBusinessLogic = exports.isOverriddenLogic = exports.isAuthLogicForCallInterface = void 0;
|
|
8
|
+
exports.isConnectorTrigger = exports.isMsgTriggerEvent = exports.isTriggerEvent = exports.isCallAuthInterface = exports.isAuthInterface = exports.isViewBlockWithImage = exports.isViewBlock = exports.isFrontendLibrary = exports.isAssignmentLine = exports.isSelectMembers = exports.isRect = exports.isPoint = exports.isUseComponent = exports.isCompletionProperty = exports.isI18nInfo = exports.isConfigPropertyValue = exports.isConfigProperty = exports.isConfigGroup = exports.isConfiguration = exports.isRole = exports.isProcessOutcomes = exports.isAssignee = exports.isProcessOutcome = exports.isCountersignPolicy = exports.isSequentialPolicy = exports.isMultiApprovalPolicy = exports.isProcessComponent = exports.isProcessElement = exports.isProcess = exports.isOqlQueryComponent = exports.isSqlQueryComponent = exports.isQueryLimitExpression = exports.isQuerySelectExpression = exports.isQueryGroupByExpression = exports.isQueryOrderByExpression = exports.isQueryAggregateExpression = exports.isQueryFieldExpression = exports.isQueryJoinExpression = exports.isQueryFromExpression = exports.isCallQueryComponent = exports.isPaginate = exports.isNewMap = exports.isNewList = exports.isNewComposite = exports.isNew = exports.isUnparsed = exports.isMemberExpression = exports.isUnaryExpression = exports.isMatch = exports.isMatchCase = void 0;
|
|
9
|
+
exports.assertStrictTheme = exports.assertStrictLogicDeclaration = exports.assertStrictSlotDeclaration = exports.assertStrictEventDeclaration = exports.assertStrictPropDeclaration = exports.assertStrictEvent = exports.assertStrictAttribute = exports.assertStrictBusinessComponent = exports.assertStrictViewComponentDeclaration = exports.assertStrictPropertySelectSetter = exports.assertStrictImageSetter = exports.assertStrictIconSetter = exports.assertStrictNumberInputSetter = exports.assertStrictCapsulesSetter = exports.assertStrictEnumSelectSetter = exports.assertStrictSetterOption = exports.assertStrictSwitchSetter = exports.assertStrictInputSetter = exports.assertStrictThemeVariable = exports.assertStrictBindStyle = exports.assertStrictBindEvent = exports.assertStrictBindDirective = exports.assertStrictBindAttribute = exports.assertStrictViewElement = exports.assertStrictView = exports.assertStrictMetadataType = exports.assertStrictEntityIndex = exports.assertStrictEntityProperty = exports.assertStrictEntity = exports.assertStrictDataSource = exports.assertStrictEnumItem = exports.assertStrictEnum = exports.assertStrictStructureProperty = exports.assertStrictStructure = exports.assertStrictTypeParam = exports.assertStrictDatabaseTypeAnnotation = exports.assertStrictTypeAnnotation = exports.assertStrictMicroApp = exports.assertStrictIntegration = exports.assertStrictBackend = exports.assertStrictFrontend = exports.assertStrictFrontendType = exports.assertStrictNamespace = exports.assertStrictModule = exports.assertStrictApp = exports.isConnection = exports.isCallConnector = exports.isConnector = exports.isMsgTriggerLauncher = exports.isTriggerLauncher = void 0;
|
|
10
|
+
exports.assertStrictMatchCase = exports.assertStrictBinaryExpression = exports.assertStrictNumericLiteral = exports.assertStrictStaticString = exports.assertStrictStringInterpolation = exports.assertStrictStringLiteral = exports.assertStrictBooleanLiteral = exports.assertStrictNullLiteral = exports.assertStrictIdentifier = exports.assertStrictBlock = exports.assertStrictJavaLogic = exports.assertStrictJSBlock = exports.assertStrictAnchor = exports.assertStrictArgument = exports.assertStrictValidationRule = exports.assertStrictExternalDestination = exports.assertStrictDestination = exports.assertStrictCallInterface = exports.assertStrictCallFunction = exports.assertStrictCallEvent = exports.assertStrictCallLogic = exports.assertStrictComment = exports.assertStrictBatchAssignment = exports.assertStrictAssignment = exports.assertStrictWhileStatement = exports.assertStrictForEachStatement = exports.assertStrictSwitchCase = exports.assertStrictSwitchStatement = exports.assertStrictIfStatement = exports.assertStrictEnd = exports.assertStrictStart = exports.assertStrictAbort = exports.assertStrictDefaultValue = exports.assertStrictTransactional = exports.assertStrictInterfaceParam = exports.assertStrictInterface = exports.assertStrictAnonymousFunction = exports.assertStrictFunction = exports.assertStrictConstant = exports.assertStrictFrontendVariable = exports.assertStrictBackendVariable = exports.assertStrictVariable = exports.assertStrictReturn = exports.assertStrictParamWithGroup = exports.assertStrictParam = exports.assertStrictBusinessLogic = exports.assertStrictOverriddenLogic = exports.assertStrictAuthLogicForCallInterface = exports.assertStrictAuthLogic = exports.assertStrictLogic = void 0;
|
|
11
|
+
exports.assertStrictMsgTriggerLauncher = exports.assertStrictTriggerLauncher = exports.assertStrictConnectorTrigger = exports.assertStrictMsgTriggerEvent = exports.assertStrictTriggerEvent = exports.assertStrictCallAuthInterface = exports.assertStrictAuthInterface = exports.assertStrictViewBlockWithImage = exports.assertStrictViewBlock = exports.assertStrictFrontendLibrary = exports.assertStrictAssignmentLine = exports.assertStrictSelectMembers = exports.assertStrictRect = exports.assertStrictPoint = exports.assertStrictUseComponent = exports.assertStrictCompletionProperty = exports.assertStrictI18nInfo = exports.assertStrictConfigPropertyValue = exports.assertStrictConfigProperty = exports.assertStrictConfigGroup = exports.assertStrictConfiguration = exports.assertStrictRole = exports.assertStrictProcessOutcomes = exports.assertStrictAssignee = exports.assertStrictProcessOutcome = exports.assertStrictCountersignPolicy = exports.assertStrictSequentialPolicy = exports.assertStrictProcessComponent = exports.assertStrictProcessElement = exports.assertStrictProcess = exports.assertStrictOqlQueryComponent = exports.assertStrictSqlQueryComponent = exports.assertStrictQueryLimitExpression = exports.assertStrictQuerySelectExpression = exports.assertStrictQueryGroupByExpression = exports.assertStrictQueryOrderByExpression = exports.assertStrictQueryAggregateExpression = exports.assertStrictQueryFieldExpression = exports.assertStrictQueryJoinExpression = exports.assertStrictQueryFromExpression = exports.assertStrictCallQueryComponent = exports.assertStrictPaginate = exports.assertStrictNewMap = exports.assertStrictNewList = exports.assertStrictNewComposite = exports.assertStrictNew = exports.assertStrictUnparsed = exports.assertStrictMemberExpression = exports.assertStrictUnaryExpression = exports.assertStrictMatch = void 0;
|
|
12
|
+
exports.assertLogic = exports.assertTheme = exports.assertLogicDeclaration = exports.assertSlotDeclaration = exports.assertEventDeclaration = exports.assertPropDeclaration = exports.assertEvent = exports.assertAttribute = exports.assertBusinessComponent = exports.assertViewComponentDeclaration = exports.assertPropertySelectSetter = exports.assertImageSetter = exports.assertIconSetter = exports.assertNumberInputSetter = exports.assertCapsulesSetter = exports.assertEnumSelectSetter = exports.assertSetterOption = exports.assertSwitchSetter = exports.assertInputSetter = exports.assertBaseSetter = exports.assertThemeVariable = exports.assertBindStyle = exports.assertBindEvent = exports.assertBindDirective = exports.assertBindAttribute = exports.assertViewElement = exports.assertView = exports.assertMetadataType = exports.assertEntityIndex = exports.assertEntityProperty = exports.assertEntity = exports.assertDataSource = exports.assertEnumItem = exports.assertEnum = exports.assertStructureProperty = exports.assertStructure = exports.assertTypeParam = exports.assertDatabaseTypeAnnotation = exports.assertTypeAnnotation = exports.assertMicroApp = exports.assertIntegration = exports.assertBackend = exports.assertFrontend = exports.assertFrontendType = exports.assertNamespace = exports.assertModule = exports.assertApp = exports.assertStrictConnection = exports.assertStrictCallConnector = exports.assertStrictConnector = void 0;
|
|
13
|
+
exports.assertNumericLiteral = exports.assertStaticString = exports.assertStringInterpolation = exports.assertStringLiteral = exports.assertBooleanLiteral = exports.assertNullLiteral = exports.assertIdentifier = exports.assertBlock = exports.assertJavaLogic = exports.assertJSBlock = exports.assertAnchor = exports.assertArgument = exports.assertValidationRule = exports.assertExternalDestination = exports.assertDestination = exports.assertCallInterface = exports.assertCallFunction = exports.assertCallEvent = exports.assertCallLogic = exports.assertComment = exports.assertBatchAssignment = exports.assertAssignment = exports.assertWhileStatement = exports.assertForEachStatement = exports.assertSwitchCase = exports.assertSwitchStatement = exports.assertIfStatement = exports.assertEnd = exports.assertStart = exports.assertAbort = exports.assertDefaultValue = exports.assertTransactional = exports.assertInterfaceParam = exports.assertInterface = exports.assertImportedInterface = exports.assertAnonymousFunction = exports.assertFunction = exports.assertLogicItem = exports.assertConstant = exports.assertFrontendVariable = exports.assertBackendVariable = exports.assertVariable = exports.assertReturn = exports.assertParamWithGroup = exports.assertParam = exports.assertAbstractInterface = exports.assertBusinessLogic = exports.assertOverriddenLogic = exports.assertAuthLogicForCallInterface = exports.assertAuthLogic = void 0;
|
|
14
|
+
exports.assertMsgTriggerEvent = exports.assertTriggerEvent = exports.assertCallAuthInterface = exports.assertAuthInterface = exports.assertViewBlockWithImage = exports.assertViewBlock = exports.assertFrontendLibrary = exports.assertAssignmentLine = exports.assertSelectMembers = exports.assertRect = exports.assertPoint = exports.assertUseComponent = exports.assertCompletionProperty = exports.assertI18nInfo = exports.assertConfigPropertyValue = exports.assertConfigProperty = exports.assertConfigGroup = exports.assertConfiguration = exports.assertRole = exports.assertProcessOutcomes = exports.assertAssignee = exports.assertProcessOutcome = exports.assertCountersignPolicy = exports.assertSequentialPolicy = exports.assertMultiApprovalPolicy = exports.assertProcessComponent = exports.assertProcessElement = exports.assertProcess = exports.assertOqlQueryComponent = exports.assertSqlQueryComponent = exports.assertQueryLimitExpression = exports.assertQuerySelectExpression = exports.assertQueryGroupByExpression = exports.assertQueryOrderByExpression = exports.assertQueryAggregateExpression = exports.assertQueryFieldExpression = exports.assertQueryJoinExpression = exports.assertQueryFromExpression = exports.assertCallQueryComponent = exports.assertPaginate = exports.assertNewMap = exports.assertNewList = exports.assertNewComposite = exports.assertNew = exports.assertUnparsed = exports.assertMemberExpression = exports.assertUnaryExpression = exports.assertMatch = exports.assertMatchCase = exports.assertBinaryExpression = void 0;
|
|
15
|
+
exports.assertConnection = exports.assertCallConnector = exports.assertConnector = exports.assertMsgTriggerLauncher = exports.assertTriggerLauncher = exports.assertConnectorTrigger = void 0;
|
|
14
16
|
/**
|
|
15
17
|
* 判断为节点
|
|
16
18
|
*/
|
|
@@ -435,20 +437,170 @@ function isStrictBindStyle(node) {
|
|
|
435
437
|
}
|
|
436
438
|
exports.isStrictBindStyle = isStrictBindStyle;
|
|
437
439
|
/**
|
|
438
|
-
* 严格判断输入为
|
|
440
|
+
* 严格判断输入为 ThemeVariable 节点
|
|
439
441
|
*
|
|
440
442
|
* @description 仅判断节点本身,不包含继承类
|
|
441
443
|
* @example
|
|
442
444
|
* ```ts
|
|
443
|
-
* if (
|
|
444
|
-
* // 在这个花括号内,node 的类型为
|
|
445
|
+
* if (isStrictThemeVariable(node)) {
|
|
446
|
+
* // 在这个花括号内,node 的类型为 ThemeVariable
|
|
445
447
|
* }
|
|
446
448
|
* ```
|
|
447
449
|
*/
|
|
448
|
-
function
|
|
449
|
-
return isBaseNode(node) && node.concept === '
|
|
450
|
+
function isStrictThemeVariable(node) {
|
|
451
|
+
return isBaseNode(node) && node.concept === 'ThemeVariable';
|
|
450
452
|
}
|
|
451
|
-
exports.
|
|
453
|
+
exports.isStrictThemeVariable = isStrictThemeVariable;
|
|
454
|
+
/**
|
|
455
|
+
* 严格判断输入为 InputSetter 节点
|
|
456
|
+
*
|
|
457
|
+
* @description 仅判断节点本身,不包含继承类
|
|
458
|
+
* @example
|
|
459
|
+
* ```ts
|
|
460
|
+
* if (isStrictInputSetter(node)) {
|
|
461
|
+
* // 在这个花括号内,node 的类型为 InputSetter
|
|
462
|
+
* }
|
|
463
|
+
* ```
|
|
464
|
+
*/
|
|
465
|
+
function isStrictInputSetter(node) {
|
|
466
|
+
return isBaseNode(node) && node.concept === 'InputSetter';
|
|
467
|
+
}
|
|
468
|
+
exports.isStrictInputSetter = isStrictInputSetter;
|
|
469
|
+
/**
|
|
470
|
+
* 严格判断输入为 SwitchSetter 节点
|
|
471
|
+
*
|
|
472
|
+
* @description 仅判断节点本身,不包含继承类
|
|
473
|
+
* @example
|
|
474
|
+
* ```ts
|
|
475
|
+
* if (isStrictSwitchSetter(node)) {
|
|
476
|
+
* // 在这个花括号内,node 的类型为 SwitchSetter
|
|
477
|
+
* }
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
480
|
+
function isStrictSwitchSetter(node) {
|
|
481
|
+
return isBaseNode(node) && node.concept === 'SwitchSetter';
|
|
482
|
+
}
|
|
483
|
+
exports.isStrictSwitchSetter = isStrictSwitchSetter;
|
|
484
|
+
/**
|
|
485
|
+
* 严格判断输入为 SetterOption 节点
|
|
486
|
+
*
|
|
487
|
+
* @description 仅判断节点本身,不包含继承类
|
|
488
|
+
* @example
|
|
489
|
+
* ```ts
|
|
490
|
+
* if (isStrictSetterOption(node)) {
|
|
491
|
+
* // 在这个花括号内,node 的类型为 SetterOption
|
|
492
|
+
* }
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
function isStrictSetterOption(node) {
|
|
496
|
+
return isBaseNode(node) && node.concept === 'SetterOption';
|
|
497
|
+
}
|
|
498
|
+
exports.isStrictSetterOption = isStrictSetterOption;
|
|
499
|
+
/**
|
|
500
|
+
* 严格判断输入为 EnumSelectSetter 节点
|
|
501
|
+
*
|
|
502
|
+
* @description 仅判断节点本身,不包含继承类
|
|
503
|
+
* @example
|
|
504
|
+
* ```ts
|
|
505
|
+
* if (isStrictEnumSelectSetter(node)) {
|
|
506
|
+
* // 在这个花括号内,node 的类型为 EnumSelectSetter
|
|
507
|
+
* }
|
|
508
|
+
* ```
|
|
509
|
+
*/
|
|
510
|
+
function isStrictEnumSelectSetter(node) {
|
|
511
|
+
return isBaseNode(node) && node.concept === 'EnumSelectSetter';
|
|
512
|
+
}
|
|
513
|
+
exports.isStrictEnumSelectSetter = isStrictEnumSelectSetter;
|
|
514
|
+
/**
|
|
515
|
+
* 严格判断输入为 CapsulesSetter 节点
|
|
516
|
+
*
|
|
517
|
+
* @description 仅判断节点本身,不包含继承类
|
|
518
|
+
* @example
|
|
519
|
+
* ```ts
|
|
520
|
+
* if (isStrictCapsulesSetter(node)) {
|
|
521
|
+
* // 在这个花括号内,node 的类型为 CapsulesSetter
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
function isStrictCapsulesSetter(node) {
|
|
526
|
+
return isBaseNode(node) && node.concept === 'CapsulesSetter';
|
|
527
|
+
}
|
|
528
|
+
exports.isStrictCapsulesSetter = isStrictCapsulesSetter;
|
|
529
|
+
/**
|
|
530
|
+
* 严格判断输入为 NumberInputSetter 节点
|
|
531
|
+
*
|
|
532
|
+
* @description 仅判断节点本身,不包含继承类
|
|
533
|
+
* @example
|
|
534
|
+
* ```ts
|
|
535
|
+
* if (isStrictNumberInputSetter(node)) {
|
|
536
|
+
* // 在这个花括号内,node 的类型为 NumberInputSetter
|
|
537
|
+
* }
|
|
538
|
+
* ```
|
|
539
|
+
*/
|
|
540
|
+
function isStrictNumberInputSetter(node) {
|
|
541
|
+
return isBaseNode(node) && node.concept === 'NumberInputSetter';
|
|
542
|
+
}
|
|
543
|
+
exports.isStrictNumberInputSetter = isStrictNumberInputSetter;
|
|
544
|
+
/**
|
|
545
|
+
* 严格判断输入为 IconSetter 节点
|
|
546
|
+
*
|
|
547
|
+
* @description 仅判断节点本身,不包含继承类
|
|
548
|
+
* @example
|
|
549
|
+
* ```ts
|
|
550
|
+
* if (isStrictIconSetter(node)) {
|
|
551
|
+
* // 在这个花括号内,node 的类型为 IconSetter
|
|
552
|
+
* }
|
|
553
|
+
* ```
|
|
554
|
+
*/
|
|
555
|
+
function isStrictIconSetter(node) {
|
|
556
|
+
return isBaseNode(node) && node.concept === 'IconSetter';
|
|
557
|
+
}
|
|
558
|
+
exports.isStrictIconSetter = isStrictIconSetter;
|
|
559
|
+
/**
|
|
560
|
+
* 严格判断输入为 ImageSetter 节点
|
|
561
|
+
*
|
|
562
|
+
* @description 仅判断节点本身,不包含继承类
|
|
563
|
+
* @example
|
|
564
|
+
* ```ts
|
|
565
|
+
* if (isStrictImageSetter(node)) {
|
|
566
|
+
* // 在这个花括号内,node 的类型为 ImageSetter
|
|
567
|
+
* }
|
|
568
|
+
* ```
|
|
569
|
+
*/
|
|
570
|
+
function isStrictImageSetter(node) {
|
|
571
|
+
return isBaseNode(node) && node.concept === 'ImageSetter';
|
|
572
|
+
}
|
|
573
|
+
exports.isStrictImageSetter = isStrictImageSetter;
|
|
574
|
+
/**
|
|
575
|
+
* 严格判断输入为 PropertySelectSetter 节点
|
|
576
|
+
*
|
|
577
|
+
* @description 仅判断节点本身,不包含继承类
|
|
578
|
+
* @example
|
|
579
|
+
* ```ts
|
|
580
|
+
* if (isStrictPropertySelectSetter(node)) {
|
|
581
|
+
* // 在这个花括号内,node 的类型为 PropertySelectSetter
|
|
582
|
+
* }
|
|
583
|
+
* ```
|
|
584
|
+
*/
|
|
585
|
+
function isStrictPropertySelectSetter(node) {
|
|
586
|
+
return isBaseNode(node) && node.concept === 'PropertySelectSetter';
|
|
587
|
+
}
|
|
588
|
+
exports.isStrictPropertySelectSetter = isStrictPropertySelectSetter;
|
|
589
|
+
/**
|
|
590
|
+
* 严格判断输入为 ViewComponentDeclaration 节点
|
|
591
|
+
*
|
|
592
|
+
* @description 仅判断节点本身,不包含继承类
|
|
593
|
+
* @example
|
|
594
|
+
* ```ts
|
|
595
|
+
* if (isStrictViewComponentDeclaration(node)) {
|
|
596
|
+
* // 在这个花括号内,node 的类型为 ViewComponentDeclaration
|
|
597
|
+
* }
|
|
598
|
+
* ```
|
|
599
|
+
*/
|
|
600
|
+
function isStrictViewComponentDeclaration(node) {
|
|
601
|
+
return isBaseNode(node) && node.concept === 'ViewComponentDeclaration';
|
|
602
|
+
}
|
|
603
|
+
exports.isStrictViewComponentDeclaration = isStrictViewComponentDeclaration;
|
|
452
604
|
/**
|
|
453
605
|
* 严格判断输入为 BusinessComponent 节点
|
|
454
606
|
*
|
|
@@ -495,50 +647,80 @@ function isStrictEvent(node) {
|
|
|
495
647
|
}
|
|
496
648
|
exports.isStrictEvent = isStrictEvent;
|
|
497
649
|
/**
|
|
498
|
-
* 严格判断输入为
|
|
650
|
+
* 严格判断输入为 PropDeclaration 节点
|
|
499
651
|
*
|
|
500
652
|
* @description 仅判断节点本身,不包含继承类
|
|
501
653
|
* @example
|
|
502
654
|
* ```ts
|
|
503
|
-
* if (
|
|
504
|
-
* // 在这个花括号内,node 的类型为
|
|
655
|
+
* if (isStrictPropDeclaration(node)) {
|
|
656
|
+
* // 在这个花括号内,node 的类型为 PropDeclaration
|
|
505
657
|
* }
|
|
506
658
|
* ```
|
|
507
659
|
*/
|
|
508
|
-
function
|
|
509
|
-
return isBaseNode(node) && node.concept === '
|
|
660
|
+
function isStrictPropDeclaration(node) {
|
|
661
|
+
return isBaseNode(node) && node.concept === 'PropDeclaration';
|
|
510
662
|
}
|
|
511
|
-
exports.
|
|
663
|
+
exports.isStrictPropDeclaration = isStrictPropDeclaration;
|
|
512
664
|
/**
|
|
513
|
-
* 严格判断输入为
|
|
665
|
+
* 严格判断输入为 EventDeclaration 节点
|
|
514
666
|
*
|
|
515
667
|
* @description 仅判断节点本身,不包含继承类
|
|
516
668
|
* @example
|
|
517
669
|
* ```ts
|
|
518
|
-
* if (
|
|
519
|
-
* // 在这个花括号内,node 的类型为
|
|
670
|
+
* if (isStrictEventDeclaration(node)) {
|
|
671
|
+
* // 在这个花括号内,node 的类型为 EventDeclaration
|
|
520
672
|
* }
|
|
521
673
|
* ```
|
|
522
674
|
*/
|
|
523
|
-
function
|
|
524
|
-
return isBaseNode(node) && node.concept === '
|
|
675
|
+
function isStrictEventDeclaration(node) {
|
|
676
|
+
return isBaseNode(node) && node.concept === 'EventDeclaration';
|
|
525
677
|
}
|
|
526
|
-
exports.
|
|
678
|
+
exports.isStrictEventDeclaration = isStrictEventDeclaration;
|
|
527
679
|
/**
|
|
528
|
-
* 严格判断输入为
|
|
680
|
+
* 严格判断输入为 SlotDeclaration 节点
|
|
529
681
|
*
|
|
530
682
|
* @description 仅判断节点本身,不包含继承类
|
|
531
683
|
* @example
|
|
532
684
|
* ```ts
|
|
533
|
-
* if (
|
|
534
|
-
* // 在这个花括号内,node 的类型为
|
|
685
|
+
* if (isStrictSlotDeclaration(node)) {
|
|
686
|
+
* // 在这个花括号内,node 的类型为 SlotDeclaration
|
|
535
687
|
* }
|
|
536
688
|
* ```
|
|
537
689
|
*/
|
|
538
|
-
function
|
|
539
|
-
return isBaseNode(node) && node.concept === '
|
|
690
|
+
function isStrictSlotDeclaration(node) {
|
|
691
|
+
return isBaseNode(node) && node.concept === 'SlotDeclaration';
|
|
540
692
|
}
|
|
541
|
-
exports.
|
|
693
|
+
exports.isStrictSlotDeclaration = isStrictSlotDeclaration;
|
|
694
|
+
/**
|
|
695
|
+
* 严格判断输入为 LogicDeclaration 节点
|
|
696
|
+
*
|
|
697
|
+
* @description 仅判断节点本身,不包含继承类
|
|
698
|
+
* @example
|
|
699
|
+
* ```ts
|
|
700
|
+
* if (isStrictLogicDeclaration(node)) {
|
|
701
|
+
* // 在这个花括号内,node 的类型为 LogicDeclaration
|
|
702
|
+
* }
|
|
703
|
+
* ```
|
|
704
|
+
*/
|
|
705
|
+
function isStrictLogicDeclaration(node) {
|
|
706
|
+
return isBaseNode(node) && node.concept === 'LogicDeclaration';
|
|
707
|
+
}
|
|
708
|
+
exports.isStrictLogicDeclaration = isStrictLogicDeclaration;
|
|
709
|
+
/**
|
|
710
|
+
* 严格判断输入为 Theme 节点
|
|
711
|
+
*
|
|
712
|
+
* @description 仅判断节点本身,不包含继承类
|
|
713
|
+
* @example
|
|
714
|
+
* ```ts
|
|
715
|
+
* if (isStrictTheme(node)) {
|
|
716
|
+
* // 在这个花括号内,node 的类型为 Theme
|
|
717
|
+
* }
|
|
718
|
+
* ```
|
|
719
|
+
*/
|
|
720
|
+
function isStrictTheme(node) {
|
|
721
|
+
return isBaseNode(node) && node.concept === 'Theme';
|
|
722
|
+
}
|
|
723
|
+
exports.isStrictTheme = isStrictTheme;
|
|
542
724
|
/**
|
|
543
725
|
* 严格判断输入为 Logic 节点
|
|
544
726
|
*
|
|
@@ -569,21 +751,6 @@ function isStrictAuthLogic(node) {
|
|
|
569
751
|
return isBaseNode(node) && node.concept === 'AuthLogic';
|
|
570
752
|
}
|
|
571
753
|
exports.isStrictAuthLogic = isStrictAuthLogic;
|
|
572
|
-
/**
|
|
573
|
-
* 严格判断输入为 BusinessLogic 节点
|
|
574
|
-
*
|
|
575
|
-
* @description 仅判断节点本身,不包含继承类
|
|
576
|
-
* @example
|
|
577
|
-
* ```ts
|
|
578
|
-
* if (isStrictBusinessLogic(node)) {
|
|
579
|
-
* // 在这个花括号内,node 的类型为 BusinessLogic
|
|
580
|
-
* }
|
|
581
|
-
* ```
|
|
582
|
-
*/
|
|
583
|
-
function isStrictBusinessLogic(node) {
|
|
584
|
-
return isBaseNode(node) && node.concept === 'BusinessLogic';
|
|
585
|
-
}
|
|
586
|
-
exports.isStrictBusinessLogic = isStrictBusinessLogic;
|
|
587
754
|
/**
|
|
588
755
|
* 严格判断输入为 AuthLogicForCallInterface 节点
|
|
589
756
|
*
|
|
@@ -614,6 +781,21 @@ function isStrictOverriddenLogic(node) {
|
|
|
614
781
|
return isBaseNode(node) && node.concept === 'OverriddenLogic';
|
|
615
782
|
}
|
|
616
783
|
exports.isStrictOverriddenLogic = isStrictOverriddenLogic;
|
|
784
|
+
/**
|
|
785
|
+
* 严格判断输入为 BusinessLogic 节点
|
|
786
|
+
*
|
|
787
|
+
* @description 仅判断节点本身,不包含继承类
|
|
788
|
+
* @example
|
|
789
|
+
* ```ts
|
|
790
|
+
* if (isStrictBusinessLogic(node)) {
|
|
791
|
+
* // 在这个花括号内,node 的类型为 BusinessLogic
|
|
792
|
+
* }
|
|
793
|
+
* ```
|
|
794
|
+
*/
|
|
795
|
+
function isStrictBusinessLogic(node) {
|
|
796
|
+
return isBaseNode(node) && node.concept === 'BusinessLogic';
|
|
797
|
+
}
|
|
798
|
+
exports.isStrictBusinessLogic = isStrictBusinessLogic;
|
|
617
799
|
/**
|
|
618
800
|
* 严格判断输入为 Param 节点
|
|
619
801
|
*
|
|
@@ -1229,6 +1411,21 @@ function isStrictStringInterpolation(node) {
|
|
|
1229
1411
|
return isBaseNode(node) && node.concept === 'StringInterpolation';
|
|
1230
1412
|
}
|
|
1231
1413
|
exports.isStrictStringInterpolation = isStrictStringInterpolation;
|
|
1414
|
+
/**
|
|
1415
|
+
* 严格判断输入为 StaticString 节点
|
|
1416
|
+
*
|
|
1417
|
+
* @description 仅判断节点本身,不包含继承类
|
|
1418
|
+
* @example
|
|
1419
|
+
* ```ts
|
|
1420
|
+
* if (isStrictStaticString(node)) {
|
|
1421
|
+
* // 在这个花括号内,node 的类型为 StaticString
|
|
1422
|
+
* }
|
|
1423
|
+
* ```
|
|
1424
|
+
*/
|
|
1425
|
+
function isStrictStaticString(node) {
|
|
1426
|
+
return isBaseNode(node) && node.concept === 'StaticString';
|
|
1427
|
+
}
|
|
1428
|
+
exports.isStrictStaticString = isStrictStaticString;
|
|
1232
1429
|
/**
|
|
1233
1430
|
* 严格判断输入为 NumericLiteral 节点
|
|
1234
1431
|
*
|
|
@@ -1394,6 +1591,21 @@ function isStrictNewMap(node) {
|
|
|
1394
1591
|
return isBaseNode(node) && node.concept === 'NewMap';
|
|
1395
1592
|
}
|
|
1396
1593
|
exports.isStrictNewMap = isStrictNewMap;
|
|
1594
|
+
/**
|
|
1595
|
+
* 严格判断输入为 Paginate 节点
|
|
1596
|
+
*
|
|
1597
|
+
* @description 仅判断节点本身,不包含继承类
|
|
1598
|
+
* @example
|
|
1599
|
+
* ```ts
|
|
1600
|
+
* if (isStrictPaginate(node)) {
|
|
1601
|
+
* // 在这个花括号内,node 的类型为 Paginate
|
|
1602
|
+
* }
|
|
1603
|
+
* ```
|
|
1604
|
+
*/
|
|
1605
|
+
function isStrictPaginate(node) {
|
|
1606
|
+
return isBaseNode(node) && node.concept === 'Paginate';
|
|
1607
|
+
}
|
|
1608
|
+
exports.isStrictPaginate = isStrictPaginate;
|
|
1397
1609
|
/**
|
|
1398
1610
|
* 严格判断输入为 CallQueryComponent 节点
|
|
1399
1611
|
*
|
|
@@ -1605,95 +1817,80 @@ function isStrictProcessComponent(node) {
|
|
|
1605
1817
|
}
|
|
1606
1818
|
exports.isStrictProcessComponent = isStrictProcessComponent;
|
|
1607
1819
|
/**
|
|
1608
|
-
* 严格判断输入为
|
|
1609
|
-
*
|
|
1610
|
-
* @description 仅判断节点本身,不包含继承类
|
|
1611
|
-
* @example
|
|
1612
|
-
* ```ts
|
|
1613
|
-
* if (isStrictProcessOutcome(node)) {
|
|
1614
|
-
* // 在这个花括号内,node 的类型为 ProcessOutcome
|
|
1615
|
-
* }
|
|
1616
|
-
* ```
|
|
1617
|
-
*/
|
|
1618
|
-
function isStrictProcessOutcome(node) {
|
|
1619
|
-
return isBaseNode(node) && node.concept === 'ProcessOutcome';
|
|
1620
|
-
}
|
|
1621
|
-
exports.isStrictProcessOutcome = isStrictProcessOutcome;
|
|
1622
|
-
/**
|
|
1623
|
-
* 严格判断输入为 Assignee 节点
|
|
1820
|
+
* 严格判断输入为 SequentialPolicy 节点
|
|
1624
1821
|
*
|
|
1625
1822
|
* @description 仅判断节点本身,不包含继承类
|
|
1626
1823
|
* @example
|
|
1627
1824
|
* ```ts
|
|
1628
|
-
* if (
|
|
1629
|
-
* // 在这个花括号内,node 的类型为
|
|
1825
|
+
* if (isStrictSequentialPolicy(node)) {
|
|
1826
|
+
* // 在这个花括号内,node 的类型为 SequentialPolicy
|
|
1630
1827
|
* }
|
|
1631
1828
|
* ```
|
|
1632
1829
|
*/
|
|
1633
|
-
function
|
|
1634
|
-
return isBaseNode(node) && node.concept === '
|
|
1830
|
+
function isStrictSequentialPolicy(node) {
|
|
1831
|
+
return isBaseNode(node) && node.concept === 'SequentialPolicy';
|
|
1635
1832
|
}
|
|
1636
|
-
exports.
|
|
1833
|
+
exports.isStrictSequentialPolicy = isStrictSequentialPolicy;
|
|
1637
1834
|
/**
|
|
1638
|
-
* 严格判断输入为
|
|
1835
|
+
* 严格判断输入为 CountersignPolicy 节点
|
|
1639
1836
|
*
|
|
1640
1837
|
* @description 仅判断节点本身,不包含继承类
|
|
1641
1838
|
* @example
|
|
1642
1839
|
* ```ts
|
|
1643
|
-
* if (
|
|
1644
|
-
* // 在这个花括号内,node 的类型为
|
|
1840
|
+
* if (isStrictCountersignPolicy(node)) {
|
|
1841
|
+
* // 在这个花括号内,node 的类型为 CountersignPolicy
|
|
1645
1842
|
* }
|
|
1646
1843
|
* ```
|
|
1647
1844
|
*/
|
|
1648
|
-
function
|
|
1649
|
-
return isBaseNode(node) && node.concept === '
|
|
1845
|
+
function isStrictCountersignPolicy(node) {
|
|
1846
|
+
return isBaseNode(node) && node.concept === 'CountersignPolicy';
|
|
1650
1847
|
}
|
|
1651
|
-
exports.
|
|
1848
|
+
exports.isStrictCountersignPolicy = isStrictCountersignPolicy;
|
|
1652
1849
|
/**
|
|
1653
|
-
* 严格判断输入为
|
|
1850
|
+
* 严格判断输入为 ProcessOutcome 节点
|
|
1654
1851
|
*
|
|
1655
1852
|
* @description 仅判断节点本身,不包含继承类
|
|
1656
1853
|
* @example
|
|
1657
1854
|
* ```ts
|
|
1658
|
-
* if (
|
|
1659
|
-
* // 在这个花括号内,node 的类型为
|
|
1855
|
+
* if (isStrictProcessOutcome(node)) {
|
|
1856
|
+
* // 在这个花括号内,node 的类型为 ProcessOutcome
|
|
1660
1857
|
* }
|
|
1661
1858
|
* ```
|
|
1662
1859
|
*/
|
|
1663
|
-
function
|
|
1664
|
-
return isBaseNode(node) && node.concept === '
|
|
1860
|
+
function isStrictProcessOutcome(node) {
|
|
1861
|
+
return isBaseNode(node) && node.concept === 'ProcessOutcome';
|
|
1665
1862
|
}
|
|
1666
|
-
exports.
|
|
1863
|
+
exports.isStrictProcessOutcome = isStrictProcessOutcome;
|
|
1667
1864
|
/**
|
|
1668
|
-
* 严格判断输入为
|
|
1865
|
+
* 严格判断输入为 Assignee 节点
|
|
1669
1866
|
*
|
|
1670
1867
|
* @description 仅判断节点本身,不包含继承类
|
|
1671
1868
|
* @example
|
|
1672
1869
|
* ```ts
|
|
1673
|
-
* if (
|
|
1674
|
-
* // 在这个花括号内,node 的类型为
|
|
1870
|
+
* if (isStrictAssignee(node)) {
|
|
1871
|
+
* // 在这个花括号内,node 的类型为 Assignee
|
|
1675
1872
|
* }
|
|
1676
1873
|
* ```
|
|
1677
1874
|
*/
|
|
1678
|
-
function
|
|
1679
|
-
return isBaseNode(node) && node.concept === '
|
|
1875
|
+
function isStrictAssignee(node) {
|
|
1876
|
+
return isBaseNode(node) && node.concept === 'Assignee';
|
|
1680
1877
|
}
|
|
1681
|
-
exports.
|
|
1878
|
+
exports.isStrictAssignee = isStrictAssignee;
|
|
1682
1879
|
/**
|
|
1683
|
-
* 严格判断输入为
|
|
1880
|
+
* 严格判断输入为 ProcessOutcomes 节点
|
|
1684
1881
|
*
|
|
1685
1882
|
* @description 仅判断节点本身,不包含继承类
|
|
1686
1883
|
* @example
|
|
1687
1884
|
* ```ts
|
|
1688
|
-
* if (
|
|
1689
|
-
* // 在这个花括号内,node 的类型为
|
|
1885
|
+
* if (isStrictProcessOutcomes(node)) {
|
|
1886
|
+
* // 在这个花括号内,node 的类型为 ProcessOutcomes
|
|
1690
1887
|
* }
|
|
1691
1888
|
* ```
|
|
1692
1889
|
*/
|
|
1693
|
-
function
|
|
1694
|
-
return isBaseNode(node) && node.concept === '
|
|
1890
|
+
function isStrictProcessOutcomes(node) {
|
|
1891
|
+
return isBaseNode(node) && node.concept === 'ProcessOutcomes';
|
|
1695
1892
|
}
|
|
1696
|
-
exports.
|
|
1893
|
+
exports.isStrictProcessOutcomes = isStrictProcessOutcomes;
|
|
1697
1894
|
/**
|
|
1698
1895
|
* 严格判断输入为 Role 节点
|
|
1699
1896
|
*
|
|
@@ -1905,22 +2102,37 @@ function isStrictViewBlock(node) {
|
|
|
1905
2102
|
}
|
|
1906
2103
|
exports.isStrictViewBlock = isStrictViewBlock;
|
|
1907
2104
|
/**
|
|
1908
|
-
* 严格判断输入为
|
|
2105
|
+
* 严格判断输入为 ViewBlockWithImage 节点
|
|
1909
2106
|
*
|
|
1910
2107
|
* @description 仅判断节点本身,不包含继承类
|
|
1911
2108
|
* @example
|
|
1912
2109
|
* ```ts
|
|
1913
|
-
* if (
|
|
1914
|
-
* // 在这个花括号内,node 的类型为
|
|
2110
|
+
* if (isStrictViewBlockWithImage(node)) {
|
|
2111
|
+
* // 在这个花括号内,node 的类型为 ViewBlockWithImage
|
|
1915
2112
|
* }
|
|
1916
2113
|
* ```
|
|
1917
2114
|
*/
|
|
1918
|
-
function
|
|
1919
|
-
return isBaseNode(node) && node.concept === '
|
|
2115
|
+
function isStrictViewBlockWithImage(node) {
|
|
2116
|
+
return isBaseNode(node) && node.concept === 'ViewBlockWithImage';
|
|
1920
2117
|
}
|
|
1921
|
-
exports.
|
|
2118
|
+
exports.isStrictViewBlockWithImage = isStrictViewBlockWithImage;
|
|
1922
2119
|
/**
|
|
1923
|
-
* 严格判断输入为
|
|
2120
|
+
* 严格判断输入为 AuthInterface 节点
|
|
2121
|
+
*
|
|
2122
|
+
* @description 仅判断节点本身,不包含继承类
|
|
2123
|
+
* @example
|
|
2124
|
+
* ```ts
|
|
2125
|
+
* if (isStrictAuthInterface(node)) {
|
|
2126
|
+
* // 在这个花括号内,node 的类型为 AuthInterface
|
|
2127
|
+
* }
|
|
2128
|
+
* ```
|
|
2129
|
+
*/
|
|
2130
|
+
function isStrictAuthInterface(node) {
|
|
2131
|
+
return isBaseNode(node) && node.concept === 'AuthInterface';
|
|
2132
|
+
}
|
|
2133
|
+
exports.isStrictAuthInterface = isStrictAuthInterface;
|
|
2134
|
+
/**
|
|
2135
|
+
* 严格判断输入为 CallAuthInterface 节点
|
|
1924
2136
|
*
|
|
1925
2137
|
* @description 仅判断节点本身,不包含继承类
|
|
1926
2138
|
* @example
|
|
@@ -2499,22 +2711,217 @@ function isBindStyle(node) {
|
|
|
2499
2711
|
}
|
|
2500
2712
|
exports.isBindStyle = isBindStyle;
|
|
2501
2713
|
/**
|
|
2502
|
-
* 判断输入为
|
|
2714
|
+
* 判断输入为 ThemeVariable 节点实例
|
|
2715
|
+
*
|
|
2716
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2717
|
+
* @description 等价于`instanceof`运算,ThemeVariable 节点没有继承类,此判断等价于`isStrictThemeVariable`
|
|
2718
|
+
* @example
|
|
2719
|
+
* ```ts
|
|
2720
|
+
* if (isThemeVariable(node)) {
|
|
2721
|
+
* // 在这个花括号内,node 的类型是 ThemeVariable 或者 ThemeVariable 继承类型
|
|
2722
|
+
* }
|
|
2723
|
+
* ```
|
|
2724
|
+
*/
|
|
2725
|
+
function isThemeVariable(node) {
|
|
2726
|
+
return (isBaseNode(node) &&
|
|
2727
|
+
(node.concept === 'ThemeVariable'));
|
|
2728
|
+
}
|
|
2729
|
+
exports.isThemeVariable = isThemeVariable;
|
|
2730
|
+
/**
|
|
2731
|
+
* 判断输入为 BaseSetter 节点实例
|
|
2732
|
+
*
|
|
2733
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2734
|
+
* @description 等价于`instanceof`运算
|
|
2735
|
+
* @example
|
|
2736
|
+
* ```ts
|
|
2737
|
+
* if (isBaseSetter(node)) {
|
|
2738
|
+
* // 在这个花括号内,node 的类型是 BaseSetter 或者 BaseSetter 继承类型
|
|
2739
|
+
* }
|
|
2740
|
+
* ```
|
|
2741
|
+
*/
|
|
2742
|
+
function isBaseSetter(node) {
|
|
2743
|
+
return (isBaseNode(node) &&
|
|
2744
|
+
(node.concept === 'BaseSetter' ||
|
|
2745
|
+
node.concept === 'InputSetter' ||
|
|
2746
|
+
node.concept === 'SwitchSetter' ||
|
|
2747
|
+
node.concept === 'EnumSelectSetter' ||
|
|
2748
|
+
node.concept === 'CapsulesSetter' ||
|
|
2749
|
+
node.concept === 'NumberInputSetter' ||
|
|
2750
|
+
node.concept === 'IconSetter' ||
|
|
2751
|
+
node.concept === 'ImageSetter' ||
|
|
2752
|
+
node.concept === 'PropertySelectSetter'));
|
|
2753
|
+
}
|
|
2754
|
+
exports.isBaseSetter = isBaseSetter;
|
|
2755
|
+
/**
|
|
2756
|
+
* 判断输入为 InputSetter 节点实例
|
|
2757
|
+
*
|
|
2758
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2759
|
+
* @description 等价于`instanceof`运算,InputSetter 节点没有继承类,此判断等价于`isStrictInputSetter`
|
|
2760
|
+
* @example
|
|
2761
|
+
* ```ts
|
|
2762
|
+
* if (isInputSetter(node)) {
|
|
2763
|
+
* // 在这个花括号内,node 的类型是 InputSetter 或者 InputSetter 继承类型
|
|
2764
|
+
* }
|
|
2765
|
+
* ```
|
|
2766
|
+
*/
|
|
2767
|
+
function isInputSetter(node) {
|
|
2768
|
+
return (isBaseNode(node) &&
|
|
2769
|
+
(node.concept === 'InputSetter'));
|
|
2770
|
+
}
|
|
2771
|
+
exports.isInputSetter = isInputSetter;
|
|
2772
|
+
/**
|
|
2773
|
+
* 判断输入为 SwitchSetter 节点实例
|
|
2774
|
+
*
|
|
2775
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2776
|
+
* @description 等价于`instanceof`运算,SwitchSetter 节点没有继承类,此判断等价于`isStrictSwitchSetter`
|
|
2777
|
+
* @example
|
|
2778
|
+
* ```ts
|
|
2779
|
+
* if (isSwitchSetter(node)) {
|
|
2780
|
+
* // 在这个花括号内,node 的类型是 SwitchSetter 或者 SwitchSetter 继承类型
|
|
2781
|
+
* }
|
|
2782
|
+
* ```
|
|
2783
|
+
*/
|
|
2784
|
+
function isSwitchSetter(node) {
|
|
2785
|
+
return (isBaseNode(node) &&
|
|
2786
|
+
(node.concept === 'SwitchSetter'));
|
|
2787
|
+
}
|
|
2788
|
+
exports.isSwitchSetter = isSwitchSetter;
|
|
2789
|
+
/**
|
|
2790
|
+
* 判断输入为 SetterOption 节点实例
|
|
2791
|
+
*
|
|
2792
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2793
|
+
* @description 等价于`instanceof`运算,SetterOption 节点没有继承类,此判断等价于`isStrictSetterOption`
|
|
2794
|
+
* @example
|
|
2795
|
+
* ```ts
|
|
2796
|
+
* if (isSetterOption(node)) {
|
|
2797
|
+
* // 在这个花括号内,node 的类型是 SetterOption 或者 SetterOption 继承类型
|
|
2798
|
+
* }
|
|
2799
|
+
* ```
|
|
2800
|
+
*/
|
|
2801
|
+
function isSetterOption(node) {
|
|
2802
|
+
return (isBaseNode(node) &&
|
|
2803
|
+
(node.concept === 'SetterOption'));
|
|
2804
|
+
}
|
|
2805
|
+
exports.isSetterOption = isSetterOption;
|
|
2806
|
+
/**
|
|
2807
|
+
* 判断输入为 EnumSelectSetter 节点实例
|
|
2808
|
+
*
|
|
2809
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2810
|
+
* @description 等价于`instanceof`运算,EnumSelectSetter 节点没有继承类,此判断等价于`isStrictEnumSelectSetter`
|
|
2811
|
+
* @example
|
|
2812
|
+
* ```ts
|
|
2813
|
+
* if (isEnumSelectSetter(node)) {
|
|
2814
|
+
* // 在这个花括号内,node 的类型是 EnumSelectSetter 或者 EnumSelectSetter 继承类型
|
|
2815
|
+
* }
|
|
2816
|
+
* ```
|
|
2817
|
+
*/
|
|
2818
|
+
function isEnumSelectSetter(node) {
|
|
2819
|
+
return (isBaseNode(node) &&
|
|
2820
|
+
(node.concept === 'EnumSelectSetter'));
|
|
2821
|
+
}
|
|
2822
|
+
exports.isEnumSelectSetter = isEnumSelectSetter;
|
|
2823
|
+
/**
|
|
2824
|
+
* 判断输入为 CapsulesSetter 节点实例
|
|
2825
|
+
*
|
|
2826
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2827
|
+
* @description 等价于`instanceof`运算,CapsulesSetter 节点没有继承类,此判断等价于`isStrictCapsulesSetter`
|
|
2828
|
+
* @example
|
|
2829
|
+
* ```ts
|
|
2830
|
+
* if (isCapsulesSetter(node)) {
|
|
2831
|
+
* // 在这个花括号内,node 的类型是 CapsulesSetter 或者 CapsulesSetter 继承类型
|
|
2832
|
+
* }
|
|
2833
|
+
* ```
|
|
2834
|
+
*/
|
|
2835
|
+
function isCapsulesSetter(node) {
|
|
2836
|
+
return (isBaseNode(node) &&
|
|
2837
|
+
(node.concept === 'CapsulesSetter'));
|
|
2838
|
+
}
|
|
2839
|
+
exports.isCapsulesSetter = isCapsulesSetter;
|
|
2840
|
+
/**
|
|
2841
|
+
* 判断输入为 NumberInputSetter 节点实例
|
|
2842
|
+
*
|
|
2843
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2844
|
+
* @description 等价于`instanceof`运算,NumberInputSetter 节点没有继承类,此判断等价于`isStrictNumberInputSetter`
|
|
2845
|
+
* @example
|
|
2846
|
+
* ```ts
|
|
2847
|
+
* if (isNumberInputSetter(node)) {
|
|
2848
|
+
* // 在这个花括号内,node 的类型是 NumberInputSetter 或者 NumberInputSetter 继承类型
|
|
2849
|
+
* }
|
|
2850
|
+
* ```
|
|
2851
|
+
*/
|
|
2852
|
+
function isNumberInputSetter(node) {
|
|
2853
|
+
return (isBaseNode(node) &&
|
|
2854
|
+
(node.concept === 'NumberInputSetter'));
|
|
2855
|
+
}
|
|
2856
|
+
exports.isNumberInputSetter = isNumberInputSetter;
|
|
2857
|
+
/**
|
|
2858
|
+
* 判断输入为 IconSetter 节点实例
|
|
2859
|
+
*
|
|
2860
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2861
|
+
* @description 等价于`instanceof`运算,IconSetter 节点没有继承类,此判断等价于`isStrictIconSetter`
|
|
2862
|
+
* @example
|
|
2863
|
+
* ```ts
|
|
2864
|
+
* if (isIconSetter(node)) {
|
|
2865
|
+
* // 在这个花括号内,node 的类型是 IconSetter 或者 IconSetter 继承类型
|
|
2866
|
+
* }
|
|
2867
|
+
* ```
|
|
2868
|
+
*/
|
|
2869
|
+
function isIconSetter(node) {
|
|
2870
|
+
return (isBaseNode(node) &&
|
|
2871
|
+
(node.concept === 'IconSetter'));
|
|
2872
|
+
}
|
|
2873
|
+
exports.isIconSetter = isIconSetter;
|
|
2874
|
+
/**
|
|
2875
|
+
* 判断输入为 ImageSetter 节点实例
|
|
2876
|
+
*
|
|
2877
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2878
|
+
* @description 等价于`instanceof`运算,ImageSetter 节点没有继承类,此判断等价于`isStrictImageSetter`
|
|
2879
|
+
* @example
|
|
2880
|
+
* ```ts
|
|
2881
|
+
* if (isImageSetter(node)) {
|
|
2882
|
+
* // 在这个花括号内,node 的类型是 ImageSetter 或者 ImageSetter 继承类型
|
|
2883
|
+
* }
|
|
2884
|
+
* ```
|
|
2885
|
+
*/
|
|
2886
|
+
function isImageSetter(node) {
|
|
2887
|
+
return (isBaseNode(node) &&
|
|
2888
|
+
(node.concept === 'ImageSetter'));
|
|
2889
|
+
}
|
|
2890
|
+
exports.isImageSetter = isImageSetter;
|
|
2891
|
+
/**
|
|
2892
|
+
* 判断输入为 PropertySelectSetter 节点实例
|
|
2893
|
+
*
|
|
2894
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2895
|
+
* @description 等价于`instanceof`运算,PropertySelectSetter 节点没有继承类,此判断等价于`isStrictPropertySelectSetter`
|
|
2896
|
+
* @example
|
|
2897
|
+
* ```ts
|
|
2898
|
+
* if (isPropertySelectSetter(node)) {
|
|
2899
|
+
* // 在这个花括号内,node 的类型是 PropertySelectSetter 或者 PropertySelectSetter 继承类型
|
|
2900
|
+
* }
|
|
2901
|
+
* ```
|
|
2902
|
+
*/
|
|
2903
|
+
function isPropertySelectSetter(node) {
|
|
2904
|
+
return (isBaseNode(node) &&
|
|
2905
|
+
(node.concept === 'PropertySelectSetter'));
|
|
2906
|
+
}
|
|
2907
|
+
exports.isPropertySelectSetter = isPropertySelectSetter;
|
|
2908
|
+
/**
|
|
2909
|
+
* 判断输入为 ViewComponentDeclaration 节点实例
|
|
2503
2910
|
*
|
|
2504
2911
|
* @description 包含节点类以及节点继承类的判断
|
|
2505
|
-
* @description 等价于`instanceof`运算,
|
|
2912
|
+
* @description 等价于`instanceof`运算,ViewComponentDeclaration 节点没有继承类,此判断等价于`isStrictViewComponentDeclaration`
|
|
2506
2913
|
* @example
|
|
2507
2914
|
* ```ts
|
|
2508
|
-
* if (
|
|
2509
|
-
* // 在这个花括号内,node 的类型是
|
|
2915
|
+
* if (isViewComponentDeclaration(node)) {
|
|
2916
|
+
* // 在这个花括号内,node 的类型是 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
|
|
2510
2917
|
* }
|
|
2511
2918
|
* ```
|
|
2512
2919
|
*/
|
|
2513
|
-
function
|
|
2920
|
+
function isViewComponentDeclaration(node) {
|
|
2514
2921
|
return (isBaseNode(node) &&
|
|
2515
|
-
(node.concept === '
|
|
2922
|
+
(node.concept === 'ViewComponentDeclaration'));
|
|
2516
2923
|
}
|
|
2517
|
-
exports.
|
|
2924
|
+
exports.isViewComponentDeclaration = isViewComponentDeclaration;
|
|
2518
2925
|
/**
|
|
2519
2926
|
* 判断输入为 BusinessComponent 节点实例
|
|
2520
2927
|
*
|
|
@@ -2567,56 +2974,90 @@ function isEvent(node) {
|
|
|
2567
2974
|
}
|
|
2568
2975
|
exports.isEvent = isEvent;
|
|
2569
2976
|
/**
|
|
2570
|
-
* 判断输入为
|
|
2977
|
+
* 判断输入为 PropDeclaration 节点实例
|
|
2571
2978
|
*
|
|
2572
2979
|
* @description 包含节点类以及节点继承类的判断
|
|
2573
|
-
* @description 等价于`instanceof`运算,
|
|
2980
|
+
* @description 等价于`instanceof`运算,PropDeclaration 节点没有继承类,此判断等价于`isStrictPropDeclaration`
|
|
2574
2981
|
* @example
|
|
2575
2982
|
* ```ts
|
|
2576
|
-
* if (
|
|
2577
|
-
* // 在这个花括号内,node 的类型是
|
|
2983
|
+
* if (isPropDeclaration(node)) {
|
|
2984
|
+
* // 在这个花括号内,node 的类型是 PropDeclaration 或者 PropDeclaration 继承类型
|
|
2578
2985
|
* }
|
|
2579
2986
|
* ```
|
|
2580
2987
|
*/
|
|
2581
|
-
function
|
|
2988
|
+
function isPropDeclaration(node) {
|
|
2582
2989
|
return (isBaseNode(node) &&
|
|
2583
|
-
(node.concept === '
|
|
2990
|
+
(node.concept === 'PropDeclaration'));
|
|
2584
2991
|
}
|
|
2585
|
-
exports.
|
|
2992
|
+
exports.isPropDeclaration = isPropDeclaration;
|
|
2586
2993
|
/**
|
|
2587
|
-
* 判断输入为
|
|
2994
|
+
* 判断输入为 EventDeclaration 节点实例
|
|
2588
2995
|
*
|
|
2589
2996
|
* @description 包含节点类以及节点继承类的判断
|
|
2590
|
-
* @description 等价于`instanceof`运算,
|
|
2997
|
+
* @description 等价于`instanceof`运算,EventDeclaration 节点没有继承类,此判断等价于`isStrictEventDeclaration`
|
|
2591
2998
|
* @example
|
|
2592
2999
|
* ```ts
|
|
2593
|
-
* if (
|
|
2594
|
-
* // 在这个花括号内,node 的类型是
|
|
3000
|
+
* if (isEventDeclaration(node)) {
|
|
3001
|
+
* // 在这个花括号内,node 的类型是 EventDeclaration 或者 EventDeclaration 继承类型
|
|
2595
3002
|
* }
|
|
2596
3003
|
* ```
|
|
2597
3004
|
*/
|
|
2598
|
-
function
|
|
3005
|
+
function isEventDeclaration(node) {
|
|
2599
3006
|
return (isBaseNode(node) &&
|
|
2600
|
-
(node.concept === '
|
|
3007
|
+
(node.concept === 'EventDeclaration'));
|
|
2601
3008
|
}
|
|
2602
|
-
exports.
|
|
3009
|
+
exports.isEventDeclaration = isEventDeclaration;
|
|
2603
3010
|
/**
|
|
2604
|
-
* 判断输入为
|
|
3011
|
+
* 判断输入为 SlotDeclaration 节点实例
|
|
2605
3012
|
*
|
|
2606
3013
|
* @description 包含节点类以及节点继承类的判断
|
|
2607
|
-
* @description 等价于`instanceof`运算,
|
|
3014
|
+
* @description 等价于`instanceof`运算,SlotDeclaration 节点没有继承类,此判断等价于`isStrictSlotDeclaration`
|
|
2608
3015
|
* @example
|
|
2609
3016
|
* ```ts
|
|
2610
|
-
* if (
|
|
2611
|
-
* // 在这个花括号内,node 的类型是
|
|
3017
|
+
* if (isSlotDeclaration(node)) {
|
|
3018
|
+
* // 在这个花括号内,node 的类型是 SlotDeclaration 或者 SlotDeclaration 继承类型
|
|
2612
3019
|
* }
|
|
2613
3020
|
* ```
|
|
2614
3021
|
*/
|
|
2615
|
-
function
|
|
3022
|
+
function isSlotDeclaration(node) {
|
|
2616
3023
|
return (isBaseNode(node) &&
|
|
2617
|
-
(node.concept === '
|
|
3024
|
+
(node.concept === 'SlotDeclaration'));
|
|
2618
3025
|
}
|
|
2619
|
-
exports.
|
|
3026
|
+
exports.isSlotDeclaration = isSlotDeclaration;
|
|
3027
|
+
/**
|
|
3028
|
+
* 判断输入为 LogicDeclaration 节点实例
|
|
3029
|
+
*
|
|
3030
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3031
|
+
* @description 等价于`instanceof`运算,LogicDeclaration 节点没有继承类,此判断等价于`isStrictLogicDeclaration`
|
|
3032
|
+
* @example
|
|
3033
|
+
* ```ts
|
|
3034
|
+
* if (isLogicDeclaration(node)) {
|
|
3035
|
+
* // 在这个花括号内,node 的类型是 LogicDeclaration 或者 LogicDeclaration 继承类型
|
|
3036
|
+
* }
|
|
3037
|
+
* ```
|
|
3038
|
+
*/
|
|
3039
|
+
function isLogicDeclaration(node) {
|
|
3040
|
+
return (isBaseNode(node) &&
|
|
3041
|
+
(node.concept === 'LogicDeclaration'));
|
|
3042
|
+
}
|
|
3043
|
+
exports.isLogicDeclaration = isLogicDeclaration;
|
|
3044
|
+
/**
|
|
3045
|
+
* 判断输入为 Theme 节点实例
|
|
3046
|
+
*
|
|
3047
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3048
|
+
* @description 等价于`instanceof`运算,Theme 节点没有继承类,此判断等价于`isStrictTheme`
|
|
3049
|
+
* @example
|
|
3050
|
+
* ```ts
|
|
3051
|
+
* if (isTheme(node)) {
|
|
3052
|
+
* // 在这个花括号内,node 的类型是 Theme 或者 Theme 继承类型
|
|
3053
|
+
* }
|
|
3054
|
+
* ```
|
|
3055
|
+
*/
|
|
3056
|
+
function isTheme(node) {
|
|
3057
|
+
return (isBaseNode(node) &&
|
|
3058
|
+
(node.concept === 'Theme'));
|
|
3059
|
+
}
|
|
3060
|
+
exports.isTheme = isTheme;
|
|
2620
3061
|
/**
|
|
2621
3062
|
* 判断输入为 Logic 节点实例
|
|
2622
3063
|
*
|
|
@@ -2633,8 +3074,8 @@ function isLogic(node) {
|
|
|
2633
3074
|
return (isBaseNode(node) &&
|
|
2634
3075
|
(node.concept === 'Logic' ||
|
|
2635
3076
|
node.concept === 'AuthLogic' ||
|
|
2636
|
-
node.concept === '
|
|
2637
|
-
node.concept === '
|
|
3077
|
+
node.concept === 'AuthLogicForCallInterface' ||
|
|
3078
|
+
node.concept === 'BusinessLogic'));
|
|
2638
3079
|
}
|
|
2639
3080
|
exports.isLogic = isLogic;
|
|
2640
3081
|
/**
|
|
@@ -2655,23 +3096,6 @@ function isAuthLogic(node) {
|
|
|
2655
3096
|
node.concept === 'AuthLogicForCallInterface'));
|
|
2656
3097
|
}
|
|
2657
3098
|
exports.isAuthLogic = isAuthLogic;
|
|
2658
|
-
/**
|
|
2659
|
-
* 判断输入为 BusinessLogic 节点实例
|
|
2660
|
-
*
|
|
2661
|
-
* @description 包含节点类以及节点继承类的判断
|
|
2662
|
-
* @description 等价于`instanceof`运算,BusinessLogic 节点没有继承类,此判断等价于`isStrictBusinessLogic`
|
|
2663
|
-
* @example
|
|
2664
|
-
* ```ts
|
|
2665
|
-
* if (isBusinessLogic(node)) {
|
|
2666
|
-
* // 在这个花括号内,node 的类型是 BusinessLogic 或者 BusinessLogic 继承类型
|
|
2667
|
-
* }
|
|
2668
|
-
* ```
|
|
2669
|
-
*/
|
|
2670
|
-
function isBusinessLogic(node) {
|
|
2671
|
-
return (isBaseNode(node) &&
|
|
2672
|
-
(node.concept === 'BusinessLogic'));
|
|
2673
|
-
}
|
|
2674
|
-
exports.isBusinessLogic = isBusinessLogic;
|
|
2675
3099
|
/**
|
|
2676
3100
|
* 判断输入为 AuthLogicForCallInterface 节点实例
|
|
2677
3101
|
*
|
|
@@ -2706,6 +3130,23 @@ function isOverriddenLogic(node) {
|
|
|
2706
3130
|
(node.concept === 'OverriddenLogic'));
|
|
2707
3131
|
}
|
|
2708
3132
|
exports.isOverriddenLogic = isOverriddenLogic;
|
|
3133
|
+
/**
|
|
3134
|
+
* 判断输入为 BusinessLogic 节点实例
|
|
3135
|
+
*
|
|
3136
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3137
|
+
* @description 等价于`instanceof`运算,BusinessLogic 节点没有继承类,此判断等价于`isStrictBusinessLogic`
|
|
3138
|
+
* @example
|
|
3139
|
+
* ```ts
|
|
3140
|
+
* if (isBusinessLogic(node)) {
|
|
3141
|
+
* // 在这个花括号内,node 的类型是 BusinessLogic 或者 BusinessLogic 继承类型
|
|
3142
|
+
* }
|
|
3143
|
+
* ```
|
|
3144
|
+
*/
|
|
3145
|
+
function isBusinessLogic(node) {
|
|
3146
|
+
return (isBaseNode(node) &&
|
|
3147
|
+
(node.concept === 'BusinessLogic'));
|
|
3148
|
+
}
|
|
3149
|
+
exports.isBusinessLogic = isBusinessLogic;
|
|
2709
3150
|
/**
|
|
2710
3151
|
* 判断输入为 AbstractInterface 节点实例
|
|
2711
3152
|
*
|
|
@@ -2875,9 +3316,11 @@ function isLogicItem(node) {
|
|
|
2875
3316
|
node.concept === 'BatchAssignment' ||
|
|
2876
3317
|
node.concept === 'Comment' ||
|
|
2877
3318
|
node.concept === 'CallLogic' ||
|
|
3319
|
+
node.concept === 'CallConnector' ||
|
|
2878
3320
|
node.concept === 'CallEvent' ||
|
|
2879
3321
|
node.concept === 'CallFunction' ||
|
|
2880
3322
|
node.concept === 'CallInterface' ||
|
|
3323
|
+
node.concept === 'CallAuthInterface' ||
|
|
2881
3324
|
node.concept === 'Destination' ||
|
|
2882
3325
|
node.concept === 'ExternalDestination' ||
|
|
2883
3326
|
node.concept === 'ValidationRule' ||
|
|
@@ -2902,6 +3345,7 @@ function isLogicItem(node) {
|
|
|
2902
3345
|
node.concept === 'NewComposite' ||
|
|
2903
3346
|
node.concept === 'NewList' ||
|
|
2904
3347
|
node.concept === 'NewMap' ||
|
|
3348
|
+
node.concept === 'Paginate' ||
|
|
2905
3349
|
node.concept === 'CallQueryComponent' ||
|
|
2906
3350
|
node.concept === 'QueryFromExpression' ||
|
|
2907
3351
|
node.concept === 'QueryJoinExpression' ||
|
|
@@ -2915,9 +3359,7 @@ function isLogicItem(node) {
|
|
|
2915
3359
|
node.concept === 'OqlQueryComponent' ||
|
|
2916
3360
|
node.concept === 'ProcessOutcome' ||
|
|
2917
3361
|
node.concept === 'Assignee' ||
|
|
2918
|
-
node.concept === 'ProcessOutcomes'
|
|
2919
|
-
node.concept === 'CallAuthInterface' ||
|
|
2920
|
-
node.concept === 'CallConnector'));
|
|
3362
|
+
node.concept === 'ProcessOutcomes'));
|
|
2921
3363
|
}
|
|
2922
3364
|
exports.isLogicItem = isLogicItem;
|
|
2923
3365
|
/**
|
|
@@ -2955,42 +3397,42 @@ function isAnonymousFunction(node) {
|
|
|
2955
3397
|
}
|
|
2956
3398
|
exports.isAnonymousFunction = isAnonymousFunction;
|
|
2957
3399
|
/**
|
|
2958
|
-
* 判断输入为
|
|
3400
|
+
* 判断输入为 ImportedInterface 节点实例
|
|
2959
3401
|
*
|
|
2960
3402
|
* @description 包含节点类以及节点继承类的判断
|
|
2961
3403
|
* @description 等价于`instanceof`运算
|
|
2962
3404
|
* @example
|
|
2963
3405
|
* ```ts
|
|
2964
|
-
* if (
|
|
2965
|
-
* // 在这个花括号内,node 的类型是
|
|
3406
|
+
* if (isImportedInterface(node)) {
|
|
3407
|
+
* // 在这个花括号内,node 的类型是 ImportedInterface 或者 ImportedInterface 继承类型
|
|
2966
3408
|
* }
|
|
2967
3409
|
* ```
|
|
2968
3410
|
*/
|
|
2969
|
-
function
|
|
3411
|
+
function isImportedInterface(node) {
|
|
2970
3412
|
return (isBaseNode(node) &&
|
|
2971
|
-
(node.concept === '
|
|
3413
|
+
(node.concept === 'ImportedInterface' ||
|
|
3414
|
+
node.concept === 'Interface' ||
|
|
2972
3415
|
node.concept === 'AuthInterface'));
|
|
2973
3416
|
}
|
|
2974
|
-
exports.
|
|
3417
|
+
exports.isImportedInterface = isImportedInterface;
|
|
2975
3418
|
/**
|
|
2976
|
-
* 判断输入为
|
|
3419
|
+
* 判断输入为 Interface 节点实例
|
|
2977
3420
|
*
|
|
2978
3421
|
* @description 包含节点类以及节点继承类的判断
|
|
2979
3422
|
* @description 等价于`instanceof`运算
|
|
2980
3423
|
* @example
|
|
2981
3424
|
* ```ts
|
|
2982
|
-
* if (
|
|
2983
|
-
* // 在这个花括号内,node 的类型是
|
|
3425
|
+
* if (isInterface(node)) {
|
|
3426
|
+
* // 在这个花括号内,node 的类型是 Interface 或者 Interface 继承类型
|
|
2984
3427
|
* }
|
|
2985
3428
|
* ```
|
|
2986
3429
|
*/
|
|
2987
|
-
function
|
|
3430
|
+
function isInterface(node) {
|
|
2988
3431
|
return (isBaseNode(node) &&
|
|
2989
|
-
(node.concept === '
|
|
2990
|
-
node.concept === 'Interface' ||
|
|
3432
|
+
(node.concept === 'Interface' ||
|
|
2991
3433
|
node.concept === 'AuthInterface'));
|
|
2992
3434
|
}
|
|
2993
|
-
exports.
|
|
3435
|
+
exports.isInterface = isInterface;
|
|
2994
3436
|
/**
|
|
2995
3437
|
* 判断输入为 InterfaceParam 节点实例
|
|
2996
3438
|
*
|
|
@@ -3520,6 +3962,23 @@ function isStringInterpolation(node) {
|
|
|
3520
3962
|
(node.concept === 'StringInterpolation'));
|
|
3521
3963
|
}
|
|
3522
3964
|
exports.isStringInterpolation = isStringInterpolation;
|
|
3965
|
+
/**
|
|
3966
|
+
* 判断输入为 StaticString 节点实例
|
|
3967
|
+
*
|
|
3968
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3969
|
+
* @description 等价于`instanceof`运算,StaticString 节点没有继承类,此判断等价于`isStrictStaticString`
|
|
3970
|
+
* @example
|
|
3971
|
+
* ```ts
|
|
3972
|
+
* if (isStaticString(node)) {
|
|
3973
|
+
* // 在这个花括号内,node 的类型是 StaticString 或者 StaticString 继承类型
|
|
3974
|
+
* }
|
|
3975
|
+
* ```
|
|
3976
|
+
*/
|
|
3977
|
+
function isStaticString(node) {
|
|
3978
|
+
return (isBaseNode(node) &&
|
|
3979
|
+
(node.concept === 'StaticString'));
|
|
3980
|
+
}
|
|
3981
|
+
exports.isStaticString = isStaticString;
|
|
3523
3982
|
/**
|
|
3524
3983
|
* 判断输入为 NumericLiteral 节点实例
|
|
3525
3984
|
*
|
|
@@ -3708,22 +4167,39 @@ function isNewMap(node) {
|
|
|
3708
4167
|
}
|
|
3709
4168
|
exports.isNewMap = isNewMap;
|
|
3710
4169
|
/**
|
|
3711
|
-
* 判断输入为
|
|
4170
|
+
* 判断输入为 Paginate 节点实例
|
|
3712
4171
|
*
|
|
3713
4172
|
* @description 包含节点类以及节点继承类的判断
|
|
3714
|
-
* @description 等价于`instanceof`运算,
|
|
4173
|
+
* @description 等价于`instanceof`运算,Paginate 节点没有继承类,此判断等价于`isStrictPaginate`
|
|
3715
4174
|
* @example
|
|
3716
4175
|
* ```ts
|
|
3717
|
-
* if (
|
|
3718
|
-
* // 在这个花括号内,node 的类型是
|
|
4176
|
+
* if (isPaginate(node)) {
|
|
4177
|
+
* // 在这个花括号内,node 的类型是 Paginate 或者 Paginate 继承类型
|
|
3719
4178
|
* }
|
|
3720
4179
|
* ```
|
|
3721
4180
|
*/
|
|
3722
|
-
function
|
|
4181
|
+
function isPaginate(node) {
|
|
3723
4182
|
return (isBaseNode(node) &&
|
|
3724
|
-
(node.concept === '
|
|
4183
|
+
(node.concept === 'Paginate'));
|
|
3725
4184
|
}
|
|
3726
|
-
exports.
|
|
4185
|
+
exports.isPaginate = isPaginate;
|
|
4186
|
+
/**
|
|
4187
|
+
* 判断输入为 CallQueryComponent 节点实例
|
|
4188
|
+
*
|
|
4189
|
+
* @description 包含节点类以及节点继承类的判断
|
|
4190
|
+
* @description 等价于`instanceof`运算,CallQueryComponent 节点没有继承类,此判断等价于`isStrictCallQueryComponent`
|
|
4191
|
+
* @example
|
|
4192
|
+
* ```ts
|
|
4193
|
+
* if (isCallQueryComponent(node)) {
|
|
4194
|
+
* // 在这个花括号内,node 的类型是 CallQueryComponent 或者 CallQueryComponent 继承类型
|
|
4195
|
+
* }
|
|
4196
|
+
* ```
|
|
4197
|
+
*/
|
|
4198
|
+
function isCallQueryComponent(node) {
|
|
4199
|
+
return (isBaseNode(node) &&
|
|
4200
|
+
(node.concept === 'CallQueryComponent'));
|
|
4201
|
+
}
|
|
4202
|
+
exports.isCallQueryComponent = isCallQueryComponent;
|
|
3727
4203
|
/**
|
|
3728
4204
|
* 判断输入为 QueryFromExpression 节点实例
|
|
3729
4205
|
*
|
|
@@ -3946,109 +4422,109 @@ function isProcessComponent(node) {
|
|
|
3946
4422
|
}
|
|
3947
4423
|
exports.isProcessComponent = isProcessComponent;
|
|
3948
4424
|
/**
|
|
3949
|
-
* 判断输入为
|
|
4425
|
+
* 判断输入为 MultiApprovalPolicy 节点实例
|
|
3950
4426
|
*
|
|
3951
4427
|
* @description 包含节点类以及节点继承类的判断
|
|
3952
|
-
* @description 等价于`instanceof
|
|
4428
|
+
* @description 等价于`instanceof`运算
|
|
3953
4429
|
* @example
|
|
3954
4430
|
* ```ts
|
|
3955
|
-
* if (
|
|
3956
|
-
* // 在这个花括号内,node 的类型是
|
|
4431
|
+
* if (isMultiApprovalPolicy(node)) {
|
|
4432
|
+
* // 在这个花括号内,node 的类型是 MultiApprovalPolicy 或者 MultiApprovalPolicy 继承类型
|
|
3957
4433
|
* }
|
|
3958
4434
|
* ```
|
|
3959
4435
|
*/
|
|
3960
|
-
function
|
|
4436
|
+
function isMultiApprovalPolicy(node) {
|
|
3961
4437
|
return (isBaseNode(node) &&
|
|
3962
|
-
(node.concept === '
|
|
4438
|
+
(node.concept === 'MultiApprovalPolicy' ||
|
|
4439
|
+
node.concept === 'SequentialPolicy' ||
|
|
4440
|
+
node.concept === 'CountersignPolicy'));
|
|
3963
4441
|
}
|
|
3964
|
-
exports.
|
|
4442
|
+
exports.isMultiApprovalPolicy = isMultiApprovalPolicy;
|
|
3965
4443
|
/**
|
|
3966
|
-
* 判断输入为
|
|
4444
|
+
* 判断输入为 SequentialPolicy 节点实例
|
|
3967
4445
|
*
|
|
3968
4446
|
* @description 包含节点类以及节点继承类的判断
|
|
3969
|
-
* @description 等价于`instanceof`运算,
|
|
4447
|
+
* @description 等价于`instanceof`运算,SequentialPolicy 节点没有继承类,此判断等价于`isStrictSequentialPolicy`
|
|
3970
4448
|
* @example
|
|
3971
4449
|
* ```ts
|
|
3972
|
-
* if (
|
|
3973
|
-
* // 在这个花括号内,node 的类型是
|
|
4450
|
+
* if (isSequentialPolicy(node)) {
|
|
4451
|
+
* // 在这个花括号内,node 的类型是 SequentialPolicy 或者 SequentialPolicy 继承类型
|
|
3974
4452
|
* }
|
|
3975
4453
|
* ```
|
|
3976
4454
|
*/
|
|
3977
|
-
function
|
|
4455
|
+
function isSequentialPolicy(node) {
|
|
3978
4456
|
return (isBaseNode(node) &&
|
|
3979
|
-
(node.concept === '
|
|
4457
|
+
(node.concept === 'SequentialPolicy'));
|
|
3980
4458
|
}
|
|
3981
|
-
exports.
|
|
4459
|
+
exports.isSequentialPolicy = isSequentialPolicy;
|
|
3982
4460
|
/**
|
|
3983
|
-
* 判断输入为
|
|
4461
|
+
* 判断输入为 CountersignPolicy 节点实例
|
|
3984
4462
|
*
|
|
3985
4463
|
* @description 包含节点类以及节点继承类的判断
|
|
3986
|
-
* @description 等价于`instanceof`运算,
|
|
4464
|
+
* @description 等价于`instanceof`运算,CountersignPolicy 节点没有继承类,此判断等价于`isStrictCountersignPolicy`
|
|
3987
4465
|
* @example
|
|
3988
4466
|
* ```ts
|
|
3989
|
-
* if (
|
|
3990
|
-
* // 在这个花括号内,node 的类型是
|
|
4467
|
+
* if (isCountersignPolicy(node)) {
|
|
4468
|
+
* // 在这个花括号内,node 的类型是 CountersignPolicy 或者 CountersignPolicy 继承类型
|
|
3991
4469
|
* }
|
|
3992
4470
|
* ```
|
|
3993
4471
|
*/
|
|
3994
|
-
function
|
|
4472
|
+
function isCountersignPolicy(node) {
|
|
3995
4473
|
return (isBaseNode(node) &&
|
|
3996
|
-
(node.concept === '
|
|
4474
|
+
(node.concept === 'CountersignPolicy'));
|
|
3997
4475
|
}
|
|
3998
|
-
exports.
|
|
4476
|
+
exports.isCountersignPolicy = isCountersignPolicy;
|
|
3999
4477
|
/**
|
|
4000
|
-
* 判断输入为
|
|
4478
|
+
* 判断输入为 ProcessOutcome 节点实例
|
|
4001
4479
|
*
|
|
4002
4480
|
* @description 包含节点类以及节点继承类的判断
|
|
4003
|
-
* @description 等价于`instanceof
|
|
4481
|
+
* @description 等价于`instanceof`运算,ProcessOutcome 节点没有继承类,此判断等价于`isStrictProcessOutcome`
|
|
4004
4482
|
* @example
|
|
4005
4483
|
* ```ts
|
|
4006
|
-
* if (
|
|
4007
|
-
* // 在这个花括号内,node 的类型是
|
|
4484
|
+
* if (isProcessOutcome(node)) {
|
|
4485
|
+
* // 在这个花括号内,node 的类型是 ProcessOutcome 或者 ProcessOutcome 继承类型
|
|
4008
4486
|
* }
|
|
4009
4487
|
* ```
|
|
4010
4488
|
*/
|
|
4011
|
-
function
|
|
4489
|
+
function isProcessOutcome(node) {
|
|
4012
4490
|
return (isBaseNode(node) &&
|
|
4013
|
-
(node.concept === '
|
|
4014
|
-
node.concept === 'SequentialPolicy' ||
|
|
4015
|
-
node.concept === 'CountersignPolicy'));
|
|
4491
|
+
(node.concept === 'ProcessOutcome'));
|
|
4016
4492
|
}
|
|
4017
|
-
exports.
|
|
4493
|
+
exports.isProcessOutcome = isProcessOutcome;
|
|
4018
4494
|
/**
|
|
4019
|
-
* 判断输入为
|
|
4495
|
+
* 判断输入为 Assignee 节点实例
|
|
4020
4496
|
*
|
|
4021
4497
|
* @description 包含节点类以及节点继承类的判断
|
|
4022
|
-
* @description 等价于`instanceof`运算,
|
|
4498
|
+
* @description 等价于`instanceof`运算,Assignee 节点没有继承类,此判断等价于`isStrictAssignee`
|
|
4023
4499
|
* @example
|
|
4024
4500
|
* ```ts
|
|
4025
|
-
* if (
|
|
4026
|
-
* // 在这个花括号内,node 的类型是
|
|
4501
|
+
* if (isAssignee(node)) {
|
|
4502
|
+
* // 在这个花括号内,node 的类型是 Assignee 或者 Assignee 继承类型
|
|
4027
4503
|
* }
|
|
4028
4504
|
* ```
|
|
4029
4505
|
*/
|
|
4030
|
-
function
|
|
4506
|
+
function isAssignee(node) {
|
|
4031
4507
|
return (isBaseNode(node) &&
|
|
4032
|
-
(node.concept === '
|
|
4508
|
+
(node.concept === 'Assignee'));
|
|
4033
4509
|
}
|
|
4034
|
-
exports.
|
|
4510
|
+
exports.isAssignee = isAssignee;
|
|
4035
4511
|
/**
|
|
4036
|
-
* 判断输入为
|
|
4512
|
+
* 判断输入为 ProcessOutcomes 节点实例
|
|
4037
4513
|
*
|
|
4038
4514
|
* @description 包含节点类以及节点继承类的判断
|
|
4039
|
-
* @description 等价于`instanceof`运算,
|
|
4515
|
+
* @description 等价于`instanceof`运算,ProcessOutcomes 节点没有继承类,此判断等价于`isStrictProcessOutcomes`
|
|
4040
4516
|
* @example
|
|
4041
4517
|
* ```ts
|
|
4042
|
-
* if (
|
|
4043
|
-
* // 在这个花括号内,node 的类型是
|
|
4518
|
+
* if (isProcessOutcomes(node)) {
|
|
4519
|
+
* // 在这个花括号内,node 的类型是 ProcessOutcomes 或者 ProcessOutcomes 继承类型
|
|
4044
4520
|
* }
|
|
4045
4521
|
* ```
|
|
4046
4522
|
*/
|
|
4047
|
-
function
|
|
4523
|
+
function isProcessOutcomes(node) {
|
|
4048
4524
|
return (isBaseNode(node) &&
|
|
4049
|
-
(node.concept === '
|
|
4525
|
+
(node.concept === 'ProcessOutcomes'));
|
|
4050
4526
|
}
|
|
4051
|
-
exports.
|
|
4527
|
+
exports.isProcessOutcomes = isProcessOutcomes;
|
|
4052
4528
|
/**
|
|
4053
4529
|
* 判断输入为 Role 节点实例
|
|
4054
4530
|
*
|
|
@@ -4274,7 +4750,7 @@ exports.isFrontendLibrary = isFrontendLibrary;
|
|
|
4274
4750
|
* 判断输入为 ViewBlock 节点实例
|
|
4275
4751
|
*
|
|
4276
4752
|
* @description 包含节点类以及节点继承类的判断
|
|
4277
|
-
* @description 等价于`instanceof
|
|
4753
|
+
* @description 等价于`instanceof`运算
|
|
4278
4754
|
* @example
|
|
4279
4755
|
* ```ts
|
|
4280
4756
|
* if (isViewBlock(node)) {
|
|
@@ -4284,9 +4760,27 @@ exports.isFrontendLibrary = isFrontendLibrary;
|
|
|
4284
4760
|
*/
|
|
4285
4761
|
function isViewBlock(node) {
|
|
4286
4762
|
return (isBaseNode(node) &&
|
|
4287
|
-
(node.concept === 'ViewBlock'
|
|
4763
|
+
(node.concept === 'ViewBlock' ||
|
|
4764
|
+
node.concept === 'ViewBlockWithImage'));
|
|
4288
4765
|
}
|
|
4289
4766
|
exports.isViewBlock = isViewBlock;
|
|
4767
|
+
/**
|
|
4768
|
+
* 判断输入为 ViewBlockWithImage 节点实例
|
|
4769
|
+
*
|
|
4770
|
+
* @description 包含节点类以及节点继承类的判断
|
|
4771
|
+
* @description 等价于`instanceof`运算,ViewBlockWithImage 节点没有继承类,此判断等价于`isStrictViewBlockWithImage`
|
|
4772
|
+
* @example
|
|
4773
|
+
* ```ts
|
|
4774
|
+
* if (isViewBlockWithImage(node)) {
|
|
4775
|
+
* // 在这个花括号内,node 的类型是 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
|
|
4776
|
+
* }
|
|
4777
|
+
* ```
|
|
4778
|
+
*/
|
|
4779
|
+
function isViewBlockWithImage(node) {
|
|
4780
|
+
return (isBaseNode(node) &&
|
|
4781
|
+
(node.concept === 'ViewBlockWithImage'));
|
|
4782
|
+
}
|
|
4783
|
+
exports.isViewBlockWithImage = isViewBlockWithImage;
|
|
4290
4784
|
/**
|
|
4291
4785
|
* 判断输入为 AuthInterface 节点实例
|
|
4292
4786
|
*
|
|
@@ -4903,22 +5397,192 @@ function assertStrictBindStyle(node) {
|
|
|
4903
5397
|
}
|
|
4904
5398
|
exports.assertStrictBindStyle = assertStrictBindStyle;
|
|
4905
5399
|
/**
|
|
4906
|
-
* 严格断言为
|
|
5400
|
+
* 严格断言为 ThemeVariable 节点
|
|
5401
|
+
*
|
|
5402
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5403
|
+
* @example
|
|
5404
|
+
* ```ts
|
|
5405
|
+
* assertStrictThemeVariable(node);
|
|
5406
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 类型
|
|
5407
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5408
|
+
* ```
|
|
5409
|
+
*/
|
|
5410
|
+
function assertStrictThemeVariable(node) {
|
|
5411
|
+
if (!isStrictThemeVariable(node)) {
|
|
5412
|
+
throw new Error(`ThemeVariable 节点严格断言失败`);
|
|
5413
|
+
}
|
|
5414
|
+
}
|
|
5415
|
+
exports.assertStrictThemeVariable = assertStrictThemeVariable;
|
|
5416
|
+
/**
|
|
5417
|
+
* 严格断言为 InputSetter 节点
|
|
5418
|
+
*
|
|
5419
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5420
|
+
* @example
|
|
5421
|
+
* ```ts
|
|
5422
|
+
* assertStrictInputSetter(node);
|
|
5423
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 类型
|
|
5424
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5425
|
+
* ```
|
|
5426
|
+
*/
|
|
5427
|
+
function assertStrictInputSetter(node) {
|
|
5428
|
+
if (!isStrictInputSetter(node)) {
|
|
5429
|
+
throw new Error(`InputSetter 节点严格断言失败`);
|
|
5430
|
+
}
|
|
5431
|
+
}
|
|
5432
|
+
exports.assertStrictInputSetter = assertStrictInputSetter;
|
|
5433
|
+
/**
|
|
5434
|
+
* 严格断言为 SwitchSetter 节点
|
|
5435
|
+
*
|
|
5436
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5437
|
+
* @example
|
|
5438
|
+
* ```ts
|
|
5439
|
+
* assertStrictSwitchSetter(node);
|
|
5440
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 类型
|
|
5441
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5442
|
+
* ```
|
|
5443
|
+
*/
|
|
5444
|
+
function assertStrictSwitchSetter(node) {
|
|
5445
|
+
if (!isStrictSwitchSetter(node)) {
|
|
5446
|
+
throw new Error(`SwitchSetter 节点严格断言失败`);
|
|
5447
|
+
}
|
|
5448
|
+
}
|
|
5449
|
+
exports.assertStrictSwitchSetter = assertStrictSwitchSetter;
|
|
5450
|
+
/**
|
|
5451
|
+
* 严格断言为 SetterOption 节点
|
|
5452
|
+
*
|
|
5453
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5454
|
+
* @example
|
|
5455
|
+
* ```ts
|
|
5456
|
+
* assertStrictSetterOption(node);
|
|
5457
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 类型
|
|
5458
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5459
|
+
* ```
|
|
5460
|
+
*/
|
|
5461
|
+
function assertStrictSetterOption(node) {
|
|
5462
|
+
if (!isStrictSetterOption(node)) {
|
|
5463
|
+
throw new Error(`SetterOption 节点严格断言失败`);
|
|
5464
|
+
}
|
|
5465
|
+
}
|
|
5466
|
+
exports.assertStrictSetterOption = assertStrictSetterOption;
|
|
5467
|
+
/**
|
|
5468
|
+
* 严格断言为 EnumSelectSetter 节点
|
|
5469
|
+
*
|
|
5470
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5471
|
+
* @example
|
|
5472
|
+
* ```ts
|
|
5473
|
+
* assertStrictEnumSelectSetter(node);
|
|
5474
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 类型
|
|
5475
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5476
|
+
* ```
|
|
5477
|
+
*/
|
|
5478
|
+
function assertStrictEnumSelectSetter(node) {
|
|
5479
|
+
if (!isStrictEnumSelectSetter(node)) {
|
|
5480
|
+
throw new Error(`EnumSelectSetter 节点严格断言失败`);
|
|
5481
|
+
}
|
|
5482
|
+
}
|
|
5483
|
+
exports.assertStrictEnumSelectSetter = assertStrictEnumSelectSetter;
|
|
5484
|
+
/**
|
|
5485
|
+
* 严格断言为 CapsulesSetter 节点
|
|
5486
|
+
*
|
|
5487
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5488
|
+
* @example
|
|
5489
|
+
* ```ts
|
|
5490
|
+
* assertStrictCapsulesSetter(node);
|
|
5491
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 类型
|
|
5492
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5493
|
+
* ```
|
|
5494
|
+
*/
|
|
5495
|
+
function assertStrictCapsulesSetter(node) {
|
|
5496
|
+
if (!isStrictCapsulesSetter(node)) {
|
|
5497
|
+
throw new Error(`CapsulesSetter 节点严格断言失败`);
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
exports.assertStrictCapsulesSetter = assertStrictCapsulesSetter;
|
|
5501
|
+
/**
|
|
5502
|
+
* 严格断言为 NumberInputSetter 节点
|
|
5503
|
+
*
|
|
5504
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5505
|
+
* @example
|
|
5506
|
+
* ```ts
|
|
5507
|
+
* assertStrictNumberInputSetter(node);
|
|
5508
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 类型
|
|
5509
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5510
|
+
* ```
|
|
5511
|
+
*/
|
|
5512
|
+
function assertStrictNumberInputSetter(node) {
|
|
5513
|
+
if (!isStrictNumberInputSetter(node)) {
|
|
5514
|
+
throw new Error(`NumberInputSetter 节点严格断言失败`);
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
exports.assertStrictNumberInputSetter = assertStrictNumberInputSetter;
|
|
5518
|
+
/**
|
|
5519
|
+
* 严格断言为 IconSetter 节点
|
|
5520
|
+
*
|
|
5521
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5522
|
+
* @example
|
|
5523
|
+
* ```ts
|
|
5524
|
+
* assertStrictIconSetter(node);
|
|
5525
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 类型
|
|
5526
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5527
|
+
* ```
|
|
5528
|
+
*/
|
|
5529
|
+
function assertStrictIconSetter(node) {
|
|
5530
|
+
if (!isStrictIconSetter(node)) {
|
|
5531
|
+
throw new Error(`IconSetter 节点严格断言失败`);
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
exports.assertStrictIconSetter = assertStrictIconSetter;
|
|
5535
|
+
/**
|
|
5536
|
+
* 严格断言为 ImageSetter 节点
|
|
5537
|
+
*
|
|
5538
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5539
|
+
* @example
|
|
5540
|
+
* ```ts
|
|
5541
|
+
* assertStrictImageSetter(node);
|
|
5542
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 类型
|
|
5543
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5544
|
+
* ```
|
|
5545
|
+
*/
|
|
5546
|
+
function assertStrictImageSetter(node) {
|
|
5547
|
+
if (!isStrictImageSetter(node)) {
|
|
5548
|
+
throw new Error(`ImageSetter 节点严格断言失败`);
|
|
5549
|
+
}
|
|
5550
|
+
}
|
|
5551
|
+
exports.assertStrictImageSetter = assertStrictImageSetter;
|
|
5552
|
+
/**
|
|
5553
|
+
* 严格断言为 PropertySelectSetter 节点
|
|
5554
|
+
*
|
|
5555
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5556
|
+
* @example
|
|
5557
|
+
* ```ts
|
|
5558
|
+
* assertStrictPropertySelectSetter(node);
|
|
5559
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 类型
|
|
5560
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5561
|
+
* ```
|
|
5562
|
+
*/
|
|
5563
|
+
function assertStrictPropertySelectSetter(node) {
|
|
5564
|
+
if (!isStrictPropertySelectSetter(node)) {
|
|
5565
|
+
throw new Error(`PropertySelectSetter 节点严格断言失败`);
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5568
|
+
exports.assertStrictPropertySelectSetter = assertStrictPropertySelectSetter;
|
|
5569
|
+
/**
|
|
5570
|
+
* 严格断言为 ViewComponentDeclaration 节点
|
|
4907
5571
|
*
|
|
4908
5572
|
* @description 仅断言节点本身,不包含继承类
|
|
4909
5573
|
* @example
|
|
4910
5574
|
* ```ts
|
|
4911
|
-
*
|
|
4912
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5575
|
+
* assertStrictViewComponentDeclaration(node);
|
|
5576
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 类型
|
|
4913
5577
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4914
5578
|
* ```
|
|
4915
5579
|
*/
|
|
4916
|
-
function
|
|
4917
|
-
if (!
|
|
4918
|
-
throw new Error(`
|
|
5580
|
+
function assertStrictViewComponentDeclaration(node) {
|
|
5581
|
+
if (!isStrictViewComponentDeclaration(node)) {
|
|
5582
|
+
throw new Error(`ViewComponentDeclaration 节点严格断言失败`);
|
|
4919
5583
|
}
|
|
4920
5584
|
}
|
|
4921
|
-
exports.
|
|
5585
|
+
exports.assertStrictViewComponentDeclaration = assertStrictViewComponentDeclaration;
|
|
4922
5586
|
/**
|
|
4923
5587
|
* 严格断言为 BusinessComponent 节点
|
|
4924
5588
|
*
|
|
@@ -4971,107 +5635,124 @@ function assertStrictEvent(node) {
|
|
|
4971
5635
|
}
|
|
4972
5636
|
exports.assertStrictEvent = assertStrictEvent;
|
|
4973
5637
|
/**
|
|
4974
|
-
* 严格断言为
|
|
5638
|
+
* 严格断言为 PropDeclaration 节点
|
|
4975
5639
|
*
|
|
4976
5640
|
* @description 仅断言节点本身,不包含继承类
|
|
4977
5641
|
* @example
|
|
4978
5642
|
* ```ts
|
|
4979
|
-
*
|
|
4980
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5643
|
+
* assertStrictPropDeclaration(node);
|
|
5644
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 类型
|
|
4981
5645
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4982
5646
|
* ```
|
|
4983
5647
|
*/
|
|
4984
|
-
function
|
|
4985
|
-
if (!
|
|
4986
|
-
throw new Error(`
|
|
5648
|
+
function assertStrictPropDeclaration(node) {
|
|
5649
|
+
if (!isStrictPropDeclaration(node)) {
|
|
5650
|
+
throw new Error(`PropDeclaration 节点严格断言失败`);
|
|
4987
5651
|
}
|
|
4988
5652
|
}
|
|
4989
|
-
exports.
|
|
5653
|
+
exports.assertStrictPropDeclaration = assertStrictPropDeclaration;
|
|
4990
5654
|
/**
|
|
4991
|
-
* 严格断言为
|
|
5655
|
+
* 严格断言为 EventDeclaration 节点
|
|
4992
5656
|
*
|
|
4993
5657
|
* @description 仅断言节点本身,不包含继承类
|
|
4994
5658
|
* @example
|
|
4995
5659
|
* ```ts
|
|
4996
|
-
*
|
|
4997
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5660
|
+
* assertStrictEventDeclaration(node);
|
|
5661
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 类型
|
|
4998
5662
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4999
5663
|
* ```
|
|
5000
5664
|
*/
|
|
5001
|
-
function
|
|
5002
|
-
if (!
|
|
5003
|
-
throw new Error(`
|
|
5665
|
+
function assertStrictEventDeclaration(node) {
|
|
5666
|
+
if (!isStrictEventDeclaration(node)) {
|
|
5667
|
+
throw new Error(`EventDeclaration 节点严格断言失败`);
|
|
5004
5668
|
}
|
|
5005
5669
|
}
|
|
5006
|
-
exports.
|
|
5670
|
+
exports.assertStrictEventDeclaration = assertStrictEventDeclaration;
|
|
5007
5671
|
/**
|
|
5008
|
-
* 严格断言为
|
|
5672
|
+
* 严格断言为 SlotDeclaration 节点
|
|
5009
5673
|
*
|
|
5010
5674
|
* @description 仅断言节点本身,不包含继承类
|
|
5011
5675
|
* @example
|
|
5012
5676
|
* ```ts
|
|
5013
|
-
*
|
|
5014
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5677
|
+
* assertStrictSlotDeclaration(node);
|
|
5678
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 类型
|
|
5015
5679
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5016
5680
|
* ```
|
|
5017
5681
|
*/
|
|
5018
|
-
function
|
|
5019
|
-
if (!
|
|
5020
|
-
throw new Error(`
|
|
5682
|
+
function assertStrictSlotDeclaration(node) {
|
|
5683
|
+
if (!isStrictSlotDeclaration(node)) {
|
|
5684
|
+
throw new Error(`SlotDeclaration 节点严格断言失败`);
|
|
5021
5685
|
}
|
|
5022
5686
|
}
|
|
5023
|
-
exports.
|
|
5687
|
+
exports.assertStrictSlotDeclaration = assertStrictSlotDeclaration;
|
|
5024
5688
|
/**
|
|
5025
|
-
* 严格断言为
|
|
5689
|
+
* 严格断言为 LogicDeclaration 节点
|
|
5026
5690
|
*
|
|
5027
5691
|
* @description 仅断言节点本身,不包含继承类
|
|
5028
5692
|
* @example
|
|
5029
5693
|
* ```ts
|
|
5030
|
-
*
|
|
5031
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5694
|
+
* assertStrictLogicDeclaration(node);
|
|
5695
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 类型
|
|
5032
5696
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5033
5697
|
* ```
|
|
5034
5698
|
*/
|
|
5035
|
-
function
|
|
5036
|
-
if (!
|
|
5037
|
-
throw new Error(`
|
|
5699
|
+
function assertStrictLogicDeclaration(node) {
|
|
5700
|
+
if (!isStrictLogicDeclaration(node)) {
|
|
5701
|
+
throw new Error(`LogicDeclaration 节点严格断言失败`);
|
|
5038
5702
|
}
|
|
5039
5703
|
}
|
|
5040
|
-
exports.
|
|
5704
|
+
exports.assertStrictLogicDeclaration = assertStrictLogicDeclaration;
|
|
5041
5705
|
/**
|
|
5042
|
-
* 严格断言为
|
|
5706
|
+
* 严格断言为 Theme 节点
|
|
5043
5707
|
*
|
|
5044
5708
|
* @description 仅断言节点本身,不包含继承类
|
|
5045
5709
|
* @example
|
|
5046
5710
|
* ```ts
|
|
5047
|
-
*
|
|
5048
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5711
|
+
* assertStrictTheme(node);
|
|
5712
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Theme 类型
|
|
5049
5713
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5050
5714
|
* ```
|
|
5051
5715
|
*/
|
|
5052
|
-
function
|
|
5053
|
-
if (!
|
|
5054
|
-
throw new Error(`
|
|
5716
|
+
function assertStrictTheme(node) {
|
|
5717
|
+
if (!isStrictTheme(node)) {
|
|
5718
|
+
throw new Error(`Theme 节点严格断言失败`);
|
|
5055
5719
|
}
|
|
5056
5720
|
}
|
|
5057
|
-
exports.
|
|
5721
|
+
exports.assertStrictTheme = assertStrictTheme;
|
|
5058
5722
|
/**
|
|
5059
|
-
* 严格断言为
|
|
5723
|
+
* 严格断言为 Logic 节点
|
|
5060
5724
|
*
|
|
5061
5725
|
* @description 仅断言节点本身,不包含继承类
|
|
5062
5726
|
* @example
|
|
5063
5727
|
* ```ts
|
|
5064
|
-
*
|
|
5065
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5728
|
+
* assertStrictLogic(node);
|
|
5729
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Logic 类型
|
|
5066
5730
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5067
5731
|
* ```
|
|
5068
5732
|
*/
|
|
5069
|
-
function
|
|
5070
|
-
if (!
|
|
5071
|
-
throw new Error(`
|
|
5733
|
+
function assertStrictLogic(node) {
|
|
5734
|
+
if (!isStrictLogic(node)) {
|
|
5735
|
+
throw new Error(`Logic 节点严格断言失败`);
|
|
5736
|
+
}
|
|
5737
|
+
}
|
|
5738
|
+
exports.assertStrictLogic = assertStrictLogic;
|
|
5739
|
+
/**
|
|
5740
|
+
* 严格断言为 AuthLogic 节点
|
|
5741
|
+
*
|
|
5742
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5743
|
+
* @example
|
|
5744
|
+
* ```ts
|
|
5745
|
+
* assertStrictAuthLogic(node);
|
|
5746
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 AuthLogic 类型
|
|
5747
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5748
|
+
* ```
|
|
5749
|
+
*/
|
|
5750
|
+
function assertStrictAuthLogic(node) {
|
|
5751
|
+
if (!isStrictAuthLogic(node)) {
|
|
5752
|
+
throw new Error(`AuthLogic 节点严格断言失败`);
|
|
5072
5753
|
}
|
|
5073
5754
|
}
|
|
5074
|
-
exports.
|
|
5755
|
+
exports.assertStrictAuthLogic = assertStrictAuthLogic;
|
|
5075
5756
|
/**
|
|
5076
5757
|
* 严格断言为 AuthLogicForCallInterface 节点
|
|
5077
5758
|
*
|
|
@@ -5106,6 +5787,23 @@ function assertStrictOverriddenLogic(node) {
|
|
|
5106
5787
|
}
|
|
5107
5788
|
}
|
|
5108
5789
|
exports.assertStrictOverriddenLogic = assertStrictOverriddenLogic;
|
|
5790
|
+
/**
|
|
5791
|
+
* 严格断言为 BusinessLogic 节点
|
|
5792
|
+
*
|
|
5793
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5794
|
+
* @example
|
|
5795
|
+
* ```ts
|
|
5796
|
+
* assertStrictBusinessLogic(node);
|
|
5797
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 类型
|
|
5798
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5799
|
+
* ```
|
|
5800
|
+
*/
|
|
5801
|
+
function assertStrictBusinessLogic(node) {
|
|
5802
|
+
if (!isStrictBusinessLogic(node)) {
|
|
5803
|
+
throw new Error(`BusinessLogic 节点严格断言失败`);
|
|
5804
|
+
}
|
|
5805
|
+
}
|
|
5806
|
+
exports.assertStrictBusinessLogic = assertStrictBusinessLogic;
|
|
5109
5807
|
/**
|
|
5110
5808
|
* 严格断言为 Param 节点
|
|
5111
5809
|
*
|
|
@@ -5803,6 +6501,23 @@ function assertStrictStringInterpolation(node) {
|
|
|
5803
6501
|
}
|
|
5804
6502
|
}
|
|
5805
6503
|
exports.assertStrictStringInterpolation = assertStrictStringInterpolation;
|
|
6504
|
+
/**
|
|
6505
|
+
* 严格断言为 StaticString 节点
|
|
6506
|
+
*
|
|
6507
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6508
|
+
* @example
|
|
6509
|
+
* ```ts
|
|
6510
|
+
* assertStrictStaticString(node);
|
|
6511
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StaticString 类型
|
|
6512
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6513
|
+
* ```
|
|
6514
|
+
*/
|
|
6515
|
+
function assertStrictStaticString(node) {
|
|
6516
|
+
if (!isStrictStaticString(node)) {
|
|
6517
|
+
throw new Error(`StaticString 节点严格断言失败`);
|
|
6518
|
+
}
|
|
6519
|
+
}
|
|
6520
|
+
exports.assertStrictStaticString = assertStrictStaticString;
|
|
5806
6521
|
/**
|
|
5807
6522
|
* 严格断言为 NumericLiteral 节点
|
|
5808
6523
|
*
|
|
@@ -5990,6 +6705,23 @@ function assertStrictNewMap(node) {
|
|
|
5990
6705
|
}
|
|
5991
6706
|
}
|
|
5992
6707
|
exports.assertStrictNewMap = assertStrictNewMap;
|
|
6708
|
+
/**
|
|
6709
|
+
* 严格断言为 Paginate 节点
|
|
6710
|
+
*
|
|
6711
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6712
|
+
* @example
|
|
6713
|
+
* ```ts
|
|
6714
|
+
* assertStrictPaginate(node);
|
|
6715
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Paginate 类型
|
|
6716
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6717
|
+
* ```
|
|
6718
|
+
*/
|
|
6719
|
+
function assertStrictPaginate(node) {
|
|
6720
|
+
if (!isStrictPaginate(node)) {
|
|
6721
|
+
throw new Error(`Paginate 节点严格断言失败`);
|
|
6722
|
+
}
|
|
6723
|
+
}
|
|
6724
|
+
exports.assertStrictPaginate = assertStrictPaginate;
|
|
5993
6725
|
/**
|
|
5994
6726
|
* 严格断言为 CallQueryComponent 节点
|
|
5995
6727
|
*
|
|
@@ -6228,6 +6960,40 @@ function assertStrictProcessComponent(node) {
|
|
|
6228
6960
|
}
|
|
6229
6961
|
}
|
|
6230
6962
|
exports.assertStrictProcessComponent = assertStrictProcessComponent;
|
|
6963
|
+
/**
|
|
6964
|
+
* 严格断言为 SequentialPolicy 节点
|
|
6965
|
+
*
|
|
6966
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6967
|
+
* @example
|
|
6968
|
+
* ```ts
|
|
6969
|
+
* assertStrictSequentialPolicy(node);
|
|
6970
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 类型
|
|
6971
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6972
|
+
* ```
|
|
6973
|
+
*/
|
|
6974
|
+
function assertStrictSequentialPolicy(node) {
|
|
6975
|
+
if (!isStrictSequentialPolicy(node)) {
|
|
6976
|
+
throw new Error(`SequentialPolicy 节点严格断言失败`);
|
|
6977
|
+
}
|
|
6978
|
+
}
|
|
6979
|
+
exports.assertStrictSequentialPolicy = assertStrictSequentialPolicy;
|
|
6980
|
+
/**
|
|
6981
|
+
* 严格断言为 CountersignPolicy 节点
|
|
6982
|
+
*
|
|
6983
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6984
|
+
* @example
|
|
6985
|
+
* ```ts
|
|
6986
|
+
* assertStrictCountersignPolicy(node);
|
|
6987
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 类型
|
|
6988
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6989
|
+
* ```
|
|
6990
|
+
*/
|
|
6991
|
+
function assertStrictCountersignPolicy(node) {
|
|
6992
|
+
if (!isStrictCountersignPolicy(node)) {
|
|
6993
|
+
throw new Error(`CountersignPolicy 节点严格断言失败`);
|
|
6994
|
+
}
|
|
6995
|
+
}
|
|
6996
|
+
exports.assertStrictCountersignPolicy = assertStrictCountersignPolicy;
|
|
6231
6997
|
/**
|
|
6232
6998
|
* 严格断言为 ProcessOutcome 节点
|
|
6233
6999
|
*
|
|
@@ -6279,57 +7045,6 @@ function assertStrictProcessOutcomes(node) {
|
|
|
6279
7045
|
}
|
|
6280
7046
|
}
|
|
6281
7047
|
exports.assertStrictProcessOutcomes = assertStrictProcessOutcomes;
|
|
6282
|
-
/**
|
|
6283
|
-
* 严格断言为 MultiApprovalPolicy 节点
|
|
6284
|
-
*
|
|
6285
|
-
* @description 仅断言节点本身,不包含继承类
|
|
6286
|
-
* @example
|
|
6287
|
-
* ```ts
|
|
6288
|
-
* assertStrictMultiApprovalPolicy(node);
|
|
6289
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MultiApprovalPolicy 类型
|
|
6290
|
-
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6291
|
-
* ```
|
|
6292
|
-
*/
|
|
6293
|
-
function assertStrictMultiApprovalPolicy(node) {
|
|
6294
|
-
if (!isStrictMultiApprovalPolicy(node)) {
|
|
6295
|
-
throw new Error(`MultiApprovalPolicy 节点严格断言失败`);
|
|
6296
|
-
}
|
|
6297
|
-
}
|
|
6298
|
-
exports.assertStrictMultiApprovalPolicy = assertStrictMultiApprovalPolicy;
|
|
6299
|
-
/**
|
|
6300
|
-
* 严格断言为 SequentialPolicy 节点
|
|
6301
|
-
*
|
|
6302
|
-
* @description 仅断言节点本身,不包含继承类
|
|
6303
|
-
* @example
|
|
6304
|
-
* ```ts
|
|
6305
|
-
* assertStrictSequentialPolicy(node);
|
|
6306
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 类型
|
|
6307
|
-
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6308
|
-
* ```
|
|
6309
|
-
*/
|
|
6310
|
-
function assertStrictSequentialPolicy(node) {
|
|
6311
|
-
if (!isStrictSequentialPolicy(node)) {
|
|
6312
|
-
throw new Error(`SequentialPolicy 节点严格断言失败`);
|
|
6313
|
-
}
|
|
6314
|
-
}
|
|
6315
|
-
exports.assertStrictSequentialPolicy = assertStrictSequentialPolicy;
|
|
6316
|
-
/**
|
|
6317
|
-
* 严格断言为 CountersignPolicy 节点
|
|
6318
|
-
*
|
|
6319
|
-
* @description 仅断言节点本身,不包含继承类
|
|
6320
|
-
* @example
|
|
6321
|
-
* ```ts
|
|
6322
|
-
* assertStrictCountersignPolicy(node);
|
|
6323
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 类型
|
|
6324
|
-
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6325
|
-
* ```
|
|
6326
|
-
*/
|
|
6327
|
-
function assertStrictCountersignPolicy(node) {
|
|
6328
|
-
if (!isStrictCountersignPolicy(node)) {
|
|
6329
|
-
throw new Error(`CountersignPolicy 节点严格断言失败`);
|
|
6330
|
-
}
|
|
6331
|
-
}
|
|
6332
|
-
exports.assertStrictCountersignPolicy = assertStrictCountersignPolicy;
|
|
6333
7048
|
/**
|
|
6334
7049
|
* 严格断言为 Role 节点
|
|
6335
7050
|
*
|
|
@@ -6568,6 +7283,23 @@ function assertStrictViewBlock(node) {
|
|
|
6568
7283
|
}
|
|
6569
7284
|
}
|
|
6570
7285
|
exports.assertStrictViewBlock = assertStrictViewBlock;
|
|
7286
|
+
/**
|
|
7287
|
+
* 严格断言为 ViewBlockWithImage 节点
|
|
7288
|
+
*
|
|
7289
|
+
* @description 仅断言节点本身,不包含继承类
|
|
7290
|
+
* @example
|
|
7291
|
+
* ```ts
|
|
7292
|
+
* assertStrictViewBlockWithImage(node);
|
|
7293
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 类型
|
|
7294
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7295
|
+
* ```
|
|
7296
|
+
*/
|
|
7297
|
+
function assertStrictViewBlockWithImage(node) {
|
|
7298
|
+
if (!isStrictViewBlockWithImage(node)) {
|
|
7299
|
+
throw new Error(`ViewBlockWithImage 节点严格断言失败`);
|
|
7300
|
+
}
|
|
7301
|
+
}
|
|
7302
|
+
exports.assertStrictViewBlockWithImage = assertStrictViewBlockWithImage;
|
|
6571
7303
|
/**
|
|
6572
7304
|
* 严格断言为 AuthInterface 节点
|
|
6573
7305
|
*
|
|
@@ -7188,43 +7920,241 @@ function assertBindEvent(node) {
|
|
|
7188
7920
|
throw new Error(`BindEvent 节点断言失败`);
|
|
7189
7921
|
}
|
|
7190
7922
|
}
|
|
7191
|
-
exports.assertBindEvent = assertBindEvent;
|
|
7923
|
+
exports.assertBindEvent = assertBindEvent;
|
|
7924
|
+
/**
|
|
7925
|
+
* 断言为 BindStyle 节点
|
|
7926
|
+
*
|
|
7927
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7928
|
+
* @description 节点没有继承类时,等价于`assertStrictBindStyle`方法
|
|
7929
|
+
* @example
|
|
7930
|
+
* ```ts
|
|
7931
|
+
* assertBindStyle(node);
|
|
7932
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindStyle 或者 BindStyle 继承类型
|
|
7933
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7934
|
+
* ```
|
|
7935
|
+
*/
|
|
7936
|
+
function assertBindStyle(node) {
|
|
7937
|
+
if (!isBindStyle(node)) {
|
|
7938
|
+
throw new Error(`BindStyle 节点断言失败`);
|
|
7939
|
+
}
|
|
7940
|
+
}
|
|
7941
|
+
exports.assertBindStyle = assertBindStyle;
|
|
7942
|
+
/**
|
|
7943
|
+
* 断言为 ThemeVariable 节点
|
|
7944
|
+
*
|
|
7945
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7946
|
+
* @description 节点没有继承类时,等价于`assertStrictThemeVariable`方法
|
|
7947
|
+
* @example
|
|
7948
|
+
* ```ts
|
|
7949
|
+
* assertThemeVariable(node);
|
|
7950
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 或者 ThemeVariable 继承类型
|
|
7951
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7952
|
+
* ```
|
|
7953
|
+
*/
|
|
7954
|
+
function assertThemeVariable(node) {
|
|
7955
|
+
if (!isThemeVariable(node)) {
|
|
7956
|
+
throw new Error(`ThemeVariable 节点断言失败`);
|
|
7957
|
+
}
|
|
7958
|
+
}
|
|
7959
|
+
exports.assertThemeVariable = assertThemeVariable;
|
|
7960
|
+
/**
|
|
7961
|
+
* 断言为 BaseSetter 节点
|
|
7962
|
+
*
|
|
7963
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7964
|
+
* @description 节点没有继承类时,等价于`assertStrictBaseSetter`方法
|
|
7965
|
+
* @example
|
|
7966
|
+
* ```ts
|
|
7967
|
+
* assertBaseSetter(node);
|
|
7968
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BaseSetter 或者 BaseSetter 继承类型
|
|
7969
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7970
|
+
* ```
|
|
7971
|
+
*/
|
|
7972
|
+
function assertBaseSetter(node) {
|
|
7973
|
+
if (!isBaseSetter(node)) {
|
|
7974
|
+
throw new Error(`BaseSetter 节点断言失败`);
|
|
7975
|
+
}
|
|
7976
|
+
}
|
|
7977
|
+
exports.assertBaseSetter = assertBaseSetter;
|
|
7978
|
+
/**
|
|
7979
|
+
* 断言为 InputSetter 节点
|
|
7980
|
+
*
|
|
7981
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7982
|
+
* @description 节点没有继承类时,等价于`assertStrictInputSetter`方法
|
|
7983
|
+
* @example
|
|
7984
|
+
* ```ts
|
|
7985
|
+
* assertInputSetter(node);
|
|
7986
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 或者 InputSetter 继承类型
|
|
7987
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7988
|
+
* ```
|
|
7989
|
+
*/
|
|
7990
|
+
function assertInputSetter(node) {
|
|
7991
|
+
if (!isInputSetter(node)) {
|
|
7992
|
+
throw new Error(`InputSetter 节点断言失败`);
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
exports.assertInputSetter = assertInputSetter;
|
|
7996
|
+
/**
|
|
7997
|
+
* 断言为 SwitchSetter 节点
|
|
7998
|
+
*
|
|
7999
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8000
|
+
* @description 节点没有继承类时,等价于`assertStrictSwitchSetter`方法
|
|
8001
|
+
* @example
|
|
8002
|
+
* ```ts
|
|
8003
|
+
* assertSwitchSetter(node);
|
|
8004
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 或者 SwitchSetter 继承类型
|
|
8005
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8006
|
+
* ```
|
|
8007
|
+
*/
|
|
8008
|
+
function assertSwitchSetter(node) {
|
|
8009
|
+
if (!isSwitchSetter(node)) {
|
|
8010
|
+
throw new Error(`SwitchSetter 节点断言失败`);
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
exports.assertSwitchSetter = assertSwitchSetter;
|
|
8014
|
+
/**
|
|
8015
|
+
* 断言为 SetterOption 节点
|
|
8016
|
+
*
|
|
8017
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8018
|
+
* @description 节点没有继承类时,等价于`assertStrictSetterOption`方法
|
|
8019
|
+
* @example
|
|
8020
|
+
* ```ts
|
|
8021
|
+
* assertSetterOption(node);
|
|
8022
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 或者 SetterOption 继承类型
|
|
8023
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8024
|
+
* ```
|
|
8025
|
+
*/
|
|
8026
|
+
function assertSetterOption(node) {
|
|
8027
|
+
if (!isSetterOption(node)) {
|
|
8028
|
+
throw new Error(`SetterOption 节点断言失败`);
|
|
8029
|
+
}
|
|
8030
|
+
}
|
|
8031
|
+
exports.assertSetterOption = assertSetterOption;
|
|
8032
|
+
/**
|
|
8033
|
+
* 断言为 EnumSelectSetter 节点
|
|
8034
|
+
*
|
|
8035
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8036
|
+
* @description 节点没有继承类时,等价于`assertStrictEnumSelectSetter`方法
|
|
8037
|
+
* @example
|
|
8038
|
+
* ```ts
|
|
8039
|
+
* assertEnumSelectSetter(node);
|
|
8040
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 或者 EnumSelectSetter 继承类型
|
|
8041
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8042
|
+
* ```
|
|
8043
|
+
*/
|
|
8044
|
+
function assertEnumSelectSetter(node) {
|
|
8045
|
+
if (!isEnumSelectSetter(node)) {
|
|
8046
|
+
throw new Error(`EnumSelectSetter 节点断言失败`);
|
|
8047
|
+
}
|
|
8048
|
+
}
|
|
8049
|
+
exports.assertEnumSelectSetter = assertEnumSelectSetter;
|
|
8050
|
+
/**
|
|
8051
|
+
* 断言为 CapsulesSetter 节点
|
|
8052
|
+
*
|
|
8053
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8054
|
+
* @description 节点没有继承类时,等价于`assertStrictCapsulesSetter`方法
|
|
8055
|
+
* @example
|
|
8056
|
+
* ```ts
|
|
8057
|
+
* assertCapsulesSetter(node);
|
|
8058
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 或者 CapsulesSetter 继承类型
|
|
8059
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8060
|
+
* ```
|
|
8061
|
+
*/
|
|
8062
|
+
function assertCapsulesSetter(node) {
|
|
8063
|
+
if (!isCapsulesSetter(node)) {
|
|
8064
|
+
throw new Error(`CapsulesSetter 节点断言失败`);
|
|
8065
|
+
}
|
|
8066
|
+
}
|
|
8067
|
+
exports.assertCapsulesSetter = assertCapsulesSetter;
|
|
8068
|
+
/**
|
|
8069
|
+
* 断言为 NumberInputSetter 节点
|
|
8070
|
+
*
|
|
8071
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8072
|
+
* @description 节点没有继承类时,等价于`assertStrictNumberInputSetter`方法
|
|
8073
|
+
* @example
|
|
8074
|
+
* ```ts
|
|
8075
|
+
* assertNumberInputSetter(node);
|
|
8076
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 或者 NumberInputSetter 继承类型
|
|
8077
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8078
|
+
* ```
|
|
8079
|
+
*/
|
|
8080
|
+
function assertNumberInputSetter(node) {
|
|
8081
|
+
if (!isNumberInputSetter(node)) {
|
|
8082
|
+
throw new Error(`NumberInputSetter 节点断言失败`);
|
|
8083
|
+
}
|
|
8084
|
+
}
|
|
8085
|
+
exports.assertNumberInputSetter = assertNumberInputSetter;
|
|
8086
|
+
/**
|
|
8087
|
+
* 断言为 IconSetter 节点
|
|
8088
|
+
*
|
|
8089
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8090
|
+
* @description 节点没有继承类时,等价于`assertStrictIconSetter`方法
|
|
8091
|
+
* @example
|
|
8092
|
+
* ```ts
|
|
8093
|
+
* assertIconSetter(node);
|
|
8094
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 或者 IconSetter 继承类型
|
|
8095
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8096
|
+
* ```
|
|
8097
|
+
*/
|
|
8098
|
+
function assertIconSetter(node) {
|
|
8099
|
+
if (!isIconSetter(node)) {
|
|
8100
|
+
throw new Error(`IconSetter 节点断言失败`);
|
|
8101
|
+
}
|
|
8102
|
+
}
|
|
8103
|
+
exports.assertIconSetter = assertIconSetter;
|
|
8104
|
+
/**
|
|
8105
|
+
* 断言为 ImageSetter 节点
|
|
8106
|
+
*
|
|
8107
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8108
|
+
* @description 节点没有继承类时,等价于`assertStrictImageSetter`方法
|
|
8109
|
+
* @example
|
|
8110
|
+
* ```ts
|
|
8111
|
+
* assertImageSetter(node);
|
|
8112
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 或者 ImageSetter 继承类型
|
|
8113
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8114
|
+
* ```
|
|
8115
|
+
*/
|
|
8116
|
+
function assertImageSetter(node) {
|
|
8117
|
+
if (!isImageSetter(node)) {
|
|
8118
|
+
throw new Error(`ImageSetter 节点断言失败`);
|
|
8119
|
+
}
|
|
8120
|
+
}
|
|
8121
|
+
exports.assertImageSetter = assertImageSetter;
|
|
7192
8122
|
/**
|
|
7193
|
-
* 断言为
|
|
8123
|
+
* 断言为 PropertySelectSetter 节点
|
|
7194
8124
|
*
|
|
7195
8125
|
* @description 包含节点类以及节点继承类的判断
|
|
7196
|
-
* @description 节点没有继承类时,等价于`
|
|
8126
|
+
* @description 节点没有继承类时,等价于`assertStrictPropertySelectSetter`方法
|
|
7197
8127
|
* @example
|
|
7198
8128
|
* ```ts
|
|
7199
|
-
*
|
|
7200
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8129
|
+
* assertPropertySelectSetter(node);
|
|
8130
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 或者 PropertySelectSetter 继承类型
|
|
7201
8131
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7202
8132
|
* ```
|
|
7203
8133
|
*/
|
|
7204
|
-
function
|
|
7205
|
-
if (!
|
|
7206
|
-
throw new Error(`
|
|
8134
|
+
function assertPropertySelectSetter(node) {
|
|
8135
|
+
if (!isPropertySelectSetter(node)) {
|
|
8136
|
+
throw new Error(`PropertySelectSetter 节点断言失败`);
|
|
7207
8137
|
}
|
|
7208
8138
|
}
|
|
7209
|
-
exports.
|
|
8139
|
+
exports.assertPropertySelectSetter = assertPropertySelectSetter;
|
|
7210
8140
|
/**
|
|
7211
|
-
* 断言为
|
|
8141
|
+
* 断言为 ViewComponentDeclaration 节点
|
|
7212
8142
|
*
|
|
7213
8143
|
* @description 包含节点类以及节点继承类的判断
|
|
7214
|
-
* @description 节点没有继承类时,等价于`
|
|
8144
|
+
* @description 节点没有继承类时,等价于`assertStrictViewComponentDeclaration`方法
|
|
7215
8145
|
* @example
|
|
7216
8146
|
* ```ts
|
|
7217
|
-
*
|
|
7218
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8147
|
+
* assertViewComponentDeclaration(node);
|
|
8148
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
|
|
7219
8149
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7220
8150
|
* ```
|
|
7221
8151
|
*/
|
|
7222
|
-
function
|
|
7223
|
-
if (!
|
|
7224
|
-
throw new Error(`
|
|
8152
|
+
function assertViewComponentDeclaration(node) {
|
|
8153
|
+
if (!isViewComponentDeclaration(node)) {
|
|
8154
|
+
throw new Error(`ViewComponentDeclaration 节点断言失败`);
|
|
7225
8155
|
}
|
|
7226
8156
|
}
|
|
7227
|
-
exports.
|
|
8157
|
+
exports.assertViewComponentDeclaration = assertViewComponentDeclaration;
|
|
7228
8158
|
/**
|
|
7229
8159
|
* 断言为 BusinessComponent 节点
|
|
7230
8160
|
*
|
|
@@ -7280,59 +8210,95 @@ function assertEvent(node) {
|
|
|
7280
8210
|
}
|
|
7281
8211
|
exports.assertEvent = assertEvent;
|
|
7282
8212
|
/**
|
|
7283
|
-
* 断言为
|
|
8213
|
+
* 断言为 PropDeclaration 节点
|
|
7284
8214
|
*
|
|
7285
8215
|
* @description 包含节点类以及节点继承类的判断
|
|
7286
|
-
* @description 节点没有继承类时,等价于`
|
|
8216
|
+
* @description 节点没有继承类时,等价于`assertStrictPropDeclaration`方法
|
|
7287
8217
|
* @example
|
|
7288
8218
|
* ```ts
|
|
7289
|
-
*
|
|
7290
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8219
|
+
* assertPropDeclaration(node);
|
|
8220
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 或者 PropDeclaration 继承类型
|
|
7291
8221
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7292
8222
|
* ```
|
|
7293
8223
|
*/
|
|
7294
|
-
function
|
|
7295
|
-
if (!
|
|
7296
|
-
throw new Error(`
|
|
8224
|
+
function assertPropDeclaration(node) {
|
|
8225
|
+
if (!isPropDeclaration(node)) {
|
|
8226
|
+
throw new Error(`PropDeclaration 节点断言失败`);
|
|
7297
8227
|
}
|
|
7298
8228
|
}
|
|
7299
|
-
exports.
|
|
8229
|
+
exports.assertPropDeclaration = assertPropDeclaration;
|
|
7300
8230
|
/**
|
|
7301
|
-
* 断言为
|
|
8231
|
+
* 断言为 EventDeclaration 节点
|
|
7302
8232
|
*
|
|
7303
8233
|
* @description 包含节点类以及节点继承类的判断
|
|
7304
|
-
* @description 节点没有继承类时,等价于`
|
|
8234
|
+
* @description 节点没有继承类时,等价于`assertStrictEventDeclaration`方法
|
|
7305
8235
|
* @example
|
|
7306
8236
|
* ```ts
|
|
7307
|
-
*
|
|
7308
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8237
|
+
* assertEventDeclaration(node);
|
|
8238
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 或者 EventDeclaration 继承类型
|
|
7309
8239
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7310
8240
|
* ```
|
|
7311
8241
|
*/
|
|
7312
|
-
function
|
|
7313
|
-
if (!
|
|
7314
|
-
throw new Error(`
|
|
8242
|
+
function assertEventDeclaration(node) {
|
|
8243
|
+
if (!isEventDeclaration(node)) {
|
|
8244
|
+
throw new Error(`EventDeclaration 节点断言失败`);
|
|
7315
8245
|
}
|
|
7316
8246
|
}
|
|
7317
|
-
exports.
|
|
8247
|
+
exports.assertEventDeclaration = assertEventDeclaration;
|
|
7318
8248
|
/**
|
|
7319
|
-
* 断言为
|
|
8249
|
+
* 断言为 SlotDeclaration 节点
|
|
7320
8250
|
*
|
|
7321
8251
|
* @description 包含节点类以及节点继承类的判断
|
|
7322
|
-
* @description 节点没有继承类时,等价于`
|
|
8252
|
+
* @description 节点没有继承类时,等价于`assertStrictSlotDeclaration`方法
|
|
7323
8253
|
* @example
|
|
7324
8254
|
* ```ts
|
|
7325
|
-
*
|
|
7326
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8255
|
+
* assertSlotDeclaration(node);
|
|
8256
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 或者 SlotDeclaration 继承类型
|
|
7327
8257
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7328
8258
|
* ```
|
|
7329
8259
|
*/
|
|
7330
|
-
function
|
|
7331
|
-
if (!
|
|
7332
|
-
throw new Error(`
|
|
8260
|
+
function assertSlotDeclaration(node) {
|
|
8261
|
+
if (!isSlotDeclaration(node)) {
|
|
8262
|
+
throw new Error(`SlotDeclaration 节点断言失败`);
|
|
7333
8263
|
}
|
|
7334
8264
|
}
|
|
7335
|
-
exports.
|
|
8265
|
+
exports.assertSlotDeclaration = assertSlotDeclaration;
|
|
8266
|
+
/**
|
|
8267
|
+
* 断言为 LogicDeclaration 节点
|
|
8268
|
+
*
|
|
8269
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8270
|
+
* @description 节点没有继承类时,等价于`assertStrictLogicDeclaration`方法
|
|
8271
|
+
* @example
|
|
8272
|
+
* ```ts
|
|
8273
|
+
* assertLogicDeclaration(node);
|
|
8274
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 或者 LogicDeclaration 继承类型
|
|
8275
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8276
|
+
* ```
|
|
8277
|
+
*/
|
|
8278
|
+
function assertLogicDeclaration(node) {
|
|
8279
|
+
if (!isLogicDeclaration(node)) {
|
|
8280
|
+
throw new Error(`LogicDeclaration 节点断言失败`);
|
|
8281
|
+
}
|
|
8282
|
+
}
|
|
8283
|
+
exports.assertLogicDeclaration = assertLogicDeclaration;
|
|
8284
|
+
/**
|
|
8285
|
+
* 断言为 Theme 节点
|
|
8286
|
+
*
|
|
8287
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8288
|
+
* @description 节点没有继承类时,等价于`assertStrictTheme`方法
|
|
8289
|
+
* @example
|
|
8290
|
+
* ```ts
|
|
8291
|
+
* assertTheme(node);
|
|
8292
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Theme 或者 Theme 继承类型
|
|
8293
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8294
|
+
* ```
|
|
8295
|
+
*/
|
|
8296
|
+
function assertTheme(node) {
|
|
8297
|
+
if (!isTheme(node)) {
|
|
8298
|
+
throw new Error(`Theme 节点断言失败`);
|
|
8299
|
+
}
|
|
8300
|
+
}
|
|
8301
|
+
exports.assertTheme = assertTheme;
|
|
7336
8302
|
/**
|
|
7337
8303
|
* 断言为 Logic 节点
|
|
7338
8304
|
*
|
|
@@ -7369,24 +8335,6 @@ function assertAuthLogic(node) {
|
|
|
7369
8335
|
}
|
|
7370
8336
|
}
|
|
7371
8337
|
exports.assertAuthLogic = assertAuthLogic;
|
|
7372
|
-
/**
|
|
7373
|
-
* 断言为 BusinessLogic 节点
|
|
7374
|
-
*
|
|
7375
|
-
* @description 包含节点类以及节点继承类的判断
|
|
7376
|
-
* @description 节点没有继承类时,等价于`assertStrictBusinessLogic`方法
|
|
7377
|
-
* @example
|
|
7378
|
-
* ```ts
|
|
7379
|
-
* assertBusinessLogic(node);
|
|
7380
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 或者 BusinessLogic 继承类型
|
|
7381
|
-
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7382
|
-
* ```
|
|
7383
|
-
*/
|
|
7384
|
-
function assertBusinessLogic(node) {
|
|
7385
|
-
if (!isBusinessLogic(node)) {
|
|
7386
|
-
throw new Error(`BusinessLogic 节点断言失败`);
|
|
7387
|
-
}
|
|
7388
|
-
}
|
|
7389
|
-
exports.assertBusinessLogic = assertBusinessLogic;
|
|
7390
8338
|
/**
|
|
7391
8339
|
* 断言为 AuthLogicForCallInterface 节点
|
|
7392
8340
|
*
|
|
@@ -7423,6 +8371,24 @@ function assertOverriddenLogic(node) {
|
|
|
7423
8371
|
}
|
|
7424
8372
|
}
|
|
7425
8373
|
exports.assertOverriddenLogic = assertOverriddenLogic;
|
|
8374
|
+
/**
|
|
8375
|
+
* 断言为 BusinessLogic 节点
|
|
8376
|
+
*
|
|
8377
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8378
|
+
* @description 节点没有继承类时,等价于`assertStrictBusinessLogic`方法
|
|
8379
|
+
* @example
|
|
8380
|
+
* ```ts
|
|
8381
|
+
* assertBusinessLogic(node);
|
|
8382
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BusinessLogic 或者 BusinessLogic 继承类型
|
|
8383
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8384
|
+
* ```
|
|
8385
|
+
*/
|
|
8386
|
+
function assertBusinessLogic(node) {
|
|
8387
|
+
if (!isBusinessLogic(node)) {
|
|
8388
|
+
throw new Error(`BusinessLogic 节点断言失败`);
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8391
|
+
exports.assertBusinessLogic = assertBusinessLogic;
|
|
7426
8392
|
/**
|
|
7427
8393
|
* 断言为 AbstractInterface 节点
|
|
7428
8394
|
*
|
|
@@ -7622,41 +8588,41 @@ function assertAnonymousFunction(node) {
|
|
|
7622
8588
|
}
|
|
7623
8589
|
exports.assertAnonymousFunction = assertAnonymousFunction;
|
|
7624
8590
|
/**
|
|
7625
|
-
* 断言为
|
|
8591
|
+
* 断言为 ImportedInterface 节点
|
|
7626
8592
|
*
|
|
7627
8593
|
* @description 包含节点类以及节点继承类的判断
|
|
7628
|
-
* @description 节点没有继承类时,等价于`
|
|
8594
|
+
* @description 节点没有继承类时,等价于`assertStrictImportedInterface`方法
|
|
7629
8595
|
* @example
|
|
7630
8596
|
* ```ts
|
|
7631
|
-
*
|
|
7632
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8597
|
+
* assertImportedInterface(node);
|
|
8598
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImportedInterface 或者 ImportedInterface 继承类型
|
|
7633
8599
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7634
8600
|
* ```
|
|
7635
8601
|
*/
|
|
7636
|
-
function
|
|
7637
|
-
if (!
|
|
7638
|
-
throw new Error(`
|
|
8602
|
+
function assertImportedInterface(node) {
|
|
8603
|
+
if (!isImportedInterface(node)) {
|
|
8604
|
+
throw new Error(`ImportedInterface 节点断言失败`);
|
|
7639
8605
|
}
|
|
7640
8606
|
}
|
|
7641
|
-
exports.
|
|
8607
|
+
exports.assertImportedInterface = assertImportedInterface;
|
|
7642
8608
|
/**
|
|
7643
|
-
* 断言为
|
|
8609
|
+
* 断言为 Interface 节点
|
|
7644
8610
|
*
|
|
7645
8611
|
* @description 包含节点类以及节点继承类的判断
|
|
7646
|
-
* @description 节点没有继承类时,等价于`
|
|
8612
|
+
* @description 节点没有继承类时,等价于`assertStrictInterface`方法
|
|
7647
8613
|
* @example
|
|
7648
8614
|
* ```ts
|
|
7649
|
-
*
|
|
7650
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8615
|
+
* assertInterface(node);
|
|
8616
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Interface 或者 Interface 继承类型
|
|
7651
8617
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7652
8618
|
* ```
|
|
7653
8619
|
*/
|
|
7654
|
-
function
|
|
7655
|
-
if (!
|
|
7656
|
-
throw new Error(`
|
|
8620
|
+
function assertInterface(node) {
|
|
8621
|
+
if (!isInterface(node)) {
|
|
8622
|
+
throw new Error(`Interface 节点断言失败`);
|
|
7657
8623
|
}
|
|
7658
8624
|
}
|
|
7659
|
-
exports.
|
|
8625
|
+
exports.assertInterface = assertInterface;
|
|
7660
8626
|
/**
|
|
7661
8627
|
* 断言为 InterfaceParam 节点
|
|
7662
8628
|
*
|
|
@@ -8215,6 +9181,24 @@ function assertStringInterpolation(node) {
|
|
|
8215
9181
|
}
|
|
8216
9182
|
}
|
|
8217
9183
|
exports.assertStringInterpolation = assertStringInterpolation;
|
|
9184
|
+
/**
|
|
9185
|
+
* 断言为 StaticString 节点
|
|
9186
|
+
*
|
|
9187
|
+
* @description 包含节点类以及节点继承类的判断
|
|
9188
|
+
* @description 节点没有继承类时,等价于`assertStrictStaticString`方法
|
|
9189
|
+
* @example
|
|
9190
|
+
* ```ts
|
|
9191
|
+
* assertStaticString(node);
|
|
9192
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 StaticString 或者 StaticString 继承类型
|
|
9193
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
9194
|
+
* ```
|
|
9195
|
+
*/
|
|
9196
|
+
function assertStaticString(node) {
|
|
9197
|
+
if (!isStaticString(node)) {
|
|
9198
|
+
throw new Error(`StaticString 节点断言失败`);
|
|
9199
|
+
}
|
|
9200
|
+
}
|
|
9201
|
+
exports.assertStaticString = assertStaticString;
|
|
8218
9202
|
/**
|
|
8219
9203
|
* 断言为 NumericLiteral 节点
|
|
8220
9204
|
*
|
|
@@ -8413,6 +9397,24 @@ function assertNewMap(node) {
|
|
|
8413
9397
|
}
|
|
8414
9398
|
}
|
|
8415
9399
|
exports.assertNewMap = assertNewMap;
|
|
9400
|
+
/**
|
|
9401
|
+
* 断言为 Paginate 节点
|
|
9402
|
+
*
|
|
9403
|
+
* @description 包含节点类以及节点继承类的判断
|
|
9404
|
+
* @description 节点没有继承类时,等价于`assertStrictPaginate`方法
|
|
9405
|
+
* @example
|
|
9406
|
+
* ```ts
|
|
9407
|
+
* assertPaginate(node);
|
|
9408
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Paginate 或者 Paginate 继承类型
|
|
9409
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
9410
|
+
* ```
|
|
9411
|
+
*/
|
|
9412
|
+
function assertPaginate(node) {
|
|
9413
|
+
if (!isPaginate(node)) {
|
|
9414
|
+
throw new Error(`Paginate 节点断言失败`);
|
|
9415
|
+
}
|
|
9416
|
+
}
|
|
9417
|
+
exports.assertPaginate = assertPaginate;
|
|
8416
9418
|
/**
|
|
8417
9419
|
* 断言为 CallQueryComponent 节点
|
|
8418
9420
|
*
|
|
@@ -8666,113 +9668,113 @@ function assertProcessComponent(node) {
|
|
|
8666
9668
|
}
|
|
8667
9669
|
exports.assertProcessComponent = assertProcessComponent;
|
|
8668
9670
|
/**
|
|
8669
|
-
* 断言为
|
|
9671
|
+
* 断言为 MultiApprovalPolicy 节点
|
|
8670
9672
|
*
|
|
8671
9673
|
* @description 包含节点类以及节点继承类的判断
|
|
8672
|
-
* @description 节点没有继承类时,等价于`
|
|
9674
|
+
* @description 节点没有继承类时,等价于`assertStrictMultiApprovalPolicy`方法
|
|
8673
9675
|
* @example
|
|
8674
9676
|
* ```ts
|
|
8675
|
-
*
|
|
8676
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9677
|
+
* assertMultiApprovalPolicy(node);
|
|
9678
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MultiApprovalPolicy 或者 MultiApprovalPolicy 继承类型
|
|
8677
9679
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8678
9680
|
* ```
|
|
8679
9681
|
*/
|
|
8680
|
-
function
|
|
8681
|
-
if (!
|
|
8682
|
-
throw new Error(`
|
|
9682
|
+
function assertMultiApprovalPolicy(node) {
|
|
9683
|
+
if (!isMultiApprovalPolicy(node)) {
|
|
9684
|
+
throw new Error(`MultiApprovalPolicy 节点断言失败`);
|
|
8683
9685
|
}
|
|
8684
9686
|
}
|
|
8685
|
-
exports.
|
|
9687
|
+
exports.assertMultiApprovalPolicy = assertMultiApprovalPolicy;
|
|
8686
9688
|
/**
|
|
8687
|
-
* 断言为
|
|
9689
|
+
* 断言为 SequentialPolicy 节点
|
|
8688
9690
|
*
|
|
8689
9691
|
* @description 包含节点类以及节点继承类的判断
|
|
8690
|
-
* @description 节点没有继承类时,等价于`
|
|
9692
|
+
* @description 节点没有继承类时,等价于`assertStrictSequentialPolicy`方法
|
|
8691
9693
|
* @example
|
|
8692
9694
|
* ```ts
|
|
8693
|
-
*
|
|
8694
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9695
|
+
* assertSequentialPolicy(node);
|
|
9696
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SequentialPolicy 或者 SequentialPolicy 继承类型
|
|
8695
9697
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8696
9698
|
* ```
|
|
8697
9699
|
*/
|
|
8698
|
-
function
|
|
8699
|
-
if (!
|
|
8700
|
-
throw new Error(`
|
|
9700
|
+
function assertSequentialPolicy(node) {
|
|
9701
|
+
if (!isSequentialPolicy(node)) {
|
|
9702
|
+
throw new Error(`SequentialPolicy 节点断言失败`);
|
|
8701
9703
|
}
|
|
8702
9704
|
}
|
|
8703
|
-
exports.
|
|
9705
|
+
exports.assertSequentialPolicy = assertSequentialPolicy;
|
|
8704
9706
|
/**
|
|
8705
|
-
* 断言为
|
|
9707
|
+
* 断言为 CountersignPolicy 节点
|
|
8706
9708
|
*
|
|
8707
9709
|
* @description 包含节点类以及节点继承类的判断
|
|
8708
|
-
* @description 节点没有继承类时,等价于`
|
|
9710
|
+
* @description 节点没有继承类时,等价于`assertStrictCountersignPolicy`方法
|
|
8709
9711
|
* @example
|
|
8710
9712
|
* ```ts
|
|
8711
|
-
*
|
|
8712
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9713
|
+
* assertCountersignPolicy(node);
|
|
9714
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CountersignPolicy 或者 CountersignPolicy 继承类型
|
|
8713
9715
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8714
9716
|
* ```
|
|
8715
9717
|
*/
|
|
8716
|
-
function
|
|
8717
|
-
if (!
|
|
8718
|
-
throw new Error(`
|
|
9718
|
+
function assertCountersignPolicy(node) {
|
|
9719
|
+
if (!isCountersignPolicy(node)) {
|
|
9720
|
+
throw new Error(`CountersignPolicy 节点断言失败`);
|
|
8719
9721
|
}
|
|
8720
9722
|
}
|
|
8721
|
-
exports.
|
|
9723
|
+
exports.assertCountersignPolicy = assertCountersignPolicy;
|
|
8722
9724
|
/**
|
|
8723
|
-
* 断言为
|
|
9725
|
+
* 断言为 ProcessOutcome 节点
|
|
8724
9726
|
*
|
|
8725
9727
|
* @description 包含节点类以及节点继承类的判断
|
|
8726
|
-
* @description 节点没有继承类时,等价于`
|
|
9728
|
+
* @description 节点没有继承类时,等价于`assertStrictProcessOutcome`方法
|
|
8727
9729
|
* @example
|
|
8728
9730
|
* ```ts
|
|
8729
|
-
*
|
|
8730
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9731
|
+
* assertProcessOutcome(node);
|
|
9732
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcome 或者 ProcessOutcome 继承类型
|
|
8731
9733
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8732
9734
|
* ```
|
|
8733
9735
|
*/
|
|
8734
|
-
function
|
|
8735
|
-
if (!
|
|
8736
|
-
throw new Error(`
|
|
9736
|
+
function assertProcessOutcome(node) {
|
|
9737
|
+
if (!isProcessOutcome(node)) {
|
|
9738
|
+
throw new Error(`ProcessOutcome 节点断言失败`);
|
|
8737
9739
|
}
|
|
8738
9740
|
}
|
|
8739
|
-
exports.
|
|
9741
|
+
exports.assertProcessOutcome = assertProcessOutcome;
|
|
8740
9742
|
/**
|
|
8741
|
-
* 断言为
|
|
9743
|
+
* 断言为 Assignee 节点
|
|
8742
9744
|
*
|
|
8743
9745
|
* @description 包含节点类以及节点继承类的判断
|
|
8744
|
-
* @description 节点没有继承类时,等价于`
|
|
9746
|
+
* @description 节点没有继承类时,等价于`assertStrictAssignee`方法
|
|
8745
9747
|
* @example
|
|
8746
9748
|
* ```ts
|
|
8747
|
-
*
|
|
8748
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9749
|
+
* assertAssignee(node);
|
|
9750
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 Assignee 或者 Assignee 继承类型
|
|
8749
9751
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8750
9752
|
* ```
|
|
8751
9753
|
*/
|
|
8752
|
-
function
|
|
8753
|
-
if (!
|
|
8754
|
-
throw new Error(`
|
|
9754
|
+
function assertAssignee(node) {
|
|
9755
|
+
if (!isAssignee(node)) {
|
|
9756
|
+
throw new Error(`Assignee 节点断言失败`);
|
|
8755
9757
|
}
|
|
8756
9758
|
}
|
|
8757
|
-
exports.
|
|
9759
|
+
exports.assertAssignee = assertAssignee;
|
|
8758
9760
|
/**
|
|
8759
|
-
* 断言为
|
|
9761
|
+
* 断言为 ProcessOutcomes 节点
|
|
8760
9762
|
*
|
|
8761
9763
|
* @description 包含节点类以及节点继承类的判断
|
|
8762
|
-
* @description 节点没有继承类时,等价于`
|
|
9764
|
+
* @description 节点没有继承类时,等价于`assertStrictProcessOutcomes`方法
|
|
8763
9765
|
* @example
|
|
8764
9766
|
* ```ts
|
|
8765
|
-
*
|
|
8766
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9767
|
+
* assertProcessOutcomes(node);
|
|
9768
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ProcessOutcomes 或者 ProcessOutcomes 继承类型
|
|
8767
9769
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8768
9770
|
* ```
|
|
8769
9771
|
*/
|
|
8770
|
-
function
|
|
8771
|
-
if (!
|
|
8772
|
-
throw new Error(`
|
|
9772
|
+
function assertProcessOutcomes(node) {
|
|
9773
|
+
if (!isProcessOutcomes(node)) {
|
|
9774
|
+
throw new Error(`ProcessOutcomes 节点断言失败`);
|
|
8773
9775
|
}
|
|
8774
9776
|
}
|
|
8775
|
-
exports.
|
|
9777
|
+
exports.assertProcessOutcomes = assertProcessOutcomes;
|
|
8776
9778
|
/**
|
|
8777
9779
|
* 断言为 Role 节点
|
|
8778
9780
|
*
|
|
@@ -9025,6 +10027,24 @@ function assertViewBlock(node) {
|
|
|
9025
10027
|
}
|
|
9026
10028
|
}
|
|
9027
10029
|
exports.assertViewBlock = assertViewBlock;
|
|
10030
|
+
/**
|
|
10031
|
+
* 断言为 ViewBlockWithImage 节点
|
|
10032
|
+
*
|
|
10033
|
+
* @description 包含节点类以及节点继承类的判断
|
|
10034
|
+
* @description 节点没有继承类时,等价于`assertStrictViewBlockWithImage`方法
|
|
10035
|
+
* @example
|
|
10036
|
+
* ```ts
|
|
10037
|
+
* assertViewBlockWithImage(node);
|
|
10038
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
|
|
10039
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
10040
|
+
* ```
|
|
10041
|
+
*/
|
|
10042
|
+
function assertViewBlockWithImage(node) {
|
|
10043
|
+
if (!isViewBlockWithImage(node)) {
|
|
10044
|
+
throw new Error(`ViewBlockWithImage 节点断言失败`);
|
|
10045
|
+
}
|
|
10046
|
+
}
|
|
10047
|
+
exports.assertViewBlockWithImage = assertViewBlockWithImage;
|
|
9028
10048
|
/**
|
|
9029
10049
|
* 断言为 AuthInterface 节点
|
|
9030
10050
|
*
|