@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
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
3
|
+
exports.isStrictLogic = exports.isStrictTheme = exports.isStrictLogicDeclaration = exports.isStrictSlotDeclaration = exports.isStrictEventDeclaration = exports.isStrictPropDeclaration = exports.isStrictEvent = exports.isStrictAttribute = exports.isStrictBusinessComponent = exports.isStrictViewComponentDeclaration = exports.isStrictPropertySelectSetter = exports.isStrictImageSetter = exports.isStrictIconSetter = exports.isStrictNumberInputSetter = exports.isStrictCapsulesSetter = exports.isStrictEnumSelectSetter = exports.isStrictSetterOption = exports.isStrictSwitchSetter = exports.isStrictInputSetter = exports.isStrictThemeVariable = exports.isStrictBindStyle = exports.isStrictBindEvent = exports.isStrictBindDirective = exports.isStrictBindAttribute = exports.isStrictViewElement = exports.isStrictView = exports.isStrictMetadataType = exports.isStrictEntityIndex = exports.isStrictEntityProperty = exports.isStrictEntity = exports.isStrictDataSource = exports.isStrictEnumItem = exports.isStrictEnum = exports.isStrictStructureProperty = exports.isStrictStructure = exports.isStrictTypeParam = exports.isStrictDatabaseTypeAnnotation = exports.isStrictTypeAnnotation = exports.isStrictMicroApp = exports.isStrictIntegration = exports.isStrictBackend = exports.isStrictFrontend = exports.isStrictFrontendType = exports.isStrictNamespace = exports.isStrictModule = exports.isStrictApp = exports.assertFileNode = exports.isFileNode = exports.assertBaseNode = exports.isBaseNode = void 0;
|
|
4
|
+
exports.isStrictMatch = exports.isStrictMatchCase = exports.isStrictBinaryExpression = exports.isStrictNumericLiteral = exports.isStrictStaticString = exports.isStrictStringInterpolation = exports.isStrictStringLiteral = exports.isStrictBooleanLiteral = exports.isStrictNullLiteral = exports.isStrictIdentifier = exports.isStrictBlock = exports.isStrictJavaLogic = exports.isStrictJSBlock = exports.isStrictAnchor = exports.isStrictArgument = exports.isStrictValidationRule = exports.isStrictExternalDestination = exports.isStrictDestination = exports.isStrictCallInterface = exports.isStrictCallFunction = exports.isStrictCallEvent = exports.isStrictCallLogic = exports.isStrictComment = exports.isStrictBatchAssignment = exports.isStrictAssignment = exports.isStrictWhileStatement = exports.isStrictForEachStatement = exports.isStrictSwitchCase = exports.isStrictSwitchStatement = exports.isStrictIfStatement = exports.isStrictEnd = exports.isStrictStart = exports.isStrictAbort = exports.isStrictDefaultValue = exports.isStrictTransactional = exports.isStrictInterfaceParam = exports.isStrictInterface = exports.isStrictAnonymousFunction = exports.isStrictFunction = exports.isStrictConstant = exports.isStrictFrontendVariable = exports.isStrictBackendVariable = exports.isStrictVariable = exports.isStrictReturn = exports.isStrictParamWithGroup = exports.isStrictParam = exports.isStrictBusinessLogic = exports.isStrictOverriddenLogic = exports.isStrictAuthLogicForCallInterface = exports.isStrictAuthLogic = void 0;
|
|
5
|
+
exports.isStrictConnector = exports.isStrictMsgTriggerLauncher = exports.isStrictTriggerLauncher = exports.isStrictConnectorTrigger = exports.isStrictMsgTriggerEvent = exports.isStrictTriggerEvent = exports.isStrictCallAuthInterface = exports.isStrictAuthInterface = exports.isStrictViewBlockWithImage = exports.isStrictViewBlock = exports.isStrictFrontendLibrary = exports.isStrictAssignmentLine = exports.isStrictSelectMembers = exports.isStrictRect = exports.isStrictPoint = exports.isStrictUseComponent = exports.isStrictCompletionProperty = exports.isStrictI18nInfo = exports.isStrictConfigPropertyValue = exports.isStrictConfigProperty = exports.isStrictConfigGroup = exports.isStrictConfiguration = exports.isStrictRole = exports.isStrictProcessOutcomes = exports.isStrictAssignee = exports.isStrictProcessOutcome = exports.isStrictCountersignPolicy = exports.isStrictSequentialPolicy = exports.isStrictProcessComponent = exports.isStrictProcessElement = exports.isStrictProcess = exports.isStrictOqlQueryComponent = exports.isStrictSqlQueryComponent = exports.isStrictQueryLimitExpression = exports.isStrictQuerySelectExpression = exports.isStrictQueryGroupByExpression = exports.isStrictQueryOrderByExpression = exports.isStrictQueryAggregateExpression = exports.isStrictQueryFieldExpression = exports.isStrictQueryJoinExpression = exports.isStrictQueryFromExpression = exports.isStrictCallQueryComponent = exports.isStrictPaginate = exports.isStrictNewMap = exports.isStrictNewList = exports.isStrictNewComposite = exports.isStrictNew = exports.isStrictUnparsed = exports.isStrictMemberExpression = exports.isStrictUnaryExpression = void 0;
|
|
6
|
+
exports.isAuthLogic = exports.isLogic = exports.isTheme = exports.isLogicDeclaration = exports.isSlotDeclaration = exports.isEventDeclaration = exports.isPropDeclaration = exports.isEvent = exports.isAttribute = exports.isBusinessComponent = exports.isViewComponentDeclaration = exports.isPropertySelectSetter = exports.isImageSetter = exports.isIconSetter = exports.isNumberInputSetter = exports.isCapsulesSetter = exports.isEnumSelectSetter = exports.isSetterOption = exports.isSwitchSetter = exports.isInputSetter = exports.isBaseSetter = exports.isThemeVariable = exports.isBindStyle = exports.isBindEvent = exports.isBindDirective = exports.isBindAttribute = exports.isViewElement = exports.isView = exports.isMetadataType = exports.isEntityIndex = exports.isEntityProperty = exports.isEntity = exports.isDataSource = exports.isEnumItem = exports.isEnum = exports.isStructureProperty = exports.isStructure = exports.isTypeParam = exports.isDatabaseTypeAnnotation = exports.isTypeAnnotation = exports.isMicroApp = exports.isIntegration = exports.isBackend = exports.isFrontend = exports.isFrontendType = exports.isNamespace = exports.isModule = exports.isApp = exports.isStrictConnection = exports.isStrictCallConnector = void 0;
|
|
7
|
+
exports.isBinaryExpression = exports.isNumericLiteral = exports.isStaticString = exports.isStringInterpolation = exports.isStringLiteral = exports.isBooleanLiteral = exports.isNullLiteral = exports.isIdentifier = exports.isBlock = exports.isJavaLogic = exports.isJSBlock = exports.isAnchor = exports.isArgument = exports.isValidationRule = exports.isExternalDestination = exports.isDestination = exports.isCallInterface = exports.isCallFunction = exports.isCallEvent = exports.isCallLogic = exports.isComment = exports.isBatchAssignment = exports.isAssignment = exports.isWhileStatement = exports.isForEachStatement = exports.isSwitchCase = exports.isSwitchStatement = exports.isIfStatement = exports.isEnd = exports.isStart = exports.isAbort = exports.isDefaultValue = exports.isTransactional = exports.isInterfaceParam = exports.isInterface = exports.isImportedInterface = exports.isAnonymousFunction = exports.isFunction = exports.isLogicItem = exports.isConstant = exports.isFrontendVariable = exports.isBackendVariable = exports.isVariable = exports.isReturn = exports.isParamWithGroup = exports.isParam = exports.isAbstractInterface = exports.isBusinessLogic = exports.isOverriddenLogic = exports.isAuthLogicForCallInterface = void 0;
|
|
8
|
+
exports.isConnectorTrigger = exports.isMsgTriggerEvent = exports.isTriggerEvent = exports.isCallAuthInterface = exports.isAuthInterface = exports.isViewBlockWithImage = exports.isViewBlock = exports.isFrontendLibrary = exports.isAssignmentLine = exports.isSelectMembers = exports.isRect = exports.isPoint = exports.isUseComponent = exports.isCompletionProperty = exports.isI18nInfo = exports.isConfigPropertyValue = exports.isConfigProperty = exports.isConfigGroup = exports.isConfiguration = exports.isRole = exports.isProcessOutcomes = exports.isAssignee = exports.isProcessOutcome = exports.isCountersignPolicy = exports.isSequentialPolicy = exports.isMultiApprovalPolicy = exports.isProcessComponent = exports.isProcessElement = exports.isProcess = exports.isOqlQueryComponent = exports.isSqlQueryComponent = exports.isQueryLimitExpression = exports.isQuerySelectExpression = exports.isQueryGroupByExpression = exports.isQueryOrderByExpression = exports.isQueryAggregateExpression = exports.isQueryFieldExpression = exports.isQueryJoinExpression = exports.isQueryFromExpression = exports.isCallQueryComponent = exports.isPaginate = exports.isNewMap = exports.isNewList = exports.isNewComposite = exports.isNew = exports.isUnparsed = exports.isMemberExpression = exports.isUnaryExpression = exports.isMatch = exports.isMatchCase = void 0;
|
|
9
|
+
exports.assertStrictTheme = exports.assertStrictLogicDeclaration = exports.assertStrictSlotDeclaration = exports.assertStrictEventDeclaration = exports.assertStrictPropDeclaration = exports.assertStrictEvent = exports.assertStrictAttribute = exports.assertStrictBusinessComponent = exports.assertStrictViewComponentDeclaration = exports.assertStrictPropertySelectSetter = exports.assertStrictImageSetter = exports.assertStrictIconSetter = exports.assertStrictNumberInputSetter = exports.assertStrictCapsulesSetter = exports.assertStrictEnumSelectSetter = exports.assertStrictSetterOption = exports.assertStrictSwitchSetter = exports.assertStrictInputSetter = exports.assertStrictThemeVariable = exports.assertStrictBindStyle = exports.assertStrictBindEvent = exports.assertStrictBindDirective = exports.assertStrictBindAttribute = exports.assertStrictViewElement = exports.assertStrictView = exports.assertStrictMetadataType = exports.assertStrictEntityIndex = exports.assertStrictEntityProperty = exports.assertStrictEntity = exports.assertStrictDataSource = exports.assertStrictEnumItem = exports.assertStrictEnum = exports.assertStrictStructureProperty = exports.assertStrictStructure = exports.assertStrictTypeParam = exports.assertStrictDatabaseTypeAnnotation = exports.assertStrictTypeAnnotation = exports.assertStrictMicroApp = exports.assertStrictIntegration = exports.assertStrictBackend = exports.assertStrictFrontend = exports.assertStrictFrontendType = exports.assertStrictNamespace = exports.assertStrictModule = exports.assertStrictApp = exports.isConnection = exports.isCallConnector = exports.isConnector = exports.isMsgTriggerLauncher = exports.isTriggerLauncher = void 0;
|
|
10
|
+
exports.assertStrictMatchCase = exports.assertStrictBinaryExpression = exports.assertStrictNumericLiteral = exports.assertStrictStaticString = exports.assertStrictStringInterpolation = exports.assertStrictStringLiteral = exports.assertStrictBooleanLiteral = exports.assertStrictNullLiteral = exports.assertStrictIdentifier = exports.assertStrictBlock = exports.assertStrictJavaLogic = exports.assertStrictJSBlock = exports.assertStrictAnchor = exports.assertStrictArgument = exports.assertStrictValidationRule = exports.assertStrictExternalDestination = exports.assertStrictDestination = exports.assertStrictCallInterface = exports.assertStrictCallFunction = exports.assertStrictCallEvent = exports.assertStrictCallLogic = exports.assertStrictComment = exports.assertStrictBatchAssignment = exports.assertStrictAssignment = exports.assertStrictWhileStatement = exports.assertStrictForEachStatement = exports.assertStrictSwitchCase = exports.assertStrictSwitchStatement = exports.assertStrictIfStatement = exports.assertStrictEnd = exports.assertStrictStart = exports.assertStrictAbort = exports.assertStrictDefaultValue = exports.assertStrictTransactional = exports.assertStrictInterfaceParam = exports.assertStrictInterface = exports.assertStrictAnonymousFunction = exports.assertStrictFunction = exports.assertStrictConstant = exports.assertStrictFrontendVariable = exports.assertStrictBackendVariable = exports.assertStrictVariable = exports.assertStrictReturn = exports.assertStrictParamWithGroup = exports.assertStrictParam = exports.assertStrictBusinessLogic = exports.assertStrictOverriddenLogic = exports.assertStrictAuthLogicForCallInterface = exports.assertStrictAuthLogic = exports.assertStrictLogic = void 0;
|
|
11
|
+
exports.assertStrictMsgTriggerLauncher = exports.assertStrictTriggerLauncher = exports.assertStrictConnectorTrigger = exports.assertStrictMsgTriggerEvent = exports.assertStrictTriggerEvent = exports.assertStrictCallAuthInterface = exports.assertStrictAuthInterface = exports.assertStrictViewBlockWithImage = exports.assertStrictViewBlock = exports.assertStrictFrontendLibrary = exports.assertStrictAssignmentLine = exports.assertStrictSelectMembers = exports.assertStrictRect = exports.assertStrictPoint = exports.assertStrictUseComponent = exports.assertStrictCompletionProperty = exports.assertStrictI18nInfo = exports.assertStrictConfigPropertyValue = exports.assertStrictConfigProperty = exports.assertStrictConfigGroup = exports.assertStrictConfiguration = exports.assertStrictRole = exports.assertStrictProcessOutcomes = exports.assertStrictAssignee = exports.assertStrictProcessOutcome = exports.assertStrictCountersignPolicy = exports.assertStrictSequentialPolicy = exports.assertStrictProcessComponent = exports.assertStrictProcessElement = exports.assertStrictProcess = exports.assertStrictOqlQueryComponent = exports.assertStrictSqlQueryComponent = exports.assertStrictQueryLimitExpression = exports.assertStrictQuerySelectExpression = exports.assertStrictQueryGroupByExpression = exports.assertStrictQueryOrderByExpression = exports.assertStrictQueryAggregateExpression = exports.assertStrictQueryFieldExpression = exports.assertStrictQueryJoinExpression = exports.assertStrictQueryFromExpression = exports.assertStrictCallQueryComponent = exports.assertStrictPaginate = exports.assertStrictNewMap = exports.assertStrictNewList = exports.assertStrictNewComposite = exports.assertStrictNew = exports.assertStrictUnparsed = exports.assertStrictMemberExpression = exports.assertStrictUnaryExpression = exports.assertStrictMatch = void 0;
|
|
12
|
+
exports.assertLogic = exports.assertTheme = exports.assertLogicDeclaration = exports.assertSlotDeclaration = exports.assertEventDeclaration = exports.assertPropDeclaration = exports.assertEvent = exports.assertAttribute = exports.assertBusinessComponent = exports.assertViewComponentDeclaration = exports.assertPropertySelectSetter = exports.assertImageSetter = exports.assertIconSetter = exports.assertNumberInputSetter = exports.assertCapsulesSetter = exports.assertEnumSelectSetter = exports.assertSetterOption = exports.assertSwitchSetter = exports.assertInputSetter = exports.assertBaseSetter = exports.assertThemeVariable = exports.assertBindStyle = exports.assertBindEvent = exports.assertBindDirective = exports.assertBindAttribute = exports.assertViewElement = exports.assertView = exports.assertMetadataType = exports.assertEntityIndex = exports.assertEntityProperty = exports.assertEntity = exports.assertDataSource = exports.assertEnumItem = exports.assertEnum = exports.assertStructureProperty = exports.assertStructure = exports.assertTypeParam = exports.assertDatabaseTypeAnnotation = exports.assertTypeAnnotation = exports.assertMicroApp = exports.assertIntegration = exports.assertBackend = exports.assertFrontend = exports.assertFrontendType = exports.assertNamespace = exports.assertModule = exports.assertApp = exports.assertStrictConnection = exports.assertStrictCallConnector = exports.assertStrictConnector = void 0;
|
|
13
|
+
exports.assertNumericLiteral = exports.assertStaticString = exports.assertStringInterpolation = exports.assertStringLiteral = exports.assertBooleanLiteral = exports.assertNullLiteral = exports.assertIdentifier = exports.assertBlock = exports.assertJavaLogic = exports.assertJSBlock = exports.assertAnchor = exports.assertArgument = exports.assertValidationRule = exports.assertExternalDestination = exports.assertDestination = exports.assertCallInterface = exports.assertCallFunction = exports.assertCallEvent = exports.assertCallLogic = exports.assertComment = exports.assertBatchAssignment = exports.assertAssignment = exports.assertWhileStatement = exports.assertForEachStatement = exports.assertSwitchCase = exports.assertSwitchStatement = exports.assertIfStatement = exports.assertEnd = exports.assertStart = exports.assertAbort = exports.assertDefaultValue = exports.assertTransactional = exports.assertInterfaceParam = exports.assertInterface = exports.assertImportedInterface = exports.assertAnonymousFunction = exports.assertFunction = exports.assertLogicItem = exports.assertConstant = exports.assertFrontendVariable = exports.assertBackendVariable = exports.assertVariable = exports.assertReturn = exports.assertParamWithGroup = exports.assertParam = exports.assertAbstractInterface = exports.assertBusinessLogic = exports.assertOverriddenLogic = exports.assertAuthLogicForCallInterface = exports.assertAuthLogic = void 0;
|
|
14
|
+
exports.assertMsgTriggerEvent = exports.assertTriggerEvent = exports.assertCallAuthInterface = exports.assertAuthInterface = exports.assertViewBlockWithImage = exports.assertViewBlock = exports.assertFrontendLibrary = exports.assertAssignmentLine = exports.assertSelectMembers = exports.assertRect = exports.assertPoint = exports.assertUseComponent = exports.assertCompletionProperty = exports.assertI18nInfo = exports.assertConfigPropertyValue = exports.assertConfigProperty = exports.assertConfigGroup = exports.assertConfiguration = exports.assertRole = exports.assertProcessOutcomes = exports.assertAssignee = exports.assertProcessOutcome = exports.assertCountersignPolicy = exports.assertSequentialPolicy = exports.assertMultiApprovalPolicy = exports.assertProcessComponent = exports.assertProcessElement = exports.assertProcess = exports.assertOqlQueryComponent = exports.assertSqlQueryComponent = exports.assertQueryLimitExpression = exports.assertQuerySelectExpression = exports.assertQueryGroupByExpression = exports.assertQueryOrderByExpression = exports.assertQueryAggregateExpression = exports.assertQueryFieldExpression = exports.assertQueryJoinExpression = exports.assertQueryFromExpression = exports.assertCallQueryComponent = exports.assertPaginate = exports.assertNewMap = exports.assertNewList = exports.assertNewComposite = exports.assertNew = exports.assertUnparsed = exports.assertMemberExpression = exports.assertUnaryExpression = exports.assertMatch = exports.assertMatchCase = exports.assertBinaryExpression = void 0;
|
|
15
|
+
exports.assertConnection = exports.assertCallConnector = exports.assertConnector = exports.assertMsgTriggerLauncher = exports.assertTriggerLauncher = exports.assertConnectorTrigger = void 0;
|
|
14
16
|
/**
|
|
15
17
|
* 判断为节点
|
|
16
18
|
*/
|
|
@@ -435,20 +437,170 @@ function isStrictBindStyle(node) {
|
|
|
435
437
|
}
|
|
436
438
|
exports.isStrictBindStyle = isStrictBindStyle;
|
|
437
439
|
/**
|
|
438
|
-
* 严格判断输入为
|
|
440
|
+
* 严格判断输入为 ThemeVariable 节点
|
|
439
441
|
*
|
|
440
442
|
* @description 仅判断节点本身,不包含继承类
|
|
441
443
|
* @example
|
|
442
444
|
* ```ts
|
|
443
|
-
* if (
|
|
444
|
-
* // 在这个花括号内,node 的类型为
|
|
445
|
+
* if (isStrictThemeVariable(node)) {
|
|
446
|
+
* // 在这个花括号内,node 的类型为 ThemeVariable
|
|
445
447
|
* }
|
|
446
448
|
* ```
|
|
447
449
|
*/
|
|
448
|
-
function
|
|
449
|
-
return isBaseNode(node) && node.concept === '
|
|
450
|
+
function isStrictThemeVariable(node) {
|
|
451
|
+
return isBaseNode(node) && node.concept === 'ThemeVariable';
|
|
450
452
|
}
|
|
451
|
-
exports.
|
|
453
|
+
exports.isStrictThemeVariable = isStrictThemeVariable;
|
|
454
|
+
/**
|
|
455
|
+
* 严格判断输入为 InputSetter 节点
|
|
456
|
+
*
|
|
457
|
+
* @description 仅判断节点本身,不包含继承类
|
|
458
|
+
* @example
|
|
459
|
+
* ```ts
|
|
460
|
+
* if (isStrictInputSetter(node)) {
|
|
461
|
+
* // 在这个花括号内,node 的类型为 InputSetter
|
|
462
|
+
* }
|
|
463
|
+
* ```
|
|
464
|
+
*/
|
|
465
|
+
function isStrictInputSetter(node) {
|
|
466
|
+
return isBaseNode(node) && node.concept === 'InputSetter';
|
|
467
|
+
}
|
|
468
|
+
exports.isStrictInputSetter = isStrictInputSetter;
|
|
469
|
+
/**
|
|
470
|
+
* 严格判断输入为 SwitchSetter 节点
|
|
471
|
+
*
|
|
472
|
+
* @description 仅判断节点本身,不包含继承类
|
|
473
|
+
* @example
|
|
474
|
+
* ```ts
|
|
475
|
+
* if (isStrictSwitchSetter(node)) {
|
|
476
|
+
* // 在这个花括号内,node 的类型为 SwitchSetter
|
|
477
|
+
* }
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
480
|
+
function isStrictSwitchSetter(node) {
|
|
481
|
+
return isBaseNode(node) && node.concept === 'SwitchSetter';
|
|
482
|
+
}
|
|
483
|
+
exports.isStrictSwitchSetter = isStrictSwitchSetter;
|
|
484
|
+
/**
|
|
485
|
+
* 严格判断输入为 SetterOption 节点
|
|
486
|
+
*
|
|
487
|
+
* @description 仅判断节点本身,不包含继承类
|
|
488
|
+
* @example
|
|
489
|
+
* ```ts
|
|
490
|
+
* if (isStrictSetterOption(node)) {
|
|
491
|
+
* // 在这个花括号内,node 的类型为 SetterOption
|
|
492
|
+
* }
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
function isStrictSetterOption(node) {
|
|
496
|
+
return isBaseNode(node) && node.concept === 'SetterOption';
|
|
497
|
+
}
|
|
498
|
+
exports.isStrictSetterOption = isStrictSetterOption;
|
|
499
|
+
/**
|
|
500
|
+
* 严格判断输入为 EnumSelectSetter 节点
|
|
501
|
+
*
|
|
502
|
+
* @description 仅判断节点本身,不包含继承类
|
|
503
|
+
* @example
|
|
504
|
+
* ```ts
|
|
505
|
+
* if (isStrictEnumSelectSetter(node)) {
|
|
506
|
+
* // 在这个花括号内,node 的类型为 EnumSelectSetter
|
|
507
|
+
* }
|
|
508
|
+
* ```
|
|
509
|
+
*/
|
|
510
|
+
function isStrictEnumSelectSetter(node) {
|
|
511
|
+
return isBaseNode(node) && node.concept === 'EnumSelectSetter';
|
|
512
|
+
}
|
|
513
|
+
exports.isStrictEnumSelectSetter = isStrictEnumSelectSetter;
|
|
514
|
+
/**
|
|
515
|
+
* 严格判断输入为 CapsulesSetter 节点
|
|
516
|
+
*
|
|
517
|
+
* @description 仅判断节点本身,不包含继承类
|
|
518
|
+
* @example
|
|
519
|
+
* ```ts
|
|
520
|
+
* if (isStrictCapsulesSetter(node)) {
|
|
521
|
+
* // 在这个花括号内,node 的类型为 CapsulesSetter
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
function isStrictCapsulesSetter(node) {
|
|
526
|
+
return isBaseNode(node) && node.concept === 'CapsulesSetter';
|
|
527
|
+
}
|
|
528
|
+
exports.isStrictCapsulesSetter = isStrictCapsulesSetter;
|
|
529
|
+
/**
|
|
530
|
+
* 严格判断输入为 NumberInputSetter 节点
|
|
531
|
+
*
|
|
532
|
+
* @description 仅判断节点本身,不包含继承类
|
|
533
|
+
* @example
|
|
534
|
+
* ```ts
|
|
535
|
+
* if (isStrictNumberInputSetter(node)) {
|
|
536
|
+
* // 在这个花括号内,node 的类型为 NumberInputSetter
|
|
537
|
+
* }
|
|
538
|
+
* ```
|
|
539
|
+
*/
|
|
540
|
+
function isStrictNumberInputSetter(node) {
|
|
541
|
+
return isBaseNode(node) && node.concept === 'NumberInputSetter';
|
|
542
|
+
}
|
|
543
|
+
exports.isStrictNumberInputSetter = isStrictNumberInputSetter;
|
|
544
|
+
/**
|
|
545
|
+
* 严格判断输入为 IconSetter 节点
|
|
546
|
+
*
|
|
547
|
+
* @description 仅判断节点本身,不包含继承类
|
|
548
|
+
* @example
|
|
549
|
+
* ```ts
|
|
550
|
+
* if (isStrictIconSetter(node)) {
|
|
551
|
+
* // 在这个花括号内,node 的类型为 IconSetter
|
|
552
|
+
* }
|
|
553
|
+
* ```
|
|
554
|
+
*/
|
|
555
|
+
function isStrictIconSetter(node) {
|
|
556
|
+
return isBaseNode(node) && node.concept === 'IconSetter';
|
|
557
|
+
}
|
|
558
|
+
exports.isStrictIconSetter = isStrictIconSetter;
|
|
559
|
+
/**
|
|
560
|
+
* 严格判断输入为 ImageSetter 节点
|
|
561
|
+
*
|
|
562
|
+
* @description 仅判断节点本身,不包含继承类
|
|
563
|
+
* @example
|
|
564
|
+
* ```ts
|
|
565
|
+
* if (isStrictImageSetter(node)) {
|
|
566
|
+
* // 在这个花括号内,node 的类型为 ImageSetter
|
|
567
|
+
* }
|
|
568
|
+
* ```
|
|
569
|
+
*/
|
|
570
|
+
function isStrictImageSetter(node) {
|
|
571
|
+
return isBaseNode(node) && node.concept === 'ImageSetter';
|
|
572
|
+
}
|
|
573
|
+
exports.isStrictImageSetter = isStrictImageSetter;
|
|
574
|
+
/**
|
|
575
|
+
* 严格判断输入为 PropertySelectSetter 节点
|
|
576
|
+
*
|
|
577
|
+
* @description 仅判断节点本身,不包含继承类
|
|
578
|
+
* @example
|
|
579
|
+
* ```ts
|
|
580
|
+
* if (isStrictPropertySelectSetter(node)) {
|
|
581
|
+
* // 在这个花括号内,node 的类型为 PropertySelectSetter
|
|
582
|
+
* }
|
|
583
|
+
* ```
|
|
584
|
+
*/
|
|
585
|
+
function isStrictPropertySelectSetter(node) {
|
|
586
|
+
return isBaseNode(node) && node.concept === 'PropertySelectSetter';
|
|
587
|
+
}
|
|
588
|
+
exports.isStrictPropertySelectSetter = isStrictPropertySelectSetter;
|
|
589
|
+
/**
|
|
590
|
+
* 严格判断输入为 ViewComponentDeclaration 节点
|
|
591
|
+
*
|
|
592
|
+
* @description 仅判断节点本身,不包含继承类
|
|
593
|
+
* @example
|
|
594
|
+
* ```ts
|
|
595
|
+
* if (isStrictViewComponentDeclaration(node)) {
|
|
596
|
+
* // 在这个花括号内,node 的类型为 ViewComponentDeclaration
|
|
597
|
+
* }
|
|
598
|
+
* ```
|
|
599
|
+
*/
|
|
600
|
+
function isStrictViewComponentDeclaration(node) {
|
|
601
|
+
return isBaseNode(node) && node.concept === 'ViewComponentDeclaration';
|
|
602
|
+
}
|
|
603
|
+
exports.isStrictViewComponentDeclaration = isStrictViewComponentDeclaration;
|
|
452
604
|
/**
|
|
453
605
|
* 严格判断输入为 BusinessComponent 节点
|
|
454
606
|
*
|
|
@@ -495,20 +647,65 @@ function isStrictEvent(node) {
|
|
|
495
647
|
}
|
|
496
648
|
exports.isStrictEvent = isStrictEvent;
|
|
497
649
|
/**
|
|
498
|
-
* 严格判断输入为
|
|
650
|
+
* 严格判断输入为 PropDeclaration 节点
|
|
651
|
+
*
|
|
652
|
+
* @description 仅判断节点本身,不包含继承类
|
|
653
|
+
* @example
|
|
654
|
+
* ```ts
|
|
655
|
+
* if (isStrictPropDeclaration(node)) {
|
|
656
|
+
* // 在这个花括号内,node 的类型为 PropDeclaration
|
|
657
|
+
* }
|
|
658
|
+
* ```
|
|
659
|
+
*/
|
|
660
|
+
function isStrictPropDeclaration(node) {
|
|
661
|
+
return isBaseNode(node) && node.concept === 'PropDeclaration';
|
|
662
|
+
}
|
|
663
|
+
exports.isStrictPropDeclaration = isStrictPropDeclaration;
|
|
664
|
+
/**
|
|
665
|
+
* 严格判断输入为 EventDeclaration 节点
|
|
666
|
+
*
|
|
667
|
+
* @description 仅判断节点本身,不包含继承类
|
|
668
|
+
* @example
|
|
669
|
+
* ```ts
|
|
670
|
+
* if (isStrictEventDeclaration(node)) {
|
|
671
|
+
* // 在这个花括号内,node 的类型为 EventDeclaration
|
|
672
|
+
* }
|
|
673
|
+
* ```
|
|
674
|
+
*/
|
|
675
|
+
function isStrictEventDeclaration(node) {
|
|
676
|
+
return isBaseNode(node) && node.concept === 'EventDeclaration';
|
|
677
|
+
}
|
|
678
|
+
exports.isStrictEventDeclaration = isStrictEventDeclaration;
|
|
679
|
+
/**
|
|
680
|
+
* 严格判断输入为 SlotDeclaration 节点
|
|
681
|
+
*
|
|
682
|
+
* @description 仅判断节点本身,不包含继承类
|
|
683
|
+
* @example
|
|
684
|
+
* ```ts
|
|
685
|
+
* if (isStrictSlotDeclaration(node)) {
|
|
686
|
+
* // 在这个花括号内,node 的类型为 SlotDeclaration
|
|
687
|
+
* }
|
|
688
|
+
* ```
|
|
689
|
+
*/
|
|
690
|
+
function isStrictSlotDeclaration(node) {
|
|
691
|
+
return isBaseNode(node) && node.concept === 'SlotDeclaration';
|
|
692
|
+
}
|
|
693
|
+
exports.isStrictSlotDeclaration = isStrictSlotDeclaration;
|
|
694
|
+
/**
|
|
695
|
+
* 严格判断输入为 LogicDeclaration 节点
|
|
499
696
|
*
|
|
500
697
|
* @description 仅判断节点本身,不包含继承类
|
|
501
698
|
* @example
|
|
502
699
|
* ```ts
|
|
503
|
-
* if (
|
|
504
|
-
* // 在这个花括号内,node 的类型为
|
|
700
|
+
* if (isStrictLogicDeclaration(node)) {
|
|
701
|
+
* // 在这个花括号内,node 的类型为 LogicDeclaration
|
|
505
702
|
* }
|
|
506
703
|
* ```
|
|
507
704
|
*/
|
|
508
|
-
function
|
|
509
|
-
return isBaseNode(node) && node.concept === '
|
|
705
|
+
function isStrictLogicDeclaration(node) {
|
|
706
|
+
return isBaseNode(node) && node.concept === 'LogicDeclaration';
|
|
510
707
|
}
|
|
511
|
-
exports.
|
|
708
|
+
exports.isStrictLogicDeclaration = isStrictLogicDeclaration;
|
|
512
709
|
/**
|
|
513
710
|
* 严格判断输入为 Theme 节点
|
|
514
711
|
*
|
|
@@ -1904,6 +2101,21 @@ function isStrictViewBlock(node) {
|
|
|
1904
2101
|
return isBaseNode(node) && node.concept === 'ViewBlock';
|
|
1905
2102
|
}
|
|
1906
2103
|
exports.isStrictViewBlock = isStrictViewBlock;
|
|
2104
|
+
/**
|
|
2105
|
+
* 严格判断输入为 ViewBlockWithImage 节点
|
|
2106
|
+
*
|
|
2107
|
+
* @description 仅判断节点本身,不包含继承类
|
|
2108
|
+
* @example
|
|
2109
|
+
* ```ts
|
|
2110
|
+
* if (isStrictViewBlockWithImage(node)) {
|
|
2111
|
+
* // 在这个花括号内,node 的类型为 ViewBlockWithImage
|
|
2112
|
+
* }
|
|
2113
|
+
* ```
|
|
2114
|
+
*/
|
|
2115
|
+
function isStrictViewBlockWithImage(node) {
|
|
2116
|
+
return isBaseNode(node) && node.concept === 'ViewBlockWithImage';
|
|
2117
|
+
}
|
|
2118
|
+
exports.isStrictViewBlockWithImage = isStrictViewBlockWithImage;
|
|
1907
2119
|
/**
|
|
1908
2120
|
* 严格判断输入为 AuthInterface 节点
|
|
1909
2121
|
*
|
|
@@ -2499,22 +2711,217 @@ function isBindStyle(node) {
|
|
|
2499
2711
|
}
|
|
2500
2712
|
exports.isBindStyle = isBindStyle;
|
|
2501
2713
|
/**
|
|
2502
|
-
* 判断输入为
|
|
2714
|
+
* 判断输入为 ThemeVariable 节点实例
|
|
2715
|
+
*
|
|
2716
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2717
|
+
* @description 等价于`instanceof`运算,ThemeVariable 节点没有继承类,此判断等价于`isStrictThemeVariable`
|
|
2718
|
+
* @example
|
|
2719
|
+
* ```ts
|
|
2720
|
+
* if (isThemeVariable(node)) {
|
|
2721
|
+
* // 在这个花括号内,node 的类型是 ThemeVariable 或者 ThemeVariable 继承类型
|
|
2722
|
+
* }
|
|
2723
|
+
* ```
|
|
2724
|
+
*/
|
|
2725
|
+
function isThemeVariable(node) {
|
|
2726
|
+
return (isBaseNode(node) &&
|
|
2727
|
+
(node.concept === 'ThemeVariable'));
|
|
2728
|
+
}
|
|
2729
|
+
exports.isThemeVariable = isThemeVariable;
|
|
2730
|
+
/**
|
|
2731
|
+
* 判断输入为 BaseSetter 节点实例
|
|
2732
|
+
*
|
|
2733
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2734
|
+
* @description 等价于`instanceof`运算
|
|
2735
|
+
* @example
|
|
2736
|
+
* ```ts
|
|
2737
|
+
* if (isBaseSetter(node)) {
|
|
2738
|
+
* // 在这个花括号内,node 的类型是 BaseSetter 或者 BaseSetter 继承类型
|
|
2739
|
+
* }
|
|
2740
|
+
* ```
|
|
2741
|
+
*/
|
|
2742
|
+
function isBaseSetter(node) {
|
|
2743
|
+
return (isBaseNode(node) &&
|
|
2744
|
+
(node.concept === 'BaseSetter' ||
|
|
2745
|
+
node.concept === 'InputSetter' ||
|
|
2746
|
+
node.concept === 'SwitchSetter' ||
|
|
2747
|
+
node.concept === 'EnumSelectSetter' ||
|
|
2748
|
+
node.concept === 'CapsulesSetter' ||
|
|
2749
|
+
node.concept === 'NumberInputSetter' ||
|
|
2750
|
+
node.concept === 'IconSetter' ||
|
|
2751
|
+
node.concept === 'ImageSetter' ||
|
|
2752
|
+
node.concept === 'PropertySelectSetter'));
|
|
2753
|
+
}
|
|
2754
|
+
exports.isBaseSetter = isBaseSetter;
|
|
2755
|
+
/**
|
|
2756
|
+
* 判断输入为 InputSetter 节点实例
|
|
2757
|
+
*
|
|
2758
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2759
|
+
* @description 等价于`instanceof`运算,InputSetter 节点没有继承类,此判断等价于`isStrictInputSetter`
|
|
2760
|
+
* @example
|
|
2761
|
+
* ```ts
|
|
2762
|
+
* if (isInputSetter(node)) {
|
|
2763
|
+
* // 在这个花括号内,node 的类型是 InputSetter 或者 InputSetter 继承类型
|
|
2764
|
+
* }
|
|
2765
|
+
* ```
|
|
2766
|
+
*/
|
|
2767
|
+
function isInputSetter(node) {
|
|
2768
|
+
return (isBaseNode(node) &&
|
|
2769
|
+
(node.concept === 'InputSetter'));
|
|
2770
|
+
}
|
|
2771
|
+
exports.isInputSetter = isInputSetter;
|
|
2772
|
+
/**
|
|
2773
|
+
* 判断输入为 SwitchSetter 节点实例
|
|
2774
|
+
*
|
|
2775
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2776
|
+
* @description 等价于`instanceof`运算,SwitchSetter 节点没有继承类,此判断等价于`isStrictSwitchSetter`
|
|
2777
|
+
* @example
|
|
2778
|
+
* ```ts
|
|
2779
|
+
* if (isSwitchSetter(node)) {
|
|
2780
|
+
* // 在这个花括号内,node 的类型是 SwitchSetter 或者 SwitchSetter 继承类型
|
|
2781
|
+
* }
|
|
2782
|
+
* ```
|
|
2783
|
+
*/
|
|
2784
|
+
function isSwitchSetter(node) {
|
|
2785
|
+
return (isBaseNode(node) &&
|
|
2786
|
+
(node.concept === 'SwitchSetter'));
|
|
2787
|
+
}
|
|
2788
|
+
exports.isSwitchSetter = isSwitchSetter;
|
|
2789
|
+
/**
|
|
2790
|
+
* 判断输入为 SetterOption 节点实例
|
|
2791
|
+
*
|
|
2792
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2793
|
+
* @description 等价于`instanceof`运算,SetterOption 节点没有继承类,此判断等价于`isStrictSetterOption`
|
|
2794
|
+
* @example
|
|
2795
|
+
* ```ts
|
|
2796
|
+
* if (isSetterOption(node)) {
|
|
2797
|
+
* // 在这个花括号内,node 的类型是 SetterOption 或者 SetterOption 继承类型
|
|
2798
|
+
* }
|
|
2799
|
+
* ```
|
|
2800
|
+
*/
|
|
2801
|
+
function isSetterOption(node) {
|
|
2802
|
+
return (isBaseNode(node) &&
|
|
2803
|
+
(node.concept === 'SetterOption'));
|
|
2804
|
+
}
|
|
2805
|
+
exports.isSetterOption = isSetterOption;
|
|
2806
|
+
/**
|
|
2807
|
+
* 判断输入为 EnumSelectSetter 节点实例
|
|
2808
|
+
*
|
|
2809
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2810
|
+
* @description 等价于`instanceof`运算,EnumSelectSetter 节点没有继承类,此判断等价于`isStrictEnumSelectSetter`
|
|
2811
|
+
* @example
|
|
2812
|
+
* ```ts
|
|
2813
|
+
* if (isEnumSelectSetter(node)) {
|
|
2814
|
+
* // 在这个花括号内,node 的类型是 EnumSelectSetter 或者 EnumSelectSetter 继承类型
|
|
2815
|
+
* }
|
|
2816
|
+
* ```
|
|
2817
|
+
*/
|
|
2818
|
+
function isEnumSelectSetter(node) {
|
|
2819
|
+
return (isBaseNode(node) &&
|
|
2820
|
+
(node.concept === 'EnumSelectSetter'));
|
|
2821
|
+
}
|
|
2822
|
+
exports.isEnumSelectSetter = isEnumSelectSetter;
|
|
2823
|
+
/**
|
|
2824
|
+
* 判断输入为 CapsulesSetter 节点实例
|
|
2825
|
+
*
|
|
2826
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2827
|
+
* @description 等价于`instanceof`运算,CapsulesSetter 节点没有继承类,此判断等价于`isStrictCapsulesSetter`
|
|
2828
|
+
* @example
|
|
2829
|
+
* ```ts
|
|
2830
|
+
* if (isCapsulesSetter(node)) {
|
|
2831
|
+
* // 在这个花括号内,node 的类型是 CapsulesSetter 或者 CapsulesSetter 继承类型
|
|
2832
|
+
* }
|
|
2833
|
+
* ```
|
|
2834
|
+
*/
|
|
2835
|
+
function isCapsulesSetter(node) {
|
|
2836
|
+
return (isBaseNode(node) &&
|
|
2837
|
+
(node.concept === 'CapsulesSetter'));
|
|
2838
|
+
}
|
|
2839
|
+
exports.isCapsulesSetter = isCapsulesSetter;
|
|
2840
|
+
/**
|
|
2841
|
+
* 判断输入为 NumberInputSetter 节点实例
|
|
2842
|
+
*
|
|
2843
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2844
|
+
* @description 等价于`instanceof`运算,NumberInputSetter 节点没有继承类,此判断等价于`isStrictNumberInputSetter`
|
|
2845
|
+
* @example
|
|
2846
|
+
* ```ts
|
|
2847
|
+
* if (isNumberInputSetter(node)) {
|
|
2848
|
+
* // 在这个花括号内,node 的类型是 NumberInputSetter 或者 NumberInputSetter 继承类型
|
|
2849
|
+
* }
|
|
2850
|
+
* ```
|
|
2851
|
+
*/
|
|
2852
|
+
function isNumberInputSetter(node) {
|
|
2853
|
+
return (isBaseNode(node) &&
|
|
2854
|
+
(node.concept === 'NumberInputSetter'));
|
|
2855
|
+
}
|
|
2856
|
+
exports.isNumberInputSetter = isNumberInputSetter;
|
|
2857
|
+
/**
|
|
2858
|
+
* 判断输入为 IconSetter 节点实例
|
|
2859
|
+
*
|
|
2860
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2861
|
+
* @description 等价于`instanceof`运算,IconSetter 节点没有继承类,此判断等价于`isStrictIconSetter`
|
|
2862
|
+
* @example
|
|
2863
|
+
* ```ts
|
|
2864
|
+
* if (isIconSetter(node)) {
|
|
2865
|
+
* // 在这个花括号内,node 的类型是 IconSetter 或者 IconSetter 继承类型
|
|
2866
|
+
* }
|
|
2867
|
+
* ```
|
|
2868
|
+
*/
|
|
2869
|
+
function isIconSetter(node) {
|
|
2870
|
+
return (isBaseNode(node) &&
|
|
2871
|
+
(node.concept === 'IconSetter'));
|
|
2872
|
+
}
|
|
2873
|
+
exports.isIconSetter = isIconSetter;
|
|
2874
|
+
/**
|
|
2875
|
+
* 判断输入为 ImageSetter 节点实例
|
|
2876
|
+
*
|
|
2877
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2878
|
+
* @description 等价于`instanceof`运算,ImageSetter 节点没有继承类,此判断等价于`isStrictImageSetter`
|
|
2879
|
+
* @example
|
|
2880
|
+
* ```ts
|
|
2881
|
+
* if (isImageSetter(node)) {
|
|
2882
|
+
* // 在这个花括号内,node 的类型是 ImageSetter 或者 ImageSetter 继承类型
|
|
2883
|
+
* }
|
|
2884
|
+
* ```
|
|
2885
|
+
*/
|
|
2886
|
+
function isImageSetter(node) {
|
|
2887
|
+
return (isBaseNode(node) &&
|
|
2888
|
+
(node.concept === 'ImageSetter'));
|
|
2889
|
+
}
|
|
2890
|
+
exports.isImageSetter = isImageSetter;
|
|
2891
|
+
/**
|
|
2892
|
+
* 判断输入为 PropertySelectSetter 节点实例
|
|
2893
|
+
*
|
|
2894
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2895
|
+
* @description 等价于`instanceof`运算,PropertySelectSetter 节点没有继承类,此判断等价于`isStrictPropertySelectSetter`
|
|
2896
|
+
* @example
|
|
2897
|
+
* ```ts
|
|
2898
|
+
* if (isPropertySelectSetter(node)) {
|
|
2899
|
+
* // 在这个花括号内,node 的类型是 PropertySelectSetter 或者 PropertySelectSetter 继承类型
|
|
2900
|
+
* }
|
|
2901
|
+
* ```
|
|
2902
|
+
*/
|
|
2903
|
+
function isPropertySelectSetter(node) {
|
|
2904
|
+
return (isBaseNode(node) &&
|
|
2905
|
+
(node.concept === 'PropertySelectSetter'));
|
|
2906
|
+
}
|
|
2907
|
+
exports.isPropertySelectSetter = isPropertySelectSetter;
|
|
2908
|
+
/**
|
|
2909
|
+
* 判断输入为 ViewComponentDeclaration 节点实例
|
|
2503
2910
|
*
|
|
2504
2911
|
* @description 包含节点类以及节点继承类的判断
|
|
2505
|
-
* @description 等价于`instanceof`运算,
|
|
2912
|
+
* @description 等价于`instanceof`运算,ViewComponentDeclaration 节点没有继承类,此判断等价于`isStrictViewComponentDeclaration`
|
|
2506
2913
|
* @example
|
|
2507
2914
|
* ```ts
|
|
2508
|
-
* if (
|
|
2509
|
-
* // 在这个花括号内,node 的类型是
|
|
2915
|
+
* if (isViewComponentDeclaration(node)) {
|
|
2916
|
+
* // 在这个花括号内,node 的类型是 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
|
|
2510
2917
|
* }
|
|
2511
2918
|
* ```
|
|
2512
2919
|
*/
|
|
2513
|
-
function
|
|
2920
|
+
function isViewComponentDeclaration(node) {
|
|
2514
2921
|
return (isBaseNode(node) &&
|
|
2515
|
-
(node.concept === '
|
|
2922
|
+
(node.concept === 'ViewComponentDeclaration'));
|
|
2516
2923
|
}
|
|
2517
|
-
exports.
|
|
2924
|
+
exports.isViewComponentDeclaration = isViewComponentDeclaration;
|
|
2518
2925
|
/**
|
|
2519
2926
|
* 判断输入为 BusinessComponent 节点实例
|
|
2520
2927
|
*
|
|
@@ -2567,22 +2974,73 @@ function isEvent(node) {
|
|
|
2567
2974
|
}
|
|
2568
2975
|
exports.isEvent = isEvent;
|
|
2569
2976
|
/**
|
|
2570
|
-
* 判断输入为
|
|
2977
|
+
* 判断输入为 PropDeclaration 节点实例
|
|
2978
|
+
*
|
|
2979
|
+
* @description 包含节点类以及节点继承类的判断
|
|
2980
|
+
* @description 等价于`instanceof`运算,PropDeclaration 节点没有继承类,此判断等价于`isStrictPropDeclaration`
|
|
2981
|
+
* @example
|
|
2982
|
+
* ```ts
|
|
2983
|
+
* if (isPropDeclaration(node)) {
|
|
2984
|
+
* // 在这个花括号内,node 的类型是 PropDeclaration 或者 PropDeclaration 继承类型
|
|
2985
|
+
* }
|
|
2986
|
+
* ```
|
|
2987
|
+
*/
|
|
2988
|
+
function isPropDeclaration(node) {
|
|
2989
|
+
return (isBaseNode(node) &&
|
|
2990
|
+
(node.concept === 'PropDeclaration'));
|
|
2991
|
+
}
|
|
2992
|
+
exports.isPropDeclaration = isPropDeclaration;
|
|
2993
|
+
/**
|
|
2994
|
+
* 判断输入为 EventDeclaration 节点实例
|
|
2571
2995
|
*
|
|
2572
2996
|
* @description 包含节点类以及节点继承类的判断
|
|
2573
|
-
* @description 等价于`instanceof`运算,
|
|
2997
|
+
* @description 等价于`instanceof`运算,EventDeclaration 节点没有继承类,此判断等价于`isStrictEventDeclaration`
|
|
2574
2998
|
* @example
|
|
2575
2999
|
* ```ts
|
|
2576
|
-
* if (
|
|
2577
|
-
* // 在这个花括号内,node 的类型是
|
|
3000
|
+
* if (isEventDeclaration(node)) {
|
|
3001
|
+
* // 在这个花括号内,node 的类型是 EventDeclaration 或者 EventDeclaration 继承类型
|
|
2578
3002
|
* }
|
|
2579
3003
|
* ```
|
|
2580
3004
|
*/
|
|
2581
|
-
function
|
|
3005
|
+
function isEventDeclaration(node) {
|
|
2582
3006
|
return (isBaseNode(node) &&
|
|
2583
|
-
(node.concept === '
|
|
3007
|
+
(node.concept === 'EventDeclaration'));
|
|
2584
3008
|
}
|
|
2585
|
-
exports.
|
|
3009
|
+
exports.isEventDeclaration = isEventDeclaration;
|
|
3010
|
+
/**
|
|
3011
|
+
* 判断输入为 SlotDeclaration 节点实例
|
|
3012
|
+
*
|
|
3013
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3014
|
+
* @description 等价于`instanceof`运算,SlotDeclaration 节点没有继承类,此判断等价于`isStrictSlotDeclaration`
|
|
3015
|
+
* @example
|
|
3016
|
+
* ```ts
|
|
3017
|
+
* if (isSlotDeclaration(node)) {
|
|
3018
|
+
* // 在这个花括号内,node 的类型是 SlotDeclaration 或者 SlotDeclaration 继承类型
|
|
3019
|
+
* }
|
|
3020
|
+
* ```
|
|
3021
|
+
*/
|
|
3022
|
+
function isSlotDeclaration(node) {
|
|
3023
|
+
return (isBaseNode(node) &&
|
|
3024
|
+
(node.concept === 'SlotDeclaration'));
|
|
3025
|
+
}
|
|
3026
|
+
exports.isSlotDeclaration = isSlotDeclaration;
|
|
3027
|
+
/**
|
|
3028
|
+
* 判断输入为 LogicDeclaration 节点实例
|
|
3029
|
+
*
|
|
3030
|
+
* @description 包含节点类以及节点继承类的判断
|
|
3031
|
+
* @description 等价于`instanceof`运算,LogicDeclaration 节点没有继承类,此判断等价于`isStrictLogicDeclaration`
|
|
3032
|
+
* @example
|
|
3033
|
+
* ```ts
|
|
3034
|
+
* if (isLogicDeclaration(node)) {
|
|
3035
|
+
* // 在这个花括号内,node 的类型是 LogicDeclaration 或者 LogicDeclaration 继承类型
|
|
3036
|
+
* }
|
|
3037
|
+
* ```
|
|
3038
|
+
*/
|
|
3039
|
+
function isLogicDeclaration(node) {
|
|
3040
|
+
return (isBaseNode(node) &&
|
|
3041
|
+
(node.concept === 'LogicDeclaration'));
|
|
3042
|
+
}
|
|
3043
|
+
exports.isLogicDeclaration = isLogicDeclaration;
|
|
2586
3044
|
/**
|
|
2587
3045
|
* 判断输入为 Theme 节点实例
|
|
2588
3046
|
*
|
|
@@ -4292,7 +4750,7 @@ exports.isFrontendLibrary = isFrontendLibrary;
|
|
|
4292
4750
|
* 判断输入为 ViewBlock 节点实例
|
|
4293
4751
|
*
|
|
4294
4752
|
* @description 包含节点类以及节点继承类的判断
|
|
4295
|
-
* @description 等价于`instanceof
|
|
4753
|
+
* @description 等价于`instanceof`运算
|
|
4296
4754
|
* @example
|
|
4297
4755
|
* ```ts
|
|
4298
4756
|
* if (isViewBlock(node)) {
|
|
@@ -4302,9 +4760,27 @@ exports.isFrontendLibrary = isFrontendLibrary;
|
|
|
4302
4760
|
*/
|
|
4303
4761
|
function isViewBlock(node) {
|
|
4304
4762
|
return (isBaseNode(node) &&
|
|
4305
|
-
(node.concept === 'ViewBlock'
|
|
4763
|
+
(node.concept === 'ViewBlock' ||
|
|
4764
|
+
node.concept === 'ViewBlockWithImage'));
|
|
4306
4765
|
}
|
|
4307
4766
|
exports.isViewBlock = isViewBlock;
|
|
4767
|
+
/**
|
|
4768
|
+
* 判断输入为 ViewBlockWithImage 节点实例
|
|
4769
|
+
*
|
|
4770
|
+
* @description 包含节点类以及节点继承类的判断
|
|
4771
|
+
* @description 等价于`instanceof`运算,ViewBlockWithImage 节点没有继承类,此判断等价于`isStrictViewBlockWithImage`
|
|
4772
|
+
* @example
|
|
4773
|
+
* ```ts
|
|
4774
|
+
* if (isViewBlockWithImage(node)) {
|
|
4775
|
+
* // 在这个花括号内,node 的类型是 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
|
|
4776
|
+
* }
|
|
4777
|
+
* ```
|
|
4778
|
+
*/
|
|
4779
|
+
function isViewBlockWithImage(node) {
|
|
4780
|
+
return (isBaseNode(node) &&
|
|
4781
|
+
(node.concept === 'ViewBlockWithImage'));
|
|
4782
|
+
}
|
|
4783
|
+
exports.isViewBlockWithImage = isViewBlockWithImage;
|
|
4308
4784
|
/**
|
|
4309
4785
|
* 判断输入为 AuthInterface 节点实例
|
|
4310
4786
|
*
|
|
@@ -4766,177 +5242,347 @@ function assertStrictEntity(node) {
|
|
|
4766
5242
|
throw new Error(`Entity 节点严格断言失败`);
|
|
4767
5243
|
}
|
|
4768
5244
|
}
|
|
4769
|
-
exports.assertStrictEntity = assertStrictEntity;
|
|
5245
|
+
exports.assertStrictEntity = assertStrictEntity;
|
|
5246
|
+
/**
|
|
5247
|
+
* 严格断言为 EntityProperty 节点
|
|
5248
|
+
*
|
|
5249
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5250
|
+
* @example
|
|
5251
|
+
* ```ts
|
|
5252
|
+
* assertStrictEntityProperty(node);
|
|
5253
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EntityProperty 类型
|
|
5254
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5255
|
+
* ```
|
|
5256
|
+
*/
|
|
5257
|
+
function assertStrictEntityProperty(node) {
|
|
5258
|
+
if (!isStrictEntityProperty(node)) {
|
|
5259
|
+
throw new Error(`EntityProperty 节点严格断言失败`);
|
|
5260
|
+
}
|
|
5261
|
+
}
|
|
5262
|
+
exports.assertStrictEntityProperty = assertStrictEntityProperty;
|
|
5263
|
+
/**
|
|
5264
|
+
* 严格断言为 EntityIndex 节点
|
|
5265
|
+
*
|
|
5266
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5267
|
+
* @example
|
|
5268
|
+
* ```ts
|
|
5269
|
+
* assertStrictEntityIndex(node);
|
|
5270
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EntityIndex 类型
|
|
5271
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5272
|
+
* ```
|
|
5273
|
+
*/
|
|
5274
|
+
function assertStrictEntityIndex(node) {
|
|
5275
|
+
if (!isStrictEntityIndex(node)) {
|
|
5276
|
+
throw new Error(`EntityIndex 节点严格断言失败`);
|
|
5277
|
+
}
|
|
5278
|
+
}
|
|
5279
|
+
exports.assertStrictEntityIndex = assertStrictEntityIndex;
|
|
5280
|
+
/**
|
|
5281
|
+
* 严格断言为 MetadataType 节点
|
|
5282
|
+
*
|
|
5283
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5284
|
+
* @example
|
|
5285
|
+
* ```ts
|
|
5286
|
+
* assertStrictMetadataType(node);
|
|
5287
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 MetadataType 类型
|
|
5288
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5289
|
+
* ```
|
|
5290
|
+
*/
|
|
5291
|
+
function assertStrictMetadataType(node) {
|
|
5292
|
+
if (!isStrictMetadataType(node)) {
|
|
5293
|
+
throw new Error(`MetadataType 节点严格断言失败`);
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5296
|
+
exports.assertStrictMetadataType = assertStrictMetadataType;
|
|
5297
|
+
/**
|
|
5298
|
+
* 严格断言为 View 节点
|
|
5299
|
+
*
|
|
5300
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5301
|
+
* @example
|
|
5302
|
+
* ```ts
|
|
5303
|
+
* assertStrictView(node);
|
|
5304
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 View 类型
|
|
5305
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5306
|
+
* ```
|
|
5307
|
+
*/
|
|
5308
|
+
function assertStrictView(node) {
|
|
5309
|
+
if (!isStrictView(node)) {
|
|
5310
|
+
throw new Error(`View 节点严格断言失败`);
|
|
5311
|
+
}
|
|
5312
|
+
}
|
|
5313
|
+
exports.assertStrictView = assertStrictView;
|
|
5314
|
+
/**
|
|
5315
|
+
* 严格断言为 ViewElement 节点
|
|
5316
|
+
*
|
|
5317
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5318
|
+
* @example
|
|
5319
|
+
* ```ts
|
|
5320
|
+
* assertStrictViewElement(node);
|
|
5321
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewElement 类型
|
|
5322
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5323
|
+
* ```
|
|
5324
|
+
*/
|
|
5325
|
+
function assertStrictViewElement(node) {
|
|
5326
|
+
if (!isStrictViewElement(node)) {
|
|
5327
|
+
throw new Error(`ViewElement 节点严格断言失败`);
|
|
5328
|
+
}
|
|
5329
|
+
}
|
|
5330
|
+
exports.assertStrictViewElement = assertStrictViewElement;
|
|
5331
|
+
/**
|
|
5332
|
+
* 严格断言为 BindAttribute 节点
|
|
5333
|
+
*
|
|
5334
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5335
|
+
* @example
|
|
5336
|
+
* ```ts
|
|
5337
|
+
* assertStrictBindAttribute(node);
|
|
5338
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindAttribute 类型
|
|
5339
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5340
|
+
* ```
|
|
5341
|
+
*/
|
|
5342
|
+
function assertStrictBindAttribute(node) {
|
|
5343
|
+
if (!isStrictBindAttribute(node)) {
|
|
5344
|
+
throw new Error(`BindAttribute 节点严格断言失败`);
|
|
5345
|
+
}
|
|
5346
|
+
}
|
|
5347
|
+
exports.assertStrictBindAttribute = assertStrictBindAttribute;
|
|
5348
|
+
/**
|
|
5349
|
+
* 严格断言为 BindDirective 节点
|
|
5350
|
+
*
|
|
5351
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5352
|
+
* @example
|
|
5353
|
+
* ```ts
|
|
5354
|
+
* assertStrictBindDirective(node);
|
|
5355
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindDirective 类型
|
|
5356
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5357
|
+
* ```
|
|
5358
|
+
*/
|
|
5359
|
+
function assertStrictBindDirective(node) {
|
|
5360
|
+
if (!isStrictBindDirective(node)) {
|
|
5361
|
+
throw new Error(`BindDirective 节点严格断言失败`);
|
|
5362
|
+
}
|
|
5363
|
+
}
|
|
5364
|
+
exports.assertStrictBindDirective = assertStrictBindDirective;
|
|
5365
|
+
/**
|
|
5366
|
+
* 严格断言为 BindEvent 节点
|
|
5367
|
+
*
|
|
5368
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5369
|
+
* @example
|
|
5370
|
+
* ```ts
|
|
5371
|
+
* assertStrictBindEvent(node);
|
|
5372
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindEvent 类型
|
|
5373
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5374
|
+
* ```
|
|
5375
|
+
*/
|
|
5376
|
+
function assertStrictBindEvent(node) {
|
|
5377
|
+
if (!isStrictBindEvent(node)) {
|
|
5378
|
+
throw new Error(`BindEvent 节点严格断言失败`);
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5381
|
+
exports.assertStrictBindEvent = assertStrictBindEvent;
|
|
5382
|
+
/**
|
|
5383
|
+
* 严格断言为 BindStyle 节点
|
|
5384
|
+
*
|
|
5385
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5386
|
+
* @example
|
|
5387
|
+
* ```ts
|
|
5388
|
+
* assertStrictBindStyle(node);
|
|
5389
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BindStyle 类型
|
|
5390
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5391
|
+
* ```
|
|
5392
|
+
*/
|
|
5393
|
+
function assertStrictBindStyle(node) {
|
|
5394
|
+
if (!isStrictBindStyle(node)) {
|
|
5395
|
+
throw new Error(`BindStyle 节点严格断言失败`);
|
|
5396
|
+
}
|
|
5397
|
+
}
|
|
5398
|
+
exports.assertStrictBindStyle = assertStrictBindStyle;
|
|
5399
|
+
/**
|
|
5400
|
+
* 严格断言为 ThemeVariable 节点
|
|
5401
|
+
*
|
|
5402
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5403
|
+
* @example
|
|
5404
|
+
* ```ts
|
|
5405
|
+
* assertStrictThemeVariable(node);
|
|
5406
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 类型
|
|
5407
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5408
|
+
* ```
|
|
5409
|
+
*/
|
|
5410
|
+
function assertStrictThemeVariable(node) {
|
|
5411
|
+
if (!isStrictThemeVariable(node)) {
|
|
5412
|
+
throw new Error(`ThemeVariable 节点严格断言失败`);
|
|
5413
|
+
}
|
|
5414
|
+
}
|
|
5415
|
+
exports.assertStrictThemeVariable = assertStrictThemeVariable;
|
|
4770
5416
|
/**
|
|
4771
|
-
* 严格断言为
|
|
5417
|
+
* 严格断言为 InputSetter 节点
|
|
4772
5418
|
*
|
|
4773
5419
|
* @description 仅断言节点本身,不包含继承类
|
|
4774
5420
|
* @example
|
|
4775
5421
|
* ```ts
|
|
4776
|
-
*
|
|
4777
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5422
|
+
* assertStrictInputSetter(node);
|
|
5423
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 类型
|
|
4778
5424
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4779
5425
|
* ```
|
|
4780
5426
|
*/
|
|
4781
|
-
function
|
|
4782
|
-
if (!
|
|
4783
|
-
throw new Error(`
|
|
5427
|
+
function assertStrictInputSetter(node) {
|
|
5428
|
+
if (!isStrictInputSetter(node)) {
|
|
5429
|
+
throw new Error(`InputSetter 节点严格断言失败`);
|
|
4784
5430
|
}
|
|
4785
5431
|
}
|
|
4786
|
-
exports.
|
|
5432
|
+
exports.assertStrictInputSetter = assertStrictInputSetter;
|
|
4787
5433
|
/**
|
|
4788
|
-
* 严格断言为
|
|
5434
|
+
* 严格断言为 SwitchSetter 节点
|
|
4789
5435
|
*
|
|
4790
5436
|
* @description 仅断言节点本身,不包含继承类
|
|
4791
5437
|
* @example
|
|
4792
5438
|
* ```ts
|
|
4793
|
-
*
|
|
4794
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5439
|
+
* assertStrictSwitchSetter(node);
|
|
5440
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 类型
|
|
4795
5441
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4796
5442
|
* ```
|
|
4797
5443
|
*/
|
|
4798
|
-
function
|
|
4799
|
-
if (!
|
|
4800
|
-
throw new Error(`
|
|
5444
|
+
function assertStrictSwitchSetter(node) {
|
|
5445
|
+
if (!isStrictSwitchSetter(node)) {
|
|
5446
|
+
throw new Error(`SwitchSetter 节点严格断言失败`);
|
|
4801
5447
|
}
|
|
4802
5448
|
}
|
|
4803
|
-
exports.
|
|
5449
|
+
exports.assertStrictSwitchSetter = assertStrictSwitchSetter;
|
|
4804
5450
|
/**
|
|
4805
|
-
* 严格断言为
|
|
5451
|
+
* 严格断言为 SetterOption 节点
|
|
4806
5452
|
*
|
|
4807
5453
|
* @description 仅断言节点本身,不包含继承类
|
|
4808
5454
|
* @example
|
|
4809
5455
|
* ```ts
|
|
4810
|
-
*
|
|
4811
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5456
|
+
* assertStrictSetterOption(node);
|
|
5457
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 类型
|
|
4812
5458
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4813
5459
|
* ```
|
|
4814
5460
|
*/
|
|
4815
|
-
function
|
|
4816
|
-
if (!
|
|
4817
|
-
throw new Error(`
|
|
5461
|
+
function assertStrictSetterOption(node) {
|
|
5462
|
+
if (!isStrictSetterOption(node)) {
|
|
5463
|
+
throw new Error(`SetterOption 节点严格断言失败`);
|
|
4818
5464
|
}
|
|
4819
5465
|
}
|
|
4820
|
-
exports.
|
|
5466
|
+
exports.assertStrictSetterOption = assertStrictSetterOption;
|
|
4821
5467
|
/**
|
|
4822
|
-
* 严格断言为
|
|
5468
|
+
* 严格断言为 EnumSelectSetter 节点
|
|
4823
5469
|
*
|
|
4824
5470
|
* @description 仅断言节点本身,不包含继承类
|
|
4825
5471
|
* @example
|
|
4826
5472
|
* ```ts
|
|
4827
|
-
*
|
|
4828
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5473
|
+
* assertStrictEnumSelectSetter(node);
|
|
5474
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 类型
|
|
4829
5475
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4830
5476
|
* ```
|
|
4831
5477
|
*/
|
|
4832
|
-
function
|
|
4833
|
-
if (!
|
|
4834
|
-
throw new Error(`
|
|
5478
|
+
function assertStrictEnumSelectSetter(node) {
|
|
5479
|
+
if (!isStrictEnumSelectSetter(node)) {
|
|
5480
|
+
throw new Error(`EnumSelectSetter 节点严格断言失败`);
|
|
4835
5481
|
}
|
|
4836
5482
|
}
|
|
4837
|
-
exports.
|
|
5483
|
+
exports.assertStrictEnumSelectSetter = assertStrictEnumSelectSetter;
|
|
4838
5484
|
/**
|
|
4839
|
-
* 严格断言为
|
|
5485
|
+
* 严格断言为 CapsulesSetter 节点
|
|
4840
5486
|
*
|
|
4841
5487
|
* @description 仅断言节点本身,不包含继承类
|
|
4842
5488
|
* @example
|
|
4843
5489
|
* ```ts
|
|
4844
|
-
*
|
|
4845
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5490
|
+
* assertStrictCapsulesSetter(node);
|
|
5491
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 类型
|
|
4846
5492
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4847
5493
|
* ```
|
|
4848
5494
|
*/
|
|
4849
|
-
function
|
|
4850
|
-
if (!
|
|
4851
|
-
throw new Error(`
|
|
5495
|
+
function assertStrictCapsulesSetter(node) {
|
|
5496
|
+
if (!isStrictCapsulesSetter(node)) {
|
|
5497
|
+
throw new Error(`CapsulesSetter 节点严格断言失败`);
|
|
4852
5498
|
}
|
|
4853
5499
|
}
|
|
4854
|
-
exports.
|
|
5500
|
+
exports.assertStrictCapsulesSetter = assertStrictCapsulesSetter;
|
|
4855
5501
|
/**
|
|
4856
|
-
* 严格断言为
|
|
5502
|
+
* 严格断言为 NumberInputSetter 节点
|
|
4857
5503
|
*
|
|
4858
5504
|
* @description 仅断言节点本身,不包含继承类
|
|
4859
5505
|
* @example
|
|
4860
5506
|
* ```ts
|
|
4861
|
-
*
|
|
4862
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5507
|
+
* assertStrictNumberInputSetter(node);
|
|
5508
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 类型
|
|
4863
5509
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4864
5510
|
* ```
|
|
4865
5511
|
*/
|
|
4866
|
-
function
|
|
4867
|
-
if (!
|
|
4868
|
-
throw new Error(`
|
|
5512
|
+
function assertStrictNumberInputSetter(node) {
|
|
5513
|
+
if (!isStrictNumberInputSetter(node)) {
|
|
5514
|
+
throw new Error(`NumberInputSetter 节点严格断言失败`);
|
|
4869
5515
|
}
|
|
4870
5516
|
}
|
|
4871
|
-
exports.
|
|
5517
|
+
exports.assertStrictNumberInputSetter = assertStrictNumberInputSetter;
|
|
4872
5518
|
/**
|
|
4873
|
-
* 严格断言为
|
|
5519
|
+
* 严格断言为 IconSetter 节点
|
|
4874
5520
|
*
|
|
4875
5521
|
* @description 仅断言节点本身,不包含继承类
|
|
4876
5522
|
* @example
|
|
4877
5523
|
* ```ts
|
|
4878
|
-
*
|
|
4879
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5524
|
+
* assertStrictIconSetter(node);
|
|
5525
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 类型
|
|
4880
5526
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4881
5527
|
* ```
|
|
4882
5528
|
*/
|
|
4883
|
-
function
|
|
4884
|
-
if (!
|
|
4885
|
-
throw new Error(`
|
|
5529
|
+
function assertStrictIconSetter(node) {
|
|
5530
|
+
if (!isStrictIconSetter(node)) {
|
|
5531
|
+
throw new Error(`IconSetter 节点严格断言失败`);
|
|
4886
5532
|
}
|
|
4887
5533
|
}
|
|
4888
|
-
exports.
|
|
5534
|
+
exports.assertStrictIconSetter = assertStrictIconSetter;
|
|
4889
5535
|
/**
|
|
4890
|
-
* 严格断言为
|
|
5536
|
+
* 严格断言为 ImageSetter 节点
|
|
4891
5537
|
*
|
|
4892
5538
|
* @description 仅断言节点本身,不包含继承类
|
|
4893
5539
|
* @example
|
|
4894
5540
|
* ```ts
|
|
4895
|
-
*
|
|
4896
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5541
|
+
* assertStrictImageSetter(node);
|
|
5542
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 类型
|
|
4897
5543
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4898
5544
|
* ```
|
|
4899
5545
|
*/
|
|
4900
|
-
function
|
|
4901
|
-
if (!
|
|
4902
|
-
throw new Error(`
|
|
5546
|
+
function assertStrictImageSetter(node) {
|
|
5547
|
+
if (!isStrictImageSetter(node)) {
|
|
5548
|
+
throw new Error(`ImageSetter 节点严格断言失败`);
|
|
4903
5549
|
}
|
|
4904
5550
|
}
|
|
4905
|
-
exports.
|
|
5551
|
+
exports.assertStrictImageSetter = assertStrictImageSetter;
|
|
4906
5552
|
/**
|
|
4907
|
-
* 严格断言为
|
|
5553
|
+
* 严格断言为 PropertySelectSetter 节点
|
|
4908
5554
|
*
|
|
4909
5555
|
* @description 仅断言节点本身,不包含继承类
|
|
4910
5556
|
* @example
|
|
4911
5557
|
* ```ts
|
|
4912
|
-
*
|
|
4913
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5558
|
+
* assertStrictPropertySelectSetter(node);
|
|
5559
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 类型
|
|
4914
5560
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4915
5561
|
* ```
|
|
4916
5562
|
*/
|
|
4917
|
-
function
|
|
4918
|
-
if (!
|
|
4919
|
-
throw new Error(`
|
|
5563
|
+
function assertStrictPropertySelectSetter(node) {
|
|
5564
|
+
if (!isStrictPropertySelectSetter(node)) {
|
|
5565
|
+
throw new Error(`PropertySelectSetter 节点严格断言失败`);
|
|
4920
5566
|
}
|
|
4921
5567
|
}
|
|
4922
|
-
exports.
|
|
5568
|
+
exports.assertStrictPropertySelectSetter = assertStrictPropertySelectSetter;
|
|
4923
5569
|
/**
|
|
4924
|
-
* 严格断言为
|
|
5570
|
+
* 严格断言为 ViewComponentDeclaration 节点
|
|
4925
5571
|
*
|
|
4926
5572
|
* @description 仅断言节点本身,不包含继承类
|
|
4927
5573
|
* @example
|
|
4928
5574
|
* ```ts
|
|
4929
|
-
*
|
|
4930
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5575
|
+
* assertStrictViewComponentDeclaration(node);
|
|
5576
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 类型
|
|
4931
5577
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
4932
5578
|
* ```
|
|
4933
5579
|
*/
|
|
4934
|
-
function
|
|
4935
|
-
if (!
|
|
4936
|
-
throw new Error(`
|
|
5580
|
+
function assertStrictViewComponentDeclaration(node) {
|
|
5581
|
+
if (!isStrictViewComponentDeclaration(node)) {
|
|
5582
|
+
throw new Error(`ViewComponentDeclaration 节点严格断言失败`);
|
|
4937
5583
|
}
|
|
4938
5584
|
}
|
|
4939
|
-
exports.
|
|
5585
|
+
exports.assertStrictViewComponentDeclaration = assertStrictViewComponentDeclaration;
|
|
4940
5586
|
/**
|
|
4941
5587
|
* 严格断言为 BusinessComponent 节点
|
|
4942
5588
|
*
|
|
@@ -4989,22 +5635,73 @@ function assertStrictEvent(node) {
|
|
|
4989
5635
|
}
|
|
4990
5636
|
exports.assertStrictEvent = assertStrictEvent;
|
|
4991
5637
|
/**
|
|
4992
|
-
* 严格断言为
|
|
5638
|
+
* 严格断言为 PropDeclaration 节点
|
|
5639
|
+
*
|
|
5640
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5641
|
+
* @example
|
|
5642
|
+
* ```ts
|
|
5643
|
+
* assertStrictPropDeclaration(node);
|
|
5644
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 类型
|
|
5645
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5646
|
+
* ```
|
|
5647
|
+
*/
|
|
5648
|
+
function assertStrictPropDeclaration(node) {
|
|
5649
|
+
if (!isStrictPropDeclaration(node)) {
|
|
5650
|
+
throw new Error(`PropDeclaration 节点严格断言失败`);
|
|
5651
|
+
}
|
|
5652
|
+
}
|
|
5653
|
+
exports.assertStrictPropDeclaration = assertStrictPropDeclaration;
|
|
5654
|
+
/**
|
|
5655
|
+
* 严格断言为 EventDeclaration 节点
|
|
5656
|
+
*
|
|
5657
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5658
|
+
* @example
|
|
5659
|
+
* ```ts
|
|
5660
|
+
* assertStrictEventDeclaration(node);
|
|
5661
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 类型
|
|
5662
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5663
|
+
* ```
|
|
5664
|
+
*/
|
|
5665
|
+
function assertStrictEventDeclaration(node) {
|
|
5666
|
+
if (!isStrictEventDeclaration(node)) {
|
|
5667
|
+
throw new Error(`EventDeclaration 节点严格断言失败`);
|
|
5668
|
+
}
|
|
5669
|
+
}
|
|
5670
|
+
exports.assertStrictEventDeclaration = assertStrictEventDeclaration;
|
|
5671
|
+
/**
|
|
5672
|
+
* 严格断言为 SlotDeclaration 节点
|
|
5673
|
+
*
|
|
5674
|
+
* @description 仅断言节点本身,不包含继承类
|
|
5675
|
+
* @example
|
|
5676
|
+
* ```ts
|
|
5677
|
+
* assertStrictSlotDeclaration(node);
|
|
5678
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 类型
|
|
5679
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5680
|
+
* ```
|
|
5681
|
+
*/
|
|
5682
|
+
function assertStrictSlotDeclaration(node) {
|
|
5683
|
+
if (!isStrictSlotDeclaration(node)) {
|
|
5684
|
+
throw new Error(`SlotDeclaration 节点严格断言失败`);
|
|
5685
|
+
}
|
|
5686
|
+
}
|
|
5687
|
+
exports.assertStrictSlotDeclaration = assertStrictSlotDeclaration;
|
|
5688
|
+
/**
|
|
5689
|
+
* 严格断言为 LogicDeclaration 节点
|
|
4993
5690
|
*
|
|
4994
5691
|
* @description 仅断言节点本身,不包含继承类
|
|
4995
5692
|
* @example
|
|
4996
5693
|
* ```ts
|
|
4997
|
-
*
|
|
4998
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
5694
|
+
* assertStrictLogicDeclaration(node);
|
|
5695
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 类型
|
|
4999
5696
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
5000
5697
|
* ```
|
|
5001
5698
|
*/
|
|
5002
|
-
function
|
|
5003
|
-
if (!
|
|
5004
|
-
throw new Error(`
|
|
5699
|
+
function assertStrictLogicDeclaration(node) {
|
|
5700
|
+
if (!isStrictLogicDeclaration(node)) {
|
|
5701
|
+
throw new Error(`LogicDeclaration 节点严格断言失败`);
|
|
5005
5702
|
}
|
|
5006
5703
|
}
|
|
5007
|
-
exports.
|
|
5704
|
+
exports.assertStrictLogicDeclaration = assertStrictLogicDeclaration;
|
|
5008
5705
|
/**
|
|
5009
5706
|
* 严格断言为 Theme 节点
|
|
5010
5707
|
*
|
|
@@ -6586,6 +7283,23 @@ function assertStrictViewBlock(node) {
|
|
|
6586
7283
|
}
|
|
6587
7284
|
}
|
|
6588
7285
|
exports.assertStrictViewBlock = assertStrictViewBlock;
|
|
7286
|
+
/**
|
|
7287
|
+
* 严格断言为 ViewBlockWithImage 节点
|
|
7288
|
+
*
|
|
7289
|
+
* @description 仅断言节点本身,不包含继承类
|
|
7290
|
+
* @example
|
|
7291
|
+
* ```ts
|
|
7292
|
+
* assertStrictViewBlockWithImage(node);
|
|
7293
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 类型
|
|
7294
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7295
|
+
* ```
|
|
7296
|
+
*/
|
|
7297
|
+
function assertStrictViewBlockWithImage(node) {
|
|
7298
|
+
if (!isStrictViewBlockWithImage(node)) {
|
|
7299
|
+
throw new Error(`ViewBlockWithImage 节点严格断言失败`);
|
|
7300
|
+
}
|
|
7301
|
+
}
|
|
7302
|
+
exports.assertStrictViewBlockWithImage = assertStrictViewBlockWithImage;
|
|
6589
7303
|
/**
|
|
6590
7304
|
* 严格断言为 AuthInterface 节点
|
|
6591
7305
|
*
|
|
@@ -7226,23 +7940,221 @@ function assertBindStyle(node) {
|
|
|
7226
7940
|
}
|
|
7227
7941
|
exports.assertBindStyle = assertBindStyle;
|
|
7228
7942
|
/**
|
|
7229
|
-
* 断言为
|
|
7943
|
+
* 断言为 ThemeVariable 节点
|
|
7944
|
+
*
|
|
7945
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7946
|
+
* @description 节点没有继承类时,等价于`assertStrictThemeVariable`方法
|
|
7947
|
+
* @example
|
|
7948
|
+
* ```ts
|
|
7949
|
+
* assertThemeVariable(node);
|
|
7950
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ThemeVariable 或者 ThemeVariable 继承类型
|
|
7951
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7952
|
+
* ```
|
|
7953
|
+
*/
|
|
7954
|
+
function assertThemeVariable(node) {
|
|
7955
|
+
if (!isThemeVariable(node)) {
|
|
7956
|
+
throw new Error(`ThemeVariable 节点断言失败`);
|
|
7957
|
+
}
|
|
7958
|
+
}
|
|
7959
|
+
exports.assertThemeVariable = assertThemeVariable;
|
|
7960
|
+
/**
|
|
7961
|
+
* 断言为 BaseSetter 节点
|
|
7962
|
+
*
|
|
7963
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7964
|
+
* @description 节点没有继承类时,等价于`assertStrictBaseSetter`方法
|
|
7965
|
+
* @example
|
|
7966
|
+
* ```ts
|
|
7967
|
+
* assertBaseSetter(node);
|
|
7968
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 BaseSetter 或者 BaseSetter 继承类型
|
|
7969
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7970
|
+
* ```
|
|
7971
|
+
*/
|
|
7972
|
+
function assertBaseSetter(node) {
|
|
7973
|
+
if (!isBaseSetter(node)) {
|
|
7974
|
+
throw new Error(`BaseSetter 节点断言失败`);
|
|
7975
|
+
}
|
|
7976
|
+
}
|
|
7977
|
+
exports.assertBaseSetter = assertBaseSetter;
|
|
7978
|
+
/**
|
|
7979
|
+
* 断言为 InputSetter 节点
|
|
7980
|
+
*
|
|
7981
|
+
* @description 包含节点类以及节点继承类的判断
|
|
7982
|
+
* @description 节点没有继承类时,等价于`assertStrictInputSetter`方法
|
|
7983
|
+
* @example
|
|
7984
|
+
* ```ts
|
|
7985
|
+
* assertInputSetter(node);
|
|
7986
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 InputSetter 或者 InputSetter 继承类型
|
|
7987
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7988
|
+
* ```
|
|
7989
|
+
*/
|
|
7990
|
+
function assertInputSetter(node) {
|
|
7991
|
+
if (!isInputSetter(node)) {
|
|
7992
|
+
throw new Error(`InputSetter 节点断言失败`);
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
exports.assertInputSetter = assertInputSetter;
|
|
7996
|
+
/**
|
|
7997
|
+
* 断言为 SwitchSetter 节点
|
|
7998
|
+
*
|
|
7999
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8000
|
+
* @description 节点没有继承类时,等价于`assertStrictSwitchSetter`方法
|
|
8001
|
+
* @example
|
|
8002
|
+
* ```ts
|
|
8003
|
+
* assertSwitchSetter(node);
|
|
8004
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SwitchSetter 或者 SwitchSetter 继承类型
|
|
8005
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8006
|
+
* ```
|
|
8007
|
+
*/
|
|
8008
|
+
function assertSwitchSetter(node) {
|
|
8009
|
+
if (!isSwitchSetter(node)) {
|
|
8010
|
+
throw new Error(`SwitchSetter 节点断言失败`);
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
exports.assertSwitchSetter = assertSwitchSetter;
|
|
8014
|
+
/**
|
|
8015
|
+
* 断言为 SetterOption 节点
|
|
8016
|
+
*
|
|
8017
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8018
|
+
* @description 节点没有继承类时,等价于`assertStrictSetterOption`方法
|
|
8019
|
+
* @example
|
|
8020
|
+
* ```ts
|
|
8021
|
+
* assertSetterOption(node);
|
|
8022
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SetterOption 或者 SetterOption 继承类型
|
|
8023
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8024
|
+
* ```
|
|
8025
|
+
*/
|
|
8026
|
+
function assertSetterOption(node) {
|
|
8027
|
+
if (!isSetterOption(node)) {
|
|
8028
|
+
throw new Error(`SetterOption 节点断言失败`);
|
|
8029
|
+
}
|
|
8030
|
+
}
|
|
8031
|
+
exports.assertSetterOption = assertSetterOption;
|
|
8032
|
+
/**
|
|
8033
|
+
* 断言为 EnumSelectSetter 节点
|
|
8034
|
+
*
|
|
8035
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8036
|
+
* @description 节点没有继承类时,等价于`assertStrictEnumSelectSetter`方法
|
|
8037
|
+
* @example
|
|
8038
|
+
* ```ts
|
|
8039
|
+
* assertEnumSelectSetter(node);
|
|
8040
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EnumSelectSetter 或者 EnumSelectSetter 继承类型
|
|
8041
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8042
|
+
* ```
|
|
8043
|
+
*/
|
|
8044
|
+
function assertEnumSelectSetter(node) {
|
|
8045
|
+
if (!isEnumSelectSetter(node)) {
|
|
8046
|
+
throw new Error(`EnumSelectSetter 节点断言失败`);
|
|
8047
|
+
}
|
|
8048
|
+
}
|
|
8049
|
+
exports.assertEnumSelectSetter = assertEnumSelectSetter;
|
|
8050
|
+
/**
|
|
8051
|
+
* 断言为 CapsulesSetter 节点
|
|
8052
|
+
*
|
|
8053
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8054
|
+
* @description 节点没有继承类时,等价于`assertStrictCapsulesSetter`方法
|
|
8055
|
+
* @example
|
|
8056
|
+
* ```ts
|
|
8057
|
+
* assertCapsulesSetter(node);
|
|
8058
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 CapsulesSetter 或者 CapsulesSetter 继承类型
|
|
8059
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8060
|
+
* ```
|
|
8061
|
+
*/
|
|
8062
|
+
function assertCapsulesSetter(node) {
|
|
8063
|
+
if (!isCapsulesSetter(node)) {
|
|
8064
|
+
throw new Error(`CapsulesSetter 节点断言失败`);
|
|
8065
|
+
}
|
|
8066
|
+
}
|
|
8067
|
+
exports.assertCapsulesSetter = assertCapsulesSetter;
|
|
8068
|
+
/**
|
|
8069
|
+
* 断言为 NumberInputSetter 节点
|
|
8070
|
+
*
|
|
8071
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8072
|
+
* @description 节点没有继承类时,等价于`assertStrictNumberInputSetter`方法
|
|
8073
|
+
* @example
|
|
8074
|
+
* ```ts
|
|
8075
|
+
* assertNumberInputSetter(node);
|
|
8076
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 NumberInputSetter 或者 NumberInputSetter 继承类型
|
|
8077
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8078
|
+
* ```
|
|
8079
|
+
*/
|
|
8080
|
+
function assertNumberInputSetter(node) {
|
|
8081
|
+
if (!isNumberInputSetter(node)) {
|
|
8082
|
+
throw new Error(`NumberInputSetter 节点断言失败`);
|
|
8083
|
+
}
|
|
8084
|
+
}
|
|
8085
|
+
exports.assertNumberInputSetter = assertNumberInputSetter;
|
|
8086
|
+
/**
|
|
8087
|
+
* 断言为 IconSetter 节点
|
|
8088
|
+
*
|
|
8089
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8090
|
+
* @description 节点没有继承类时,等价于`assertStrictIconSetter`方法
|
|
8091
|
+
* @example
|
|
8092
|
+
* ```ts
|
|
8093
|
+
* assertIconSetter(node);
|
|
8094
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 IconSetter 或者 IconSetter 继承类型
|
|
8095
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8096
|
+
* ```
|
|
8097
|
+
*/
|
|
8098
|
+
function assertIconSetter(node) {
|
|
8099
|
+
if (!isIconSetter(node)) {
|
|
8100
|
+
throw new Error(`IconSetter 节点断言失败`);
|
|
8101
|
+
}
|
|
8102
|
+
}
|
|
8103
|
+
exports.assertIconSetter = assertIconSetter;
|
|
8104
|
+
/**
|
|
8105
|
+
* 断言为 ImageSetter 节点
|
|
8106
|
+
*
|
|
8107
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8108
|
+
* @description 节点没有继承类时,等价于`assertStrictImageSetter`方法
|
|
8109
|
+
* @example
|
|
8110
|
+
* ```ts
|
|
8111
|
+
* assertImageSetter(node);
|
|
8112
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ImageSetter 或者 ImageSetter 继承类型
|
|
8113
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8114
|
+
* ```
|
|
8115
|
+
*/
|
|
8116
|
+
function assertImageSetter(node) {
|
|
8117
|
+
if (!isImageSetter(node)) {
|
|
8118
|
+
throw new Error(`ImageSetter 节点断言失败`);
|
|
8119
|
+
}
|
|
8120
|
+
}
|
|
8121
|
+
exports.assertImageSetter = assertImageSetter;
|
|
8122
|
+
/**
|
|
8123
|
+
* 断言为 PropertySelectSetter 节点
|
|
8124
|
+
*
|
|
8125
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8126
|
+
* @description 节点没有继承类时,等价于`assertStrictPropertySelectSetter`方法
|
|
8127
|
+
* @example
|
|
8128
|
+
* ```ts
|
|
8129
|
+
* assertPropertySelectSetter(node);
|
|
8130
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropertySelectSetter 或者 PropertySelectSetter 继承类型
|
|
8131
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8132
|
+
* ```
|
|
8133
|
+
*/
|
|
8134
|
+
function assertPropertySelectSetter(node) {
|
|
8135
|
+
if (!isPropertySelectSetter(node)) {
|
|
8136
|
+
throw new Error(`PropertySelectSetter 节点断言失败`);
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8139
|
+
exports.assertPropertySelectSetter = assertPropertySelectSetter;
|
|
8140
|
+
/**
|
|
8141
|
+
* 断言为 ViewComponentDeclaration 节点
|
|
7230
8142
|
*
|
|
7231
8143
|
* @description 包含节点类以及节点继承类的判断
|
|
7232
|
-
* @description 节点没有继承类时,等价于`
|
|
8144
|
+
* @description 节点没有继承类时,等价于`assertStrictViewComponentDeclaration`方法
|
|
7233
8145
|
* @example
|
|
7234
8146
|
* ```ts
|
|
7235
|
-
*
|
|
7236
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8147
|
+
* assertViewComponentDeclaration(node);
|
|
8148
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewComponentDeclaration 或者 ViewComponentDeclaration 继承类型
|
|
7237
8149
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7238
8150
|
* ```
|
|
7239
8151
|
*/
|
|
7240
|
-
function
|
|
7241
|
-
if (!
|
|
7242
|
-
throw new Error(`
|
|
8152
|
+
function assertViewComponentDeclaration(node) {
|
|
8153
|
+
if (!isViewComponentDeclaration(node)) {
|
|
8154
|
+
throw new Error(`ViewComponentDeclaration 节点断言失败`);
|
|
7243
8155
|
}
|
|
7244
8156
|
}
|
|
7245
|
-
exports.
|
|
8157
|
+
exports.assertViewComponentDeclaration = assertViewComponentDeclaration;
|
|
7246
8158
|
/**
|
|
7247
8159
|
* 断言为 BusinessComponent 节点
|
|
7248
8160
|
*
|
|
@@ -7298,23 +8210,77 @@ function assertEvent(node) {
|
|
|
7298
8210
|
}
|
|
7299
8211
|
exports.assertEvent = assertEvent;
|
|
7300
8212
|
/**
|
|
7301
|
-
* 断言为
|
|
8213
|
+
* 断言为 PropDeclaration 节点
|
|
8214
|
+
*
|
|
8215
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8216
|
+
* @description 节点没有继承类时,等价于`assertStrictPropDeclaration`方法
|
|
8217
|
+
* @example
|
|
8218
|
+
* ```ts
|
|
8219
|
+
* assertPropDeclaration(node);
|
|
8220
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 PropDeclaration 或者 PropDeclaration 继承类型
|
|
8221
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8222
|
+
* ```
|
|
8223
|
+
*/
|
|
8224
|
+
function assertPropDeclaration(node) {
|
|
8225
|
+
if (!isPropDeclaration(node)) {
|
|
8226
|
+
throw new Error(`PropDeclaration 节点断言失败`);
|
|
8227
|
+
}
|
|
8228
|
+
}
|
|
8229
|
+
exports.assertPropDeclaration = assertPropDeclaration;
|
|
8230
|
+
/**
|
|
8231
|
+
* 断言为 EventDeclaration 节点
|
|
8232
|
+
*
|
|
8233
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8234
|
+
* @description 节点没有继承类时,等价于`assertStrictEventDeclaration`方法
|
|
8235
|
+
* @example
|
|
8236
|
+
* ```ts
|
|
8237
|
+
* assertEventDeclaration(node);
|
|
8238
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 EventDeclaration 或者 EventDeclaration 继承类型
|
|
8239
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8240
|
+
* ```
|
|
8241
|
+
*/
|
|
8242
|
+
function assertEventDeclaration(node) {
|
|
8243
|
+
if (!isEventDeclaration(node)) {
|
|
8244
|
+
throw new Error(`EventDeclaration 节点断言失败`);
|
|
8245
|
+
}
|
|
8246
|
+
}
|
|
8247
|
+
exports.assertEventDeclaration = assertEventDeclaration;
|
|
8248
|
+
/**
|
|
8249
|
+
* 断言为 SlotDeclaration 节点
|
|
8250
|
+
*
|
|
8251
|
+
* @description 包含节点类以及节点继承类的判断
|
|
8252
|
+
* @description 节点没有继承类时,等价于`assertStrictSlotDeclaration`方法
|
|
8253
|
+
* @example
|
|
8254
|
+
* ```ts
|
|
8255
|
+
* assertSlotDeclaration(node);
|
|
8256
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 SlotDeclaration 或者 SlotDeclaration 继承类型
|
|
8257
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8258
|
+
* ```
|
|
8259
|
+
*/
|
|
8260
|
+
function assertSlotDeclaration(node) {
|
|
8261
|
+
if (!isSlotDeclaration(node)) {
|
|
8262
|
+
throw new Error(`SlotDeclaration 节点断言失败`);
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
8265
|
+
exports.assertSlotDeclaration = assertSlotDeclaration;
|
|
8266
|
+
/**
|
|
8267
|
+
* 断言为 LogicDeclaration 节点
|
|
7302
8268
|
*
|
|
7303
8269
|
* @description 包含节点类以及节点继承类的判断
|
|
7304
|
-
* @description 节点没有继承类时,等价于`
|
|
8270
|
+
* @description 节点没有继承类时,等价于`assertStrictLogicDeclaration`方法
|
|
7305
8271
|
* @example
|
|
7306
8272
|
* ```ts
|
|
7307
|
-
*
|
|
7308
|
-
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为
|
|
8273
|
+
* assertLogicDeclaration(node);
|
|
8274
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 LogicDeclaration 或者 LogicDeclaration 继承类型
|
|
7309
8275
|
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
7310
8276
|
* ```
|
|
7311
8277
|
*/
|
|
7312
|
-
function
|
|
7313
|
-
if (!
|
|
7314
|
-
throw new Error(`
|
|
8278
|
+
function assertLogicDeclaration(node) {
|
|
8279
|
+
if (!isLogicDeclaration(node)) {
|
|
8280
|
+
throw new Error(`LogicDeclaration 节点断言失败`);
|
|
7315
8281
|
}
|
|
7316
8282
|
}
|
|
7317
|
-
exports.
|
|
8283
|
+
exports.assertLogicDeclaration = assertLogicDeclaration;
|
|
7318
8284
|
/**
|
|
7319
8285
|
* 断言为 Theme 节点
|
|
7320
8286
|
*
|
|
@@ -9061,6 +10027,24 @@ function assertViewBlock(node) {
|
|
|
9061
10027
|
}
|
|
9062
10028
|
}
|
|
9063
10029
|
exports.assertViewBlock = assertViewBlock;
|
|
10030
|
+
/**
|
|
10031
|
+
* 断言为 ViewBlockWithImage 节点
|
|
10032
|
+
*
|
|
10033
|
+
* @description 包含节点类以及节点继承类的判断
|
|
10034
|
+
* @description 节点没有继承类时,等价于`assertStrictViewBlockWithImage`方法
|
|
10035
|
+
* @example
|
|
10036
|
+
* ```ts
|
|
10037
|
+
* assertViewBlockWithImage(node);
|
|
10038
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 ViewBlockWithImage 或者 ViewBlockWithImage 继承类型
|
|
10039
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
10040
|
+
* ```
|
|
10041
|
+
*/
|
|
10042
|
+
function assertViewBlockWithImage(node) {
|
|
10043
|
+
if (!isViewBlockWithImage(node)) {
|
|
10044
|
+
throw new Error(`ViewBlockWithImage 节点断言失败`);
|
|
10045
|
+
}
|
|
10046
|
+
}
|
|
10047
|
+
exports.assertViewBlockWithImage = assertViewBlockWithImage;
|
|
9064
10048
|
/**
|
|
9065
10049
|
* 断言为 AuthInterface 节点
|
|
9066
10050
|
*
|