@lcap/nasl 3.6.0-beta.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/.nyc_output/{d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json → 559608df-ab15-4969-acf0-5239dacd6111.json} +1 -1
- package/.nyc_output/processinfo/559608df-ab15-4969-acf0-5239dacd6111.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +153 -138
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +46 -46
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +153 -57
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +43 -7
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +59 -8
- package/coverage/src/breakpoint/generator/index.html +21 -21
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +2 -2
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +3 -3
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +609 -180
- package/coverage/src/common/Command.ts.html +2 -2
- package/coverage/src/common/EventEmitter.ts.html +6 -6
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +36 -21
- package/coverage/src/common/index.ts.html +7 -4
- package/coverage/src/common/utils.ts.html +136 -0
- package/coverage/src/concepts/Abort__.ts.html +39 -9
- package/coverage/src/concepts/AbstractInterface__.ts.html +280 -0
- package/coverage/src/concepts/Anchor__.ts.html +86 -29
- package/coverage/src/concepts/AnonymousFunction__.ts.html +262 -169
- package/coverage/src/concepts/App__.ts.html +1205 -152
- package/coverage/src/concepts/Argument__.ts.html +120 -51
- package/coverage/src/concepts/Assignee__.ts.html +124 -34
- package/coverage/src/concepts/AssignmentLine__.ts.html +48 -15
- package/coverage/src/concepts/Assignment__.ts.html +147 -69
- package/coverage/src/concepts/Attribute__.ts.html +41 -14
- package/coverage/src/concepts/AuthInterface__.ts.html +9 -6
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +108 -144
- package/coverage/src/concepts/AuthLogic__.ts.html +18 -6
- package/coverage/src/concepts/BackendVariable__.ts.html +135 -51
- package/coverage/src/concepts/Backend__.ts.html +106 -28
- package/coverage/src/concepts/BatchAssignment__.ts.html +274 -169
- package/coverage/src/concepts/BinaryExpression__.ts.html +188 -110
- package/coverage/src/concepts/BindAttribute__.ts.html +213 -93
- package/coverage/src/concepts/BindDirective__.ts.html +131 -26
- package/coverage/src/concepts/BindEvent__.ts.html +167 -71
- package/coverage/src/concepts/BindStyle__.ts.html +78 -21
- package/coverage/src/concepts/Block__.ts.html +910 -0
- package/coverage/src/concepts/BooleanLiteral__.ts.html +47 -20
- package/coverage/src/concepts/CallAuthInterface__.ts.html +105 -48
- package/coverage/src/concepts/CallConnector__.ts.html +62 -35
- package/coverage/src/concepts/CallFunction__.ts.html +328 -160
- package/coverage/src/concepts/CallInterface__.ts.html +93 -60
- package/coverage/src/concepts/CallLogic__.ts.html +544 -427
- package/coverage/src/concepts/CallQueryComponent__.ts.html +126 -93
- package/coverage/src/concepts/Comment__.ts.html +43 -10
- package/coverage/src/concepts/CompletionProperty__.ts.html +40 -13
- package/coverage/src/concepts/ConfigGroup__.ts.html +47 -20
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +22 -19
- package/coverage/src/concepts/ConfigProperty__.ts.html +97 -40
- package/coverage/src/concepts/Configuration__.ts.html +48 -21
- package/coverage/src/concepts/Connection__.ts.html +97 -22
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +9 -6
- package/coverage/src/concepts/Connector__.ts.html +161 -38
- package/coverage/src/concepts/Constant__.ts.html +84 -24
- package/coverage/src/concepts/CountersignPolicy__.ts.html +316 -0
- package/coverage/src/concepts/DataSource__.ts.html +111 -57
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +9 -6
- package/coverage/src/concepts/DefaultValue__.ts.html +1000 -0
- package/coverage/src/concepts/Destination__.ts.html +97 -55
- package/coverage/src/concepts/End__.ts.html +56 -26
- package/coverage/src/concepts/EntityIndex__.ts.html +40 -10
- package/coverage/src/concepts/EntityProperty__.ts.html +164 -56
- package/coverage/src/concepts/Entity__.ts.html +169 -91
- package/coverage/src/concepts/EnumItem__.ts.html +40 -10
- package/coverage/src/concepts/Enum__.ts.html +84 -24
- package/coverage/src/concepts/Event__.ts.html +41 -14
- package/coverage/src/concepts/ExternalDestination__.ts.html +75 -21
- package/coverage/src/concepts/ForEachStatement__.ts.html +143 -95
- package/coverage/src/concepts/FrontendLibrary__.ts.html +71 -20
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +213 -57
- package/coverage/src/concepts/Function__.ts.html +239 -86
- package/coverage/src/concepts/I18nInfo__.ts.html +436 -0
- package/coverage/src/concepts/Identifier__.ts.html +103 -73
- package/coverage/src/concepts/IfStatement__.ts.html +138 -75
- package/coverage/src/concepts/ImportedInterface__.ts.html +268 -0
- package/coverage/src/concepts/Integration__.ts.html +70 -19
- package/coverage/src/concepts/InterfaceParam__.ts.html +78 -21
- package/coverage/src/concepts/Interface__.ts.html +162 -60
- package/coverage/src/concepts/JSBlock__.ts.html +39 -9
- package/coverage/src/concepts/JavaLogic__.ts.html +42 -9
- package/coverage/src/concepts/LogicItem__.ts.html +56 -26
- package/coverage/src/concepts/Logic__.ts.html +409 -322
- package/coverage/src/concepts/MatchCase__.ts.html +181 -97
- package/coverage/src/concepts/Match__.ts.html +135 -63
- package/coverage/src/concepts/MemberExpression__.ts.html +185 -128
- package/coverage/src/concepts/MetadataType__.ts.html +2053 -0
- package/coverage/src/concepts/MicroApp__.ts.html +9 -6
- package/coverage/src/concepts/Module__.ts.html +690 -36
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +41 -14
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +41 -14
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +292 -0
- package/coverage/src/concepts/Namespace__.ts.html +359 -92
- package/coverage/src/concepts/NewComposite__.ts.html +326 -146
- package/coverage/src/concepts/NewList__.ts.html +195 -57
- package/coverage/src/concepts/NewMap__.ts.html +168 -63
- package/coverage/src/concepts/New__.ts.html +39 -9
- package/coverage/src/concepts/NullLiteral__.ts.html +36 -9
- package/coverage/src/concepts/NumericLiteral__.ts.html +86 -32
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +161 -35
- package/coverage/src/concepts/OverriddenLogic__.ts.html +324 -201
- package/coverage/src/concepts/Param__.ts.html +155 -80
- package/coverage/src/concepts/Point__.ts.html +9 -6
- package/coverage/src/concepts/ProcessComponent__.ts.html +72 -21
- package/coverage/src/concepts/ProcessElement__.ts.html +524 -116
- package/coverage/src/concepts/ProcessOutcome__.ts.html +85 -13
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +85 -13
- package/coverage/src/concepts/Process__.ts.html +217 -70
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +67 -16
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +41 -11
- package/coverage/src/concepts/QueryFromExpression__.ts.html +81 -21
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +70 -19
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +85 -25
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +77 -20
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +80 -20
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +42 -15
- package/coverage/src/concepts/Rect__.ts.html +9 -6
- package/coverage/src/concepts/Return__.ts.html +131 -50
- package/coverage/src/concepts/Role__.ts.html +45 -15
- package/coverage/src/concepts/SelectMembers__.ts.html +81 -24
- package/coverage/src/concepts/SequentialPolicy__.ts.html +259 -0
- package/coverage/src/concepts/Slot__.ts.html +40 -13
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +84 -24
- package/coverage/src/concepts/Start__.ts.html +41 -14
- package/coverage/src/concepts/StaticString__.ts.html +403 -0
- package/coverage/src/concepts/StringInterpolation__.ts.html +127 -46
- package/coverage/src/concepts/StringLiteral__.ts.html +62 -32
- package/coverage/src/concepts/StructureProperty__.ts.html +86 -29
- package/coverage/src/concepts/Structure__.ts.html +122 -38
- package/coverage/src/concepts/SwitchCase__.ts.html +87 -36
- package/coverage/src/concepts/SwitchStatement__.ts.html +90 -33
- package/coverage/src/concepts/Theme__.ts.html +15 -12
- package/coverage/src/concepts/Transactional__.ts.html +9 -6
- package/coverage/src/concepts/TriggerEvent__.ts.html +41 -14
- package/coverage/src/concepts/TriggerLauncher__.ts.html +46 -13
- package/coverage/src/concepts/TypeAnnotation__.ts.html +348 -117
- package/coverage/src/concepts/TypeParam__.ts.html +42 -12
- package/coverage/src/concepts/UnaryExpression__.ts.html +105 -27
- package/coverage/src/concepts/Unparsed__.ts.html +36 -12
- package/coverage/src/concepts/UseComponent__.ts.html +9 -6
- package/coverage/src/concepts/ValidationRule__.ts.html +87 -48
- package/coverage/src/concepts/Variable__.ts.html +127 -46
- package/coverage/src/concepts/ViewBlock__.ts.html +9 -6
- package/coverage/src/concepts/ViewComponent__.ts.html +99 -24
- package/coverage/src/concepts/ViewElement__.ts.html +498 -288
- package/coverage/src/concepts/View__.ts.html +482 -170
- package/coverage/src/concepts/WhileStatement__.ts.html +118 -55
- package/coverage/src/concepts/basics/constants.ts.html +88 -0
- package/coverage/src/concepts/basics/index.html +116 -0
- package/coverage/src/concepts/basics/stdlib/index.html +1 -1
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +2 -2
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +4 -4
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +1023 -963
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +16 -4
- package/coverage/src/concepts/utils/asserts.ts.html +27967 -0
- package/coverage/src/concepts/utils/index.html +116 -0
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +5 -5
- package/coverage/src/decorators/index.ts.html +32 -32
- package/coverage/src/decorators/promise.ts.html +10 -10
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +1 -1
- package/coverage/src/generator/genBundleFiles.ts.html +17 -23
- package/coverage/src/generator/genHash.ts.html +1 -1
- package/coverage/src/generator/genMetaData.ts.html +103 -16
- package/coverage/src/generator/genReleaseBody.ts.html +43 -43
- package/coverage/src/generator/icestark.ts.html +10 -4
- package/coverage/src/generator/index.html +21 -21
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +92 -20
- package/coverage/src/generator/qiankun.ts.html +9 -3
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +7 -7
- package/coverage/src/index.ts.html +4 -4
- package/coverage/src/manager/diagnostic.ts.html +11 -14
- package/coverage/src/manager/index.html +13 -13
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +15 -15
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +78 -18
- package/coverage/src/sentry/index.html +14 -14
- package/coverage/src/sentry/index.ts.html +38 -32
- package/coverage/src/server/createUiTs.ts.html +15 -6
- package/coverage/src/server/entity2LogicNamespace.ts.html +9 -9
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +73 -43
- package/coverage/src/server/formatTsUtils.ts.html +31 -28
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +1 -1
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +1 -1
- package/coverage/src/server/getLogics.ts.html +20 -8
- package/coverage/src/server/getMemberIdentifier.ts.html +231 -120
- package/coverage/src/server/getProcessComponents.ts.html +1 -1
- package/coverage/src/server/getProcesses.ts.html +163 -13
- package/coverage/src/server/getValidates.ts.html +1 -1
- package/coverage/src/server/index.html +63 -63
- package/coverage/src/server/index.ts.html +6 -3
- package/coverage/src/server/naslServer.ts.html +1207 -949
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/translator.ts.html +59 -14
- package/coverage/src/service/creator/add.configs.js.html +27 -9
- package/coverage/src/service/creator/errHandles.js.html +28 -37
- package/coverage/src/service/creator/index.html +23 -23
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +29 -29
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +1533 -600
- package/coverage/src/service/storage/jsoner.ts.html +76 -13
- package/coverage/src/service/storage/map.ts.html +3 -3
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +37 -58
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +19 -19
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +71 -89
- package/coverage/src/templator/genEditTableBlock.ts.html +76 -13
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +66 -3
- package/coverage/src/templator/genUpdateBlock.ts.html +35 -32
- package/coverage/src/templator/index.html +38 -38
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +74 -11
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +21 -21
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +389 -68
- package/coverage/src/utils/cookie.ts.html +4 -4
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/utils/i18nInfo.ts.html +166 -0
- package/coverage/src/utils/index.html +34 -49
- package/coverage/src/utils/index.ts.html +115 -22
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +25 -10
- package/coverage/src/utils/string.ts.html +110 -8
- package/coverage/src/utils/time-slicing/constant.ts.html +196 -0
- package/coverage/src/utils/time-slicing/controller.ts.html +1144 -0
- package/coverage/src/utils/time-slicing/index.html +236 -0
- package/coverage/src/utils/time-slicing/index.ts.html +103 -0
- package/coverage/src/utils/time-slicing/page-state.ts.html +121 -0
- package/coverage/src/utils/time-slicing/performance.ts.html +253 -0
- package/coverage/src/utils/time-slicing/runner.ts.html +241 -0
- package/coverage/src/utils/time-slicing/tool.ts.html +220 -0
- package/coverage/src/utils/time-slicing/utils.ts.html +355 -0
- package/coverage/src/utils/time-slicing/wrapper.ts.html +259 -0
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/BaseNode.js +10 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/Abort__.d.ts +7 -0
- package/out/concepts/Abort__.js +7 -0
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/AbstractInterface__.d.ts +7 -0
- package/out/concepts/AbstractInterface__.js +7 -0
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +7 -0
- package/out/concepts/Anchor__.js +7 -0
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +7 -0
- package/out/concepts/AnonymousFunction__.js +7 -0
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +7 -0
- package/out/concepts/App__.js +8 -1
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +7 -0
- package/out/concepts/Argument__.js +7 -0
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +7 -0
- package/out/concepts/Assignee__.js +7 -0
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +7 -0
- package/out/concepts/AssignmentLine__.js +7 -0
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +7 -0
- package/out/concepts/Assignment__.js +7 -0
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +11 -13
- package/out/concepts/Attribute__.js +11 -14
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +7 -0
- package/out/concepts/AuthInterface__.js +7 -0
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +7 -0
- package/out/concepts/AuthLogicForCallInterface__.js +7 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.d.ts +7 -0
- package/out/concepts/AuthLogic__.js +7 -0
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +7 -0
- package/out/concepts/BackendVariable__.js +7 -0
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +7 -0
- package/out/concepts/Backend__.js +7 -0
- 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 +7 -0
- package/out/concepts/BatchAssignment__.js +7 -0
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +7 -0
- package/out/concepts/BinaryExpression__.js +7 -0
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +7 -0
- package/out/concepts/BindAttribute__.js +7 -0
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +7 -0
- package/out/concepts/BindDirective__.js +7 -0
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +7 -0
- package/out/concepts/BindEvent__.js +7 -0
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +7 -0
- package/out/concepts/BindStyle__.js +7 -0
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/Block__.d.ts +7 -0
- package/out/concepts/Block__.js +7 -0
- package/out/concepts/Block__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +7 -0
- package/out/concepts/BooleanLiteral__.js +7 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +7 -0
- package/out/concepts/BusinessComponent__.js +8 -1
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.d.ts +7 -0
- package/out/concepts/BusinessLogic__.js +7 -0
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +7 -0
- package/out/concepts/CallAuthInterface__.js +7 -0
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +7 -0
- package/out/concepts/CallConnector__.js +7 -0
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallEvent__.d.ts +7 -0
- package/out/concepts/CallEvent__.js +7 -0
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +17 -0
- package/out/concepts/CallFunction__.js +73 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +7 -0
- package/out/concepts/CallInterface__.js +7 -0
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +7 -0
- package/out/concepts/CallLogic__.js +17 -9
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +7 -0
- package/out/concepts/CallQueryComponent__.js +7 -0
- 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 +7 -0
- package/out/concepts/Comment__.js +7 -0
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +7 -8
- package/out/concepts/CompletionProperty__.js +7 -16
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +7 -0
- package/out/concepts/ConfigGroup__.js +7 -0
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +7 -0
- package/out/concepts/ConfigPropertyValue__.js +7 -0
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +7 -0
- package/out/concepts/ConfigProperty__.js +7 -0
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +7 -0
- package/out/concepts/Configuration__.js +7 -0
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +7 -0
- package/out/concepts/Connection__.js +7 -0
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.d.ts +7 -0
- package/out/concepts/ConnectorTrigger__.js +7 -0
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +7 -0
- package/out/concepts/Connector__.js +7 -0
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +7 -0
- package/out/concepts/Constant__.js +7 -0
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.d.ts +7 -0
- package/out/concepts/CountersignPolicy__.js +7 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -1
- package/out/concepts/DataSource__.d.ts +7 -0
- package/out/concepts/DataSource__.js +7 -0
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +7 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +7 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/DefaultValue__.d.ts +7 -0
- package/out/concepts/DefaultValue__.js +7 -0
- package/out/concepts/DefaultValue__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +7 -0
- package/out/concepts/Destination__.js +7 -0
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +7 -0
- package/out/concepts/End__.js +7 -0
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +7 -0
- package/out/concepts/EntityIndex__.js +7 -0
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +7 -0
- package/out/concepts/EntityProperty__.js +14 -8
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +7 -0
- package/out/concepts/Entity__.js +7 -0
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +7 -0
- package/out/concepts/EnumItem__.js +7 -0
- 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 +12 -0
- package/out/concepts/Enum__.js +33 -4
- 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 +10 -3
- package/out/concepts/Event__.js +9 -2
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +7 -0
- package/out/concepts/ExternalDestination__.js +7 -0
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +7 -0
- package/out/concepts/ForEachStatement__.js +7 -0
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +34 -27
- package/out/concepts/FrontendLibrary__.js +39 -32
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +7 -0
- package/out/concepts/FrontendType__.js +7 -0
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/FrontendVariable__.d.ts +7 -0
- package/out/concepts/FrontendVariable__.js +7 -0
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +7 -0
- package/out/concepts/Frontend__.js +7 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +7 -0
- package/out/concepts/Function__.js +7 -0
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +7 -0
- package/out/concepts/I18nInfo__.js +7 -0
- 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 +7 -0
- package/out/concepts/Identifier__.js +7 -0
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +7 -0
- package/out/concepts/IfStatement__.js +7 -0
- 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 +7 -0
- package/out/concepts/ImportedInterface__.js +7 -0
- 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 -0
- package/out/concepts/Integration__.js +7 -0
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +7 -0
- package/out/concepts/InterfaceParam__.js +7 -0
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +7 -0
- package/out/concepts/Interface__.js +7 -0
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +7 -0
- package/out/concepts/JSBlock__.js +7 -0
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +7 -0
- package/out/concepts/JavaLogic__.js +7 -0
- 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 +7 -0
- package/out/concepts/LogicItem__.js +7 -0
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +17 -7
- package/out/concepts/Logic__.js +89 -8
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +7 -0
- package/out/concepts/MatchCase__.js +7 -0
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +7 -0
- package/out/concepts/Match__.js +7 -0
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +7 -0
- package/out/concepts/MemberExpression__.js +7 -0
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +7 -0
- package/out/concepts/MetadataType__.js +7 -0
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +7 -0
- package/out/concepts/MicroApp__.js +7 -0
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +7 -0
- package/out/concepts/Module__.js +7 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +7 -0
- package/out/concepts/MsgTriggerEvent__.js +7 -0
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +7 -0
- package/out/concepts/MsgTriggerLauncher__.js +7 -0
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/MultiApprovalPolicy__.d.ts +7 -0
- package/out/concepts/MultiApprovalPolicy__.js +7 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +34 -27
- package/out/concepts/Namespace__.js +39 -32
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +7 -0
- package/out/concepts/NewComposite__.js +7 -0
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +7 -0
- package/out/concepts/NewList__.js +7 -0
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +7 -0
- package/out/concepts/NewMap__.js +7 -0
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +7 -0
- package/out/concepts/New__.js +7 -0
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +7 -0
- package/out/concepts/NullLiteral__.js +7 -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 +7 -0
- package/out/concepts/NumericLiteral__.js +7 -0
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +7 -0
- package/out/concepts/OqlQueryComponent__.js +7 -0
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +7 -0
- package/out/concepts/OverriddenLogic__.js +7 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Paginate__.d.ts +7 -0
- package/out/concepts/Paginate__.js +7 -0
- package/out/concepts/Paginate__.js.map +1 -1
- package/out/concepts/ParamWithGroup__.d.ts +7 -0
- package/out/concepts/ParamWithGroup__.js +7 -0
- package/out/concepts/ParamWithGroup__.js.map +1 -1
- package/out/concepts/Param__.d.ts +9 -9
- package/out/concepts/Param__.js +17 -19
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +7 -0
- package/out/concepts/Point__.js +7 -0
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +7 -0
- package/out/concepts/ProcessComponent__.js +7 -0
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +7 -0
- package/out/concepts/ProcessElement__.js +7 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +7 -0
- package/out/concepts/ProcessOutcome__.js +7 -0
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +7 -0
- package/out/concepts/ProcessOutcomes__.js +7 -0
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +7 -0
- package/out/concepts/Process__.js +7 -0
- 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 +7 -0
- package/out/concepts/QueryAggregateExpression__.js +7 -0
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +7 -0
- package/out/concepts/QueryFieldExpression__.js +7 -0
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +7 -0
- package/out/concepts/QueryFromExpression__.js +7 -0
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +7 -0
- package/out/concepts/QueryGroupByExpression__.js +7 -0
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +7 -0
- package/out/concepts/QueryJoinExpression__.js +7 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +7 -0
- package/out/concepts/QueryLimitExpression__.js +7 -0
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +7 -0
- package/out/concepts/QueryOrderByExpression__.js +7 -0
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +7 -0
- package/out/concepts/QuerySelectExpression__.js +7 -0
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +7 -0
- package/out/concepts/Rect__.js +7 -0
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +8 -1
- package/out/concepts/Return__.js +11 -0
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +7 -0
- package/out/concepts/Role__.js +7 -0
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +7 -0
- package/out/concepts/SelectMembers__.js +7 -0
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SequentialPolicy__.d.ts +7 -0
- package/out/concepts/SequentialPolicy__.js +7 -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 +2 -2
- package/out/concepts/Slot__.js +1 -1
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +7 -0
- package/out/concepts/SqlQueryComponent__.js +7 -0
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +7 -0
- package/out/concepts/Start__.js +7 -0
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +7 -0
- package/out/concepts/StaticString__.js +7 -0
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StringInterpolation__.d.ts +7 -0
- package/out/concepts/StringInterpolation__.js +8 -1
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +7 -0
- package/out/concepts/StringLiteral__.js +7 -0
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +7 -8
- package/out/concepts/StructureProperty__.js +7 -16
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +7 -0
- package/out/concepts/Structure__.js +7 -0
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +7 -0
- package/out/concepts/SwitchCase__.js +7 -0
- 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 +7 -0
- package/out/concepts/SwitchStatement__.js +7 -0
- 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 +7 -0
- package/out/concepts/Theme__.js +7 -0
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +7 -0
- package/out/concepts/Transactional__.js +7 -0
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +9 -81
- package/out/concepts/TriggerEvent__.js +10 -107
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +7 -0
- package/out/concepts/TriggerLauncher__.js +7 -0
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +7 -0
- package/out/concepts/TypeAnnotation__.js +27 -11
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +7 -0
- package/out/concepts/TypeParam__.js +7 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +7 -0
- package/out/concepts/UnaryExpression__.js +7 -0
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +7 -0
- package/out/concepts/Unparsed__.js +7 -0
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +7 -0
- package/out/concepts/UseComponent__.js +7 -0
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +7 -0
- package/out/concepts/ValidationRule__.js +8 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +8 -1
- package/out/concepts/Variable__.js +11 -0
- 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 +12 -5
- package/out/concepts/ViewBlock__.js +16 -5
- 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 +7 -0
- package/out/concepts/ViewElement__.js +8 -6
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +9 -1
- package/out/concepts/View__.js +66 -5
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +7 -0
- package/out/concepts/WhileStatement__.js +7 -0
- package/out/concepts/WhileStatement__.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 +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/index__.d.ts +17 -2
- package/out/concepts/index__.js +17 -2
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +781 -41
- package/out/concepts/utils/asserts.js +1117 -133
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +56 -7
- package/out/generator/genMetaData.js +6 -0
- package/out/generator/genMetaData.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/server/createUiTs.js +0 -1
- 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/getConnector.d.ts +1 -0
- package/out/server/getConnector.js +35 -32
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getLogics.js +1 -1
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +3 -3
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/templator/genEditTableBlock.js +1 -1
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +1 -1
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +2 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.collection.ts +5 -3
- package/sandbox/stdlib/nasl.core.ts +2 -1
- package/sandbox/stdlib/nasl.process.ts +18 -0
- package/sandbox/stdlib/nasl.util.ts +5 -3
- package/src/common/BaseNode.ts +10 -1
- package/src/concepts/Abort__.ts +7 -0
- package/src/concepts/AbstractInterface__.ts +7 -0
- package/src/concepts/Anchor__.ts +7 -0
- package/src/concepts/AnonymousFunction__.ts +7 -0
- package/src/concepts/App__.ts +8 -1
- package/src/concepts/Argument__.ts +7 -0
- package/src/concepts/Assignee__.ts +7 -0
- package/src/concepts/AssignmentLine__.ts +7 -0
- package/src/concepts/Assignment__.ts +7 -0
- package/src/concepts/Attribute__.ts +12 -22
- package/src/concepts/AuthInterface__.ts +7 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +7 -0
- package/src/concepts/AuthLogic__.ts +7 -0
- package/src/concepts/BackendVariable__.ts +7 -0
- package/src/concepts/Backend__.ts +7 -0
- package/src/concepts/BaseSetter__.ts +72 -0
- package/src/concepts/BatchAssignment__.ts +7 -0
- package/src/concepts/BinaryExpression__.ts +7 -0
- package/src/concepts/BindAttribute__.ts +8 -1
- package/src/concepts/BindDirective__.ts +7 -0
- package/src/concepts/BindEvent__.ts +7 -0
- package/src/concepts/BindStyle__.ts +7 -0
- package/src/concepts/Block__.ts +7 -0
- package/src/concepts/BooleanLiteral__.ts +7 -0
- package/src/concepts/BusinessComponent__.ts +20 -10
- package/src/concepts/BusinessLogic__.ts +7 -0
- package/src/concepts/CallAuthInterface__.ts +7 -0
- package/src/concepts/CallConnector__.ts +7 -0
- package/src/concepts/CallEvent__.ts +7 -0
- package/src/concepts/CallFunction__.ts +84 -2
- package/src/concepts/CallInterface__.ts +7 -0
- package/src/concepts/CallLogic__.ts +25 -16
- package/src/concepts/CallQueryComponent__.ts +16 -9
- package/src/concepts/CapsulesSetter__.ts +254 -0
- package/src/concepts/Comment__.ts +7 -0
- package/src/concepts/CompletionProperty__.ts +7 -20
- package/src/concepts/ConfigGroup__.ts +7 -0
- package/src/concepts/ConfigPropertyValue__.ts +7 -0
- package/src/concepts/ConfigProperty__.ts +7 -0
- package/src/concepts/Configuration__.ts +7 -0
- package/src/concepts/Connection__.ts +7 -0
- package/src/concepts/ConnectorTrigger__.ts +7 -0
- package/src/concepts/Connector__.ts +7 -0
- package/src/concepts/Constant__.ts +7 -0
- package/src/concepts/CountersignPolicy__.ts +7 -0
- package/src/concepts/DataSource__.ts +7 -0
- package/src/concepts/DatabaseTypeAnnotation__.ts +7 -0
- package/src/concepts/DefaultValue__.ts +7 -0
- package/src/concepts/Destination__.ts +7 -0
- package/src/concepts/End__.ts +7 -0
- package/src/concepts/EntityIndex__.ts +7 -0
- package/src/concepts/EntityProperty__.ts +14 -8
- package/src/concepts/Entity__.ts +7 -0
- package/src/concepts/EnumItem__.ts +7 -0
- package/src/concepts/EnumSelectSetter__.ts +254 -0
- package/src/concepts/Enum__.ts +38 -5
- package/src/concepts/EventDeclaration__.ts +95 -0
- package/src/concepts/Event__.ts +10 -3
- package/src/concepts/ExternalDestination__.ts +7 -0
- package/src/concepts/ForEachStatement__.ts +7 -0
- package/src/concepts/FrontendLibrary__.ts +93 -62
- package/src/concepts/FrontendType__.ts +7 -0
- package/src/concepts/FrontendVariable__.ts +7 -0
- package/src/concepts/Frontend__.ts +7 -0
- package/src/concepts/Function__.ts +7 -0
- package/src/concepts/I18nInfo__.ts +7 -0
- package/src/concepts/IconSetter__.ts +72 -0
- package/src/concepts/Identifier__.ts +7 -0
- package/src/concepts/IfStatement__.ts +7 -0
- package/src/concepts/ImageSetter__.ts +65 -0
- package/src/concepts/ImportedInterface__.ts +7 -0
- package/src/concepts/InputSetter__.ts +72 -0
- package/src/concepts/Integration__.ts +7 -0
- package/src/concepts/InterfaceParam__.ts +7 -0
- package/src/concepts/Interface__.ts +7 -0
- package/src/concepts/JSBlock__.ts +7 -0
- package/src/concepts/JavaLogic__.ts +7 -0
- package/src/concepts/LogicDeclaration__.ts +657 -0
- package/src/concepts/LogicItem__.ts +7 -0
- package/src/concepts/Logic__.ts +122 -34
- package/src/concepts/MatchCase__.ts +10 -3
- package/src/concepts/Match__.ts +9 -2
- package/src/concepts/MemberExpression__.ts +7 -0
- package/src/concepts/MetadataType__.ts +7 -0
- package/src/concepts/MicroApp__.ts +7 -0
- package/src/concepts/Module__.ts +7 -0
- package/src/concepts/MsgTriggerEvent__.ts +7 -0
- package/src/concepts/MsgTriggerLauncher__.ts +7 -0
- package/src/concepts/MultiApprovalPolicy__.ts +7 -0
- package/src/concepts/Namespace__.ts +91 -60
- package/src/concepts/NewComposite__.ts +7 -0
- package/src/concepts/NewList__.ts +7 -0
- package/src/concepts/NewMap__.ts +7 -0
- package/src/concepts/New__.ts +7 -0
- package/src/concepts/NullLiteral__.ts +7 -0
- package/src/concepts/NumberInputSetter__.ts +104 -0
- package/src/concepts/NumericLiteral__.ts +7 -0
- package/src/concepts/OqlQueryComponent__.ts +7 -0
- package/src/concepts/OverriddenLogic__.ts +7 -0
- package/src/concepts/Paginate__.ts +7 -0
- package/src/concepts/ParamWithGroup__.ts +7 -0
- package/src/concepts/Param__.ts +14 -24
- package/src/concepts/Point__.ts +7 -0
- package/src/concepts/ProcessComponent__.ts +7 -0
- package/src/concepts/ProcessElement__.ts +7 -0
- package/src/concepts/ProcessOutcome__.ts +7 -0
- package/src/concepts/ProcessOutcomes__.ts +7 -0
- package/src/concepts/Process__.ts +7 -0
- package/src/concepts/PropDeclaration__.ts +209 -0
- package/src/concepts/PropertySelectSetter__.ts +65 -0
- package/src/concepts/QueryAggregateExpression__.ts +7 -0
- package/src/concepts/QueryFieldExpression__.ts +7 -0
- package/src/concepts/QueryFromExpression__.ts +7 -0
- package/src/concepts/QueryGroupByExpression__.ts +7 -0
- package/src/concepts/QueryJoinExpression__.ts +7 -0
- package/src/concepts/QueryLimitExpression__.ts +7 -0
- package/src/concepts/QueryOrderByExpression__.ts +7 -0
- package/src/concepts/QuerySelectExpression__.ts +7 -0
- package/src/concepts/Rect__.ts +7 -0
- package/src/concepts/Return__.ts +8 -1
- package/src/concepts/Role__.ts +7 -0
- package/src/concepts/SelectMembers__.ts +7 -0
- package/src/concepts/SequentialPolicy__.ts +7 -0
- package/src/concepts/SetterOption__.ts +111 -0
- package/src/concepts/SlotDeclaration__.ts +488 -0
- package/src/concepts/Slot__.ts +2 -2
- package/src/concepts/SqlQueryComponent__.ts +7 -0
- package/src/concepts/Start__.ts +7 -0
- package/src/concepts/StaticString__.ts +7 -0
- package/src/concepts/StringInterpolation__.ts +8 -1
- package/src/concepts/StringLiteral__.ts +7 -0
- package/src/concepts/StructureProperty__.ts +7 -20
- package/src/concepts/Structure__.ts +7 -0
- package/src/concepts/SwitchCase__.ts +7 -0
- package/src/concepts/SwitchSetter__.ts +65 -0
- package/src/concepts/SwitchStatement__.ts +7 -0
- package/src/concepts/ThemeVariable__.ts +71 -0
- package/src/concepts/Theme__.ts +7 -0
- package/src/concepts/Transactional__.ts +7 -0
- package/src/concepts/TriggerEvent__.ts +12 -185
- package/src/concepts/TriggerLauncher__.ts +7 -0
- package/src/concepts/TypeAnnotation__.ts +29 -12
- package/src/concepts/TypeParam__.ts +7 -0
- package/src/concepts/UnaryExpression__.ts +7 -0
- package/src/concepts/Unparsed__.ts +7 -0
- package/src/concepts/UseComponent__.ts +7 -0
- package/src/concepts/ValidationRule__.ts +8 -1
- package/src/concepts/Variable__.ts +8 -1
- package/src/concepts/ViewBlockWithImage__.ts +80 -0
- package/src/concepts/ViewBlock__.ts +16 -9
- package/src/concepts/ViewComponentDeclaration__.ts +1670 -0
- package/src/concepts/ViewElement__.ts +9 -7
- package/src/concepts/View__.ts +91 -25
- package/src/concepts/WhileStatement__.ts +7 -0
- package/src/concepts/basics/stdlib/nasl.process.ts +103 -7
- package/src/concepts/basics/stdlib/nasl.util.ts +1 -1
- package/src/concepts/index__.ts +17 -2
- package/src/concepts/utils/asserts.ts +1223 -166
- package/src/concepts/utils/types.ts +85 -8
- package/src/generator/genMetaData.ts +7 -1
- package/src/index.ts +1 -0
- package/src/server/createUiTs.ts +0 -1
- package/src/server/entity2LogicNamespace.ts +1 -16
- package/src/server/getConnector.ts +40 -32
- package/src/server/getLogics.ts +1 -1
- package/src/server/getMemberIdentifier.ts +3 -3
- package/src/templator/genEditTableBlock.ts +1 -1
- package/src/templator/genGridViewBlock.ts +1 -1
- package/src/templator/genTableBlock.ts +2 -2
- package/test/concepts/entity/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -2
- package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +0 -1
- package/out/concepts/ViewComponent__.d.ts +0 -549
- package/out/concepts/ViewComponent__.js +0 -620
- package/out/concepts/ViewComponent__.js.map +0 -1
- package/src/concepts/ViewComponent__.ts +0 -1245
|
@@ -24,11 +24,25 @@ import type { BindAttribute } from '../BindAttribute__';
|
|
|
24
24
|
import type { BindDirective } from '../BindDirective__';
|
|
25
25
|
import type { BindEvent } from '../BindEvent__';
|
|
26
26
|
import type { BindStyle } from '../BindStyle__';
|
|
27
|
-
import type {
|
|
27
|
+
import type { ThemeVariable } from '../ThemeVariable__';
|
|
28
|
+
import type { BaseSetter } from '../BaseSetter__';
|
|
29
|
+
import type { InputSetter } from '../InputSetter__';
|
|
30
|
+
import type { SwitchSetter } from '../SwitchSetter__';
|
|
31
|
+
import type { SetterOption } from '../SetterOption__';
|
|
32
|
+
import type { EnumSelectSetter } from '../EnumSelectSetter__';
|
|
33
|
+
import type { CapsulesSetter } from '../CapsulesSetter__';
|
|
34
|
+
import type { NumberInputSetter } from '../NumberInputSetter__';
|
|
35
|
+
import type { IconSetter } from '../IconSetter__';
|
|
36
|
+
import type { ImageSetter } from '../ImageSetter__';
|
|
37
|
+
import type { PropertySelectSetter } from '../PropertySelectSetter__';
|
|
38
|
+
import type { ViewComponentDeclaration } from '../ViewComponentDeclaration__';
|
|
28
39
|
import type { BusinessComponent } from '../BusinessComponent__';
|
|
29
40
|
import type { Attribute } from '../Attribute__';
|
|
30
41
|
import type { Event } from '../Event__';
|
|
31
|
-
import type {
|
|
42
|
+
import type { PropDeclaration } from '../PropDeclaration__';
|
|
43
|
+
import type { EventDeclaration } from '../EventDeclaration__';
|
|
44
|
+
import type { SlotDeclaration } from '../SlotDeclaration__';
|
|
45
|
+
import type { LogicDeclaration } from '../LogicDeclaration__';
|
|
32
46
|
import type { Theme } from '../Theme__';
|
|
33
47
|
import type { Logic } from '../Logic__';
|
|
34
48
|
import type { AuthLogic } from '../AuthLogic__';
|
|
@@ -126,6 +140,7 @@ import type { SelectMembers } from '../SelectMembers__';
|
|
|
126
140
|
import type { AssignmentLine } from '../AssignmentLine__';
|
|
127
141
|
import type { FrontendLibrary } from '../FrontendLibrary__';
|
|
128
142
|
import type { ViewBlock } from '../ViewBlock__';
|
|
143
|
+
import type { ViewBlockWithImage } from '../ViewBlockWithImage__';
|
|
129
144
|
import type { AuthInterface } from '../AuthInterface__';
|
|
130
145
|
import type { CallAuthInterface } from '../CallAuthInterface__';
|
|
131
146
|
import type { TriggerEvent } from '../TriggerEvent__';
|
|
@@ -565,18 +580,168 @@ export function isStrictBindStyle(node: unknown): node is BindStyle {
|
|
|
565
580
|
}
|
|
566
581
|
|
|
567
582
|
/**
|
|
568
|
-
* 严格判断输入为
|
|
583
|
+
* 严格判断输入为 ThemeVariable 节点
|
|
569
584
|
*
|
|
570
585
|
* @description 仅判断节点本身,不包含继承类
|
|
571
586
|
* @example
|
|
572
587
|
* ```ts
|
|
573
|
-
* if (
|
|
574
|
-
* // 在这个花括号内,node 的类型为
|
|
588
|
+
* if (isStrictThemeVariable(node)) {
|
|
589
|
+
* // 在这个花括号内,node 的类型为 ThemeVariable
|
|
575
590
|
* }
|
|
576
591
|
* ```
|
|
577
592
|
*/
|
|
578
|
-
export function
|
|
579
|
-
return isBaseNode(node) && node.concept === '
|
|
593
|
+
export function isStrictThemeVariable(node: unknown): node is ThemeVariable {
|
|
594
|
+
return isBaseNode(node) && node.concept === 'ThemeVariable';
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* 严格判断输入为 InputSetter 节点
|
|
599
|
+
*
|
|
600
|
+
* @description 仅判断节点本身,不包含继承类
|
|
601
|
+
* @example
|
|
602
|
+
* ```ts
|
|
603
|
+
* if (isStrictInputSetter(node)) {
|
|
604
|
+
* // 在这个花括号内,node 的类型为 InputSetter
|
|
605
|
+
* }
|
|
606
|
+
* ```
|
|
607
|
+
*/
|
|
608
|
+
export function isStrictInputSetter(node: unknown): node is InputSetter {
|
|
609
|
+
return isBaseNode(node) && node.concept === 'InputSetter';
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* 严格判断输入为 SwitchSetter 节点
|
|
614
|
+
*
|
|
615
|
+
* @description 仅判断节点本身,不包含继承类
|
|
616
|
+
* @example
|
|
617
|
+
* ```ts
|
|
618
|
+
* if (isStrictSwitchSetter(node)) {
|
|
619
|
+
* // 在这个花括号内,node 的类型为 SwitchSetter
|
|
620
|
+
* }
|
|
621
|
+
* ```
|
|
622
|
+
*/
|
|
623
|
+
export function isStrictSwitchSetter(node: unknown): node is SwitchSetter {
|
|
624
|
+
return isBaseNode(node) && node.concept === 'SwitchSetter';
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* 严格判断输入为 SetterOption 节点
|
|
629
|
+
*
|
|
630
|
+
* @description 仅判断节点本身,不包含继承类
|
|
631
|
+
* @example
|
|
632
|
+
* ```ts
|
|
633
|
+
* if (isStrictSetterOption(node)) {
|
|
634
|
+
* // 在这个花括号内,node 的类型为 SetterOption
|
|
635
|
+
* }
|
|
636
|
+
* ```
|
|
637
|
+
*/
|
|
638
|
+
export function isStrictSetterOption(node: unknown): node is SetterOption {
|
|
639
|
+
return isBaseNode(node) && node.concept === 'SetterOption';
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* 严格判断输入为 EnumSelectSetter 节点
|
|
644
|
+
*
|
|
645
|
+
* @description 仅判断节点本身,不包含继承类
|
|
646
|
+
* @example
|
|
647
|
+
* ```ts
|
|
648
|
+
* if (isStrictEnumSelectSetter(node)) {
|
|
649
|
+
* // 在这个花括号内,node 的类型为 EnumSelectSetter
|
|
650
|
+
* }
|
|
651
|
+
* ```
|
|
652
|
+
*/
|
|
653
|
+
export function isStrictEnumSelectSetter(node: unknown): node is EnumSelectSetter {
|
|
654
|
+
return isBaseNode(node) && node.concept === 'EnumSelectSetter';
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* 严格判断输入为 CapsulesSetter 节点
|
|
659
|
+
*
|
|
660
|
+
* @description 仅判断节点本身,不包含继承类
|
|
661
|
+
* @example
|
|
662
|
+
* ```ts
|
|
663
|
+
* if (isStrictCapsulesSetter(node)) {
|
|
664
|
+
* // 在这个花括号内,node 的类型为 CapsulesSetter
|
|
665
|
+
* }
|
|
666
|
+
* ```
|
|
667
|
+
*/
|
|
668
|
+
export function isStrictCapsulesSetter(node: unknown): node is CapsulesSetter {
|
|
669
|
+
return isBaseNode(node) && node.concept === 'CapsulesSetter';
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* 严格判断输入为 NumberInputSetter 节点
|
|
674
|
+
*
|
|
675
|
+
* @description 仅判断节点本身,不包含继承类
|
|
676
|
+
* @example
|
|
677
|
+
* ```ts
|
|
678
|
+
* if (isStrictNumberInputSetter(node)) {
|
|
679
|
+
* // 在这个花括号内,node 的类型为 NumberInputSetter
|
|
680
|
+
* }
|
|
681
|
+
* ```
|
|
682
|
+
*/
|
|
683
|
+
export function isStrictNumberInputSetter(node: unknown): node is NumberInputSetter {
|
|
684
|
+
return isBaseNode(node) && node.concept === 'NumberInputSetter';
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* 严格判断输入为 IconSetter 节点
|
|
689
|
+
*
|
|
690
|
+
* @description 仅判断节点本身,不包含继承类
|
|
691
|
+
* @example
|
|
692
|
+
* ```ts
|
|
693
|
+
* if (isStrictIconSetter(node)) {
|
|
694
|
+
* // 在这个花括号内,node 的类型为 IconSetter
|
|
695
|
+
* }
|
|
696
|
+
* ```
|
|
697
|
+
*/
|
|
698
|
+
export function isStrictIconSetter(node: unknown): node is IconSetter {
|
|
699
|
+
return isBaseNode(node) && node.concept === 'IconSetter';
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* 严格判断输入为 ImageSetter 节点
|
|
704
|
+
*
|
|
705
|
+
* @description 仅判断节点本身,不包含继承类
|
|
706
|
+
* @example
|
|
707
|
+
* ```ts
|
|
708
|
+
* if (isStrictImageSetter(node)) {
|
|
709
|
+
* // 在这个花括号内,node 的类型为 ImageSetter
|
|
710
|
+
* }
|
|
711
|
+
* ```
|
|
712
|
+
*/
|
|
713
|
+
export function isStrictImageSetter(node: unknown): node is ImageSetter {
|
|
714
|
+
return isBaseNode(node) && node.concept === 'ImageSetter';
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* 严格判断输入为 PropertySelectSetter 节点
|
|
719
|
+
*
|
|
720
|
+
* @description 仅判断节点本身,不包含继承类
|
|
721
|
+
* @example
|
|
722
|
+
* ```ts
|
|
723
|
+
* if (isStrictPropertySelectSetter(node)) {
|
|
724
|
+
* // 在这个花括号内,node 的类型为 PropertySelectSetter
|
|
725
|
+
* }
|
|
726
|
+
* ```
|
|
727
|
+
*/
|
|
728
|
+
export function isStrictPropertySelectSetter(node: unknown): node is PropertySelectSetter {
|
|
729
|
+
return isBaseNode(node) && node.concept === 'PropertySelectSetter';
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* 严格判断输入为 ViewComponentDeclaration 节点
|
|
734
|
+
*
|
|
735
|
+
* @description 仅判断节点本身,不包含继承类
|
|
736
|
+
* @example
|
|
737
|
+
* ```ts
|
|
738
|
+
* if (isStrictViewComponentDeclaration(node)) {
|
|
739
|
+
* // 在这个花括号内,node 的类型为 ViewComponentDeclaration
|
|
740
|
+
* }
|
|
741
|
+
* ```
|
|
742
|
+
*/
|
|
743
|
+
export function isStrictViewComponentDeclaration(node: unknown): node is ViewComponentDeclaration {
|
|
744
|
+
return isBaseNode(node) && node.concept === 'ViewComponentDeclaration';
|
|
580
745
|
}
|
|
581
746
|
|
|
582
747
|
/**
|
|
@@ -625,18 +790,63 @@ export function isStrictEvent(node: unknown): node is Event {
|
|
|
625
790
|
}
|
|
626
791
|
|
|
627
792
|
/**
|
|
628
|
-
* 严格判断输入为
|
|
793
|
+
* 严格判断输入为 PropDeclaration 节点
|
|
629
794
|
*
|
|
630
795
|
* @description 仅判断节点本身,不包含继承类
|
|
631
796
|
* @example
|
|
632
797
|
* ```ts
|
|
633
|
-
* if (
|
|
634
|
-
* // 在这个花括号内,node 的类型为
|
|
798
|
+
* if (isStrictPropDeclaration(node)) {
|
|
799
|
+
* // 在这个花括号内,node 的类型为 PropDeclaration
|
|
635
800
|
* }
|
|
636
801
|
* ```
|
|
637
802
|
*/
|
|
638
|
-
export function
|
|
639
|
-
return isBaseNode(node) && node.concept === '
|
|
803
|
+
export function isStrictPropDeclaration(node: unknown): node is PropDeclaration {
|
|
804
|
+
return isBaseNode(node) && node.concept === 'PropDeclaration';
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* 严格判断输入为 EventDeclaration 节点
|
|
809
|
+
*
|
|
810
|
+
* @description 仅判断节点本身,不包含继承类
|
|
811
|
+
* @example
|
|
812
|
+
* ```ts
|
|
813
|
+
* if (isStrictEventDeclaration(node)) {
|
|
814
|
+
* // 在这个花括号内,node 的类型为 EventDeclaration
|
|
815
|
+
* }
|
|
816
|
+
* ```
|
|
817
|
+
*/
|
|
818
|
+
export function isStrictEventDeclaration(node: unknown): node is EventDeclaration {
|
|
819
|
+
return isBaseNode(node) && node.concept === 'EventDeclaration';
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* 严格判断输入为 SlotDeclaration 节点
|
|
824
|
+
*
|
|
825
|
+
* @description 仅判断节点本身,不包含继承类
|
|
826
|
+
* @example
|
|
827
|
+
* ```ts
|
|
828
|
+
* if (isStrictSlotDeclaration(node)) {
|
|
829
|
+
* // 在这个花括号内,node 的类型为 SlotDeclaration
|
|
830
|
+
* }
|
|
831
|
+
* ```
|
|
832
|
+
*/
|
|
833
|
+
export function isStrictSlotDeclaration(node: unknown): node is SlotDeclaration {
|
|
834
|
+
return isBaseNode(node) && node.concept === 'SlotDeclaration';
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* 严格判断输入为 LogicDeclaration 节点
|
|
839
|
+
*
|
|
840
|
+
* @description 仅判断节点本身,不包含继承类
|
|
841
|
+
* @example
|
|
842
|
+
* ```ts
|
|
843
|
+
* if (isStrictLogicDeclaration(node)) {
|
|
844
|
+
* // 在这个花括号内,node 的类型为 LogicDeclaration
|
|
845
|
+
* }
|
|
846
|
+
* ```
|
|
847
|
+
*/
|
|
848
|
+
export function isStrictLogicDeclaration(node: unknown): node is LogicDeclaration {
|
|
849
|
+
return isBaseNode(node) && node.concept === 'LogicDeclaration';
|
|
640
850
|
}
|
|
641
851
|
|
|
642
852
|
/**
|
|
@@ -2034,6 +2244,21 @@ export function isStrictViewBlock(node: unknown): node is ViewBlock {
|
|
|
2034
2244
|
return isBaseNode(node) && node.concept === 'ViewBlock';
|
|
2035
2245
|
}
|
|
2036
2246
|
|
|
2247
|
+
/**
|
|
2248
|
+
* 严格判断输入为 ViewBlockWithImage 节点
|
|
2249
|
+
*
|
|
2250
|
+
* @description 仅判断节点本身,不包含继承类
|
|
2251
|
+
* @example
|
|
2252
|
+
* ```ts
|
|
2253
|
+
* if (isStrictViewBlockWithImage(node)) {
|
|
2254
|
+
* // 在这个花括号内,node 的类型为 ViewBlockWithImage
|
|
2255
|
+
* }
|
|
2256
|
+
* ```
|
|
2257
|
+
*/
|
|
2258
|
+
export function isStrictViewBlockWithImage(node: unknown): node is ViewBlockWithImage {
|
|
2259
|
+
return isBaseNode(node) && node.concept === 'ViewBlockWithImage';
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2037
2262
|
/**
|
|
2038
2263
|
* 严格判断输入为 AuthInterface 节点
|
|
2039
2264
|
*
|
|
@@ -2571,271 +2796,573 @@ export function isEntityProperty(node: unknown): node is EntityProperty {
|
|
|
2571
2796
|
* 判断输入为 EntityIndex 节点实例
|
|
2572
2797
|
*
|
|
2573
2798
|
* @description 包含节点类以及节点继承类的判断
|
|
2574
|
-
* @description 等价于`instanceof`运算,EntityIndex 节点没有继承类,此判断等价于`isStrictEntityIndex`
|
|
2799
|
+
* @description 等价于`instanceof`运算,EntityIndex 节点没有继承类,此判断等价于`isStrictEntityIndex`
|
|
2800
|
+
* @example
|
|
2801
|
+
* ```ts
|
|
2802
|
+
* if (isEntityIndex(node)) {
|
|
2803
|
+
* // 在这个花括号内,node 的类型是 EntityIndex 或者 EntityIndex 继承类型
|
|
2804
|
+
* }
|
|
2805
|
+
* ```
|
|
2806
|
+
*/
|
|
2807
|
+
export function isEntityIndex(node: unknown): node is EntityIndex {
|
|
2808
|
+
return (
|
|
2809
|
+
isBaseNode(node) &&
|
|
2810
|
+
(
|
|
2811
|
+
node.concept === 'EntityIndex'
|
|
2812
|
+
)
|
|
2813
|
+
);
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* 判断输入为 MetadataType 节点实例
|
|
2818
|
+
*
|
|
2819
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2820
|
+
* @description 等价于`instanceof`运算,MetadataType 节点没有继承类,此判断等价于`isStrictMetadataType`
|
|
2821
|
+
* @example
|
|
2822
|
+
* ```ts
|
|
2823
|
+
* if (isMetadataType(node)) {
|
|
2824
|
+
* // 在这个花括号内,node 的类型是 MetadataType 或者 MetadataType 继承类型
|
|
2825
|
+
* }
|
|
2826
|
+
* ```
|
|
2827
|
+
*/
|
|
2828
|
+
export function isMetadataType(node: unknown): node is MetadataType {
|
|
2829
|
+
return (
|
|
2830
|
+
isBaseNode(node) &&
|
|
2831
|
+
(
|
|
2832
|
+
node.concept === 'MetadataType'
|
|
2833
|
+
)
|
|
2834
|
+
);
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* 判断输入为 View 节点实例
|
|
2839
|
+
*
|
|
2840
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2841
|
+
* @description 等价于`instanceof`运算,View 节点没有继承类,此判断等价于`isStrictView`
|
|
2842
|
+
* @example
|
|
2843
|
+
* ```ts
|
|
2844
|
+
* if (isView(node)) {
|
|
2845
|
+
* // 在这个花括号内,node 的类型是 View 或者 View 继承类型
|
|
2846
|
+
* }
|
|
2847
|
+
* ```
|
|
2848
|
+
*/
|
|
2849
|
+
export function isView(node: unknown): node is View {
|
|
2850
|
+
return (
|
|
2851
|
+
isBaseNode(node) &&
|
|
2852
|
+
(
|
|
2853
|
+
node.concept === 'View'
|
|
2854
|
+
)
|
|
2855
|
+
);
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* 判断输入为 ViewElement 节点实例
|
|
2860
|
+
*
|
|
2861
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2862
|
+
* @description 等价于`instanceof`运算,ViewElement 节点没有继承类,此判断等价于`isStrictViewElement`
|
|
2863
|
+
* @example
|
|
2864
|
+
* ```ts
|
|
2865
|
+
* if (isViewElement(node)) {
|
|
2866
|
+
* // 在这个花括号内,node 的类型是 ViewElement 或者 ViewElement 继承类型
|
|
2867
|
+
* }
|
|
2868
|
+
* ```
|
|
2869
|
+
*/
|
|
2870
|
+
export function isViewElement(node: unknown): node is ViewElement {
|
|
2871
|
+
return (
|
|
2872
|
+
isBaseNode(node) &&
|
|
2873
|
+
(
|
|
2874
|
+
node.concept === 'ViewElement'
|
|
2875
|
+
)
|
|
2876
|
+
);
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* 判断输入为 BindAttribute 节点实例
|
|
2881
|
+
*
|
|
2882
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2883
|
+
* @description 等价于`instanceof`运算,BindAttribute 节点没有继承类,此判断等价于`isStrictBindAttribute`
|
|
2884
|
+
* @example
|
|
2885
|
+
* ```ts
|
|
2886
|
+
* if (isBindAttribute(node)) {
|
|
2887
|
+
* // 在这个花括号内,node 的类型是 BindAttribute 或者 BindAttribute 继承类型
|
|
2888
|
+
* }
|
|
2889
|
+
* ```
|
|
2890
|
+
*/
|
|
2891
|
+
export function isBindAttribute(node: unknown): node is BindAttribute {
|
|
2892
|
+
return (
|
|
2893
|
+
isBaseNode(node) &&
|
|
2894
|
+
(
|
|
2895
|
+
node.concept === 'BindAttribute'
|
|
2896
|
+
)
|
|
2897
|
+
);
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* 判断输入为 BindDirective 节点实例
|
|
2902
|
+
*
|
|
2903
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2904
|
+
* @description 等价于`instanceof`运算,BindDirective 节点没有继承类,此判断等价于`isStrictBindDirective`
|
|
2905
|
+
* @example
|
|
2906
|
+
* ```ts
|
|
2907
|
+
* if (isBindDirective(node)) {
|
|
2908
|
+
* // 在这个花括号内,node 的类型是 BindDirective 或者 BindDirective 继承类型
|
|
2909
|
+
* }
|
|
2910
|
+
* ```
|
|
2911
|
+
*/
|
|
2912
|
+
export function isBindDirective(node: unknown): node is BindDirective {
|
|
2913
|
+
return (
|
|
2914
|
+
isBaseNode(node) &&
|
|
2915
|
+
(
|
|
2916
|
+
node.concept === 'BindDirective'
|
|
2917
|
+
)
|
|
2918
|
+
);
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* 判断输入为 BindEvent 节点实例
|
|
2923
|
+
*
|
|
2924
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2925
|
+
* @description 等价于`instanceof`运算,BindEvent 节点没有继承类,此判断等价于`isStrictBindEvent`
|
|
2926
|
+
* @example
|
|
2927
|
+
* ```ts
|
|
2928
|
+
* if (isBindEvent(node)) {
|
|
2929
|
+
* // 在这个花括号内,node 的类型是 BindEvent 或者 BindEvent 继承类型
|
|
2930
|
+
* }
|
|
2931
|
+
* ```
|
|
2932
|
+
*/
|
|
2933
|
+
export function isBindEvent(node: unknown): node is BindEvent {
|
|
2934
|
+
return (
|
|
2935
|
+
isBaseNode(node) &&
|
|
2936
|
+
(
|
|
2937
|
+
node.concept === 'BindEvent'
|
|
2938
|
+
)
|
|
2939
|
+
);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
/**
|
|
2943
|
+
* 判断输入为 BindStyle 节点实例
|
|
2944
|
+
*
|
|
2945
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2946
|
+
* @description 等价于`instanceof`运算,BindStyle 节点没有继承类,此判断等价于`isStrictBindStyle`
|
|
2947
|
+
* @example
|
|
2948
|
+
* ```ts
|
|
2949
|
+
* if (isBindStyle(node)) {
|
|
2950
|
+
* // 在这个花括号内,node 的类型是 BindStyle 或者 BindStyle 继承类型
|
|
2951
|
+
* }
|
|
2952
|
+
* ```
|
|
2953
|
+
*/
|
|
2954
|
+
export function isBindStyle(node: unknown): node is BindStyle {
|
|
2955
|
+
return (
|
|
2956
|
+
isBaseNode(node) &&
|
|
2957
|
+
(
|
|
2958
|
+
node.concept === 'BindStyle'
|
|
2959
|
+
)
|
|
2960
|
+
);
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
/**
|
|
2964
|
+
* 判断输入为 ThemeVariable 节点实例
|
|
2965
|
+
*
|
|
2966
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2967
|
+
* @description 等价于`instanceof`运算,ThemeVariable 节点没有继承类,此判断等价于`isStrictThemeVariable`
|
|
2968
|
+
* @example
|
|
2969
|
+
* ```ts
|
|
2970
|
+
* if (isThemeVariable(node)) {
|
|
2971
|
+
* // 在这个花括号内,node 的类型是 ThemeVariable 或者 ThemeVariable 继承类型
|
|
2972
|
+
* }
|
|
2973
|
+
* ```
|
|
2974
|
+
*/
|
|
2975
|
+
export function isThemeVariable(node: unknown): node is ThemeVariable {
|
|
2976
|
+
return (
|
|
2977
|
+
isBaseNode(node) &&
|
|
2978
|
+
(
|
|
2979
|
+
node.concept === 'ThemeVariable'
|
|
2980
|
+
)
|
|
2981
|
+
);
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* 判断输入为 BaseSetter 节点实例
|
|
2986
|
+
*
|
|
2987
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2988
|
+
* @description 等价于`instanceof`运算
|
|
2989
|
+
* @example
|
|
2990
|
+
* ```ts
|
|
2991
|
+
* if (isBaseSetter(node)) {
|
|
2992
|
+
* // 在这个花括号内,node 的类型是 BaseSetter 或者 BaseSetter 继承类型
|
|
2993
|
+
* }
|
|
2994
|
+
* ```
|
|
2995
|
+
*/
|
|
2996
|
+
export function isBaseSetter(node: unknown): node is types.BaseSetterNode {
|
|
2997
|
+
return (
|
|
2998
|
+
isBaseNode(node) &&
|
|
2999
|
+
(
|
|
3000
|
+
node.concept === 'BaseSetter' ||
|
|
3001
|
+
node.concept === 'InputSetter' ||
|
|
3002
|
+
node.concept === 'SwitchSetter' ||
|
|
3003
|
+
node.concept === 'EnumSelectSetter' ||
|
|
3004
|
+
node.concept === 'CapsulesSetter' ||
|
|
3005
|
+
node.concept === 'NumberInputSetter' ||
|
|
3006
|
+
node.concept === 'IconSetter' ||
|
|
3007
|
+
node.concept === 'ImageSetter' ||
|
|
3008
|
+
node.concept === 'PropertySelectSetter'
|
|
3009
|
+
)
|
|
3010
|
+
);
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* 判断输入为 InputSetter 节点实例
|
|
3015
|
+
*
|
|
3016
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3017
|
+
* @description 等价于`instanceof`运算,InputSetter 节点没有继承类,此判断等价于`isStrictInputSetter`
|
|
3018
|
+
* @example
|
|
3019
|
+
* ```ts
|
|
3020
|
+
* if (isInputSetter(node)) {
|
|
3021
|
+
* // 在这个花括号内,node 的类型是 InputSetter 或者 InputSetter 继承类型
|
|
3022
|
+
* }
|
|
3023
|
+
* ```
|
|
3024
|
+
*/
|
|
3025
|
+
export function isInputSetter(node: unknown): node is InputSetter {
|
|
3026
|
+
return (
|
|
3027
|
+
isBaseNode(node) &&
|
|
3028
|
+
(
|
|
3029
|
+
node.concept === 'InputSetter'
|
|
3030
|
+
)
|
|
3031
|
+
);
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* 判断输入为 SwitchSetter 节点实例
|
|
3036
|
+
*
|
|
3037
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3038
|
+
* @description 等价于`instanceof`运算,SwitchSetter 节点没有继承类,此判断等价于`isStrictSwitchSetter`
|
|
3039
|
+
* @example
|
|
3040
|
+
* ```ts
|
|
3041
|
+
* if (isSwitchSetter(node)) {
|
|
3042
|
+
* // 在这个花括号内,node 的类型是 SwitchSetter 或者 SwitchSetter 继承类型
|
|
3043
|
+
* }
|
|
3044
|
+
* ```
|
|
3045
|
+
*/
|
|
3046
|
+
export function isSwitchSetter(node: unknown): node is SwitchSetter {
|
|
3047
|
+
return (
|
|
3048
|
+
isBaseNode(node) &&
|
|
3049
|
+
(
|
|
3050
|
+
node.concept === 'SwitchSetter'
|
|
3051
|
+
)
|
|
3052
|
+
);
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* 判断输入为 SetterOption 节点实例
|
|
3057
|
+
*
|
|
3058
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3059
|
+
* @description 等价于`instanceof`运算,SetterOption 节点没有继承类,此判断等价于`isStrictSetterOption`
|
|
3060
|
+
* @example
|
|
3061
|
+
* ```ts
|
|
3062
|
+
* if (isSetterOption(node)) {
|
|
3063
|
+
* // 在这个花括号内,node 的类型是 SetterOption 或者 SetterOption 继承类型
|
|
3064
|
+
* }
|
|
3065
|
+
* ```
|
|
3066
|
+
*/
|
|
3067
|
+
export function isSetterOption(node: unknown): node is SetterOption {
|
|
3068
|
+
return (
|
|
3069
|
+
isBaseNode(node) &&
|
|
3070
|
+
(
|
|
3071
|
+
node.concept === 'SetterOption'
|
|
3072
|
+
)
|
|
3073
|
+
);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* 判断输入为 EnumSelectSetter 节点实例
|
|
3078
|
+
*
|
|
3079
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3080
|
+
* @description 等价于`instanceof`运算,EnumSelectSetter 节点没有继承类,此判断等价于`isStrictEnumSelectSetter`
|
|
3081
|
+
* @example
|
|
3082
|
+
* ```ts
|
|
3083
|
+
* if (isEnumSelectSetter(node)) {
|
|
3084
|
+
* // 在这个花括号内,node 的类型是 EnumSelectSetter 或者 EnumSelectSetter 继承类型
|
|
3085
|
+
* }
|
|
3086
|
+
* ```
|
|
3087
|
+
*/
|
|
3088
|
+
export function isEnumSelectSetter(node: unknown): node is EnumSelectSetter {
|
|
3089
|
+
return (
|
|
3090
|
+
isBaseNode(node) &&
|
|
3091
|
+
(
|
|
3092
|
+
node.concept === 'EnumSelectSetter'
|
|
3093
|
+
)
|
|
3094
|
+
);
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
/**
|
|
3098
|
+
* 判断输入为 CapsulesSetter 节点实例
|
|
3099
|
+
*
|
|
3100
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3101
|
+
* @description 等价于`instanceof`运算,CapsulesSetter 节点没有继承类,此判断等价于`isStrictCapsulesSetter`
|
|
2575
3102
|
* @example
|
|
2576
3103
|
* ```ts
|
|
2577
|
-
* if (
|
|
2578
|
-
* // 在这个花括号内,node 的类型是
|
|
3104
|
+
* if (isCapsulesSetter(node)) {
|
|
3105
|
+
* // 在这个花括号内,node 的类型是 CapsulesSetter 或者 CapsulesSetter 继承类型
|
|
2579
3106
|
* }
|
|
2580
3107
|
* ```
|
|
2581
3108
|
*/
|
|
2582
|
-
export function
|
|
3109
|
+
export function isCapsulesSetter(node: unknown): node is CapsulesSetter {
|
|
2583
3110
|
return (
|
|
2584
3111
|
isBaseNode(node) &&
|
|
2585
3112
|
(
|
|
2586
|
-
node.concept === '
|
|
3113
|
+
node.concept === 'CapsulesSetter'
|
|
2587
3114
|
)
|
|
2588
3115
|
);
|
|
2589
3116
|
}
|
|
2590
3117
|
|
|
2591
3118
|
/**
|
|
2592
|
-
* 判断输入为
|
|
3119
|
+
* 判断输入为 NumberInputSetter 节点实例
|
|
2593
3120
|
*
|
|
2594
3121
|
* @description 包含节点类以及节点继承类的判断
|
|
2595
|
-
* @description 等价于`instanceof`运算,
|
|
3122
|
+
* @description 等价于`instanceof`运算,NumberInputSetter 节点没有继承类,此判断等价于`isStrictNumberInputSetter`
|
|
2596
3123
|
* @example
|
|
2597
3124
|
* ```ts
|
|
2598
|
-
* if (
|
|
2599
|
-
* // 在这个花括号内,node 的类型是
|
|
3125
|
+
* if (isNumberInputSetter(node)) {
|
|
3126
|
+
* // 在这个花括号内,node 的类型是 NumberInputSetter 或者 NumberInputSetter 继承类型
|
|
2600
3127
|
* }
|
|
2601
3128
|
* ```
|
|
2602
3129
|
*/
|
|
2603
|
-
export function
|
|
3130
|
+
export function isNumberInputSetter(node: unknown): node is NumberInputSetter {
|
|
2604
3131
|
return (
|
|
2605
3132
|
isBaseNode(node) &&
|
|
2606
3133
|
(
|
|
2607
|
-
node.concept === '
|
|
3134
|
+
node.concept === 'NumberInputSetter'
|
|
2608
3135
|
)
|
|
2609
3136
|
);
|
|
2610
3137
|
}
|
|
2611
3138
|
|
|
2612
3139
|
/**
|
|
2613
|
-
* 判断输入为
|
|
3140
|
+
* 判断输入为 IconSetter 节点实例
|
|
2614
3141
|
*
|
|
2615
3142
|
* @description 包含节点类以及节点继承类的判断
|
|
2616
|
-
* @description 等价于`instanceof`运算,
|
|
3143
|
+
* @description 等价于`instanceof`运算,IconSetter 节点没有继承类,此判断等价于`isStrictIconSetter`
|
|
2617
3144
|
* @example
|
|
2618
3145
|
* ```ts
|
|
2619
|
-
* if (
|
|
2620
|
-
* // 在这个花括号内,node 的类型是
|
|
3146
|
+
* if (isIconSetter(node)) {
|
|
3147
|
+
* // 在这个花括号内,node 的类型是 IconSetter 或者 IconSetter 继承类型
|
|
2621
3148
|
* }
|
|
2622
3149
|
* ```
|
|
2623
3150
|
*/
|
|
2624
|
-
export function
|
|
3151
|
+
export function isIconSetter(node: unknown): node is IconSetter {
|
|
2625
3152
|
return (
|
|
2626
3153
|
isBaseNode(node) &&
|
|
2627
3154
|
(
|
|
2628
|
-
node.concept === '
|
|
3155
|
+
node.concept === 'IconSetter'
|
|
2629
3156
|
)
|
|
2630
3157
|
);
|
|
2631
3158
|
}
|
|
2632
3159
|
|
|
2633
3160
|
/**
|
|
2634
|
-
* 判断输入为
|
|
3161
|
+
* 判断输入为 ImageSetter 节点实例
|
|
2635
3162
|
*
|
|
2636
3163
|
* @description 包含节点类以及节点继承类的判断
|
|
2637
|
-
* @description 等价于`instanceof`运算,
|
|
3164
|
+
* @description 等价于`instanceof`运算,ImageSetter 节点没有继承类,此判断等价于`isStrictImageSetter`
|
|
2638
3165
|
* @example
|
|
2639
3166
|
* ```ts
|
|
2640
|
-
* if (
|
|
2641
|
-
* // 在这个花括号内,node 的类型是
|
|
3167
|
+
* if (isImageSetter(node)) {
|
|
3168
|
+
* // 在这个花括号内,node 的类型是 ImageSetter 或者 ImageSetter 继承类型
|
|
2642
3169
|
* }
|
|
2643
3170
|
* ```
|
|
2644
3171
|
*/
|
|
2645
|
-
export function
|
|
3172
|
+
export function isImageSetter(node: unknown): node is ImageSetter {
|
|
2646
3173
|
return (
|
|
2647
3174
|
isBaseNode(node) &&
|
|
2648
3175
|
(
|
|
2649
|
-
node.concept === '
|
|
3176
|
+
node.concept === 'ImageSetter'
|
|
2650
3177
|
)
|
|
2651
3178
|
);
|
|
2652
3179
|
}
|
|
2653
3180
|
|
|
2654
3181
|
/**
|
|
2655
|
-
* 判断输入为
|
|
3182
|
+
* 判断输入为 PropertySelectSetter 节点实例
|
|
2656
3183
|
*
|
|
2657
3184
|
* @description 包含节点类以及节点继承类的判断
|
|
2658
|
-
* @description 等价于`instanceof`运算,
|
|
3185
|
+
* @description 等价于`instanceof`运算,PropertySelectSetter 节点没有继承类,此判断等价于`isStrictPropertySelectSetter`
|
|
2659
3186
|
* @example
|
|
2660
3187
|
* ```ts
|
|
2661
|
-
* if (
|
|
2662
|
-
* // 在这个花括号内,node 的类型是
|
|
3188
|
+
* if (isPropertySelectSetter(node)) {
|
|
3189
|
+
* // 在这个花括号内,node 的类型是 PropertySelectSetter 或者 PropertySelectSetter 继承类型
|
|
2663
3190
|
* }
|
|
2664
3191
|
* ```
|
|
2665
3192
|
*/
|
|
2666
|
-
export function
|
|
3193
|
+
export function isPropertySelectSetter(node: unknown): node is PropertySelectSetter {
|
|
2667
3194
|
return (
|
|
2668
3195
|
isBaseNode(node) &&
|
|
2669
3196
|
(
|
|
2670
|
-
node.concept === '
|
|
3197
|
+
node.concept === 'PropertySelectSetter'
|
|
2671
3198
|
)
|
|
2672
3199
|
);
|
|
2673
3200
|
}
|
|
2674
3201
|
|
|
2675
3202
|
/**
|
|
2676
|
-
* 判断输入为
|
|
3203
|
+
* 判断输入为 ViewComponentDeclaration 节点实例
|
|
2677
3204
|
*
|
|
2678
3205
|
* @description 包含节点类以及节点继承类的判断
|
|
2679
|
-
* @description 等价于`instanceof`运算,
|
|
3206
|
+
* @description 等价于`instanceof`运算,ViewComponentDeclaration 节点没有继承类,此判断等价于`isStrictViewComponentDeclaration`
|
|
2680
3207
|
* @example
|
|
2681
3208
|
* ```ts
|
|
2682
|
-
* if (
|
|
2683
|
-
* // 在这个花括号内,node 的类型是
|
|
3209
|
+
* if (isViewComponentDeclaration(node)) {
|
|
3210
|
+
* // 在这个花括号内,node 的类型是 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
|
|
2684
3211
|
* }
|
|
2685
3212
|
* ```
|
|
2686
3213
|
*/
|
|
2687
|
-
export function
|
|
3214
|
+
export function isViewComponentDeclaration(node: unknown): node is ViewComponentDeclaration {
|
|
2688
3215
|
return (
|
|
2689
3216
|
isBaseNode(node) &&
|
|
2690
3217
|
(
|
|
2691
|
-
node.concept === '
|
|
3218
|
+
node.concept === 'ViewComponentDeclaration'
|
|
2692
3219
|
)
|
|
2693
3220
|
);
|
|
2694
3221
|
}
|
|
2695
3222
|
|
|
2696
3223
|
/**
|
|
2697
|
-
* 判断输入为
|
|
3224
|
+
* 判断输入为 BusinessComponent 节点实例
|
|
2698
3225
|
*
|
|
2699
3226
|
* @description 包含节点类以及节点继承类的判断
|
|
2700
|
-
* @description 等价于`instanceof`运算,
|
|
3227
|
+
* @description 等价于`instanceof`运算,BusinessComponent 节点没有继承类,此判断等价于`isStrictBusinessComponent`
|
|
2701
3228
|
* @example
|
|
2702
3229
|
* ```ts
|
|
2703
|
-
* if (
|
|
2704
|
-
* // 在这个花括号内,node 的类型是
|
|
3230
|
+
* if (isBusinessComponent(node)) {
|
|
3231
|
+
* // 在这个花括号内,node 的类型是 BusinessComponent 或者 BusinessComponent 继承类型
|
|
2705
3232
|
* }
|
|
2706
3233
|
* ```
|
|
2707
3234
|
*/
|
|
2708
|
-
export function
|
|
3235
|
+
export function isBusinessComponent(node: unknown): node is BusinessComponent {
|
|
2709
3236
|
return (
|
|
2710
3237
|
isBaseNode(node) &&
|
|
2711
3238
|
(
|
|
2712
|
-
node.concept === '
|
|
3239
|
+
node.concept === 'BusinessComponent'
|
|
2713
3240
|
)
|
|
2714
3241
|
);
|
|
2715
3242
|
}
|
|
2716
3243
|
|
|
2717
3244
|
/**
|
|
2718
|
-
* 判断输入为
|
|
3245
|
+
* 判断输入为 Attribute 节点实例
|
|
2719
3246
|
*
|
|
2720
3247
|
* @description 包含节点类以及节点继承类的判断
|
|
2721
|
-
* @description 等价于`instanceof`运算,
|
|
3248
|
+
* @description 等价于`instanceof`运算,Attribute 节点没有继承类,此判断等价于`isStrictAttribute`
|
|
2722
3249
|
* @example
|
|
2723
3250
|
* ```ts
|
|
2724
|
-
* if (
|
|
2725
|
-
* // 在这个花括号内,node 的类型是
|
|
3251
|
+
* if (isAttribute(node)) {
|
|
3252
|
+
* // 在这个花括号内,node 的类型是 Attribute 或者 Attribute 继承类型
|
|
2726
3253
|
* }
|
|
2727
3254
|
* ```
|
|
2728
3255
|
*/
|
|
2729
|
-
export function
|
|
3256
|
+
export function isAttribute(node: unknown): node is Attribute {
|
|
2730
3257
|
return (
|
|
2731
3258
|
isBaseNode(node) &&
|
|
2732
3259
|
(
|
|
2733
|
-
node.concept === '
|
|
3260
|
+
node.concept === 'Attribute'
|
|
2734
3261
|
)
|
|
2735
3262
|
);
|
|
2736
3263
|
}
|
|
2737
3264
|
|
|
2738
3265
|
/**
|
|
2739
|
-
* 判断输入为
|
|
3266
|
+
* 判断输入为 Event 节点实例
|
|
2740
3267
|
*
|
|
2741
3268
|
* @description 包含节点类以及节点继承类的判断
|
|
2742
|
-
* @description 等价于`instanceof`运算,
|
|
3269
|
+
* @description 等价于`instanceof`运算,Event 节点没有继承类,此判断等价于`isStrictEvent`
|
|
2743
3270
|
* @example
|
|
2744
3271
|
* ```ts
|
|
2745
|
-
* if (
|
|
2746
|
-
* // 在这个花括号内,node 的类型是
|
|
3272
|
+
* if (isEvent(node)) {
|
|
3273
|
+
* // 在这个花括号内,node 的类型是 Event 或者 Event 继承类型
|
|
2747
3274
|
* }
|
|
2748
3275
|
* ```
|
|
2749
3276
|
*/
|
|
2750
|
-
export function
|
|
3277
|
+
export function isEvent(node: unknown): node is Event {
|
|
2751
3278
|
return (
|
|
2752
3279
|
isBaseNode(node) &&
|
|
2753
3280
|
(
|
|
2754
|
-
node.concept === '
|
|
3281
|
+
node.concept === 'Event'
|
|
2755
3282
|
)
|
|
2756
3283
|
);
|
|
2757
3284
|
}
|
|
2758
3285
|
|
|
2759
3286
|
/**
|
|
2760
|
-
* 判断输入为
|
|
3287
|
+
* 判断输入为 PropDeclaration 节点实例
|
|
2761
3288
|
*
|
|
2762
3289
|
* @description 包含节点类以及节点继承类的判断
|
|
2763
|
-
* @description 等价于`instanceof`运算,
|
|
3290
|
+
* @description 等价于`instanceof`运算,PropDeclaration 节点没有继承类,此判断等价于`isStrictPropDeclaration`
|
|
2764
3291
|
* @example
|
|
2765
3292
|
* ```ts
|
|
2766
|
-
* if (
|
|
2767
|
-
* // 在这个花括号内,node 的类型是
|
|
3293
|
+
* if (isPropDeclaration(node)) {
|
|
3294
|
+
* // 在这个花括号内,node 的类型是 PropDeclaration 或者 PropDeclaration 继承类型
|
|
2768
3295
|
* }
|
|
2769
3296
|
* ```
|
|
2770
3297
|
*/
|
|
2771
|
-
export function
|
|
3298
|
+
export function isPropDeclaration(node: unknown): node is PropDeclaration {
|
|
2772
3299
|
return (
|
|
2773
3300
|
isBaseNode(node) &&
|
|
2774
3301
|
(
|
|
2775
|
-
node.concept === '
|
|
3302
|
+
node.concept === 'PropDeclaration'
|
|
2776
3303
|
)
|
|
2777
3304
|
);
|
|
2778
3305
|
}
|
|
2779
3306
|
|
|
2780
3307
|
/**
|
|
2781
|
-
* 判断输入为
|
|
3308
|
+
* 判断输入为 EventDeclaration 节点实例
|
|
2782
3309
|
*
|
|
2783
3310
|
* @description 包含节点类以及节点继承类的判断
|
|
2784
|
-
* @description 等价于`instanceof`运算,
|
|
3311
|
+
* @description 等价于`instanceof`运算,EventDeclaration 节点没有继承类,此判断等价于`isStrictEventDeclaration`
|
|
2785
3312
|
* @example
|
|
2786
3313
|
* ```ts
|
|
2787
|
-
* if (
|
|
2788
|
-
* // 在这个花括号内,node 的类型是
|
|
3314
|
+
* if (isEventDeclaration(node)) {
|
|
3315
|
+
* // 在这个花括号内,node 的类型是 EventDeclaration 或者 EventDeclaration 继承类型
|
|
2789
3316
|
* }
|
|
2790
3317
|
* ```
|
|
2791
3318
|
*/
|
|
2792
|
-
export function
|
|
3319
|
+
export function isEventDeclaration(node: unknown): node is EventDeclaration {
|
|
2793
3320
|
return (
|
|
2794
3321
|
isBaseNode(node) &&
|
|
2795
3322
|
(
|
|
2796
|
-
node.concept === '
|
|
3323
|
+
node.concept === 'EventDeclaration'
|
|
2797
3324
|
)
|
|
2798
3325
|
);
|
|
2799
3326
|
}
|
|
2800
3327
|
|
|
2801
3328
|
/**
|
|
2802
|
-
* 判断输入为
|
|
3329
|
+
* 判断输入为 SlotDeclaration 节点实例
|
|
2803
3330
|
*
|
|
2804
3331
|
* @description 包含节点类以及节点继承类的判断
|
|
2805
|
-
* @description 等价于`instanceof`运算,
|
|
3332
|
+
* @description 等价于`instanceof`运算,SlotDeclaration 节点没有继承类,此判断等价于`isStrictSlotDeclaration`
|
|
2806
3333
|
* @example
|
|
2807
3334
|
* ```ts
|
|
2808
|
-
* if (
|
|
2809
|
-
* // 在这个花括号内,node 的类型是
|
|
3335
|
+
* if (isSlotDeclaration(node)) {
|
|
3336
|
+
* // 在这个花括号内,node 的类型是 SlotDeclaration 或者 SlotDeclaration 继承类型
|
|
2810
3337
|
* }
|
|
2811
3338
|
* ```
|
|
2812
3339
|
*/
|
|
2813
|
-
export function
|
|
3340
|
+
export function isSlotDeclaration(node: unknown): node is SlotDeclaration {
|
|
2814
3341
|
return (
|
|
2815
3342
|
isBaseNode(node) &&
|
|
2816
3343
|
(
|
|
2817
|
-
node.concept === '
|
|
3344
|
+
node.concept === 'SlotDeclaration'
|
|
2818
3345
|
)
|
|
2819
3346
|
);
|
|
2820
3347
|
}
|
|
2821
3348
|
|
|
2822
3349
|
/**
|
|
2823
|
-
* 判断输入为
|
|
3350
|
+
* 判断输入为 LogicDeclaration 节点实例
|
|
2824
3351
|
*
|
|
2825
3352
|
* @description 包含节点类以及节点继承类的判断
|
|
2826
|
-
* @description 等价于`instanceof`运算,
|
|
3353
|
+
* @description 等价于`instanceof`运算,LogicDeclaration 节点没有继承类,此判断等价于`isStrictLogicDeclaration`
|
|
2827
3354
|
* @example
|
|
2828
3355
|
* ```ts
|
|
2829
|
-
* if (
|
|
2830
|
-
* // 在这个花括号内,node 的类型是
|
|
3356
|
+
* if (isLogicDeclaration(node)) {
|
|
3357
|
+
* // 在这个花括号内,node 的类型是 LogicDeclaration 或者 LogicDeclaration 继承类型
|
|
2831
3358
|
* }
|
|
2832
3359
|
* ```
|
|
2833
3360
|
*/
|
|
2834
|
-
export function
|
|
3361
|
+
export function isLogicDeclaration(node: unknown): node is LogicDeclaration {
|
|
2835
3362
|
return (
|
|
2836
3363
|
isBaseNode(node) &&
|
|
2837
3364
|
(
|
|
2838
|
-
node.concept === '
|
|
3365
|
+
node.concept === 'LogicDeclaration'
|
|
2839
3366
|
)
|
|
2840
3367
|
);
|
|
2841
3368
|
}
|
|
@@ -4933,7 +5460,7 @@ export function isFrontendLibrary(node: unknown): node is FrontendLibrary {
|
|
|
4933
5460
|
* 判断输入为 ViewBlock 节点实例
|
|
4934
5461
|
*
|
|
4935
5462
|
* @description 包含节点类以及节点继承类的判断
|
|
4936
|
-
* @description 等价于`instanceof
|
|
5463
|
+
* @description 等价于`instanceof`运算
|
|
4937
5464
|
* @example
|
|
4938
5465
|
* ```ts
|
|
4939
5466
|
* if (isViewBlock(node)) {
|
|
@@ -4941,11 +5468,33 @@ export function isFrontendLibrary(node: unknown): node is FrontendLibrary {
|
|
|
4941
5468
|
* }
|
|
4942
5469
|
* ```
|
|
4943
5470
|
*/
|
|
4944
|
-
export function isViewBlock(node: unknown): node is
|
|
5471
|
+
export function isViewBlock(node: unknown): node is types.ViewBlockNode {
|
|
5472
|
+
return (
|
|
5473
|
+
isBaseNode(node) &&
|
|
5474
|
+
(
|
|
5475
|
+
node.concept === 'ViewBlock' ||
|
|
5476
|
+
node.concept === 'ViewBlockWithImage'
|
|
5477
|
+
)
|
|
5478
|
+
);
|
|
5479
|
+
}
|
|
5480
|
+
|
|
5481
|
+
/**
|
|
5482
|
+
* 判断输入为 ViewBlockWithImage 节点实例
|
|
5483
|
+
*
|
|
5484
|
+
* @description 包含节点类以及节点继承类的判断
|
|
5485
|
+
* @description 等价于`instanceof`运算,ViewBlockWithImage 节点没有继承类,此判断等价于`isStrictViewBlockWithImage`
|
|
5486
|
+
* @example
|
|
5487
|
+
* ```ts
|
|
5488
|
+
* if (isViewBlockWithImage(node)) {
|
|
5489
|
+
* // 在这个花括号内,node 的类型是 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
|
|
5490
|
+
* }
|
|
5491
|
+
* ```
|
|
5492
|
+
*/
|
|
5493
|
+
export function isViewBlockWithImage(node: unknown): node is ViewBlockWithImage {
|
|
4945
5494
|
return (
|
|
4946
5495
|
isBaseNode(node) &&
|
|
4947
5496
|
(
|
|
4948
|
-
node.concept === '
|
|
5497
|
+
node.concept === 'ViewBlockWithImage'
|
|
4949
5498
|
)
|
|
4950
5499
|
);
|
|
4951
5500
|
}
|
|
@@ -5478,150 +6027,320 @@ export function assertStrictEntityProperty(node: unknown): asserts node is Entit
|
|
|
5478
6027
|
* @description 仅断言节点本身,不包含继承类
|
|
5479
6028
|
* @example
|
|
5480
6029
|
* ```ts
|
|
5481
|
-
* assertStrictEntityIndex(node);
|
|
5482
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EntityIndex 类型
|
|
6030
|
+
* assertStrictEntityIndex(node);
|
|
6031
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EntityIndex 类型
|
|
6032
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6033
|
+
* ```
|
|
6034
|
+
*/
|
|
6035
|
+
export function assertStrictEntityIndex(node: unknown): asserts node is EntityIndex {
|
|
6036
|
+
if (!isStrictEntityIndex(node)) {
|
|
6037
|
+
throw new Error(`EntityIndex 节点严格断言失败`);
|
|
6038
|
+
}
|
|
6039
|
+
}
|
|
6040
|
+
|
|
6041
|
+
/**
|
|
6042
|
+
* 严格断言为 MetadataType 节点
|
|
6043
|
+
*
|
|
6044
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6045
|
+
* @example
|
|
6046
|
+
* ```ts
|
|
6047
|
+
* assertStrictMetadataType(node);
|
|
6048
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MetadataType 类型
|
|
6049
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6050
|
+
* ```
|
|
6051
|
+
*/
|
|
6052
|
+
export function assertStrictMetadataType(node: unknown): asserts node is MetadataType {
|
|
6053
|
+
if (!isStrictMetadataType(node)) {
|
|
6054
|
+
throw new Error(`MetadataType 节点严格断言失败`);
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6058
|
+
/**
|
|
6059
|
+
* 严格断言为 View 节点
|
|
6060
|
+
*
|
|
6061
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6062
|
+
* @example
|
|
6063
|
+
* ```ts
|
|
6064
|
+
* assertStrictView(node);
|
|
6065
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 View 类型
|
|
6066
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6067
|
+
* ```
|
|
6068
|
+
*/
|
|
6069
|
+
export function assertStrictView(node: unknown): asserts node is View {
|
|
6070
|
+
if (!isStrictView(node)) {
|
|
6071
|
+
throw new Error(`View 节点严格断言失败`);
|
|
6072
|
+
}
|
|
6073
|
+
}
|
|
6074
|
+
|
|
6075
|
+
/**
|
|
6076
|
+
* 严格断言为 ViewElement 节点
|
|
6077
|
+
*
|
|
6078
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6079
|
+
* @example
|
|
6080
|
+
* ```ts
|
|
6081
|
+
* assertStrictViewElement(node);
|
|
6082
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewElement 类型
|
|
6083
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6084
|
+
* ```
|
|
6085
|
+
*/
|
|
6086
|
+
export function assertStrictViewElement(node: unknown): asserts node is ViewElement {
|
|
6087
|
+
if (!isStrictViewElement(node)) {
|
|
6088
|
+
throw new Error(`ViewElement 节点严格断言失败`);
|
|
6089
|
+
}
|
|
6090
|
+
}
|
|
6091
|
+
|
|
6092
|
+
/**
|
|
6093
|
+
* 严格断言为 BindAttribute 节点
|
|
6094
|
+
*
|
|
6095
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6096
|
+
* @example
|
|
6097
|
+
* ```ts
|
|
6098
|
+
* assertStrictBindAttribute(node);
|
|
6099
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindAttribute 类型
|
|
6100
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6101
|
+
* ```
|
|
6102
|
+
*/
|
|
6103
|
+
export function assertStrictBindAttribute(node: unknown): asserts node is BindAttribute {
|
|
6104
|
+
if (!isStrictBindAttribute(node)) {
|
|
6105
|
+
throw new Error(`BindAttribute 节点严格断言失败`);
|
|
6106
|
+
}
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
/**
|
|
6110
|
+
* 严格断言为 BindDirective 节点
|
|
6111
|
+
*
|
|
6112
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6113
|
+
* @example
|
|
6114
|
+
* ```ts
|
|
6115
|
+
* assertStrictBindDirective(node);
|
|
6116
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindDirective 类型
|
|
6117
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6118
|
+
* ```
|
|
6119
|
+
*/
|
|
6120
|
+
export function assertStrictBindDirective(node: unknown): asserts node is BindDirective {
|
|
6121
|
+
if (!isStrictBindDirective(node)) {
|
|
6122
|
+
throw new Error(`BindDirective 节点严格断言失败`);
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
/**
|
|
6127
|
+
* 严格断言为 BindEvent 节点
|
|
6128
|
+
*
|
|
6129
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6130
|
+
* @example
|
|
6131
|
+
* ```ts
|
|
6132
|
+
* assertStrictBindEvent(node);
|
|
6133
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindEvent 类型
|
|
6134
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6135
|
+
* ```
|
|
6136
|
+
*/
|
|
6137
|
+
export function assertStrictBindEvent(node: unknown): asserts node is BindEvent {
|
|
6138
|
+
if (!isStrictBindEvent(node)) {
|
|
6139
|
+
throw new Error(`BindEvent 节点严格断言失败`);
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
|
|
6143
|
+
/**
|
|
6144
|
+
* 严格断言为 BindStyle 节点
|
|
6145
|
+
*
|
|
6146
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6147
|
+
* @example
|
|
6148
|
+
* ```ts
|
|
6149
|
+
* assertStrictBindStyle(node);
|
|
6150
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindStyle 类型
|
|
6151
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6152
|
+
* ```
|
|
6153
|
+
*/
|
|
6154
|
+
export function assertStrictBindStyle(node: unknown): asserts node is BindStyle {
|
|
6155
|
+
if (!isStrictBindStyle(node)) {
|
|
6156
|
+
throw new Error(`BindStyle 节点严格断言失败`);
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6160
|
+
/**
|
|
6161
|
+
* 严格断言为 ThemeVariable 节点
|
|
6162
|
+
*
|
|
6163
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6164
|
+
* @example
|
|
6165
|
+
* ```ts
|
|
6166
|
+
* assertStrictThemeVariable(node);
|
|
6167
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 类型
|
|
6168
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6169
|
+
* ```
|
|
6170
|
+
*/
|
|
6171
|
+
export function assertStrictThemeVariable(node: unknown): asserts node is ThemeVariable {
|
|
6172
|
+
if (!isStrictThemeVariable(node)) {
|
|
6173
|
+
throw new Error(`ThemeVariable 节点严格断言失败`);
|
|
6174
|
+
}
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
/**
|
|
6178
|
+
* 严格断言为 InputSetter 节点
|
|
6179
|
+
*
|
|
6180
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6181
|
+
* @example
|
|
6182
|
+
* ```ts
|
|
6183
|
+
* assertStrictInputSetter(node);
|
|
6184
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 类型
|
|
6185
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6186
|
+
* ```
|
|
6187
|
+
*/
|
|
6188
|
+
export function assertStrictInputSetter(node: unknown): asserts node is InputSetter {
|
|
6189
|
+
if (!isStrictInputSetter(node)) {
|
|
6190
|
+
throw new Error(`InputSetter 节点严格断言失败`);
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
|
|
6194
|
+
/**
|
|
6195
|
+
* 严格断言为 SwitchSetter 节点
|
|
6196
|
+
*
|
|
6197
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6198
|
+
* @example
|
|
6199
|
+
* ```ts
|
|
6200
|
+
* assertStrictSwitchSetter(node);
|
|
6201
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 类型
|
|
5483
6202
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5484
6203
|
* ```
|
|
5485
6204
|
*/
|
|
5486
|
-
export function
|
|
5487
|
-
if (!
|
|
5488
|
-
throw new Error(`
|
|
6205
|
+
export function assertStrictSwitchSetter(node: unknown): asserts node is SwitchSetter {
|
|
6206
|
+
if (!isStrictSwitchSetter(node)) {
|
|
6207
|
+
throw new Error(`SwitchSetter 节点严格断言失败`);
|
|
5489
6208
|
}
|
|
5490
6209
|
}
|
|
5491
6210
|
|
|
5492
6211
|
/**
|
|
5493
|
-
* 严格断言为
|
|
6212
|
+
* 严格断言为 SetterOption 节点
|
|
5494
6213
|
*
|
|
5495
6214
|
* @description 仅断言节点本身,不包含继承类
|
|
5496
6215
|
* @example
|
|
5497
6216
|
* ```ts
|
|
5498
|
-
*
|
|
5499
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6217
|
+
* assertStrictSetterOption(node);
|
|
6218
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 类型
|
|
5500
6219
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5501
6220
|
* ```
|
|
5502
6221
|
*/
|
|
5503
|
-
export function
|
|
5504
|
-
if (!
|
|
5505
|
-
throw new Error(`
|
|
6222
|
+
export function assertStrictSetterOption(node: unknown): asserts node is SetterOption {
|
|
6223
|
+
if (!isStrictSetterOption(node)) {
|
|
6224
|
+
throw new Error(`SetterOption 节点严格断言失败`);
|
|
5506
6225
|
}
|
|
5507
6226
|
}
|
|
5508
6227
|
|
|
5509
6228
|
/**
|
|
5510
|
-
* 严格断言为
|
|
6229
|
+
* 严格断言为 EnumSelectSetter 节点
|
|
5511
6230
|
*
|
|
5512
6231
|
* @description 仅断言节点本身,不包含继承类
|
|
5513
6232
|
* @example
|
|
5514
6233
|
* ```ts
|
|
5515
|
-
*
|
|
5516
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6234
|
+
* assertStrictEnumSelectSetter(node);
|
|
6235
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 类型
|
|
5517
6236
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5518
6237
|
* ```
|
|
5519
6238
|
*/
|
|
5520
|
-
export function
|
|
5521
|
-
if (!
|
|
5522
|
-
throw new Error(`
|
|
6239
|
+
export function assertStrictEnumSelectSetter(node: unknown): asserts node is EnumSelectSetter {
|
|
6240
|
+
if (!isStrictEnumSelectSetter(node)) {
|
|
6241
|
+
throw new Error(`EnumSelectSetter 节点严格断言失败`);
|
|
5523
6242
|
}
|
|
5524
6243
|
}
|
|
5525
6244
|
|
|
5526
6245
|
/**
|
|
5527
|
-
* 严格断言为
|
|
6246
|
+
* 严格断言为 CapsulesSetter 节点
|
|
5528
6247
|
*
|
|
5529
6248
|
* @description 仅断言节点本身,不包含继承类
|
|
5530
6249
|
* @example
|
|
5531
6250
|
* ```ts
|
|
5532
|
-
*
|
|
5533
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6251
|
+
* assertStrictCapsulesSetter(node);
|
|
6252
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 类型
|
|
5534
6253
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5535
6254
|
* ```
|
|
5536
6255
|
*/
|
|
5537
|
-
export function
|
|
5538
|
-
if (!
|
|
5539
|
-
throw new Error(`
|
|
6256
|
+
export function assertStrictCapsulesSetter(node: unknown): asserts node is CapsulesSetter {
|
|
6257
|
+
if (!isStrictCapsulesSetter(node)) {
|
|
6258
|
+
throw new Error(`CapsulesSetter 节点严格断言失败`);
|
|
5540
6259
|
}
|
|
5541
6260
|
}
|
|
5542
6261
|
|
|
5543
6262
|
/**
|
|
5544
|
-
* 严格断言为
|
|
6263
|
+
* 严格断言为 NumberInputSetter 节点
|
|
5545
6264
|
*
|
|
5546
6265
|
* @description 仅断言节点本身,不包含继承类
|
|
5547
6266
|
* @example
|
|
5548
6267
|
* ```ts
|
|
5549
|
-
*
|
|
5550
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6268
|
+
* assertStrictNumberInputSetter(node);
|
|
6269
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 类型
|
|
5551
6270
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5552
6271
|
* ```
|
|
5553
6272
|
*/
|
|
5554
|
-
export function
|
|
5555
|
-
if (!
|
|
5556
|
-
throw new Error(`
|
|
6273
|
+
export function assertStrictNumberInputSetter(node: unknown): asserts node is NumberInputSetter {
|
|
6274
|
+
if (!isStrictNumberInputSetter(node)) {
|
|
6275
|
+
throw new Error(`NumberInputSetter 节点严格断言失败`);
|
|
5557
6276
|
}
|
|
5558
6277
|
}
|
|
5559
6278
|
|
|
5560
6279
|
/**
|
|
5561
|
-
* 严格断言为
|
|
6280
|
+
* 严格断言为 IconSetter 节点
|
|
5562
6281
|
*
|
|
5563
6282
|
* @description 仅断言节点本身,不包含继承类
|
|
5564
6283
|
* @example
|
|
5565
6284
|
* ```ts
|
|
5566
|
-
*
|
|
5567
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6285
|
+
* assertStrictIconSetter(node);
|
|
6286
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 类型
|
|
5568
6287
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5569
6288
|
* ```
|
|
5570
6289
|
*/
|
|
5571
|
-
export function
|
|
5572
|
-
if (!
|
|
5573
|
-
throw new Error(`
|
|
6290
|
+
export function assertStrictIconSetter(node: unknown): asserts node is IconSetter {
|
|
6291
|
+
if (!isStrictIconSetter(node)) {
|
|
6292
|
+
throw new Error(`IconSetter 节点严格断言失败`);
|
|
5574
6293
|
}
|
|
5575
6294
|
}
|
|
5576
6295
|
|
|
5577
6296
|
/**
|
|
5578
|
-
* 严格断言为
|
|
6297
|
+
* 严格断言为 ImageSetter 节点
|
|
5579
6298
|
*
|
|
5580
6299
|
* @description 仅断言节点本身,不包含继承类
|
|
5581
6300
|
* @example
|
|
5582
6301
|
* ```ts
|
|
5583
|
-
*
|
|
5584
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6302
|
+
* assertStrictImageSetter(node);
|
|
6303
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 类型
|
|
5585
6304
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5586
6305
|
* ```
|
|
5587
6306
|
*/
|
|
5588
|
-
export function
|
|
5589
|
-
if (!
|
|
5590
|
-
throw new Error(`
|
|
6307
|
+
export function assertStrictImageSetter(node: unknown): asserts node is ImageSetter {
|
|
6308
|
+
if (!isStrictImageSetter(node)) {
|
|
6309
|
+
throw new Error(`ImageSetter 节点严格断言失败`);
|
|
5591
6310
|
}
|
|
5592
6311
|
}
|
|
5593
6312
|
|
|
5594
6313
|
/**
|
|
5595
|
-
* 严格断言为
|
|
6314
|
+
* 严格断言为 PropertySelectSetter 节点
|
|
5596
6315
|
*
|
|
5597
6316
|
* @description 仅断言节点本身,不包含继承类
|
|
5598
6317
|
* @example
|
|
5599
6318
|
* ```ts
|
|
5600
|
-
*
|
|
5601
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6319
|
+
* assertStrictPropertySelectSetter(node);
|
|
6320
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 类型
|
|
5602
6321
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5603
6322
|
* ```
|
|
5604
6323
|
*/
|
|
5605
|
-
export function
|
|
5606
|
-
if (!
|
|
5607
|
-
throw new Error(`
|
|
6324
|
+
export function assertStrictPropertySelectSetter(node: unknown): asserts node is PropertySelectSetter {
|
|
6325
|
+
if (!isStrictPropertySelectSetter(node)) {
|
|
6326
|
+
throw new Error(`PropertySelectSetter 节点严格断言失败`);
|
|
5608
6327
|
}
|
|
5609
6328
|
}
|
|
5610
6329
|
|
|
5611
6330
|
/**
|
|
5612
|
-
* 严格断言为
|
|
6331
|
+
* 严格断言为 ViewComponentDeclaration 节点
|
|
5613
6332
|
*
|
|
5614
6333
|
* @description 仅断言节点本身,不包含继承类
|
|
5615
6334
|
* @example
|
|
5616
6335
|
* ```ts
|
|
5617
|
-
*
|
|
5618
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6336
|
+
* assertStrictViewComponentDeclaration(node);
|
|
6337
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 类型
|
|
5619
6338
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5620
6339
|
* ```
|
|
5621
6340
|
*/
|
|
5622
|
-
export function
|
|
5623
|
-
if (!
|
|
5624
|
-
throw new Error(`
|
|
6341
|
+
export function assertStrictViewComponentDeclaration(node: unknown): asserts node is ViewComponentDeclaration {
|
|
6342
|
+
if (!isStrictViewComponentDeclaration(node)) {
|
|
6343
|
+
throw new Error(`ViewComponentDeclaration 节点严格断言失败`);
|
|
5625
6344
|
}
|
|
5626
6345
|
}
|
|
5627
6346
|
|
|
@@ -5677,19 +6396,70 @@ export function assertStrictEvent(node: unknown): asserts node is Event {
|
|
|
5677
6396
|
}
|
|
5678
6397
|
|
|
5679
6398
|
/**
|
|
5680
|
-
* 严格断言为
|
|
6399
|
+
* 严格断言为 PropDeclaration 节点
|
|
6400
|
+
*
|
|
6401
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6402
|
+
* @example
|
|
6403
|
+
* ```ts
|
|
6404
|
+
* assertStrictPropDeclaration(node);
|
|
6405
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 类型
|
|
6406
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6407
|
+
* ```
|
|
6408
|
+
*/
|
|
6409
|
+
export function assertStrictPropDeclaration(node: unknown): asserts node is PropDeclaration {
|
|
6410
|
+
if (!isStrictPropDeclaration(node)) {
|
|
6411
|
+
throw new Error(`PropDeclaration 节点严格断言失败`);
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6414
|
+
|
|
6415
|
+
/**
|
|
6416
|
+
* 严格断言为 EventDeclaration 节点
|
|
6417
|
+
*
|
|
6418
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6419
|
+
* @example
|
|
6420
|
+
* ```ts
|
|
6421
|
+
* assertStrictEventDeclaration(node);
|
|
6422
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 类型
|
|
6423
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6424
|
+
* ```
|
|
6425
|
+
*/
|
|
6426
|
+
export function assertStrictEventDeclaration(node: unknown): asserts node is EventDeclaration {
|
|
6427
|
+
if (!isStrictEventDeclaration(node)) {
|
|
6428
|
+
throw new Error(`EventDeclaration 节点严格断言失败`);
|
|
6429
|
+
}
|
|
6430
|
+
}
|
|
6431
|
+
|
|
6432
|
+
/**
|
|
6433
|
+
* 严格断言为 SlotDeclaration 节点
|
|
6434
|
+
*
|
|
6435
|
+
* @description 仅断言节点本身,不包含继承类
|
|
6436
|
+
* @example
|
|
6437
|
+
* ```ts
|
|
6438
|
+
* assertStrictSlotDeclaration(node);
|
|
6439
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 类型
|
|
6440
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
6441
|
+
* ```
|
|
6442
|
+
*/
|
|
6443
|
+
export function assertStrictSlotDeclaration(node: unknown): asserts node is SlotDeclaration {
|
|
6444
|
+
if (!isStrictSlotDeclaration(node)) {
|
|
6445
|
+
throw new Error(`SlotDeclaration 节点严格断言失败`);
|
|
6446
|
+
}
|
|
6447
|
+
}
|
|
6448
|
+
|
|
6449
|
+
/**
|
|
6450
|
+
* 严格断言为 LogicDeclaration 节点
|
|
5681
6451
|
*
|
|
5682
6452
|
* @description 仅断言节点本身,不包含继承类
|
|
5683
6453
|
* @example
|
|
5684
6454
|
* ```ts
|
|
5685
|
-
*
|
|
5686
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
6455
|
+
* assertStrictLogicDeclaration(node);
|
|
6456
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 类型
|
|
5687
6457
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5688
6458
|
* ```
|
|
5689
6459
|
*/
|
|
5690
|
-
export function
|
|
5691
|
-
if (!
|
|
5692
|
-
throw new Error(`
|
|
6460
|
+
export function assertStrictLogicDeclaration(node: unknown): asserts node is LogicDeclaration {
|
|
6461
|
+
if (!isStrictLogicDeclaration(node)) {
|
|
6462
|
+
throw new Error(`LogicDeclaration 节点严格断言失败`);
|
|
5693
6463
|
}
|
|
5694
6464
|
}
|
|
5695
6465
|
|
|
@@ -7274,6 +8044,23 @@ export function assertStrictViewBlock(node: unknown): asserts node is ViewBlock
|
|
|
7274
8044
|
}
|
|
7275
8045
|
}
|
|
7276
8046
|
|
|
8047
|
+
/**
|
|
8048
|
+
* 严格断言为 ViewBlockWithImage 节点
|
|
8049
|
+
*
|
|
8050
|
+
* @description 仅断言节点本身,不包含继承类
|
|
8051
|
+
* @example
|
|
8052
|
+
* ```ts
|
|
8053
|
+
* assertStrictViewBlockWithImage(node);
|
|
8054
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 类型
|
|
8055
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8056
|
+
* ```
|
|
8057
|
+
*/
|
|
8058
|
+
export function assertStrictViewBlockWithImage(node: unknown): asserts node is ViewBlockWithImage {
|
|
8059
|
+
if (!isStrictViewBlockWithImage(node)) {
|
|
8060
|
+
throw new Error(`ViewBlockWithImage 节点严格断言失败`);
|
|
8061
|
+
}
|
|
8062
|
+
}
|
|
8063
|
+
|
|
7277
8064
|
/**
|
|
7278
8065
|
* 严格断言为 AuthInterface 节点
|
|
7279
8066
|
*
|
|
@@ -7917,20 +8704,218 @@ export function assertBindStyle(node: unknown): asserts node is BindStyle {
|
|
|
7917
8704
|
}
|
|
7918
8705
|
|
|
7919
8706
|
/**
|
|
7920
|
-
* 断言为
|
|
8707
|
+
* 断言为 ThemeVariable 节点
|
|
8708
|
+
*
|
|
8709
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8710
|
+
* @description 节点没有继承类时,等价于`assertStrictThemeVariable`方法
|
|
8711
|
+
* @example
|
|
8712
|
+
* ```ts
|
|
8713
|
+
* assertThemeVariable(node);
|
|
8714
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 或者 ThemeVariable 继承类型
|
|
8715
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8716
|
+
* ```
|
|
8717
|
+
*/
|
|
8718
|
+
export function assertThemeVariable(node: unknown): asserts node is ThemeVariable {
|
|
8719
|
+
if (!isThemeVariable(node)) {
|
|
8720
|
+
throw new Error(`ThemeVariable 节点断言失败`);
|
|
8721
|
+
}
|
|
8722
|
+
}
|
|
8723
|
+
|
|
8724
|
+
/**
|
|
8725
|
+
* 断言为 BaseSetter 节点
|
|
8726
|
+
*
|
|
8727
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8728
|
+
* @description 节点没有继承类时,等价于`assertStrictBaseSetter`方法
|
|
8729
|
+
* @example
|
|
8730
|
+
* ```ts
|
|
8731
|
+
* assertBaseSetter(node);
|
|
8732
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BaseSetter 或者 BaseSetter 继承类型
|
|
8733
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8734
|
+
* ```
|
|
8735
|
+
*/
|
|
8736
|
+
export function assertBaseSetter(node: unknown): asserts node is types.BaseSetterNode {
|
|
8737
|
+
if (!isBaseSetter(node)) {
|
|
8738
|
+
throw new Error(`BaseSetter 节点断言失败`);
|
|
8739
|
+
}
|
|
8740
|
+
}
|
|
8741
|
+
|
|
8742
|
+
/**
|
|
8743
|
+
* 断言为 InputSetter 节点
|
|
8744
|
+
*
|
|
8745
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8746
|
+
* @description 节点没有继承类时,等价于`assertStrictInputSetter`方法
|
|
8747
|
+
* @example
|
|
8748
|
+
* ```ts
|
|
8749
|
+
* assertInputSetter(node);
|
|
8750
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 或者 InputSetter 继承类型
|
|
8751
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8752
|
+
* ```
|
|
8753
|
+
*/
|
|
8754
|
+
export function assertInputSetter(node: unknown): asserts node is InputSetter {
|
|
8755
|
+
if (!isInputSetter(node)) {
|
|
8756
|
+
throw new Error(`InputSetter 节点断言失败`);
|
|
8757
|
+
}
|
|
8758
|
+
}
|
|
8759
|
+
|
|
8760
|
+
/**
|
|
8761
|
+
* 断言为 SwitchSetter 节点
|
|
8762
|
+
*
|
|
8763
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8764
|
+
* @description 节点没有继承类时,等价于`assertStrictSwitchSetter`方法
|
|
8765
|
+
* @example
|
|
8766
|
+
* ```ts
|
|
8767
|
+
* assertSwitchSetter(node);
|
|
8768
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 或者 SwitchSetter 继承类型
|
|
8769
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8770
|
+
* ```
|
|
8771
|
+
*/
|
|
8772
|
+
export function assertSwitchSetter(node: unknown): asserts node is SwitchSetter {
|
|
8773
|
+
if (!isSwitchSetter(node)) {
|
|
8774
|
+
throw new Error(`SwitchSetter 节点断言失败`);
|
|
8775
|
+
}
|
|
8776
|
+
}
|
|
8777
|
+
|
|
8778
|
+
/**
|
|
8779
|
+
* 断言为 SetterOption 节点
|
|
8780
|
+
*
|
|
8781
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8782
|
+
* @description 节点没有继承类时,等价于`assertStrictSetterOption`方法
|
|
8783
|
+
* @example
|
|
8784
|
+
* ```ts
|
|
8785
|
+
* assertSetterOption(node);
|
|
8786
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 或者 SetterOption 继承类型
|
|
8787
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8788
|
+
* ```
|
|
8789
|
+
*/
|
|
8790
|
+
export function assertSetterOption(node: unknown): asserts node is SetterOption {
|
|
8791
|
+
if (!isSetterOption(node)) {
|
|
8792
|
+
throw new Error(`SetterOption 节点断言失败`);
|
|
8793
|
+
}
|
|
8794
|
+
}
|
|
8795
|
+
|
|
8796
|
+
/**
|
|
8797
|
+
* 断言为 EnumSelectSetter 节点
|
|
8798
|
+
*
|
|
8799
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8800
|
+
* @description 节点没有继承类时,等价于`assertStrictEnumSelectSetter`方法
|
|
8801
|
+
* @example
|
|
8802
|
+
* ```ts
|
|
8803
|
+
* assertEnumSelectSetter(node);
|
|
8804
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 或者 EnumSelectSetter 继承类型
|
|
8805
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8806
|
+
* ```
|
|
8807
|
+
*/
|
|
8808
|
+
export function assertEnumSelectSetter(node: unknown): asserts node is EnumSelectSetter {
|
|
8809
|
+
if (!isEnumSelectSetter(node)) {
|
|
8810
|
+
throw new Error(`EnumSelectSetter 节点断言失败`);
|
|
8811
|
+
}
|
|
8812
|
+
}
|
|
8813
|
+
|
|
8814
|
+
/**
|
|
8815
|
+
* 断言为 CapsulesSetter 节点
|
|
8816
|
+
*
|
|
8817
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8818
|
+
* @description 节点没有继承类时,等价于`assertStrictCapsulesSetter`方法
|
|
8819
|
+
* @example
|
|
8820
|
+
* ```ts
|
|
8821
|
+
* assertCapsulesSetter(node);
|
|
8822
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 或者 CapsulesSetter 继承类型
|
|
8823
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8824
|
+
* ```
|
|
8825
|
+
*/
|
|
8826
|
+
export function assertCapsulesSetter(node: unknown): asserts node is CapsulesSetter {
|
|
8827
|
+
if (!isCapsulesSetter(node)) {
|
|
8828
|
+
throw new Error(`CapsulesSetter 节点断言失败`);
|
|
8829
|
+
}
|
|
8830
|
+
}
|
|
8831
|
+
|
|
8832
|
+
/**
|
|
8833
|
+
* 断言为 NumberInputSetter 节点
|
|
8834
|
+
*
|
|
8835
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8836
|
+
* @description 节点没有继承类时,等价于`assertStrictNumberInputSetter`方法
|
|
8837
|
+
* @example
|
|
8838
|
+
* ```ts
|
|
8839
|
+
* assertNumberInputSetter(node);
|
|
8840
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 或者 NumberInputSetter 继承类型
|
|
8841
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8842
|
+
* ```
|
|
8843
|
+
*/
|
|
8844
|
+
export function assertNumberInputSetter(node: unknown): asserts node is NumberInputSetter {
|
|
8845
|
+
if (!isNumberInputSetter(node)) {
|
|
8846
|
+
throw new Error(`NumberInputSetter 节点断言失败`);
|
|
8847
|
+
}
|
|
8848
|
+
}
|
|
8849
|
+
|
|
8850
|
+
/**
|
|
8851
|
+
* 断言为 IconSetter 节点
|
|
8852
|
+
*
|
|
8853
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8854
|
+
* @description 节点没有继承类时,等价于`assertStrictIconSetter`方法
|
|
8855
|
+
* @example
|
|
8856
|
+
* ```ts
|
|
8857
|
+
* assertIconSetter(node);
|
|
8858
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 或者 IconSetter 继承类型
|
|
8859
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8860
|
+
* ```
|
|
8861
|
+
*/
|
|
8862
|
+
export function assertIconSetter(node: unknown): asserts node is IconSetter {
|
|
8863
|
+
if (!isIconSetter(node)) {
|
|
8864
|
+
throw new Error(`IconSetter 节点断言失败`);
|
|
8865
|
+
}
|
|
8866
|
+
}
|
|
8867
|
+
|
|
8868
|
+
/**
|
|
8869
|
+
* 断言为 ImageSetter 节点
|
|
8870
|
+
*
|
|
8871
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8872
|
+
* @description 节点没有继承类时,等价于`assertStrictImageSetter`方法
|
|
8873
|
+
* @example
|
|
8874
|
+
* ```ts
|
|
8875
|
+
* assertImageSetter(node);
|
|
8876
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 或者 ImageSetter 继承类型
|
|
8877
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8878
|
+
* ```
|
|
8879
|
+
*/
|
|
8880
|
+
export function assertImageSetter(node: unknown): asserts node is ImageSetter {
|
|
8881
|
+
if (!isImageSetter(node)) {
|
|
8882
|
+
throw new Error(`ImageSetter 节点断言失败`);
|
|
8883
|
+
}
|
|
8884
|
+
}
|
|
8885
|
+
|
|
8886
|
+
/**
|
|
8887
|
+
* 断言为 PropertySelectSetter 节点
|
|
8888
|
+
*
|
|
8889
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8890
|
+
* @description 节点没有继承类时,等价于`assertStrictPropertySelectSetter`方法
|
|
8891
|
+
* @example
|
|
8892
|
+
* ```ts
|
|
8893
|
+
* assertPropertySelectSetter(node);
|
|
8894
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 或者 PropertySelectSetter 继承类型
|
|
8895
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8896
|
+
* ```
|
|
8897
|
+
*/
|
|
8898
|
+
export function assertPropertySelectSetter(node: unknown): asserts node is PropertySelectSetter {
|
|
8899
|
+
if (!isPropertySelectSetter(node)) {
|
|
8900
|
+
throw new Error(`PropertySelectSetter 节点断言失败`);
|
|
8901
|
+
}
|
|
8902
|
+
}
|
|
8903
|
+
|
|
8904
|
+
/**
|
|
8905
|
+
* 断言为 ViewComponentDeclaration 节点
|
|
7921
8906
|
*
|
|
7922
8907
|
* @description 包含节点类以及节点继承类的判断
|
|
7923
|
-
* @description 节点没有继承类时,等价于`
|
|
8908
|
+
* @description 节点没有继承类时,等价于`assertStrictViewComponentDeclaration`方法
|
|
7924
8909
|
* @example
|
|
7925
8910
|
* ```ts
|
|
7926
|
-
*
|
|
7927
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8911
|
+
* assertViewComponentDeclaration(node);
|
|
8912
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
|
|
7928
8913
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7929
8914
|
* ```
|
|
7930
8915
|
*/
|
|
7931
|
-
export function
|
|
7932
|
-
if (!
|
|
7933
|
-
throw new Error(`
|
|
8916
|
+
export function assertViewComponentDeclaration(node: unknown): asserts node is ViewComponentDeclaration {
|
|
8917
|
+
if (!isViewComponentDeclaration(node)) {
|
|
8918
|
+
throw new Error(`ViewComponentDeclaration 节点断言失败`);
|
|
7934
8919
|
}
|
|
7935
8920
|
}
|
|
7936
8921
|
|
|
@@ -7989,20 +8974,74 @@ export function assertEvent(node: unknown): asserts node is Event {
|
|
|
7989
8974
|
}
|
|
7990
8975
|
|
|
7991
8976
|
/**
|
|
7992
|
-
* 断言为
|
|
8977
|
+
* 断言为 PropDeclaration 节点
|
|
8978
|
+
*
|
|
8979
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8980
|
+
* @description 节点没有继承类时,等价于`assertStrictPropDeclaration`方法
|
|
8981
|
+
* @example
|
|
8982
|
+
* ```ts
|
|
8983
|
+
* assertPropDeclaration(node);
|
|
8984
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 或者 PropDeclaration 继承类型
|
|
8985
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8986
|
+
* ```
|
|
8987
|
+
*/
|
|
8988
|
+
export function assertPropDeclaration(node: unknown): asserts node is PropDeclaration {
|
|
8989
|
+
if (!isPropDeclaration(node)) {
|
|
8990
|
+
throw new Error(`PropDeclaration 节点断言失败`);
|
|
8991
|
+
}
|
|
8992
|
+
}
|
|
8993
|
+
|
|
8994
|
+
/**
|
|
8995
|
+
* 断言为 EventDeclaration 节点
|
|
8996
|
+
*
|
|
8997
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8998
|
+
* @description 节点没有继承类时,等价于`assertStrictEventDeclaration`方法
|
|
8999
|
+
* @example
|
|
9000
|
+
* ```ts
|
|
9001
|
+
* assertEventDeclaration(node);
|
|
9002
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 或者 EventDeclaration 继承类型
|
|
9003
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
9004
|
+
* ```
|
|
9005
|
+
*/
|
|
9006
|
+
export function assertEventDeclaration(node: unknown): asserts node is EventDeclaration {
|
|
9007
|
+
if (!isEventDeclaration(node)) {
|
|
9008
|
+
throw new Error(`EventDeclaration 节点断言失败`);
|
|
9009
|
+
}
|
|
9010
|
+
}
|
|
9011
|
+
|
|
9012
|
+
/**
|
|
9013
|
+
* 断言为 SlotDeclaration 节点
|
|
9014
|
+
*
|
|
9015
|
+
* @description 包含节点类以及节点继承类的判断
|
|
9016
|
+
* @description 节点没有继承类时,等价于`assertStrictSlotDeclaration`方法
|
|
9017
|
+
* @example
|
|
9018
|
+
* ```ts
|
|
9019
|
+
* assertSlotDeclaration(node);
|
|
9020
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 或者 SlotDeclaration 继承类型
|
|
9021
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
9022
|
+
* ```
|
|
9023
|
+
*/
|
|
9024
|
+
export function assertSlotDeclaration(node: unknown): asserts node is SlotDeclaration {
|
|
9025
|
+
if (!isSlotDeclaration(node)) {
|
|
9026
|
+
throw new Error(`SlotDeclaration 节点断言失败`);
|
|
9027
|
+
}
|
|
9028
|
+
}
|
|
9029
|
+
|
|
9030
|
+
/**
|
|
9031
|
+
* 断言为 LogicDeclaration 节点
|
|
7993
9032
|
*
|
|
7994
9033
|
* @description 包含节点类以及节点继承类的判断
|
|
7995
|
-
* @description 节点没有继承类时,等价于`
|
|
9034
|
+
* @description 节点没有继承类时,等价于`assertStrictLogicDeclaration`方法
|
|
7996
9035
|
* @example
|
|
7997
9036
|
* ```ts
|
|
7998
|
-
*
|
|
7999
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
9037
|
+
* assertLogicDeclaration(node);
|
|
9038
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 或者 LogicDeclaration 继承类型
|
|
8000
9039
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8001
9040
|
* ```
|
|
8002
9041
|
*/
|
|
8003
|
-
export function
|
|
8004
|
-
if (!
|
|
8005
|
-
throw new Error(`
|
|
9042
|
+
export function assertLogicDeclaration(node: unknown): asserts node is LogicDeclaration {
|
|
9043
|
+
if (!isLogicDeclaration(node)) {
|
|
9044
|
+
throw new Error(`LogicDeclaration 节点断言失败`);
|
|
8006
9045
|
}
|
|
8007
9046
|
}
|
|
8008
9047
|
|
|
@@ -9746,12 +10785,30 @@ export function assertFrontendLibrary(node: unknown): asserts node is FrontendLi
|
|
|
9746
10785
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
9747
10786
|
* ```
|
|
9748
10787
|
*/
|
|
9749
|
-
export function assertViewBlock(node: unknown): asserts node is
|
|
10788
|
+
export function assertViewBlock(node: unknown): asserts node is types.ViewBlockNode {
|
|
9750
10789
|
if (!isViewBlock(node)) {
|
|
9751
10790
|
throw new Error(`ViewBlock 节点断言失败`);
|
|
9752
10791
|
}
|
|
9753
10792
|
}
|
|
9754
10793
|
|
|
10794
|
+
/**
|
|
10795
|
+
* 断言为 ViewBlockWithImage 节点
|
|
10796
|
+
*
|
|
10797
|
+
* @description 包含节点类以及节点继承类的判断
|
|
10798
|
+
* @description 节点没有继承类时,等价于`assertStrictViewBlockWithImage`方法
|
|
10799
|
+
* @example
|
|
10800
|
+
* ```ts
|
|
10801
|
+
* assertViewBlockWithImage(node);
|
|
10802
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
|
|
10803
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
10804
|
+
* ```
|
|
10805
|
+
*/
|
|
10806
|
+
export function assertViewBlockWithImage(node: unknown): asserts node is ViewBlockWithImage {
|
|
10807
|
+
if (!isViewBlockWithImage(node)) {
|
|
10808
|
+
throw new Error(`ViewBlockWithImage 节点断言失败`);
|
|
10809
|
+
}
|
|
10810
|
+
}
|
|
10811
|
+
|
|
9755
10812
|
/**
|
|
9756
10813
|
* 断言为 AuthInterface 节点
|
|
9757
10814
|
*
|