@lcap/nasl 3.8.2-beta.8 → 3.8.2-beta.9
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/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/cobertura-coverage.xml +66121 -10220
- package/coverage/index.html +50 -395
- package/coverage/src/automate/engine/index.html +19 -19
- package/coverage/src/automate/engine/utils.js.html +101 -101
- package/coverage/src/bak/index.html +19 -19
- package/coverage/src/bak/translator.js.html +96 -141
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +29 -29
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +10 -10
- package/coverage/src/breakpoint/generator/index.html +47 -47
- package/coverage/src/breakpoint/generator/index.ts.html +20 -20
- package/coverage/src/breakpoint/index.html +7 -7
- package/coverage/src/breakpoint/index.ts.html +6 -6
- package/coverage/src/breakpoint/shared/constants.ts.html +7 -7
- package/coverage/src/breakpoint/shared/index.html +45 -45
- package/coverage/src/breakpoint/shared/index.ts.html +5 -5
- package/coverage/src/breakpoint/shared/operations.ts.html +15 -15
- package/coverage/src/breakpoint/shared/socket.ts.html +85 -85
- package/coverage/src/breakpoint/shared/utils.ts.html +49 -49
- package/coverage/src/breakpoint/store/core.ts.html +100 -100
- package/coverage/src/breakpoint/store/dock.ts.html +46 -46
- package/coverage/src/breakpoint/store/index.html +33 -33
- package/coverage/src/breakpoint/store/index.ts.html +7 -7
- package/coverage/src/common/BaseNode.ts.html +350 -1187
- package/coverage/src/common/Command.ts.html +20 -20
- package/coverage/src/common/EventEmitter.ts.html +31 -49
- package/coverage/src/common/Messager.ts.html +28 -28
- package/coverage/src/common/asyncFuncMap.ts.html +7 -7
- package/coverage/src/common/index.html +55 -70
- package/coverage/src/common/index.ts.html +8 -11
- package/coverage/src/concepts/Abort__.ts.html +20 -56
- package/coverage/src/concepts/Anchor__.ts.html +51 -117
- package/coverage/src/concepts/AnonymousFunction__.ts.html +232 -343
- package/coverage/src/concepts/App__.ts.html +1283 -2681
- package/coverage/src/concepts/Argument__.ts.html +135 -135
- package/coverage/src/concepts/Assignee__.ts.html +91 -250
- package/coverage/src/concepts/AssignmentLine__.ts.html +28 -88
- package/coverage/src/concepts/Assignment__.ts.html +110 -206
- package/coverage/src/concepts/Attribute__.ts.html +50 -239
- package/coverage/src/concepts/AuthInterface__.ts.html +32 -26
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +188 -203
- package/coverage/src/concepts/AuthLogic__.ts.html +28 -43
- package/coverage/src/concepts/BackendVariable__.ts.html +132 -438
- package/coverage/src/concepts/Backend__.ts.html +57 -156
- package/coverage/src/concepts/BatchAssignment__.ts.html +270 -420
- package/coverage/src/concepts/BinaryExpression__.ts.html +158 -266
- package/coverage/src/concepts/BindAttribute__.ts.html +204 -399
- package/coverage/src/concepts/BindDirective__.ts.html +73 -217
- package/coverage/src/concepts/BindEvent__.ts.html +161 -293
- package/coverage/src/concepts/BindStyle__.ts.html +58 -139
- package/coverage/src/concepts/BooleanLiteral__.ts.html +33 -63
- package/coverage/src/concepts/CallAuthInterface__.ts.html +95 -236
- package/coverage/src/concepts/CallConnector__.ts.html +69 -108
- package/coverage/src/concepts/CallFunction__.ts.html +234 -399
- package/coverage/src/concepts/CallInterface__.ts.html +145 -241
- package/coverage/src/concepts/CallLogic__.ts.html +525 -633
- package/coverage/src/concepts/CallQueryComponent__.ts.html +232 -385
- package/coverage/src/concepts/Comment__.ts.html +27 -63
- package/coverage/src/concepts/CompletionProperty__.ts.html +51 -72
- package/coverage/src/concepts/ConfigGroup__.ts.html +51 -99
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +34 -40
- package/coverage/src/concepts/ConfigProperty__.ts.html +78 -150
- package/coverage/src/concepts/Configuration__.ts.html +48 -99
- package/coverage/src/concepts/Connection__.ts.html +64 -154
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +32 -35
- package/coverage/src/concepts/Connector__.ts.html +228 -3117
- package/coverage/src/concepts/Constant__.ts.html +74 -374
- package/coverage/src/concepts/DataSource__.ts.html +104 -173
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +21 -27
- package/coverage/src/concepts/Destination__.ts.html +121 -190
- package/coverage/src/concepts/End__.ts.html +40 -76
- package/coverage/src/concepts/EntityIndex__.ts.html +44 -80
- package/coverage/src/concepts/EntityProperty__.ts.html +158 -440
- package/coverage/src/concepts/Entity__.ts.html +161 -326
- package/coverage/src/concepts/EnumItem__.ts.html +33 -66
- package/coverage/src/concepts/Enum__.ts.html +64 -139
- package/coverage/src/concepts/Event__.ts.html +51 -87
- package/coverage/src/concepts/ExternalDestination__.ts.html +60 -126
- package/coverage/src/concepts/ForEachStatement__.ts.html +152 -239
- package/coverage/src/concepts/FrontendLibrary__.ts.html +69 -153
- package/coverage/src/concepts/FrontendVariable__.ts.html +19 -76
- package/coverage/src/concepts/Frontend__.ts.html +161 -884
- package/coverage/src/concepts/Function__.ts.html +171 -396
- package/coverage/src/concepts/Identifier__.ts.html +100 -130
- package/coverage/src/concepts/IfStatement__.ts.html +110 -209
- package/coverage/src/concepts/Integration__.ts.html +57 -132
- package/coverage/src/concepts/InterfaceParam__.ts.html +76 -310
- package/coverage/src/concepts/Interface__.ts.html +183 -324
- package/coverage/src/concepts/JSBlock__.ts.html +26 -59
- package/coverage/src/concepts/JavaLogic__.ts.html +28 -58
- package/coverage/src/concepts/LogicItem__.ts.html +73 -151
- package/coverage/src/concepts/Logic__.ts.html +509 -965
- package/coverage/src/concepts/MatchCase__.ts.html +158 -281
- package/coverage/src/concepts/Match__.ts.html +121 -280
- package/coverage/src/concepts/MemberExpression__.ts.html +172 -256
- package/coverage/src/concepts/MicroApp__.ts.html +34 -25
- package/coverage/src/concepts/Module__.ts.html +1270 -1375
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +46 -94
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +48 -93
- package/coverage/src/concepts/Namespace__.ts.html +630 -1251
- package/coverage/src/concepts/NewComposite__.ts.html +341 -557
- package/coverage/src/concepts/NewList__.ts.html +111 -291
- package/coverage/src/concepts/NewMap__.ts.html +128 -332
- package/coverage/src/concepts/New__.ts.html +21 -57
- package/coverage/src/concepts/NullLiteral__.ts.html +23 -56
- package/coverage/src/concepts/NumericLiteral__.ts.html +51 -114
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +76 -211
- package/coverage/src/concepts/OverriddenLogic__.ts.html +394 -643
- package/coverage/src/concepts/Param__.ts.html +174 -315
- package/coverage/src/concepts/Point__.ts.html +21 -27
- package/coverage/src/concepts/ProcessComponent__.ts.html +67 -145
- package/coverage/src/concepts/ProcessElement__.ts.html +281 -854
- package/coverage/src/concepts/ProcessOutcome__.ts.html +25 -100
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +26 -113
- package/coverage/src/concepts/Process__.ts.html +201 -552
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +35 -89
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +35 -62
- package/coverage/src/concepts/QueryFromExpression__.ts.html +47 -119
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +37 -97
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +69 -153
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +36 -105
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +36 -108
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +50 -101
- package/coverage/src/concepts/Rect__.ts.html +25 -25
- package/coverage/src/concepts/Return__.ts.html +131 -368
- package/coverage/src/concepts/Role__.ts.html +37 -67
- package/coverage/src/concepts/SelectMembers__.ts.html +57 -141
- package/coverage/src/concepts/Slot__.ts.html +40 -64
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +62 -122
- package/coverage/src/concepts/Start__.ts.html +25 -58
- package/coverage/src/concepts/StringInterpolation__.ts.html +77 -185
- package/coverage/src/concepts/StringLiteral__.ts.html +47 -158
- package/coverage/src/concepts/StructureProperty__.ts.html +78 -306
- package/coverage/src/concepts/Structure__.ts.html +90 -285
- package/coverage/src/concepts/SwitchCase__.ts.html +66 -141
- package/coverage/src/concepts/SwitchStatement__.ts.html +58 -136
- package/coverage/src/concepts/Theme__.ts.html +24 -36
- package/coverage/src/concepts/Transactional__.ts.html +33 -36
- package/coverage/src/concepts/TriggerEvent__.ts.html +480 -63
- package/coverage/src/concepts/TriggerLauncher__.ts.html +43 -73
- package/coverage/src/concepts/TypeAnnotation__.ts.html +231 -564
- package/coverage/src/concepts/TypeParam__.ts.html +23 -59
- package/coverage/src/concepts/UnaryExpression__.ts.html +47 -131
- package/coverage/src/concepts/Unparsed__.ts.html +29 -59
- package/coverage/src/concepts/UseComponent__.ts.html +21 -27
- package/coverage/src/concepts/ValidationRule__.ts.html +96 -234
- package/coverage/src/concepts/Variable__.ts.html +132 -456
- package/coverage/src/concepts/ViewBlock__.ts.html +23 -26
- package/coverage/src/concepts/ViewComponent__.ts.html +157 -394
- package/coverage/src/concepts/ViewElement__.ts.html +514 -910
- package/coverage/src/concepts/View__.ts.html +425 -1271
- package/coverage/src/concepts/WhileStatement__.ts.html +79 -175
- package/coverage/src/concepts/basics/stdlib/index.html +85 -85
- package/coverage/src/concepts/basics/stdlib/index.ts.html +29 -167
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +152 -206
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +139 -172
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +47 -92
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +31 -130
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +43 -61
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +23 -53
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +167 -203
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +45 -78
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +51 -81
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +66 -69
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +606 -654
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +993 -1050
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +2131 -2236
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +563 -596
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +40 -28
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +9 -9
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +7 -7
- package/coverage/src/concepts/basics/types/index.html +16 -16
- package/coverage/src/concepts/basics/types/index.ts.html +18 -18
- package/coverage/src/concepts/index.html +1215 -1365
- package/coverage/src/concepts/index.ts.html +7 -31
- package/coverage/src/concepts/index__.ts.html +8 -38
- package/coverage/src/config.ts.html +20 -2
- package/coverage/src/decorators/index.html +32 -32
- package/coverage/src/decorators/index.ts.html +93 -108
- package/coverage/src/decorators/promise.ts.html +26 -26
- package/coverage/src/eventBus.ts.html +7 -7
- package/coverage/src/generator/compileComponent.ts.html +10 -10
- package/coverage/src/generator/genBundleFiles.ts.html +45 -273
- package/coverage/src/generator/genHash.ts.html +8 -8
- package/coverage/src/generator/genMetaData.ts.html +49 -280
- package/coverage/src/generator/genReleaseBody.ts.html +98 -113
- package/coverage/src/generator/icestark.ts.html +8 -14
- package/coverage/src/generator/index.html +87 -87
- package/coverage/src/generator/index.ts.html +6 -6
- package/coverage/src/generator/microApp.ts.html +10 -10
- package/coverage/src/generator/permission.ts.html +80 -152
- package/coverage/src/generator/qiankun.ts.html +7 -13
- package/coverage/src/generator/styleReplacer.ts.html +17 -17
- package/coverage/src/index.html +10 -40
- package/coverage/src/index.ts.html +12 -15
- package/coverage/src/manager/diagnostic.ts.html +31 -28
- package/coverage/src/manager/index.html +27 -27
- package/coverage/src/manager/stepRecorder.ts.html +17 -17
- package/coverage/src/natural/genNaturalTS.ts.html +30 -30
- package/coverage/src/natural/index.html +41 -41
- package/coverage/src/natural/index.ts.html +6 -6
- package/coverage/src/natural/naslStdlibMap.ts.html +10 -10
- package/coverage/src/natural/transformTSCode.ts.html +137 -197
- package/coverage/src/sentry/index.html +19 -19
- package/coverage/src/sentry/index.ts.html +43 -49
- package/coverage/src/server/createUiTs.ts.html +37 -46
- package/coverage/src/server/entity2LogicNamespace.ts.html +21 -21
- package/coverage/src/server/event.js.html +7 -7
- package/coverage/src/server/extendBaseNode.ts.html +90 -132
- package/coverage/src/server/formatTsUtils.ts.html +105 -108
- package/coverage/src/server/getConnector.ts.html +24 -96
- package/coverage/src/server/getExtensionModules.ts.html +14 -14
- package/coverage/src/server/getFunctions.ts.html +15 -15
- package/coverage/src/server/getInterfaces.ts.html +18 -18
- package/coverage/src/server/getLogging.ts.html +11 -11
- package/coverage/src/server/getLogics.ts.html +74 -122
- package/coverage/src/server/getMemberIdentifier.ts.html +163 -358
- package/coverage/src/server/getProcessComponents.ts.html +13 -13
- package/coverage/src/server/getProcesses.ts.html +86 -236
- package/coverage/src/server/getValidates.ts.html +14 -17
- package/coverage/src/server/index.html +181 -181
- package/coverage/src/server/index.ts.html +8 -11
- package/coverage/src/server/naslServer.ts.html +1270 -1933
- package/coverage/src/server/naslStdlibMap.ts.html +10 -10
- package/coverage/src/server/process2LogicNamespace.ts.html +20 -20
- package/coverage/src/server/translator.ts.html +89 -134
- package/coverage/src/service/creator/add.configs.js.html +17 -35
- package/coverage/src/service/creator/errHandles.js.html +45 -36
- package/coverage/src/service/creator/index.html +35 -35
- package/coverage/src/service/creator/index.js.html +14 -14
- package/coverage/src/service/datasource/api.js.html +7 -7
- package/coverage/src/service/datasource/index.html +12 -12
- package/coverage/src/service/datasource/index.js.html +5 -5
- package/coverage/src/service/logic/api.js.html +7 -7
- package/coverage/src/service/logic/index.html +12 -12
- package/coverage/src/service/logic/index.js.html +5 -5
- package/coverage/src/service/storage/api.js.html +7 -7
- package/coverage/src/service/storage/index.html +56 -56
- package/coverage/src/service/storage/index.ts.html +5 -5
- package/coverage/src/service/storage/init.ts.html +624 -1758
- package/coverage/src/service/storage/jsoner.ts.html +23 -86
- package/coverage/src/service/storage/map.ts.html +21 -21
- package/coverage/src/service/storage/service.ts.html +14 -14
- package/coverage/src/service/storage/storagePoint.ts.html +9 -9
- package/coverage/src/templator/genCallComponentLogic.ts.html +12 -12
- package/coverage/src/templator/genCreateBlock.ts.html +94 -154
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +90 -90
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +150 -132
- package/coverage/src/templator/genEditTableBlock.ts.html +41 -104
- package/coverage/src/templator/genEnumSelectBlock.ts.html +12 -93
- package/coverage/src/templator/genGetBlock.ts.html +18 -18
- package/coverage/src/templator/genGridViewBlock.ts.html +35 -35
- package/coverage/src/templator/genListViewBlock.ts.html +15 -15
- package/coverage/src/templator/genQueryComponent.ts.html +35 -35
- package/coverage/src/templator/genSelectBlock.ts.html +20 -101
- package/coverage/src/templator/genTableBlock.ts.html +33 -96
- package/coverage/src/templator/genUpdateBlock.ts.html +78 -162
- package/coverage/src/templator/index.html +147 -147
- package/coverage/src/templator/index.ts.html +12 -12
- package/coverage/src/templator/utils.ts.html +32 -95
- package/coverage/src/translator/constant.ts.html +7 -7
- package/coverage/src/translator/index.html +28 -43
- package/coverage/src/translator/index.ts.html +6 -6
- package/coverage/src/translator/utils.ts.html +71 -452
- package/coverage/src/utils/cookie.ts.html +19 -19
- package/coverage/src/utils/env.ts.html +2 -2
- package/coverage/src/utils/index.html +37 -82
- package/coverage/src/utils/index.ts.html +798 -66
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +18 -33
- package/coverage/src/utils/string.ts.html +50 -8
- package/coverage/src/utils/time-slicing/controller.ts.html +8 -8
- package/coverage/src/utils/time-slicing/index.html +64 -79
- package/coverage/src/utils/time-slicing/index.ts.html +8 -8
- package/coverage/src/utils/time-slicing/page-state.ts.html +1 -1
- package/coverage/src/utils/time-slicing/performance.ts.html +4 -4
- package/coverage/src/utils/time-slicing/runner.ts.html +51 -51
- package/coverage/src/utils/time-slicing/tool.ts.html +29 -29
- package/coverage/src/utils/time-slicing/utils.ts.html +16 -16
- package/coverage/src/utils/time-slicing/wrapper.ts.html +50 -50
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +27 -27
- package/coverage/src/utils/types.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/BaseNode.js +5 -3
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/ComponentAPI.d.ts +9 -0
- package/out/concepts/AuthLogicForCallInterface__.js +21 -6
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +24 -8
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +21 -6
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallInterface__.js +2 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +1 -0
- package/out/concepts/CallLogic__.js +25 -10
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Logic__.js +22 -7
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +19 -13
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +21 -6
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ViewElement__.js +1 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +32 -14
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.js +78 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +40 -40
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/generator/genBundleFiles.js +1 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/release-body/utils.js +1 -1
- package/out/natural/transformTS2UI.js +20 -14
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/server/getMemberIdentifier.js +11 -17
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.js +7 -2
- package/out/server/naslServer.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.processV2.ts +19 -0
- package/sandbox/stdlib/nasl.ui.ts +8 -8
- package/src/common/BaseNode.ts +5 -3
- package/src/common/ComponentAPI.ts +7 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +23 -6
- package/src/concepts/BusinessComponent__.ts +26 -8
- package/src/concepts/BusinessLogic__.ts +23 -6
- package/src/concepts/CallInterface__.ts +2 -2
- package/src/concepts/CallLogic__.ts +31 -10
- package/src/concepts/Logic__.ts +27 -10
- package/src/concepts/MemberExpression__.ts +20 -13
- package/src/concepts/OverriddenLogic__.ts +23 -6
- package/src/concepts/ViewElement__.ts +1 -2
- package/src/concepts/View__.ts +35 -14
- package/src/concepts/basics/stdlib/nasl.processV2.ts +79 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +40 -40
- package/src/generator/genBundleFiles.ts +1 -1
- package/src/generator/release-body/utils.ts +1 -1
- package/src/natural/transformTS2UI.ts +19 -14
- package/src/server/getMemberIdentifier.ts +14 -14
- package/src/server/naslServer.ts +7 -2
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +1 -1
- package/.nyc_output/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/.nyc_output/processinfo/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/AbstractInterface__.ts.html +0 -277
- package/coverage/src/concepts/Block__.ts.html +0 -907
- package/coverage/src/concepts/CountersignPolicy__.ts.html +0 -319
- package/coverage/src/concepts/DefaultValue__.ts.html +0 -1024
- package/coverage/src/concepts/I18nInfo__.ts.html +0 -424
- package/coverage/src/concepts/ImportedInterface__.ts.html +0 -262
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2035
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +0 -301
- package/coverage/src/concepts/SequentialPolicy__.ts.html +0 -265
- package/coverage/src/concepts/StaticString__.ts.html +0 -397
- package/coverage/src/concepts/basics/constants.ts.html +0 -88
- package/coverage/src/concepts/basics/index.html +0 -116
- package/coverage/src/concepts/utils/asserts.ts.html +0 -28675
- package/coverage/src/concepts/utils/index.html +0 -131
- package/coverage/src/concepts/utils/types.ts.html +0 -2092
- package/coverage/src/translator/types.ts.html +0 -256
- package/coverage/src/utils/i18nInfo.ts.html +0 -166
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- package/dist/README.md +0 -97
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -397
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -91
- package/dist/src/automate/engine/index.d.ts +0 -4
- package/dist/src/automate/engine/operators.d.ts +0 -26
- package/dist/src/automate/engine/uniqueName.d.ts +0 -12
- package/dist/src/automate/engine/utils.d.ts +0 -25
- package/dist/src/automate/engine/viewCache.d.ts +0 -19
- package/dist/src/automate/template/myProcess.d.ts +0 -10
- package/dist/src/automate/upgrader/2.12.d.ts +0 -7
- package/dist/src/automate/upgrader/2.14-components.d.ts +0 -1115
- package/dist/src/automate/upgrader/2.14.d.ts +0 -10
- package/dist/src/automate/upgrader/2.14.old.d.ts +0 -1
- package/dist/src/automate/upgrader/2.16.d.ts +0 -10
- package/dist/src/automate/upgrader/2.17.d.ts +0 -21
- package/dist/src/automate/upgrader/2.18.d.ts +0 -10
- package/dist/src/automate/upgrader/2.20.d.ts +0 -17
- package/dist/src/bak/translator.d.ts +0 -1
- package/dist/src/breakpoint/generator/AfterStartNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BreakpointNode.d.ts +0 -20
- package/dist/src/breakpoint/generator/CallbackNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/FragmentNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/index.d.ts +0 -4
- package/dist/src/breakpoint/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/constants.d.ts +0 -37
- package/dist/src/breakpoint/shared/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/operations.d.ts +0 -10
- package/dist/src/breakpoint/shared/socket.d.ts +0 -48
- package/dist/src/breakpoint/shared/utils.d.ts +0 -27
- package/dist/src/breakpoint/store/core.d.ts +0 -80
- package/dist/src/breakpoint/store/dock.d.ts +0 -1
- package/dist/src/breakpoint/store/index.d.ts +0 -2
- package/dist/src/common/BaseNode.d.ts +0 -384
- package/dist/src/common/Command.d.ts +0 -21
- package/dist/src/common/ComponentAPI.d.ts +0 -112
- package/dist/src/common/EventEmitter.d.ts +0 -61
- package/dist/src/common/Messager.d.ts +0 -91
- package/dist/src/common/asyncFuncMap.d.ts +0 -2
- package/dist/src/common/index.d.ts +0 -4
- package/dist/src/common/utils.d.ts +0 -2
- package/dist/src/concepts/Abort__.d.ts +0 -31
- package/dist/src/concepts/AbstractInterface__.d.ts +0 -25
- package/dist/src/concepts/Anchor__.d.ts +0 -42
- package/dist/src/concepts/AnonymousFunction__.d.ts +0 -144
- package/dist/src/concepts/App__.d.ts +0 -1711
- package/dist/src/concepts/Argument__.d.ts +0 -64
- package/dist/src/concepts/Assignee__.d.ts +0 -294
- package/dist/src/concepts/AssignmentLine__.d.ts +0 -43
- package/dist/src/concepts/Assignment__.d.ts +0 -57
- package/dist/src/concepts/Attribute__.d.ts +0 -75
- package/dist/src/concepts/AuthInterface__.d.ts +0 -38
- package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +0 -145
- package/dist/src/concepts/AuthLogic__.d.ts +0 -69
- package/dist/src/concepts/BackendVariable__.d.ts +0 -118
- package/dist/src/concepts/Backend__.d.ts +0 -127
- package/dist/src/concepts/BaseSetter__.d.ts +0 -25
- package/dist/src/concepts/BatchAssignment__.d.ts +0 -244
- package/dist/src/concepts/BinaryExpression__.d.ts +0 -61
- package/dist/src/concepts/BindAttribute__.d.ts +0 -284
- package/dist/src/concepts/BindDirective__.d.ts +0 -156
- package/dist/src/concepts/BindEvent__.d.ts +0 -246
- package/dist/src/concepts/BindStyle__.d.ts +0 -127
- package/dist/src/concepts/Block__.d.ts +0 -88
- package/dist/src/concepts/BooleanLiteral__.d.ts +0 -44
- package/dist/src/concepts/BusinessComponent__.d.ts +0 -640
- package/dist/src/concepts/BusinessLogic__.d.ts +0 -44
- package/dist/src/concepts/CallAuthInterface__.d.ts +0 -132
- package/dist/src/concepts/CallConnector__.d.ts +0 -55
- package/dist/src/concepts/CallEvent__.d.ts +0 -100
- package/dist/src/concepts/CallFunction__.d.ts +0 -171
- package/dist/src/concepts/CallInterface__.d.ts +0 -143
- package/dist/src/concepts/CallLogic__.d.ts +0 -224
- package/dist/src/concepts/CallQueryComponent__.d.ts +0 -383
- package/dist/src/concepts/CapsulesSetter__.d.ts +0 -109
- package/dist/src/concepts/Comment__.d.ts +0 -41
- package/dist/src/concepts/CompletionProperty__.d.ts +0 -87
- package/dist/src/concepts/ConfigGroup__.d.ts +0 -121
- package/dist/src/concepts/ConfigPropertyValue__.d.ts +0 -42
- package/dist/src/concepts/ConfigProperty__.d.ts +0 -147
- package/dist/src/concepts/Configuration__.d.ts +0 -120
- package/dist/src/concepts/Connection__.d.ts +0 -159
- package/dist/src/concepts/ConnectorLogic__.d.ts +0 -33
- package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +0 -44
- package/dist/src/concepts/ConnectorTrigger__.d.ts +0 -76
- package/dist/src/concepts/Connector__.d.ts +0 -532
- package/dist/src/concepts/Constant__.d.ts +0 -94
- package/dist/src/concepts/CountersignPolicy__.d.ts +0 -29
- package/dist/src/concepts/DataSource__.d.ts +0 -163
- package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +0 -35
- package/dist/src/concepts/DefaultValue__.d.ts +0 -94
- package/dist/src/concepts/Destination__.d.ts +0 -150
- package/dist/src/concepts/End__.d.ts +0 -30
- package/dist/src/concepts/EntityIndex__.d.ts +0 -93
- package/dist/src/concepts/EntityProperty__.d.ts +0 -255
- package/dist/src/concepts/Entity__.d.ts +0 -332
- package/dist/src/concepts/EnumItem__.d.ts +0 -83
- package/dist/src/concepts/EnumSelectSetter__.d.ts +0 -109
- package/dist/src/concepts/Enum__.d.ts +0 -133
- package/dist/src/concepts/EventDeclaration__.d.ts +0 -41
- package/dist/src/concepts/Event__.d.ts +0 -149
- package/dist/src/concepts/ExternalDestination__.d.ts +0 -63
- package/dist/src/concepts/ForEachStatement__.d.ts +0 -126
- package/dist/src/concepts/FrontendLibrary__.d.ts +0 -208
- package/dist/src/concepts/FrontendType__.d.ts +0 -304
- package/dist/src/concepts/FrontendVariable__.d.ts +0 -41
- package/dist/src/concepts/Frontend__.d.ts +0 -389
- package/dist/src/concepts/Function__.d.ts +0 -399
- package/dist/src/concepts/I18nInfo__.d.ts +0 -47
- package/dist/src/concepts/IconSetter__.d.ts +0 -29
- package/dist/src/concepts/Identifier__.d.ts +0 -66
- package/dist/src/concepts/IfStatement__.d.ts +0 -155
- package/dist/src/concepts/ImageSetter__.d.ts +0 -25
- package/dist/src/concepts/ImportedInterface__.d.ts +0 -29
- package/dist/src/concepts/InputSetter__.d.ts +0 -29
- package/dist/src/concepts/Integration__.d.ts +0 -127
- package/dist/src/concepts/InterfaceParam__.d.ts +0 -119
- package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +0 -34
- package/dist/src/concepts/Interface__.d.ts +0 -323
- package/dist/src/concepts/JSBlock__.d.ts +0 -38
- package/dist/src/concepts/JavaLogic__.d.ts +0 -50
- package/dist/src/concepts/LogicDeclaration__.d.ts +0 -289
- package/dist/src/concepts/LogicItem__.d.ts +0 -171
- package/dist/src/concepts/Logic__.d.ts +0 -632
- package/dist/src/concepts/MatchCase__.d.ts +0 -264
- package/dist/src/concepts/Match__.d.ts +0 -122
- package/dist/src/concepts/MemberExpression__.d.ts +0 -64
- package/dist/src/concepts/MetadataType__.d.ts +0 -220
- package/dist/src/concepts/MicroApp__.d.ts +0 -53
- package/dist/src/concepts/Module__.d.ts +0 -1142
- package/dist/src/concepts/MsgTriggerEvent__.d.ts +0 -138
- package/dist/src/concepts/MsgTriggerLauncher__.d.ts +0 -119
- package/dist/src/concepts/MultiApprovalPolicy__.d.ts +0 -25
- package/dist/src/concepts/Namespace__.d.ts +0 -1060
- package/dist/src/concepts/NewComposite__.d.ts +0 -346
- package/dist/src/concepts/NewList__.d.ts +0 -135
- package/dist/src/concepts/NewMap__.d.ts +0 -226
- package/dist/src/concepts/New__.d.ts +0 -30
- package/dist/src/concepts/NullLiteral__.d.ts +0 -36
- package/dist/src/concepts/NumberInputSetter__.d.ts +0 -45
- package/dist/src/concepts/NumericLiteral__.d.ts +0 -53
- package/dist/src/concepts/OqlQueryComponent__.d.ts +0 -67
- package/dist/src/concepts/OverriddenLogic__.d.ts +0 -615
- package/dist/src/concepts/Paginate__.d.ts +0 -59
- package/dist/src/concepts/ParamWithGroup__.d.ts +0 -44
- package/dist/src/concepts/Param__.d.ts +0 -140
- package/dist/src/concepts/Point__.d.ts +0 -33
- package/dist/src/concepts/ProcessComponent__.d.ts +0 -214
- package/dist/src/concepts/ProcessElement__.d.ts +0 -620
- package/dist/src/concepts/ProcessOutcome__.d.ts +0 -35
- package/dist/src/concepts/ProcessOutcomes__.d.ts +0 -35
- package/dist/src/concepts/Process__.d.ts +0 -605
- package/dist/src/concepts/PropDeclaration__.d.ts +0 -99
- package/dist/src/concepts/PropertySelectSetter__.d.ts +0 -25
- package/dist/src/concepts/QueryAggregateExpression__.d.ts +0 -50
- package/dist/src/concepts/QueryFieldExpression__.d.ts +0 -66
- package/dist/src/concepts/QueryFromExpression__.d.ts +0 -107
- package/dist/src/concepts/QueryGroupByExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryJoinExpression__.d.ts +0 -194
- package/dist/src/concepts/QueryLimitExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryOrderByExpression__.d.ts +0 -57
- package/dist/src/concepts/QuerySelectExpression__.d.ts +0 -213
- package/dist/src/concepts/Rect__.d.ts +0 -41
- package/dist/src/concepts/Return__.d.ts +0 -120
- package/dist/src/concepts/Role__.d.ts +0 -58
- package/dist/src/concepts/SelectMembers__.d.ts +0 -134
- package/dist/src/concepts/SequentialPolicy__.d.ts +0 -25
- package/dist/src/concepts/SetterOption__.d.ts +0 -49
- package/dist/src/concepts/SlotDeclaration__.d.ts +0 -213
- package/dist/src/concepts/Slot__.d.ts +0 -53
- package/dist/src/concepts/SqlQueryComponent__.d.ts +0 -63
- package/dist/src/concepts/Start__.d.ts +0 -30
- package/dist/src/concepts/StaticString__.d.ts +0 -49
- package/dist/src/concepts/StringInterpolation__.d.ts +0 -122
- package/dist/src/concepts/StringLiteral__.d.ts +0 -51
- package/dist/src/concepts/StructureProperty__.d.ts +0 -119
- package/dist/src/concepts/Structure__.d.ts +0 -243
- package/dist/src/concepts/SwitchCase__.d.ts +0 -91
- package/dist/src/concepts/SwitchSetter__.d.ts +0 -25
- package/dist/src/concepts/SwitchStatement__.d.ts +0 -90
- package/dist/src/concepts/ThemeVariable__.d.ts +0 -29
- package/dist/src/concepts/Theme__.d.ts +0 -39
- package/dist/src/concepts/Transactional__.d.ts +0 -85
- package/dist/src/concepts/TriggerEvent__.d.ts +0 -42
- package/dist/src/concepts/TriggerLauncher__.d.ts +0 -76
- package/dist/src/concepts/TypeAnnotation__.d.ts +0 -303
- package/dist/src/concepts/TypeParam__.d.ts +0 -34
- package/dist/src/concepts/UnaryExpression__.d.ts +0 -45
- package/dist/src/concepts/Unparsed__.d.ts +0 -41
- package/dist/src/concepts/UseComponent__.d.ts +0 -33
- package/dist/src/concepts/ValidationRule__.d.ts +0 -133
- package/dist/src/concepts/Variable__.d.ts +0 -137
- package/dist/src/concepts/ViewBlockWithImage__.d.ts +0 -33
- package/dist/src/concepts/ViewBlock__.d.ts +0 -37
- package/dist/src/concepts/ViewComponentDeclaration__.d.ts +0 -721
- package/dist/src/concepts/ViewElement__.d.ts +0 -652
- package/dist/src/concepts/View__.d.ts +0 -728
- package/dist/src/concepts/WhileStatement__.d.ts +0 -94
- package/dist/src/concepts/basics/constants.d.ts +0 -1
- package/dist/src/concepts/basics/stdlib/index.d.ts +0 -16
- package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +0 -7
- package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +0 -6
- package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -4
- package/dist/src/concepts/basics/stdlib/timeZone.d.ts +0 -5
- package/dist/src/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/dist/src/concepts/basics/types/index.d.ts +0 -17
- package/dist/src/concepts/index.d.ts +0 -7
- package/dist/src/concepts/index__.d.ts +0 -156
- package/dist/src/concepts/utils/asserts.d.ts +0 -7825
- package/dist/src/concepts/utils/quick-info.d.ts +0 -13
- package/dist/src/concepts/utils/types.d.ts +0 -510
- package/dist/src/config.d.ts +0 -52
- package/dist/src/decorators/index.d.ts +0 -67
- package/dist/src/decorators/promise.d.ts +0 -7
- package/dist/src/enums/KEYWORDS.d.ts +0 -6
- package/dist/src/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/dist/src/eventBus.d.ts +0 -3
- package/dist/src/generator/compileComponent.d.ts +0 -11
- package/dist/src/generator/genBundleFiles.d.ts +0 -37
- package/dist/src/generator/genHash.d.ts +0 -7
- package/dist/src/generator/genMetaData.d.ts +0 -31
- package/dist/src/generator/icestark.d.ts +0 -2
- package/dist/src/generator/index.d.ts +0 -7
- package/dist/src/generator/microApp.d.ts +0 -2
- package/dist/src/generator/permission.d.ts +0 -14
- package/dist/src/generator/qiankun.d.ts +0 -2
- package/dist/src/generator/release-body/body.d.ts +0 -42
- package/dist/src/generator/release-body/data.d.ts +0 -45
- package/dist/src/generator/release-body/index.d.ts +0 -2
- package/dist/src/generator/release-body/internal.d.ts +0 -622
- package/dist/src/generator/release-body/types.d.ts +0 -57
- package/dist/src/generator/release-body/utils.d.ts +0 -418
- package/dist/src/generator/release-body/validation.d.ts +0 -3
- package/dist/src/generator/styleReplacer.d.ts +0 -3
- package/dist/src/index.d.ts +0 -14
- package/dist/src/manager/diagnostic.d.ts +0 -39
- package/dist/src/manager/stepRecorder.d.ts +0 -20
- package/dist/src/natural/componentData.d.ts +0 -31
- package/dist/src/natural/genNaturalTS.d.ts +0 -241
- package/dist/src/natural/index.d.ts +0 -6
- package/dist/src/natural/naslStdlibMap.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeClaims.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeTasks.d.ts +0 -1
- package/dist/src/natural/prompt/executeClaims.d.ts +0 -1
- package/dist/src/natural/transformTSCode.d.ts +0 -7
- package/dist/src/sentry/index.d.ts +0 -34
- package/dist/src/server/createUiTs.d.ts +0 -17
- package/dist/src/server/entity2LogicNamespace.d.ts +0 -10
- package/dist/src/server/event.d.ts +0 -30
- package/dist/src/server/extendBaseNode.d.ts +0 -1
- package/dist/src/server/formatTsUtils.d.ts +0 -36
- package/dist/src/server/getConnector.d.ts +0 -15
- package/dist/src/server/getExtensionModules.d.ts +0 -3
- package/dist/src/server/getFunctions.d.ts +0 -3
- package/dist/src/server/getInterfaces.d.ts +0 -2
- package/dist/src/server/getLogging.d.ts +0 -1
- package/dist/src/server/getLogics.d.ts +0 -5
- package/dist/src/server/getMemberIdentifier.d.ts +0 -17
- package/dist/src/server/getProcessComponents.d.ts +0 -2
- package/dist/src/server/getProcesses.d.ts +0 -33
- package/dist/src/server/getScope.d.ts +0 -13
- package/dist/src/server/getValidates.d.ts +0 -3
- package/dist/src/server/index.d.ts +0 -5
- package/dist/src/server/naslServer.d.ts +0 -391
- package/dist/src/server/naslStdlibMap.d.ts +0 -2
- package/dist/src/server/process2LogicNamespace.d.ts +0 -26
- package/dist/src/server/translator.d.ts +0 -26
- package/dist/src/service/creator/add.configs.d.ts +0 -1
- package/dist/src/service/creator/errHandles.d.ts +0 -18
- package/dist/src/service/creator/index.d.ts +0 -1
- package/dist/src/service/datasource/api.d.ts +0 -12
- package/dist/src/service/datasource/index.d.ts +0 -2
- package/dist/src/service/logic/api.d.ts +0 -9
- package/dist/src/service/logic/checktypeSocket.d.ts +0 -5
- package/dist/src/service/logic/index.d.ts +0 -2
- package/dist/src/service/storage/api.d.ts +0 -54
- package/dist/src/service/storage/index.d.ts +0 -2
- package/dist/src/service/storage/init.d.ts +0 -105
- package/dist/src/service/storage/jsoner.d.ts +0 -36
- package/dist/src/service/storage/map.d.ts +0 -4
- package/dist/src/service/storage/service.d.ts +0 -25
- package/dist/src/service/storage/storagePoint.d.ts +0 -17
- package/dist/src/service/video/BaseService.d.ts +0 -7
- package/dist/src/service/video/MainCallbackService.d.ts +0 -12
- package/dist/src/service/video/VideoTranscribe.d.ts +0 -15
- package/dist/src/service/video/publishService.d.ts +0 -1
- package/dist/src/templator/genCallComponentLogic.d.ts +0 -17
- package/dist/src/templator/genCreateBlock.d.ts +0 -10
- package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
- package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +0 -61
- package/dist/src/templator/genEditTableBlock.d.ts +0 -51
- package/dist/src/templator/genEnumSelectBlock.d.ts +0 -10
- package/dist/src/templator/genGetBlock.d.ts +0 -6
- package/dist/src/templator/genGridViewBlock.d.ts +0 -55
- package/dist/src/templator/genListViewBlock.d.ts +0 -19
- package/dist/src/templator/genQueryComponent.d.ts +0 -34
- package/dist/src/templator/genSelectBlock.d.ts +0 -45
- package/dist/src/templator/genTableBlock.d.ts +0 -55
- package/dist/src/templator/genUpdateBlock.d.ts +0 -6
- package/dist/src/templator/index.d.ts +0 -19
- package/dist/src/templator/utils.d.ts +0 -683
- package/dist/src/translator/constant.d.ts +0 -6
- package/dist/src/translator/index.d.ts +0 -3
- package/dist/src/translator/types.d.ts +0 -85
- package/dist/src/translator/utils.d.ts +0 -47
- package/dist/src/utils/cookie.d.ts +0 -9
- package/dist/src/utils/create.d.ts +0 -2
- package/dist/src/utils/env.d.ts +0 -2
- package/dist/src/utils/file.d.ts +0 -33
- package/dist/src/utils/i18nInfo.d.ts +0 -5
- package/dist/src/utils/index.d.ts +0 -72
- package/dist/src/utils/logger.d.ts +0 -8
- package/dist/src/utils/sortTsString.d.ts +0 -1
- package/dist/src/utils/string.d.ts +0 -64
- package/dist/src/utils/time-slicing/constant.d.ts +0 -35
- package/dist/src/utils/time-slicing/controller.d.ts +0 -53
- package/dist/src/utils/time-slicing/index.d.ts +0 -5
- package/dist/src/utils/time-slicing/page-state.d.ts +0 -2
- package/dist/src/utils/time-slicing/performance.d.ts +0 -11
- package/dist/src/utils/time-slicing/runner.d.ts +0 -12
- package/dist/src/utils/time-slicing/tool.d.ts +0 -24
- package/dist/src/utils/time-slicing/utils.d.ts +0 -62
- package/dist/src/utils/time-slicing/wrapper.d.ts +0 -18
- package/dist/src/utils/traverse.d.ts +0 -36
- package/dist/src/utils/types.d.ts +0 -13
- package/dist/src/utils/window.d.ts +0 -7
- package/dist/test/concepts/anonymous-function/constant.d.ts +0 -2
- package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/constant.d.ts +0 -2
- package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/constant.d.ts +0 -2
- package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/constant.d.ts +0 -2
- package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/constant.d.ts +0 -2
- package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/constant.d.ts +0 -2
- package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/constant.d.ts +0 -2
- package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/constant.d.ts +0 -2
- package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toUI.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/constant.d.ts +0 -2
- package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/entity/constant.d.ts +0 -2
- package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/constant.d.ts +0 -2
- package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/match/constant.d.ts +0 -2
- package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/match/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/constant.d.ts +0 -2
- package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/constant.d.ts +0 -2
- package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/constant.d.ts +0 -2
- package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/constant.d.ts +0 -2
- package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/constant.d.ts +0 -2
- package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/constant.d.ts +0 -2
- package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/constant.d.ts +0 -2
- package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/utils.d.ts +0 -13
- package/dist/test/concepts/validation-rule/constant.d.ts +0 -2
- package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/constant.d.ts +0 -2
- package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/toVue.spec.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/time-slicing/runner.spec.d.ts +0 -1
- package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +0 -1
- package/dist/test/time-slicing/utils.d.ts +0 -1
- package/dist/test/time-slicing/wrapper.spec.d.ts +0 -1
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">5.77% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>16/277</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/129</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/50</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">5.
|
|
47
|
+
<span class="strong">5.46% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>14/256</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -810,82 +810,7 @@
|
|
|
810
810
|
<a name='L745'></a><a href='#L745'>745</a>
|
|
811
811
|
<a name='L746'></a><a href='#L746'>746</a>
|
|
812
812
|
<a name='L747'></a><a href='#L747'>747</a>
|
|
813
|
-
<a name='L748'></a><a href='#L748'>748</a>
|
|
814
|
-
<a name='L749'></a><a href='#L749'>749</a>
|
|
815
|
-
<a name='L750'></a><a href='#L750'>750</a>
|
|
816
|
-
<a name='L751'></a><a href='#L751'>751</a>
|
|
817
|
-
<a name='L752'></a><a href='#L752'>752</a>
|
|
818
|
-
<a name='L753'></a><a href='#L753'>753</a>
|
|
819
|
-
<a name='L754'></a><a href='#L754'>754</a>
|
|
820
|
-
<a name='L755'></a><a href='#L755'>755</a>
|
|
821
|
-
<a name='L756'></a><a href='#L756'>756</a>
|
|
822
|
-
<a name='L757'></a><a href='#L757'>757</a>
|
|
823
|
-
<a name='L758'></a><a href='#L758'>758</a>
|
|
824
|
-
<a name='L759'></a><a href='#L759'>759</a>
|
|
825
|
-
<a name='L760'></a><a href='#L760'>760</a>
|
|
826
|
-
<a name='L761'></a><a href='#L761'>761</a>
|
|
827
|
-
<a name='L762'></a><a href='#L762'>762</a>
|
|
828
|
-
<a name='L763'></a><a href='#L763'>763</a>
|
|
829
|
-
<a name='L764'></a><a href='#L764'>764</a>
|
|
830
|
-
<a name='L765'></a><a href='#L765'>765</a>
|
|
831
|
-
<a name='L766'></a><a href='#L766'>766</a>
|
|
832
|
-
<a name='L767'></a><a href='#L767'>767</a>
|
|
833
|
-
<a name='L768'></a><a href='#L768'>768</a>
|
|
834
|
-
<a name='L769'></a><a href='#L769'>769</a>
|
|
835
|
-
<a name='L770'></a><a href='#L770'>770</a>
|
|
836
|
-
<a name='L771'></a><a href='#L771'>771</a>
|
|
837
|
-
<a name='L772'></a><a href='#L772'>772</a>
|
|
838
|
-
<a name='L773'></a><a href='#L773'>773</a>
|
|
839
|
-
<a name='L774'></a><a href='#L774'>774</a>
|
|
840
|
-
<a name='L775'></a><a href='#L775'>775</a>
|
|
841
|
-
<a name='L776'></a><a href='#L776'>776</a>
|
|
842
|
-
<a name='L777'></a><a href='#L777'>777</a>
|
|
843
|
-
<a name='L778'></a><a href='#L778'>778</a>
|
|
844
|
-
<a name='L779'></a><a href='#L779'>779</a>
|
|
845
|
-
<a name='L780'></a><a href='#L780'>780</a>
|
|
846
|
-
<a name='L781'></a><a href='#L781'>781</a>
|
|
847
|
-
<a name='L782'></a><a href='#L782'>782</a>
|
|
848
|
-
<a name='L783'></a><a href='#L783'>783</a>
|
|
849
|
-
<a name='L784'></a><a href='#L784'>784</a>
|
|
850
|
-
<a name='L785'></a><a href='#L785'>785</a>
|
|
851
|
-
<a name='L786'></a><a href='#L786'>786</a>
|
|
852
|
-
<a name='L787'></a><a href='#L787'>787</a>
|
|
853
|
-
<a name='L788'></a><a href='#L788'>788</a>
|
|
854
|
-
<a name='L789'></a><a href='#L789'>789</a>
|
|
855
|
-
<a name='L790'></a><a href='#L790'>790</a>
|
|
856
|
-
<a name='L791'></a><a href='#L791'>791</a>
|
|
857
|
-
<a name='L792'></a><a href='#L792'>792</a>
|
|
858
|
-
<a name='L793'></a><a href='#L793'>793</a>
|
|
859
|
-
<a name='L794'></a><a href='#L794'>794</a>
|
|
860
|
-
<a name='L795'></a><a href='#L795'>795</a>
|
|
861
|
-
<a name='L796'></a><a href='#L796'>796</a>
|
|
862
|
-
<a name='L797'></a><a href='#L797'>797</a>
|
|
863
|
-
<a name='L798'></a><a href='#L798'>798</a>
|
|
864
|
-
<a name='L799'></a><a href='#L799'>799</a>
|
|
865
|
-
<a name='L800'></a><a href='#L800'>800</a>
|
|
866
|
-
<a name='L801'></a><a href='#L801'>801</a>
|
|
867
|
-
<a name='L802'></a><a href='#L802'>802</a>
|
|
868
|
-
<a name='L803'></a><a href='#L803'>803</a>
|
|
869
|
-
<a name='L804'></a><a href='#L804'>804</a>
|
|
870
|
-
<a name='L805'></a><a href='#L805'>805</a>
|
|
871
|
-
<a name='L806'></a><a href='#L806'>806</a>
|
|
872
|
-
<a name='L807'></a><a href='#L807'>807</a>
|
|
873
|
-
<a name='L808'></a><a href='#L808'>808</a>
|
|
874
|
-
<a name='L809'></a><a href='#L809'>809</a>
|
|
875
|
-
<a name='L810'></a><a href='#L810'>810</a>
|
|
876
|
-
<a name='L811'></a><a href='#L811'>811</a>
|
|
877
|
-
<a name='L812'></a><a href='#L812'>812</a>
|
|
878
|
-
<a name='L813'></a><a href='#L813'>813</a>
|
|
879
|
-
<a name='L814'></a><a href='#L814'>814</a>
|
|
880
|
-
<a name='L815'></a><a href='#L815'>815</a>
|
|
881
|
-
<a name='L816'></a><a href='#L816'>816</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1235x</span>
|
|
882
|
-
<span class="cline-any cline-neutral"> </span>
|
|
883
|
-
<span class="cline-any cline-neutral"> </span>
|
|
884
|
-
<span class="cline-any cline-neutral"> </span>
|
|
885
|
-
<span class="cline-any cline-neutral"> </span>
|
|
886
|
-
<span class="cline-any cline-neutral"> </span>
|
|
887
|
-
<span class="cline-any cline-neutral"> </span>
|
|
888
|
-
<span class="cline-any cline-neutral"> </span>
|
|
813
|
+
<a name='L748'></a><a href='#L748'>748</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
889
814
|
<span class="cline-any cline-neutral"> </span>
|
|
890
815
|
<span class="cline-any cline-neutral"> </span>
|
|
891
816
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -894,20 +819,10 @@
|
|
|
894
819
|
<span class="cline-any cline-neutral"> </span>
|
|
895
820
|
<span class="cline-any cline-neutral"> </span>
|
|
896
821
|
<span class="cline-any cline-neutral"> </span>
|
|
897
|
-
<span class="cline-any cline-neutral"> </span>
|
|
898
|
-
<span class="cline-any cline-neutral"> </span>
|
|
899
|
-
<span class="cline-any cline-neutral"> </span>
|
|
900
822
|
<span class="cline-any cline-yes">1x</span>
|
|
901
823
|
<span class="cline-any cline-neutral"> </span>
|
|
902
824
|
<span class="cline-any cline-yes">1x</span>
|
|
903
|
-
<span class="cline-any cline-neutral"> </span>
|
|
904
825
|
<span class="cline-any cline-yes">1x</span>
|
|
905
|
-
<span class="cline-any cline-yes">1x</span>
|
|
906
|
-
<span class="cline-any cline-yes">1x</span>
|
|
907
|
-
<span class="cline-any cline-neutral"> </span>
|
|
908
|
-
<span class="cline-any cline-neutral"> </span>
|
|
909
|
-
<span class="cline-any cline-neutral"> </span>
|
|
910
|
-
<span class="cline-any cline-neutral"> </span>
|
|
911
826
|
<span class="cline-any cline-neutral"> </span>
|
|
912
827
|
<span class="cline-any cline-neutral"> </span>
|
|
913
828
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -918,22 +833,15 @@
|
|
|
918
833
|
<span class="cline-any cline-neutral"> </span>
|
|
919
834
|
<span class="cline-any cline-neutral"> </span>
|
|
920
835
|
<span class="cline-any cline-neutral"> </span>
|
|
921
|
-
<span class="cline-any cline-neutral"> </span>
|
|
922
|
-
<span class="cline-any cline-neutral"> </span>
|
|
923
|
-
<span class="cline-any cline-neutral"> </span>
|
|
924
|
-
<span class="cline-any cline-neutral"> </span>
|
|
925
836
|
<span class="cline-any cline-yes">1x</span>
|
|
926
837
|
<span class="cline-any cline-neutral"> </span>
|
|
838
|
+
<span class="cline-any cline-yes">1x</span>
|
|
927
839
|
<span class="cline-any cline-neutral"> </span>
|
|
928
840
|
<span class="cline-any cline-neutral"> </span>
|
|
929
841
|
<span class="cline-any cline-neutral"> </span>
|
|
930
842
|
<span class="cline-any cline-neutral"> </span>
|
|
931
843
|
<span class="cline-any cline-neutral"> </span>
|
|
932
844
|
<span class="cline-any cline-neutral"> </span>
|
|
933
|
-
<span class="cline-any cline-yes">1x</span>
|
|
934
|
-
<span class="cline-any cline-neutral"> </span>
|
|
935
|
-
<span class="cline-any cline-neutral"> </span>
|
|
936
|
-
<span class="cline-any cline-neutral"> </span>
|
|
937
845
|
<span class="cline-any cline-neutral"> </span>
|
|
938
846
|
<span class="cline-any cline-neutral"> </span>
|
|
939
847
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -946,6 +854,8 @@
|
|
|
946
854
|
<span class="cline-any cline-neutral"> </span>
|
|
947
855
|
<span class="cline-any cline-neutral"> </span>
|
|
948
856
|
<span class="cline-any cline-neutral"> </span>
|
|
857
|
+
<span class="cline-any cline-yes">1x</span>
|
|
858
|
+
<span class="cline-any cline-neutral"> </span>
|
|
949
859
|
<span class="cline-any cline-neutral"> </span>
|
|
950
860
|
<span class="cline-any cline-neutral"> </span>
|
|
951
861
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1036,7 +946,6 @@
|
|
|
1036
946
|
<span class="cline-any cline-neutral"> </span>
|
|
1037
947
|
<span class="cline-any cline-no"> </span>
|
|
1038
948
|
<span class="cline-any cline-no"> </span>
|
|
1039
|
-
<span class="cline-any cline-no"> </span>
|
|
1040
949
|
<span class="cline-any cline-neutral"> </span>
|
|
1041
950
|
<span class="cline-any cline-no"> </span>
|
|
1042
951
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1182,7 +1091,6 @@
|
|
|
1182
1091
|
<span class="cline-any cline-neutral"> </span>
|
|
1183
1092
|
<span class="cline-any cline-no"> </span>
|
|
1184
1093
|
<span class="cline-any cline-no"> </span>
|
|
1185
|
-
<span class="cline-any cline-no"> </span>
|
|
1186
1094
|
<span class="cline-any cline-neutral"> </span>
|
|
1187
1095
|
<span class="cline-any cline-no"> </span>
|
|
1188
1096
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1340,23 +1248,15 @@
|
|
|
1340
1248
|
<span class="cline-any cline-neutral"> </span>
|
|
1341
1249
|
<span class="cline-any cline-no"> </span>
|
|
1342
1250
|
<span class="cline-any cline-no"> </span>
|
|
1343
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1344
1251
|
<span class="cline-any cline-no"> </span>
|
|
1345
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1346
1252
|
<span class="cline-any cline-no"> </span>
|
|
1347
1253
|
<span class="cline-any cline-no"> </span>
|
|
1348
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1349
|
-
<span class="cline-any cline-no"> </span>
|
|
1350
|
-
<span class="cline-any cline-no"> </span>
|
|
1351
|
-
<span class="cline-any cline-no"> </span>
|
|
1352
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1353
1254
|
<span class="cline-any cline-no"> </span>
|
|
1354
1255
|
<span class="cline-any cline-no"> </span>
|
|
1355
1256
|
<span class="cline-any cline-no"> </span>
|
|
1356
1257
|
<span class="cline-any cline-no"> </span>
|
|
1357
1258
|
<span class="cline-any cline-neutral"> </span>
|
|
1358
1259
|
<span class="cline-any cline-neutral"> </span>
|
|
1359
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1360
1260
|
<span class="cline-any cline-no"> </span>
|
|
1361
1261
|
<span class="cline-any cline-neutral"> </span>
|
|
1362
1262
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1421,23 +1321,15 @@
|
|
|
1421
1321
|
<span class="cline-any cline-neutral"> </span>
|
|
1422
1322
|
<span class="cline-any cline-no"> </span>
|
|
1423
1323
|
<span class="cline-any cline-no"> </span>
|
|
1424
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1425
|
-
<span class="cline-any cline-no"> </span>
|
|
1426
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1427
|
-
<span class="cline-any cline-no"> </span>
|
|
1428
|
-
<span class="cline-any cline-no"> </span>
|
|
1429
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1430
1324
|
<span class="cline-any cline-no"> </span>
|
|
1431
1325
|
<span class="cline-any cline-no"> </span>
|
|
1432
1326
|
<span class="cline-any cline-no"> </span>
|
|
1433
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1434
1327
|
<span class="cline-any cline-no"> </span>
|
|
1435
1328
|
<span class="cline-any cline-no"> </span>
|
|
1436
1329
|
<span class="cline-any cline-no"> </span>
|
|
1437
1330
|
<span class="cline-any cline-no"> </span>
|
|
1438
1331
|
<span class="cline-any cline-neutral"> </span>
|
|
1439
1332
|
<span class="cline-any cline-neutral"> </span>
|
|
1440
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1441
1333
|
<span class="cline-any cline-no"> </span>
|
|
1442
1334
|
<span class="cline-any cline-neutral"> </span>
|
|
1443
1335
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1492,25 +1384,6 @@
|
|
|
1492
1384
|
<span class="cline-any cline-no"> </span>
|
|
1493
1385
|
<span class="cline-any cline-no"> </span>
|
|
1494
1386
|
<span class="cline-any cline-no"> </span>
|
|
1495
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1496
|
-
<span class="cline-any cline-no"> </span>
|
|
1497
|
-
<span class="cline-any cline-no"> </span>
|
|
1498
|
-
<span class="cline-any cline-no"> </span>
|
|
1499
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1500
|
-
<span class="cline-any cline-no"> </span>
|
|
1501
|
-
<span class="cline-any cline-no"> </span>
|
|
1502
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1503
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1504
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1505
|
-
<span class="cline-any cline-no"> </span>
|
|
1506
|
-
<span class="cline-any cline-no"> </span>
|
|
1507
|
-
<span class="cline-any cline-no"> </span>
|
|
1508
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1509
|
-
<span class="cline-any cline-no"> </span>
|
|
1510
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1511
|
-
<span class="cline-any cline-no"> </span>
|
|
1512
|
-
<span class="cline-any cline-no"> </span>
|
|
1513
|
-
<span class="cline-any cline-no"> </span>
|
|
1514
1387
|
<span class="cline-any cline-no"> </span>
|
|
1515
1388
|
<span class="cline-any cline-no"> </span>
|
|
1516
1389
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1532,17 +1405,10 @@
|
|
|
1532
1405
|
<span class="cline-any cline-no"> </span>
|
|
1533
1406
|
<span class="cline-any cline-no"> </span>
|
|
1534
1407
|
<span class="cline-any cline-no"> </span>
|
|
1535
|
-
<span class="cline-any cline-no"> </span>
|
|
1536
|
-
<span class="cline-any cline-no"> </span>
|
|
1537
1408
|
<span class="cline-any cline-neutral"> </span>
|
|
1538
1409
|
<span class="cline-any cline-no"> </span>
|
|
1539
1410
|
<span class="cline-any cline-no"> </span>
|
|
1540
1411
|
<span class="cline-any cline-no"> </span>
|
|
1541
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1542
|
-
<span class="cline-any cline-no"> </span>
|
|
1543
|
-
<span class="cline-any cline-no"> </span>
|
|
1544
|
-
<span class="cline-any cline-no"> </span>
|
|
1545
|
-
<span class="cline-any cline-no"> </span>
|
|
1546
1412
|
<span class="cline-any cline-no"> </span>
|
|
1547
1413
|
<span class="cline-any cline-no"> </span>
|
|
1548
1414
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1553,11 +1419,10 @@
|
|
|
1553
1419
|
<span class="cline-any cline-no"> </span>
|
|
1554
1420
|
<span class="cline-any cline-no"> </span>
|
|
1555
1421
|
<span class="cline-any cline-no"> </span>
|
|
1556
|
-
<span class="cline-any cline-no"> </span>
|
|
1557
1422
|
<span class="cline-any cline-neutral"> </span>
|
|
1558
1423
|
<span class="cline-any cline-no"> </span>
|
|
1559
1424
|
<span class="cline-any cline-no"> </span>
|
|
1560
|
-
<span class="cline-any cline-
|
|
1425
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1561
1426
|
<span class="cline-any cline-no"> </span>
|
|
1562
1427
|
<span class="cline-any cline-no"> </span>
|
|
1563
1428
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1607,7 +1472,9 @@
|
|
|
1607
1472
|
<span class="cline-any cline-no"> </span>
|
|
1608
1473
|
<span class="cline-any cline-neutral"> </span>
|
|
1609
1474
|
<span class="cline-any cline-no"> </span>
|
|
1475
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1610
1476
|
<span class="cline-any cline-no"> </span>
|
|
1477
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1611
1478
|
<span class="cline-any cline-no"> </span>
|
|
1612
1479
|
<span class="cline-any cline-no"> </span>
|
|
1613
1480
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1616,6 +1483,7 @@
|
|
|
1616
1483
|
<span class="cline-any cline-no"> </span>
|
|
1617
1484
|
<span class="cline-any cline-no"> </span>
|
|
1618
1485
|
<span class="cline-any cline-no"> </span>
|
|
1486
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1619
1487
|
<span class="cline-any cline-no"> </span>
|
|
1620
1488
|
<span class="cline-any cline-no"> </span>
|
|
1621
1489
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1625,7 +1493,6 @@
|
|
|
1625
1493
|
<span class="cline-any cline-neutral"> </span>
|
|
1626
1494
|
<span class="cline-any cline-yes">1x</span>
|
|
1627
1495
|
<span class="cline-any cline-no"> </span>
|
|
1628
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1629
1496
|
<span class="cline-any cline-no"> </span>
|
|
1630
1497
|
<span class="cline-any cline-no"> </span>
|
|
1631
1498
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1652,13 +1519,11 @@
|
|
|
1652
1519
|
<span class="cline-any cline-no"> </span>
|
|
1653
1520
|
<span class="cline-any cline-no"> </span>
|
|
1654
1521
|
<span class="cline-any cline-no"> </span>
|
|
1655
|
-
<span class="cline-any cline-no"> </span>
|
|
1656
1522
|
<span class="cline-any cline-neutral"> </span>
|
|
1657
1523
|
<span class="cline-any cline-neutral"> </span>
|
|
1658
1524
|
<span class="cline-any cline-neutral"> </span>
|
|
1659
1525
|
<span class="cline-any cline-no"> </span>
|
|
1660
1526
|
<span class="cline-any cline-no"> </span>
|
|
1661
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1662
1527
|
<span class="cline-any cline-no"> </span>
|
|
1663
1528
|
<span class="cline-any cline-no"> </span>
|
|
1664
1529
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1678,7 +1543,6 @@
|
|
|
1678
1543
|
<span class="cline-any cline-no"> </span>
|
|
1679
1544
|
<span class="cline-any cline-no"> </span>
|
|
1680
1545
|
<span class="cline-any cline-no"> </span>
|
|
1681
|
-
<span class="cline-any cline-no"> </span>
|
|
1682
1546
|
<span class="cline-any cline-neutral"> </span>
|
|
1683
1547
|
<span class="cline-any cline-no"> </span>
|
|
1684
1548
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1693,79 +1557,57 @@
|
|
|
1693
1557
|
<span class="cline-any cline-neutral"> </span>
|
|
1694
1558
|
<span class="cline-any cline-neutral"> </span>
|
|
1695
1559
|
<span class="cline-any cline-neutral"> </span>
|
|
1696
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
1697
|
-
import {
|
|
1698
|
-
TranslatorState,
|
|
1699
|
-
shiftState,
|
|
1700
|
-
withSourceMap,
|
|
1701
|
-
indent,
|
|
1702
|
-
createCompilerState,
|
|
1703
|
-
withSourceMapGenerator,
|
|
1704
|
-
withGenerator,
|
|
1705
|
-
TranslatorGenerator,
|
|
1706
|
-
} from '../translator';
|
|
1560
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
1707
1561
|
import { ElementToVueOptions } from './ViewElement__';
|
|
1708
|
-
import
|
|
1709
|
-
import
|
|
1562
|
+
import ForEachStatement from './ForEachStatement__';
|
|
1563
|
+
import Logic from './Logic__';
|
|
1710
1564
|
//================================================================================
|
|
1711
1565
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
1712
1566
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
1713
1567
|
//================================================================================
|
|
1714
1568
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
1715
|
-
import { concept, excludedInJSON, property,
|
|
1569
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
1716
1570
|
|
|
1717
1571
|
import * as utils from '../utils';
|
|
1718
|
-
import * as types from './utils/types';
|
|
1719
|
-
import * as asserts from './utils/asserts';
|
|
1720
1572
|
import { v4 as uuidv4 } from 'uuid';
|
|
1573
|
+
import BaseNode from '../common/BaseNode';
|
|
1574
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
1721
1575
|
import LogicItem from './LogicItem__';
|
|
1722
|
-
import type TypeAnnotation from './TypeAnnotation__';
|
|
1723
1576
|
|
|
1724
1577
|
/**
|
|
1725
1578
|
* Map 构造器
|
|
1726
1579
|
*/
|
|
1580
|
+
@className
|
|
1727
1581
|
@concept('Map 构造器')
|
|
1582
|
+
// @ts-ignore
|
|
1728
1583
|
export class NewMap extends LogicItem {
|
|
1729
1584
|
/** 类名 */
|
|
1730
|
-
static readonly ConceptName
|
|
1731
|
-
|
|
1732
|
-
/** 继承链 */
|
|
1733
|
-
static readonly inheritanceChain: string[] = ['LogicItem', 'BaseNode'];
|
|
1585
|
+
static readonly ConceptName = 'NewMap';
|
|
1734
1586
|
|
|
1735
1587
|
/**
|
|
1736
1588
|
* 产品概念
|
|
1737
1589
|
*/
|
|
1738
|
-
@property('concept')
|
|
1739
1590
|
// @ts-ignore
|
|
1740
1591
|
readonly concept!: 'NewMap';
|
|
1741
1592
|
|
|
1742
1593
|
/**
|
|
1743
1594
|
* 类型
|
|
1744
1595
|
*/
|
|
1745
|
-
@property(
|
|
1746
|
-
|
|
1747
|
-
})
|
|
1596
|
+
@property('TypeAnnotation')
|
|
1597
|
+
// @ts-ignore
|
|
1748
1598
|
typeAnnotation!: TypeAnnotation;
|
|
1749
1599
|
|
|
1750
1600
|
/**
|
|
1751
1601
|
* 键
|
|
1752
1602
|
*/
|
|
1753
|
-
@property(
|
|
1754
|
-
|
|
1755
|
-
isArray: true,
|
|
1756
|
-
defaultValue: [],
|
|
1757
|
-
})
|
|
1758
|
-
<span class="cstat-no" title="statement not covered" > keys: Array<LogicItem> = [];</span>
|
|
1603
|
+
@property('LogicItem')
|
|
1604
|
+
keys: Array<LogicItem> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
1759
1605
|
|
|
1760
1606
|
/**
|
|
1761
1607
|
* 键对应的值
|
|
1762
1608
|
*/
|
|
1763
|
-
@property(
|
|
1764
|
-
|
|
1765
|
-
isArray: true,
|
|
1766
|
-
defaultValue: [],
|
|
1767
|
-
})
|
|
1768
|
-
<span class="cstat-no" title="statement not covered" > values: Array<LogicItem> = [];</span>
|
|
1609
|
+
@property('LogicItem')
|
|
1610
|
+
values: Array<LogicItem> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
1769
1611
|
|
|
1770
1612
|
/**
|
|
1771
1613
|
* @param source 需要合并的部分参数
|
|
@@ -1776,14 +1618,14 @@ export class NewMap extends LogicItem {
|
|
|
1776
1618
|
<span class="cstat-no" title="statement not covered" > super.subConstructor(source);</span>
|
|
1777
1619
|
}
|
|
1778
1620
|
|
|
1779
|
-
<span class="fstat-no" title="function not covered" > static
|
|
1621
|
+
<span class="fstat-no" title="function not covered" > static </span>from(source: any, parentNode?: any, parentKey?: string): NewMap {
|
|
1780
1622
|
<span class="cstat-no" title="statement not covered" > return super.from(source, parentNode, parentKey) as NewMap;</span>
|
|
1781
1623
|
}
|
|
1782
1624
|
|
|
1783
1625
|
/**
|
|
1784
1626
|
* 设置类型
|
|
1785
1627
|
*/
|
|
1786
|
-
<span class="fstat-no" title="function not covered" > setTypeAnnotation(
|
|
1628
|
+
<span class="fstat-no" title="function not covered" > setTypeAnnotation(</span>typeAnnotation: TypeAnnotation) {
|
|
1787
1629
|
<span class="cstat-no" title="statement not covered" > typeAnnotation._delete();</span>
|
|
1788
1630
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'typeAnnotation' };</span>
|
|
1789
1631
|
<span class="cstat-no" title="statement not covered" > Object.assign(typeAnnotation, relationOptions);</span>
|
|
@@ -1798,7 +1640,7 @@ export class NewMap extends LogicItem {
|
|
|
1798
1640
|
/**
|
|
1799
1641
|
* 设置键
|
|
1800
1642
|
*/
|
|
1801
|
-
<span class="fstat-no" title="function not covered" > setKeys(
|
|
1643
|
+
<span class="fstat-no" title="function not covered" > setKeys(</span>keys: Array<LogicItem>) {
|
|
1802
1644
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1803
1645
|
keys,
|
|
1804
1646
|
};
|
|
@@ -1810,7 +1652,7 @@ export class NewMap extends LogicItem {
|
|
|
1810
1652
|
/**
|
|
1811
1653
|
* 设置键对应的值
|
|
1812
1654
|
*/
|
|
1813
|
-
<span class="fstat-no" title="function not covered" > setValues(
|
|
1655
|
+
<span class="fstat-no" title="function not covered" > setValues(</span>values: Array<LogicItem>) {
|
|
1814
1656
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1815
1657
|
values,
|
|
1816
1658
|
};
|
|
@@ -1819,11 +1661,11 @@ export class NewMap extends LogicItem {
|
|
|
1819
1661
|
});
|
|
1820
1662
|
}
|
|
1821
1663
|
|
|
1822
|
-
<span class="fstat-no" title="function not covered" > getItemExistingNames(
|
|
1664
|
+
<span class="fstat-no" title="function not covered" > getItemExistingNames(</span>excludedList: Array<LogicItem> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
1823
1665
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
1824
|
-
<span class="cstat-no" title="statement not covered" > return ((this.keys as LogicItem[]) || []).filter(
|
|
1666
|
+
<span class="cstat-no" title="statement not covered" > return ((this.keys as LogicItem[]) || []).filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;</span>
|
|
1825
1667
|
}
|
|
1826
|
-
<span class="fstat-no" title="function not covered" > getItemUniqueName(
|
|
1668
|
+
<span class="fstat-no" title="function not covered" > getItemUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'logicItem1')</span> {
|
|
1827
1669
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getItemExistingNames(), undefined, false);</span>
|
|
1828
1670
|
}
|
|
1829
1671
|
|
|
@@ -1848,10 +1690,9 @@ export class NewMap extends LogicItem {
|
|
|
1848
1690
|
*/
|
|
1849
1691
|
_insertItemInKeysAt(logicItem: LogicItem, index: number): LogicItem;
|
|
1850
1692
|
|
|
1851
|
-
<span class="fstat-no" title="function not covered" > _insertItemInKeysAt(
|
|
1693
|
+
<span class="fstat-no" title="function not covered" > _insertItemInKeysAt(</span>options: string | Partial<LogicItem> | LogicItem, index: number) {
|
|
1852
1694
|
const logicItemOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
1853
1695
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'keys' };</span>
|
|
1854
|
-
const <span class="cstat-no" title="statement not covered" >LogicItem = getConceptConstructor('LogicItem');</span>
|
|
1855
1696
|
let logicItem: LogicItem;
|
|
1856
1697
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
1857
1698
|
<span class="cstat-no" title="statement not covered" > logicItem = LogicItem.from(</span>
|
|
@@ -1862,7 +1703,7 @@ export class NewMap extends LogicItem {
|
|
|
1862
1703
|
this,
|
|
1863
1704
|
'keys',
|
|
1864
1705
|
);
|
|
1865
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1706
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
1866
1707
|
<span class="cstat-no" title="statement not covered" > logicItem = LogicItem.from(</span>
|
|
1867
1708
|
{
|
|
1868
1709
|
...logicItemOptions,
|
|
@@ -1871,8 +1712,8 @@ export class NewMap extends LogicItem {
|
|
|
1871
1712
|
this,
|
|
1872
1713
|
'keys',
|
|
1873
1714
|
);
|
|
1874
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1875
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
1715
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof LogicItem) {</span>
|
|
1716
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
1876
1717
|
<span class="cstat-no" title="statement not covered" > logicItem = options;</span>
|
|
1877
1718
|
<span class="cstat-no" title="statement not covered" > Object.assign(logicItem, relationOptions);</span>
|
|
1878
1719
|
} else {
|
|
@@ -1907,7 +1748,7 @@ export class NewMap extends LogicItem {
|
|
|
1907
1748
|
*/
|
|
1908
1749
|
insertItemInKeysAt(logicItem: LogicItem, index: number): LogicItem;
|
|
1909
1750
|
|
|
1910
|
-
<span class="fstat-no" title="function not covered" > insertItemInKeysAt(
|
|
1751
|
+
<span class="fstat-no" title="function not covered" > insertItemInKeysAt(</span>options: string | Partial<LogicItem> | LogicItem, index: number) {
|
|
1911
1752
|
const node = <span class="cstat-no" title="statement not covered" >this._insertItemInKeysAt(options as any, index);</span>
|
|
1912
1753
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
1913
1754
|
index,
|
|
@@ -1938,7 +1779,7 @@ export class NewMap extends LogicItem {
|
|
|
1938
1779
|
*/
|
|
1939
1780
|
_addItemInKeys(logicItem: LogicItem): LogicItem;
|
|
1940
1781
|
|
|
1941
|
-
<span class="fstat-no" title="function not covered" > _addItemInKeys(
|
|
1782
|
+
<span class="fstat-no" title="function not covered" > _addItemInKeys(</span>options?: string | Partial<LogicItem> | LogicItem) {
|
|
1942
1783
|
const index = <span class="cstat-no" title="statement not covered" >this.keys.length;</span>
|
|
1943
1784
|
<span class="cstat-no" title="statement not covered" > return this._insertItemInKeysAt(options as any, index);</span>
|
|
1944
1785
|
}
|
|
@@ -1962,7 +1803,7 @@ export class NewMap extends LogicItem {
|
|
|
1962
1803
|
*/
|
|
1963
1804
|
addItemInKeys(logicItem: LogicItem): LogicItem;
|
|
1964
1805
|
|
|
1965
|
-
<span class="fstat-no" title="function not covered" > addItemInKeys(
|
|
1806
|
+
<span class="fstat-no" title="function not covered" > addItemInKeys(</span>options?: string | Partial<LogicItem> | LogicItem) {
|
|
1966
1807
|
const node = <span class="cstat-no" title="statement not covered" >this._addItemInKeys(options as any);</span>
|
|
1967
1808
|
const index = <span class="cstat-no" title="statement not covered" >this.keys.indexOf(node);</span>
|
|
1968
1809
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -1994,10 +1835,9 @@ export class NewMap extends LogicItem {
|
|
|
1994
1835
|
*/
|
|
1995
1836
|
_insertItemInValuesAt(logicItem: LogicItem, index: number): LogicItem;
|
|
1996
1837
|
|
|
1997
|
-
<span class="fstat-no" title="function not covered" > _insertItemInValuesAt(
|
|
1838
|
+
<span class="fstat-no" title="function not covered" > _insertItemInValuesAt(</span>options: string | Partial<LogicItem> | LogicItem, index: number) {
|
|
1998
1839
|
const logicItemOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
1999
1840
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'values' };</span>
|
|
2000
|
-
const <span class="cstat-no" title="statement not covered" >LogicItem = getConceptConstructor('LogicItem');</span>
|
|
2001
1841
|
let logicItem: LogicItem;
|
|
2002
1842
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2003
1843
|
<span class="cstat-no" title="statement not covered" > logicItem = LogicItem.from(</span>
|
|
@@ -2008,7 +1848,7 @@ export class NewMap extends LogicItem {
|
|
|
2008
1848
|
this,
|
|
2009
1849
|
'values',
|
|
2010
1850
|
);
|
|
2011
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1851
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2012
1852
|
<span class="cstat-no" title="statement not covered" > logicItem = LogicItem.from(</span>
|
|
2013
1853
|
{
|
|
2014
1854
|
...logicItemOptions,
|
|
@@ -2017,8 +1857,8 @@ export class NewMap extends LogicItem {
|
|
|
2017
1857
|
this,
|
|
2018
1858
|
'values',
|
|
2019
1859
|
);
|
|
2020
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2021
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
1860
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof LogicItem) {</span>
|
|
1861
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2022
1862
|
<span class="cstat-no" title="statement not covered" > logicItem = options;</span>
|
|
2023
1863
|
<span class="cstat-no" title="statement not covered" > Object.assign(logicItem, relationOptions);</span>
|
|
2024
1864
|
} else {
|
|
@@ -2053,7 +1893,7 @@ export class NewMap extends LogicItem {
|
|
|
2053
1893
|
*/
|
|
2054
1894
|
insertItemInValuesAt(logicItem: LogicItem, index: number): LogicItem;
|
|
2055
1895
|
|
|
2056
|
-
<span class="fstat-no" title="function not covered" > insertItemInValuesAt(
|
|
1896
|
+
<span class="fstat-no" title="function not covered" > insertItemInValuesAt(</span>options: string | Partial<LogicItem> | LogicItem, index: number) {
|
|
2057
1897
|
const node = <span class="cstat-no" title="statement not covered" >this._insertItemInValuesAt(options as any, index);</span>
|
|
2058
1898
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2059
1899
|
index,
|
|
@@ -2084,7 +1924,7 @@ export class NewMap extends LogicItem {
|
|
|
2084
1924
|
*/
|
|
2085
1925
|
_addItemInValues(logicItem: LogicItem): LogicItem;
|
|
2086
1926
|
|
|
2087
|
-
<span class="fstat-no" title="function not covered" > _addItemInValues(
|
|
1927
|
+
<span class="fstat-no" title="function not covered" > _addItemInValues(</span>options?: string | Partial<LogicItem> | LogicItem) {
|
|
2088
1928
|
const index = <span class="cstat-no" title="statement not covered" >this.values.length;</span>
|
|
2089
1929
|
<span class="cstat-no" title="statement not covered" > return this._insertItemInValuesAt(options as any, index);</span>
|
|
2090
1930
|
}
|
|
@@ -2108,7 +1948,7 @@ export class NewMap extends LogicItem {
|
|
|
2108
1948
|
*/
|
|
2109
1949
|
addItemInValues(logicItem: LogicItem): LogicItem;
|
|
2110
1950
|
|
|
2111
|
-
<span class="fstat-no" title="function not covered" > addItemInValues(
|
|
1951
|
+
<span class="fstat-no" title="function not covered" > addItemInValues(</span>options?: string | Partial<LogicItem> | LogicItem) {
|
|
2112
1952
|
const node = <span class="cstat-no" title="statement not covered" >this._addItemInValues(options as any);</span>
|
|
2113
1953
|
const index = <span class="cstat-no" title="statement not covered" >this.values.indexOf(node);</span>
|
|
2114
1954
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -2131,7 +1971,7 @@ export class NewMap extends LogicItem {
|
|
|
2131
1971
|
*/
|
|
2132
1972
|
removeTypeAnnotation(typeAnnotation: TypeAnnotation): void;
|
|
2133
1973
|
|
|
2134
|
-
<span class="fstat-no" title="function not covered" > removeTypeAnnotation(
|
|
1974
|
+
<span class="fstat-no" title="function not covered" > removeTypeAnnotation(</span>options: string | TypeAnnotation) {
|
|
2135
1975
|
let typeAnnotation: TypeAnnotation;
|
|
2136
1976
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2137
1977
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = this.typeAnnotation;</span>
|
|
@@ -2144,7 +1984,7 @@ export class NewMap extends LogicItem {
|
|
|
2144
1984
|
<span class="cstat-no" title="statement not covered" > return typeAnnotation.delete();</span>
|
|
2145
1985
|
}
|
|
2146
1986
|
|
|
2147
|
-
<span class="fstat-no" title="function not covered" > __removeTypeAnnotation(
|
|
1987
|
+
<span class="fstat-no" title="function not covered" > __removeTypeAnnotation(</span>typeAnnotation: TypeAnnotation) {
|
|
2148
1988
|
const parentKey = <span class="cstat-no" title="statement not covered" >typeAnnotation.parentKey;</span>
|
|
2149
1989
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2150
1990
|
parentNode: this,
|
|
@@ -2155,21 +1995,13 @@ export class NewMap extends LogicItem {
|
|
|
2155
1995
|
};
|
|
2156
1996
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
2157
1997
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
// @ts-ignore
|
|
2161
|
-
const n = <span class="cstat-no" title="statement not covered" >typeAnnotation.__v_raw || typeAnnotation;</span>
|
|
2162
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
2163
|
-
// @ts-ignore
|
|
2164
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
1998
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
1999
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(typeAnnotation);</span>
|
|
2165
2000
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
2166
2001
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
2167
|
-
} else {
|
|
2168
|
-
|
|
2169
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2170
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2171
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2172
|
-
}
|
|
2002
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === typeAnnotation) {</span>
|
|
2003
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2004
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2173
2005
|
}
|
|
2174
2006
|
}
|
|
2175
2007
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -2187,10 +2019,10 @@ export class NewMap extends LogicItem {
|
|
|
2187
2019
|
*/
|
|
2188
2020
|
removeItemInKeys(logicItem: LogicItem): void;
|
|
2189
2021
|
|
|
2190
|
-
<span class="fstat-no" title="function not covered" > removeItemInKeys(
|
|
2022
|
+
<span class="fstat-no" title="function not covered" > removeItemInKeys(</span>options: string | LogicItem) {
|
|
2191
2023
|
let logicItem: LogicItem;
|
|
2192
2024
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2193
|
-
<span class="cstat-no" title="statement not covered" > logicItem = (this.keys as LogicItem[]).find(
|
|
2025
|
+
<span class="cstat-no" title="statement not covered" > logicItem = (this.keys as LogicItem[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
2194
2026
|
<span class="cstat-no" title="statement not covered" > if (!logicItem) {</span>
|
|
2195
2027
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到逻辑项 ' + options);</span>
|
|
2196
2028
|
}
|
|
@@ -2212,10 +2044,10 @@ export class NewMap extends LogicItem {
|
|
|
2212
2044
|
*/
|
|
2213
2045
|
removeItemInValues(logicItem: LogicItem): void;
|
|
2214
2046
|
|
|
2215
|
-
<span class="fstat-no" title="function not covered" > removeItemInValues(
|
|
2047
|
+
<span class="fstat-no" title="function not covered" > removeItemInValues(</span>options: string | LogicItem) {
|
|
2216
2048
|
let logicItem: LogicItem;
|
|
2217
2049
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2218
|
-
<span class="cstat-no" title="statement not covered" > logicItem = (this.values as LogicItem[]).find(
|
|
2050
|
+
<span class="cstat-no" title="statement not covered" > logicItem = (this.values as LogicItem[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
2219
2051
|
<span class="cstat-no" title="statement not covered" > if (!logicItem) {</span>
|
|
2220
2052
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到逻辑项 ' + options);</span>
|
|
2221
2053
|
}
|
|
@@ -2225,7 +2057,7 @@ export class NewMap extends LogicItem {
|
|
|
2225
2057
|
<span class="cstat-no" title="statement not covered" > return logicItem.delete();</span>
|
|
2226
2058
|
}
|
|
2227
2059
|
|
|
2228
|
-
<span class="fstat-no" title="function not covered" > __removeLogicItem(
|
|
2060
|
+
<span class="fstat-no" title="function not covered" > __removeLogicItem(</span>logicItem: LogicItem) {
|
|
2229
2061
|
const parentKey = <span class="cstat-no" title="statement not covered" >logicItem.parentKey;</span>
|
|
2230
2062
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2231
2063
|
parentNode: this,
|
|
@@ -2236,21 +2068,13 @@ export class NewMap extends LogicItem {
|
|
|
2236
2068
|
};
|
|
2237
2069
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
2238
2070
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
// @ts-ignore
|
|
2242
|
-
const n = <span class="cstat-no" title="statement not covered" >logicItem.__v_raw || logicItem;</span>
|
|
2243
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
2244
|
-
// @ts-ignore
|
|
2245
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
2071
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
2072
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logicItem);</span>
|
|
2246
2073
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
2247
2074
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
2248
|
-
} else {
|
|
2249
|
-
|
|
2250
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2251
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2252
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2253
|
-
}
|
|
2075
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logicItem) {</span>
|
|
2076
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2077
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2254
2078
|
}
|
|
2255
2079
|
}
|
|
2256
2080
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -2260,7 +2084,7 @@ export class NewMap extends LogicItem {
|
|
|
2260
2084
|
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
2261
2085
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
2262
2086
|
//================================================================================
|
|
2263
|
-
<span class="fstat-no" title="function not covered" > getIterator() {
|
|
2087
|
+
<span class="fstat-no" title="function not covered" > getIterator(</span>) {
|
|
2264
2088
|
<span class="cstat-no" title="statement not covered" > return this.keys.map(<span class="fstat-no" title="function not covered" >(k</span>, idx) => (<span class="cstat-no" title="statement not covered" >{</span></span>
|
|
2265
2089
|
key: k,
|
|
2266
2090
|
value: this.values[idx],
|
|
@@ -2268,14 +2092,14 @@ export class NewMap extends LogicItem {
|
|
|
2268
2092
|
}));
|
|
2269
2093
|
}
|
|
2270
2094
|
|
|
2271
|
-
<span class="fstat-no" title="function not covered" > addPair() {
|
|
2095
|
+
<span class="fstat-no" title="function not covered" > addPair(</span>) {
|
|
2272
2096
|
<span class="cstat-no" title="statement not covered" > this.update({</span>
|
|
2273
2097
|
keys: [...this.keys, undefined],
|
|
2274
2098
|
values: [...this.values, undefined],
|
|
2275
2099
|
});
|
|
2276
2100
|
}
|
|
2277
2101
|
|
|
2278
|
-
<span class="fstat-no" title="function not covered" > removePair(
|
|
2102
|
+
<span class="fstat-no" title="function not covered" > removePair(</span>idx: number) {
|
|
2279
2103
|
const k = <span class="cstat-no" title="statement not covered" >this.keys.slice();</span>
|
|
2280
2104
|
<span class="cstat-no" title="statement not covered" > k.splice(idx, 1);</span>
|
|
2281
2105
|
const v = <span class="cstat-no" title="statement not covered" >this.values.slice();</span>
|
|
@@ -2286,7 +2110,7 @@ export class NewMap extends LogicItem {
|
|
|
2286
2110
|
});
|
|
2287
2111
|
}
|
|
2288
2112
|
|
|
2289
|
-
<span class="fstat-no" title="function not covered" > toBrief(): string {
|
|
2113
|
+
<span class="fstat-no" title="function not covered" > toBrief(</span>): string {
|
|
2290
2114
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2291
2115
|
<span class="cstat-no" title="statement not covered" > code += '[<br />';</span>
|
|
2292
2116
|
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(k</span>ey, index) => {</span>
|
|
@@ -2301,100 +2125,73 @@ export class NewMap extends LogicItem {
|
|
|
2301
2125
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2302
2126
|
}
|
|
2303
2127
|
|
|
2304
|
-
<span class="fstat-no" title="function not covered" >
|
|
2305
|
-
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2306
|
-
<span class="cstat-no" title="statement not covered" > code += '{ ';</span>
|
|
2307
|
-
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(k</span>ey, index) => {</span>
|
|
2308
|
-
<span class="cstat-no" title="statement not covered" > if (index) {</span>
|
|
2309
|
-
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
2310
|
-
}
|
|
2311
|
-
const value: any = <span class="cstat-no" title="statement not covered" >this.values[index];</span>
|
|
2312
|
-
<span class="cstat-no" title="statement not covered" > code += `${key ? key.toUI(state, hideDetails) : undefined}`;</span>
|
|
2313
|
-
<span class="cstat-no" title="statement not covered" > code += `: ${value ? value.toUI(state, hideDetails) : undefined}`;</span>
|
|
2314
|
-
});
|
|
2315
|
-
<span class="cstat-no" title="statement not covered" > code += ' }';</span>
|
|
2316
|
-
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
<span class="fstat-no" title="function not covered" > toJS(s</span>tate?: TranslatorState): string {
|
|
2128
|
+
<span class="fstat-no" title="function not covered" > toJS(</span>state?: TranslatorState): string {
|
|
2320
2129
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2321
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2322
|
-
<span class="cstat-no" title="statement not covered" > code += '(() => { \n';</span>
|
|
2323
|
-
} else {
|
|
2324
|
-
<span class="cstat-no" title="statement not covered" > code += 'await (async () => { \n';</span>
|
|
2325
|
-
}
|
|
2130
|
+
<span class="cstat-no" title="statement not covered" > code += 'await (async () => {\n';</span>
|
|
2326
2131
|
<span class="cstat-no" title="statement not covered" > code += 'const obj = {};\n';</span>
|
|
2327
2132
|
<span class="cstat-no" title="statement not covered" > code += 'let k;\n';</span>
|
|
2328
2133
|
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
2329
2134
|
const key: any = <span class="cstat-no" title="statement not covered" >item;</span>
|
|
2330
2135
|
const value: any = <span class="cstat-no" title="statement not covered" >this.values[index];</span>
|
|
2331
2136
|
<span class="cstat-no" title="statement not covered" > code += `k = `;</span>
|
|
2332
|
-
<span class="cstat-no" title="statement not covered" > code += `${key ? key.toJS(state) : undefined};\n`;</span>
|
|
2137
|
+
<span class="cstat-no" title="statement not covered" > code += `${key ? key.toJS(shiftState(state, code, { inline: true })) : undefined};\n`;</span>
|
|
2333
2138
|
<span class="cstat-no" title="statement not covered" > code += 'obj[k] = ';</span>
|
|
2334
|
-
<span class="cstat-no" title="statement not covered" > code += `${value ? value.toJS(state) : undefined};\n`;</span>
|
|
2139
|
+
<span class="cstat-no" title="statement not covered" > code += `${value ? value.toJS(shiftState(state, code, { inline: true })) : undefined};\n`;</span>
|
|
2335
2140
|
});
|
|
2336
2141
|
<span class="cstat-no" title="statement not covered" > code += `return obj;\n`;</span>
|
|
2337
2142
|
<span class="cstat-no" title="statement not covered" > code += '})()';</span>
|
|
2338
2143
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2339
2144
|
}
|
|
2340
2145
|
|
|
2341
|
-
@
|
|
2342
|
-
<span class="fstat-no" title="function not covered" >
|
|
2343
|
-
const
|
|
2344
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
2345
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
2346
|
-
const <span class="cstat-no" title="statement not covered" >indent2 = indent((state?.tabSize || 0) + 2);</span>
|
|
2347
|
-
const typeCode = <span class="cstat-no" title="statement not covered" >function* <span class="fstat-no" title="function not covered" >t</span>ypeCode(c</span>odestr: string) {
|
|
2348
|
-
<span class="cstat-no" title="statement not covered" > codestr += `nasl.util.New<`;</span>
|
|
2349
|
-
<span class="cstat-no" title="statement not covered" > codestr += `${yield* self.typeAnnotation.toEmbeddedTS(shiftState(state, codestr, { inline: true }))}`;</span>
|
|
2350
|
-
<span class="cstat-no" title="statement not covered" > codestr += `>()`;</span>
|
|
2351
|
-
<span class="cstat-no" title="statement not covered" > return codestr;</span>
|
|
2352
|
-
};
|
|
2146
|
+
@withSourceMap()
|
|
2147
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
2148
|
+
const indent0 = <span class="cstat-no" title="statement not covered" >indent(state?.tabSize || 0);</span>
|
|
2149
|
+
const indent1 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 1);</span>
|
|
2150
|
+
const indent2 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 2);</span>
|
|
2353
2151
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2354
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
2152
|
+
<span class="cstat-no" title="statement not covered" > if (this.typeAnnotation) {</span>
|
|
2153
|
+
const newConstructor = <span class="cstat-no" title="statement not covered" >`nasl.util.New<${this.typeAnnotation.sortedTypeKey}>()`;</span>
|
|
2355
2154
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}(() => { \n`;</span>
|
|
2356
2155
|
// 方便ts报错检查
|
|
2357
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent1}function
|
|
2358
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2156
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent1}function __newComposite() {\n`;</span>
|
|
2157
|
+
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
2359
2158
|
const key = <span class="cstat-no" title="statement not covered" >item;</span>
|
|
2360
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent2}nasl.util.MapPut(`;</span>
|
|
2361
|
-
<span class="cstat-no" title="statement not covered" > code
|
|
2362
|
-
<span class="cstat-no" title="statement not covered" > code += `${key ? yield* key.toEmbeddedTS(shiftState(state, code, { inline: true })) : null}`;</span>
|
|
2159
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent2}nasl.util.MapPut(${newConstructor}, `;</span>
|
|
2160
|
+
<span class="cstat-no" title="statement not covered" > code += `${key ? key.toEmbeddedTS(shiftState(state, code, { inline: true })) : null}`;</span>
|
|
2363
2161
|
<span class="cstat-no" title="statement not covered" > code += ', null)\n';</span>
|
|
2364
2162
|
});
|
|
2365
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2366
|
-
const value = <span class="cstat-no" title="statement not covered" >
|
|
2367
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent2}nasl.util.MapPut(`;</span>
|
|
2368
|
-
<span class="cstat-no" title="statement not covered" > code
|
|
2369
|
-
<span class="cstat-no" title="statement not covered" > code += `${value ? yield* value.toEmbeddedTS(shiftState(state, code, { inline: true })) : null}`;</span>
|
|
2163
|
+
<span class="cstat-no" title="statement not covered" > this.values.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
2164
|
+
const value = <span class="cstat-no" title="statement not covered" >this.values[index];</span>
|
|
2165
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent2}nasl.util.MapPut(${newConstructor}, null, `;</span>
|
|
2166
|
+
<span class="cstat-no" title="statement not covered" > code += `${value ? value.toEmbeddedTS(shiftState(state, code, { inline: true })) : null}`;</span>
|
|
2370
2167
|
<span class="cstat-no" title="statement not covered" > code += ')';</span>
|
|
2371
2168
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
2372
2169
|
});
|
|
2373
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent2}return `;</span>
|
|
2374
|
-
<span class="cstat-no" title="statement not covered" > code = `${yield* typeCode(code)};\n`;</span>
|
|
2170
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent2}return ${newConstructor};\n`;</span>
|
|
2375
2171
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}};\n`;</span>
|
|
2376
|
-
|
|
2172
|
+
|
|
2173
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent1}return __newComposite();\n`;</span>
|
|
2377
2174
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}})()`;</span>
|
|
2378
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2175
|
+
} else <span class="cstat-no" title="statement not covered" >if (this.keys.some(<span class="fstat-no" title="function not covered" >(k</span>ey) => <span class="cstat-no" title="statement not covered" >key)</span> || this.values.some(<span class="fstat-no" title="function not covered" >(v</span>alue) => <span class="cstat-no" title="statement not covered" >value)</span>) {</span>
|
|
2379
2176
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}(() => { \n`;</span>
|
|
2380
2177
|
const valueTsArr: any = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
2381
2178
|
let keyTs = <span class="cstat-no" title="statement not covered" >'null';</span>
|
|
2382
2179
|
let valueTs = <span class="cstat-no" title="statement not covered" >false;</span>
|
|
2383
2180
|
let keyIndex = <span class="cstat-no" title="statement not covered" >-1;</span>
|
|
2384
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2181
|
+
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(k</span>ey, index) => {</span>
|
|
2385
2182
|
<span class="cstat-no" title="statement not covered" > if (key) {</span>
|
|
2386
|
-
const ts = <span class="cstat-no" title="statement not covered" >
|
|
2183
|
+
const ts = <span class="cstat-no" title="statement not covered" >key.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
2387
2184
|
<span class="cstat-no" title="statement not covered" > if (keyIndex === -1 && !['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts)) {</span>
|
|
2388
2185
|
<span class="cstat-no" title="statement not covered" > keyIndex = index;</span>
|
|
2389
2186
|
<span class="cstat-no" title="statement not covered" > keyTs = ts;</span>
|
|
2390
2187
|
}
|
|
2391
2188
|
}
|
|
2392
2189
|
});
|
|
2393
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2394
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2190
|
+
<span class="cstat-no" title="statement not covered" > this.values.length && (code += indent1);</span>
|
|
2191
|
+
<span class="cstat-no" title="statement not covered" > this.values.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
2395
2192
|
<span class="cstat-no" title="statement not covered" > if (item) <span class="cstat-no" title="statement not covered" >valueTs = true;</span></span>
|
|
2396
2193
|
<span class="cstat-no" title="statement not covered" > code += `nasl.core.ensureVoid(`;</span>
|
|
2397
|
-
const ts = <span class="cstat-no" title="statement not covered" >item ?
|
|
2194
|
+
const ts = <span class="cstat-no" title="statement not covered" >item ? item.toEmbeddedTS(shiftState(state, code, { inline: true })) : null;</span>
|
|
2398
2195
|
<span class="cstat-no" title="statement not covered" > valueTsArr.push(ts);</span>
|
|
2399
2196
|
<span class="cstat-no" title="statement not covered" > code += valueTsArr[index];</span>
|
|
2400
2197
|
<span class="cstat-no" title="statement not covered" > code += '); ';</span>
|
|
@@ -2404,44 +2201,46 @@ export class NewMap extends LogicItem {
|
|
|
2404
2201
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}__IDENTIFIER__;\n`;</span>
|
|
2405
2202
|
}
|
|
2406
2203
|
// 方便ts报错检查
|
|
2407
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent1}function
|
|
2408
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2204
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent1}function __newComposite() {\n`;</span>
|
|
2205
|
+
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(k</span>ey: any) => {</span>
|
|
2409
2206
|
<span class="cstat-no" title="statement not covered" > if (!key) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
2410
2207
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}nasl.core.compareNew(${keyTs}, `;</span>
|
|
2411
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
2208
|
+
<span class="cstat-no" title="statement not covered" > code += key.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
2412
2209
|
<span class="cstat-no" title="statement not covered" > code += ');\n';</span>
|
|
2413
2210
|
});
|
|
2414
2211
|
<span class="cstat-no" title="statement not covered" > if (keyIndex !== -1) {</span>
|
|
2415
2212
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}nasl.util.ValidMapKey(`;</span>
|
|
2416
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
2213
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.keys[keyIndex].toEmbeddedTS(shiftState(state, code, { inline: true }))});\n`;</span>
|
|
2417
2214
|
}
|
|
2418
2215
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}return nasl.util.NewMap(`;</span>
|
|
2419
2216
|
<span class="cstat-no" title="statement not covered" > code += `${keyIndex === -1 ? 'null' : keyTs}, ...[`;</span>
|
|
2420
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2217
|
+
<span class="cstat-no" title="statement not covered" > valueTsArr.forEach(<span class="fstat-no" title="function not covered" >(t</span>s: any, index: number) => {</span>
|
|
2421
2218
|
<span class="cstat-no" title="statement not covered" > code += ['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts) ? null : ts;</span>
|
|
2422
|
-
<span class="cstat-no" title="statement not covered" > if (index + 1 <
|
|
2219
|
+
<span class="cstat-no" title="statement not covered" > if (index + 1 < this.values.length) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
2423
2220
|
});
|
|
2424
2221
|
<span class="cstat-no" title="statement not covered" > code += ']);\n';</span>
|
|
2222
|
+
|
|
2425
2223
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}};\n`;</span>
|
|
2426
|
-
|
|
2224
|
+
|
|
2225
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent1}return __newComposite();\n`;</span>
|
|
2427
2226
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}})()`;</span>
|
|
2428
2227
|
} else {
|
|
2429
2228
|
<span class="cstat-no" title="statement not covered" > code += `(() => {\n`;</span>
|
|
2430
2229
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}__IDENTIFIER__;\n`;</span>
|
|
2431
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent1}function
|
|
2230
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent1}function __newComposite() {\n`;</span>
|
|
2432
2231
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}return nasl.util.NewMap(${null}, ${null});\n`;</span>
|
|
2433
2232
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}};\n`;</span>
|
|
2434
|
-
|
|
2233
|
+
|
|
2234
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent1}return __newComposite();\n`;</span>
|
|
2435
2235
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}})()`;</span>
|
|
2436
2236
|
}
|
|
2437
2237
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2438
2238
|
}
|
|
2439
2239
|
|
|
2440
2240
|
@withSourceMap()
|
|
2441
|
-
<span class="fstat-no" title="function not covered" > toNaturalTS(): string {
|
|
2241
|
+
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>): string {
|
|
2442
2242
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2443
|
-
const typeAnnotation =
|
|
2444
|
-
<span class="cstat-no" title="statement not covered" > this?.typeAnnotation?.typeArguments?.map((<span class="fstat-no" title="function not covered" >item) => <span class="cstat-no" title="statement not covered" >i</span>tem?.toNaturalTS())</span>?.join(', ') || '__IDENTIFIER__';</span>
|
|
2243
|
+
const typeAnnotation = <span class="cstat-no" title="statement not covered" >this?.typeAnnotation?.typeArguments?.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item?.toNaturalTS())</span>?.join(', ') || '__IDENTIFIER__';</span>
|
|
2445
2244
|
let params = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2446
2245
|
<span class="cstat-no" title="statement not covered" > this?.keys?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
2447
2246
|
<span class="cstat-no" title="statement not covered" > if (item) {</span>
|
|
@@ -2455,30 +2254,28 @@ export class NewMap extends LogicItem {
|
|
|
2455
2254
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2456
2255
|
}
|
|
2457
2256
|
|
|
2458
|
-
<span class="fstat-no" title="function not covered" >
|
|
2459
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
2257
|
+
<span class="fstat-no" title="function not covered" > getInitCode(</span>state?: TranslatorState): string {
|
|
2460
2258
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2461
|
-
<span class="cstat-no" title="statement not covered" > if (this.keys.some(
|
|
2259
|
+
<span class="cstat-no" title="statement not covered" > if (this.keys.some(<span class="fstat-no" title="function not covered" >(k</span>ey) => <span class="cstat-no" title="statement not covered" >key)</span> || this.values.some(<span class="fstat-no" title="function not covered" >(v</span>alue) => <span class="cstat-no" title="statement not covered" >value)</span>) {</span>
|
|
2462
2260
|
let keyBol = <span class="cstat-no" title="statement not covered" >false;</span>
|
|
2463
2261
|
<span class="cstat-no" title="statement not covered" > code += `nasl.util.NewMap(`;</span>
|
|
2464
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2262
|
+
<span class="cstat-no" title="statement not covered" > this.keys.forEach(<span class="fstat-no" title="function not covered" >(k</span>ey) => {</span>
|
|
2465
2263
|
<span class="cstat-no" title="statement not covered" > if (key && !keyBol) {</span>
|
|
2466
|
-
let ts = <span class="cstat-no" title="statement not covered" >
|
|
2467
|
-
<span class="cstat-no" title="statement not covered" > ts =
|
|
2264
|
+
let ts = <span class="cstat-no" title="statement not covered" >key.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
2265
|
+
<span class="cstat-no" title="statement not covered" > ts = this.getForeachCode(ts);</span>
|
|
2468
2266
|
<span class="cstat-no" title="statement not covered" > if (!['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts)) {</span>
|
|
2469
2267
|
<span class="cstat-no" title="statement not covered" > keyBol = true;</span>
|
|
2470
2268
|
<span class="cstat-no" title="statement not covered" > code += ts;</span>
|
|
2471
2269
|
}
|
|
2472
2270
|
}
|
|
2473
|
-
}
|
|
2271
|
+
});
|
|
2474
2272
|
<span class="cstat-no" title="statement not covered" > if (!keyBol) <span class="cstat-no" title="statement not covered" >code += 'null';</span></span>
|
|
2475
2273
|
<span class="cstat-no" title="statement not covered" > code += `, ...[`;</span>
|
|
2476
|
-
|
|
2477
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2478
|
-
|
|
2479
|
-
<span class="cstat-no" title="statement not covered" > ts = yield* self.getForeachCode(ts);</span>
|
|
2274
|
+
<span class="cstat-no" title="statement not covered" > this.values.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
2275
|
+
let ts = <span class="cstat-no" title="statement not covered" >item ? item.toEmbeddedTS(shiftState(state, code, { inline: true })) : null;</span>
|
|
2276
|
+
<span class="cstat-no" title="statement not covered" > ts = this.getForeachCode(ts);</span>
|
|
2480
2277
|
<span class="cstat-no" title="statement not covered" > code += ['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts) ? null : ts;</span>
|
|
2481
|
-
<span class="cstat-no" title="statement not covered" > if (index + 1 <
|
|
2278
|
+
<span class="cstat-no" title="statement not covered" > if (index + 1 < this.values.length) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
2482
2279
|
});
|
|
2483
2280
|
<span class="cstat-no" title="statement not covered" > code += '])';</span>
|
|
2484
2281
|
} else {
|
|
@@ -2487,13 +2284,12 @@ export class NewMap extends LogicItem {
|
|
|
2487
2284
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2488
2285
|
}
|
|
2489
2286
|
|
|
2490
|
-
<span class="fstat-no" title="function not covered" >
|
|
2287
|
+
<span class="fstat-no" title="function not covered" > getForeachCode(</span>code: string): string {
|
|
2491
2288
|
// ForEachStatement 内部变量需要替换处理,如 item、index
|
|
2492
2289
|
const forEachStatement = <span class="cstat-no" title="statement not covered" >this.getAncestor('ForEachStatement') as ForEachStatement;</span>
|
|
2493
|
-
const <span class="cstat-no" title="statement not covered" >Logic = getConceptConstructor('Logic');</span>
|
|
2494
2290
|
<span class="cstat-no" title="statement not covered" > if (forEachStatement && code) {</span>
|
|
2495
2291
|
<span class="cstat-no" title="statement not covered" > code = code.replaceAll('\n', ' ');</span>
|
|
2496
|
-
<span class="cstat-no" title="statement not covered" > code =
|
|
2292
|
+
<span class="cstat-no" title="statement not covered" > code = new Logic().handleForEachCode(code, forEachStatement);</span>
|
|
2497
2293
|
}
|
|
2498
2294
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
2499
2295
|
}
|
|
@@ -2515,7 +2311,7 @@ export default NewMap;
|
|
|
2515
2311
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2516
2312
|
Code coverage generated by
|
|
2517
2313
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2518
|
-
at 2023-
|
|
2314
|
+
at 2023-10-18T11:36:07.885Z
|
|
2519
2315
|
</div>
|
|
2520
2316
|
<script src="../../prettify.js"></script>
|
|
2521
2317
|
<script>
|