@lcap/nasl 3.4.0-beta.9 → 3.4.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/{559608df-ab15-4969-acf0-5239dacd6111.json → d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json} +1 -1
- package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +138 -153
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +46 -46
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +57 -153
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +7 -43
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +8 -59
- package/coverage/src/breakpoint/generator/index.html +21 -21
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +2 -2
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +3 -3
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +180 -609
- package/coverage/src/common/Command.ts.html +2 -2
- package/coverage/src/common/EventEmitter.ts.html +6 -6
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +21 -36
- package/coverage/src/common/index.ts.html +4 -7
- package/coverage/src/concepts/Abort__.ts.html +9 -39
- package/coverage/src/concepts/Anchor__.ts.html +29 -86
- package/coverage/src/concepts/AnonymousFunction__.ts.html +169 -262
- package/coverage/src/concepts/App__.ts.html +152 -1205
- package/coverage/src/concepts/Argument__.ts.html +51 -120
- package/coverage/src/concepts/Assignee__.ts.html +34 -124
- package/coverage/src/concepts/AssignmentLine__.ts.html +15 -48
- package/coverage/src/concepts/Assignment__.ts.html +69 -147
- package/coverage/src/concepts/Attribute__.ts.html +14 -41
- package/coverage/src/concepts/AuthInterface__.ts.html +6 -9
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +144 -108
- package/coverage/src/concepts/AuthLogic__.ts.html +6 -18
- package/coverage/src/concepts/BackendVariable__.ts.html +51 -135
- package/coverage/src/concepts/Backend__.ts.html +28 -106
- package/coverage/src/concepts/BatchAssignment__.ts.html +169 -274
- package/coverage/src/concepts/BinaryExpression__.ts.html +110 -188
- package/coverage/src/concepts/BindAttribute__.ts.html +93 -213
- package/coverage/src/concepts/BindDirective__.ts.html +26 -131
- package/coverage/src/concepts/BindEvent__.ts.html +71 -167
- package/coverage/src/concepts/BindStyle__.ts.html +21 -78
- package/coverage/src/concepts/BooleanLiteral__.ts.html +20 -47
- package/coverage/src/concepts/CallAuthInterface__.ts.html +48 -105
- package/coverage/src/concepts/CallConnector__.ts.html +35 -62
- package/coverage/src/concepts/CallFunction__.ts.html +160 -328
- package/coverage/src/concepts/CallInterface__.ts.html +60 -93
- package/coverage/src/concepts/CallLogic__.ts.html +427 -544
- package/coverage/src/concepts/CallQueryComponent__.ts.html +93 -126
- package/coverage/src/concepts/Comment__.ts.html +10 -43
- package/coverage/src/concepts/CompletionProperty__.ts.html +13 -40
- package/coverage/src/concepts/ConfigGroup__.ts.html +20 -47
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +19 -22
- package/coverage/src/concepts/ConfigProperty__.ts.html +40 -97
- package/coverage/src/concepts/Configuration__.ts.html +21 -48
- package/coverage/src/concepts/Connection__.ts.html +22 -97
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +6 -9
- package/coverage/src/concepts/Connector__.ts.html +38 -161
- package/coverage/src/concepts/Constant__.ts.html +24 -84
- package/coverage/src/concepts/DataSource__.ts.html +57 -111
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +6 -9
- package/coverage/src/concepts/Destination__.ts.html +55 -97
- package/coverage/src/concepts/End__.ts.html +26 -56
- package/coverage/src/concepts/EntityIndex__.ts.html +10 -40
- package/coverage/src/concepts/EntityProperty__.ts.html +56 -164
- package/coverage/src/concepts/Entity__.ts.html +91 -169
- package/coverage/src/concepts/EnumItem__.ts.html +10 -40
- package/coverage/src/concepts/Enum__.ts.html +24 -84
- package/coverage/src/concepts/Event__.ts.html +14 -41
- package/coverage/src/concepts/ExternalDestination__.ts.html +21 -75
- package/coverage/src/concepts/ForEachStatement__.ts.html +95 -143
- package/coverage/src/concepts/FrontendLibrary__.ts.html +20 -71
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +57 -213
- package/coverage/src/concepts/Function__.ts.html +86 -239
- package/coverage/src/concepts/Identifier__.ts.html +73 -103
- package/coverage/src/concepts/IfStatement__.ts.html +75 -138
- package/coverage/src/concepts/Integration__.ts.html +19 -70
- package/coverage/src/concepts/InterfaceParam__.ts.html +21 -78
- package/coverage/src/concepts/Interface__.ts.html +60 -162
- package/coverage/src/concepts/JSBlock__.ts.html +9 -39
- package/coverage/src/concepts/JavaLogic__.ts.html +9 -42
- package/coverage/src/concepts/LogicItem__.ts.html +26 -56
- package/coverage/src/concepts/Logic__.ts.html +322 -409
- package/coverage/src/concepts/MatchCase__.ts.html +97 -181
- package/coverage/src/concepts/Match__.ts.html +63 -135
- package/coverage/src/concepts/MemberExpression__.ts.html +128 -185
- package/coverage/src/concepts/MicroApp__.ts.html +6 -9
- package/coverage/src/concepts/Module__.ts.html +36 -690
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +14 -41
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +14 -41
- package/coverage/src/concepts/Namespace__.ts.html +92 -359
- package/coverage/src/concepts/NewComposite__.ts.html +146 -326
- package/coverage/src/concepts/NewList__.ts.html +57 -195
- package/coverage/src/concepts/NewMap__.ts.html +63 -168
- package/coverage/src/concepts/New__.ts.html +9 -39
- package/coverage/src/concepts/NullLiteral__.ts.html +9 -36
- package/coverage/src/concepts/NumericLiteral__.ts.html +32 -86
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +35 -161
- package/coverage/src/concepts/OverriddenLogic__.ts.html +201 -324
- package/coverage/src/concepts/Param__.ts.html +80 -155
- package/coverage/src/concepts/Point__.ts.html +6 -9
- package/coverage/src/concepts/ProcessComponent__.ts.html +21 -72
- package/coverage/src/concepts/ProcessElement__.ts.html +116 -524
- package/coverage/src/concepts/ProcessOutcome__.ts.html +13 -85
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +13 -85
- package/coverage/src/concepts/Process__.ts.html +70 -217
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +16 -67
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +11 -41
- package/coverage/src/concepts/QueryFromExpression__.ts.html +21 -81
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +19 -70
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +25 -85
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +20 -77
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +20 -80
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +15 -42
- package/coverage/src/concepts/Rect__.ts.html +6 -9
- package/coverage/src/concepts/Return__.ts.html +50 -131
- package/coverage/src/concepts/Role__.ts.html +15 -45
- package/coverage/src/concepts/SelectMembers__.ts.html +24 -81
- package/coverage/src/concepts/Slot__.ts.html +13 -40
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +24 -84
- package/coverage/src/concepts/Start__.ts.html +14 -41
- package/coverage/src/concepts/StringInterpolation__.ts.html +46 -127
- package/coverage/src/concepts/StringLiteral__.ts.html +32 -62
- package/coverage/src/concepts/StructureProperty__.ts.html +29 -86
- package/coverage/src/concepts/Structure__.ts.html +38 -122
- package/coverage/src/concepts/SwitchCase__.ts.html +36 -87
- package/coverage/src/concepts/SwitchStatement__.ts.html +33 -90
- package/coverage/src/concepts/Theme__.ts.html +12 -15
- package/coverage/src/concepts/Transactional__.ts.html +6 -9
- package/coverage/src/concepts/TriggerEvent__.ts.html +14 -41
- package/coverage/src/concepts/TriggerLauncher__.ts.html +13 -46
- package/coverage/src/concepts/TypeAnnotation__.ts.html +117 -348
- package/coverage/src/concepts/TypeParam__.ts.html +12 -42
- package/coverage/src/concepts/UnaryExpression__.ts.html +27 -105
- package/coverage/src/concepts/Unparsed__.ts.html +12 -36
- package/coverage/src/concepts/UseComponent__.ts.html +6 -9
- package/coverage/src/concepts/ValidationRule__.ts.html +48 -87
- package/coverage/src/concepts/Variable__.ts.html +46 -127
- package/coverage/src/concepts/ViewBlock__.ts.html +6 -9
- package/coverage/src/concepts/ViewComponent__.ts.html +24 -99
- package/coverage/src/concepts/ViewElement__.ts.html +288 -498
- package/coverage/src/concepts/View__.ts.html +170 -482
- package/coverage/src/concepts/WhileStatement__.ts.html +55 -118
- package/coverage/src/concepts/basics/stdlib/index.html +1 -1
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +2 -2
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +3 -3
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +964 -1024
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +4 -16
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +5 -5
- package/coverage/src/decorators/index.ts.html +32 -32
- package/coverage/src/decorators/promise.ts.html +10 -10
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +1 -1
- package/coverage/src/generator/genBundleFiles.ts.html +23 -17
- package/coverage/src/generator/genHash.ts.html +1 -1
- package/coverage/src/generator/genMetaData.ts.html +16 -103
- package/coverage/src/generator/genReleaseBody.ts.html +43 -43
- package/coverage/src/generator/icestark.ts.html +4 -10
- package/coverage/src/generator/index.html +21 -21
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +20 -92
- package/coverage/src/generator/qiankun.ts.html +3 -9
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +7 -7
- package/coverage/src/index.ts.html +4 -4
- package/coverage/src/manager/diagnostic.ts.html +14 -11
- package/coverage/src/manager/index.html +13 -13
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +15 -15
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +18 -78
- package/coverage/src/sentry/index.html +14 -14
- package/coverage/src/sentry/index.ts.html +32 -38
- package/coverage/src/server/createUiTs.ts.html +6 -15
- package/coverage/src/server/entity2LogicNamespace.ts.html +9 -9
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +43 -73
- package/coverage/src/server/formatTsUtils.ts.html +28 -31
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +1 -1
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +1 -1
- package/coverage/src/server/getLogics.ts.html +8 -20
- package/coverage/src/server/getMemberIdentifier.ts.html +120 -231
- package/coverage/src/server/getProcessComponents.ts.html +1 -1
- package/coverage/src/server/getProcesses.ts.html +13 -163
- package/coverage/src/server/getValidates.ts.html +1 -1
- package/coverage/src/server/index.html +63 -63
- package/coverage/src/server/index.ts.html +3 -6
- package/coverage/src/server/naslServer.ts.html +949 -1207
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/translator.ts.html +14 -59
- package/coverage/src/service/creator/add.configs.js.html +9 -27
- package/coverage/src/service/creator/errHandles.js.html +37 -28
- package/coverage/src/service/creator/index.html +23 -23
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +29 -29
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +600 -1533
- package/coverage/src/service/storage/jsoner.ts.html +13 -76
- package/coverage/src/service/storage/map.ts.html +3 -3
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +58 -37
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +19 -19
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +89 -71
- package/coverage/src/templator/genEditTableBlock.ts.html +13 -76
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +3 -66
- package/coverage/src/templator/genUpdateBlock.ts.html +32 -35
- package/coverage/src/templator/index.html +38 -38
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +11 -74
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +21 -21
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +68 -389
- package/coverage/src/utils/cookie.ts.html +4 -4
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/utils/index.html +49 -34
- package/coverage/src/utils/index.ts.html +22 -115
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +10 -25
- package/coverage/src/utils/string.ts.html +8 -110
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/automate/engine/utils.d.ts +1 -1
- package/out/automate/engine/utils.js +1 -5
- package/out/automate/engine/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +2 -0
- package/out/common/BaseNode.js +24 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/BindAttribute__.js +3 -0
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/CallLogic__.js +18 -22
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +1 -1
- package/out/concepts/Destination__.js +2 -2
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/Logic__.js +22 -5
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +9 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +1 -0
- package/out/concepts/ViewElement__.js +8 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +1 -1
- package/out/concepts/View__.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +1 -0
- package/out/generator/genBundleFiles.js +4 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/server/getProcesses.js +3 -3
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/naslServer.js +9 -2
- package/out/server/naslServer.js.map +1 -1
- package/out/utils/i18nInfo.js +7 -2
- package/out/utils/i18nInfo.js.map +1 -1
- package/package.json +1 -1
- package/src/automate/engine/utils.js +1 -5
- package/src/common/BaseNode.ts +23 -2
- package/src/concepts/BindAttribute__.ts +2 -0
- package/src/concepts/CallLogic__.ts +21 -22
- package/src/concepts/Destination__.ts +2 -2
- package/src/concepts/Logic__.ts +36 -22
- package/src/concepts/ProcessElement__.ts +8 -1
- package/src/concepts/ViewElement__.ts +11 -2
- package/src/concepts/View__.ts +1 -1
- package/src/generator/genBundleFiles.ts +8 -3
- package/src/server/getProcesses.ts +3 -3
- package/src/server/naslServer.ts +9 -2
- package/src/utils/i18nInfo.ts +7 -2
- package/.nyc_output/processinfo/559608df-ab15-4969-acf0-5239dacd6111.json +0 -1
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/AbstractInterface__.ts.html +0 -280
- package/coverage/src/concepts/Block__.ts.html +0 -910
- package/coverage/src/concepts/CountersignPolicy__.ts.html +0 -316
- package/coverage/src/concepts/DefaultValue__.ts.html +0 -1000
- package/coverage/src/concepts/I18nInfo__.ts.html +0 -436
- package/coverage/src/concepts/ImportedInterface__.ts.html +0 -268
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2053
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +0 -292
- package/coverage/src/concepts/SequentialPolicy__.ts.html +0 -259
- package/coverage/src/concepts/StaticString__.ts.html +0 -403
- 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 -27967
- package/coverage/src/concepts/utils/index.html +0 -116
- package/coverage/src/utils/i18nInfo.ts.html +0 -166
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- package/coverage/src/utils/time-slicing/controller.ts.html +0 -1144
- package/coverage/src/utils/time-slicing/index.html +0 -236
- package/coverage/src/utils/time-slicing/index.ts.html +0 -103
- package/coverage/src/utils/time-slicing/page-state.ts.html +0 -121
- package/coverage/src/utils/time-slicing/performance.ts.html +0 -253
- package/coverage/src/utils/time-slicing/runner.ts.html +0 -241
- package/coverage/src/utils/time-slicing/tool.ts.html +0 -220
- package/coverage/src/utils/time-slicing/utils.ts.html +0 -355
- package/coverage/src/utils/time-slicing/wrapper.ts.html +0 -259
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">9.
|
|
26
|
+
<span class="strong">9.85% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>20/203</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/106</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/27</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">9.09% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>18/198</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -687,36 +687,11 @@
|
|
|
687
687
|
<a name='L622'></a><a href='#L622'>622</a>
|
|
688
688
|
<a name='L623'></a><a href='#L623'>623</a>
|
|
689
689
|
<a name='L624'></a><a href='#L624'>624</a>
|
|
690
|
-
<a name='L625'></a><a href='#L625'>625</a>
|
|
691
|
-
<a name='L626'></a><a href='#L626'>626</a>
|
|
692
|
-
<a name='L627'></a><a href='#L627'>627</a>
|
|
693
|
-
<a name='L628'></a><a href='#L628'>628</a>
|
|
694
|
-
<a name='L629'></a><a href='#L629'>629</a>
|
|
695
|
-
<a name='L630'></a><a href='#L630'>630</a>
|
|
696
|
-
<a name='L631'></a><a href='#L631'>631</a>
|
|
697
|
-
<a name='L632'></a><a href='#L632'>632</a>
|
|
698
|
-
<a name='L633'></a><a href='#L633'>633</a>
|
|
699
|
-
<a name='L634'></a><a href='#L634'>634</a>
|
|
700
|
-
<a name='L635'></a><a href='#L635'>635</a>
|
|
701
|
-
<a name='L636'></a><a href='#L636'>636</a>
|
|
702
|
-
<a name='L637'></a><a href='#L637'>637</a>
|
|
703
|
-
<a name='L638'></a><a href='#L638'>638</a>
|
|
704
|
-
<a name='L639'></a><a href='#L639'>639</a>
|
|
705
|
-
<a name='L640'></a><a href='#L640'>640</a>
|
|
706
|
-
<a name='L641'></a><a href='#L641'>641</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
690
|
+
<a name='L625'></a><a href='#L625'>625</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
707
691
|
<span class="cline-any cline-yes">1x</span>
|
|
708
692
|
<span class="cline-any cline-neutral"> </span>
|
|
709
|
-
<span class="cline-any cline-
|
|
710
|
-
<span class="cline-any cline-
|
|
711
|
-
<span class="cline-any cline-neutral"> </span>
|
|
712
|
-
<span class="cline-any cline-neutral"> </span>
|
|
713
|
-
<span class="cline-any cline-neutral"> </span>
|
|
714
|
-
<span class="cline-any cline-neutral"> </span>
|
|
715
|
-
<span class="cline-any cline-neutral"> </span>
|
|
716
|
-
<span class="cline-any cline-neutral"> </span>
|
|
717
|
-
<span class="cline-any cline-neutral"> </span>
|
|
718
|
-
<span class="cline-any cline-neutral"> </span>
|
|
719
|
-
<span class="cline-any cline-neutral"> </span>
|
|
693
|
+
<span class="cline-any cline-yes">1x</span>
|
|
694
|
+
<span class="cline-any cline-yes">1x</span>
|
|
720
695
|
<span class="cline-any cline-neutral"> </span>
|
|
721
696
|
<span class="cline-any cline-neutral"> </span>
|
|
722
697
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -726,8 +701,7 @@
|
|
|
726
701
|
<span class="cline-any cline-yes">1x</span>
|
|
727
702
|
<span class="cline-any cline-neutral"> </span>
|
|
728
703
|
<span class="cline-any cline-yes">1x</span>
|
|
729
|
-
<span class="cline-any cline-
|
|
730
|
-
<span class="cline-any cline-neutral"> </span>
|
|
704
|
+
<span class="cline-any cline-yes">1x</span>
|
|
731
705
|
<span class="cline-any cline-yes">1x</span>
|
|
732
706
|
<span class="cline-any cline-neutral"> </span>
|
|
733
707
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -746,7 +720,6 @@
|
|
|
746
720
|
<span class="cline-any cline-neutral"> </span>
|
|
747
721
|
<span class="cline-any cline-neutral"> </span>
|
|
748
722
|
<span class="cline-any cline-neutral"> </span>
|
|
749
|
-
<span class="cline-any cline-yes">1x</span>
|
|
750
723
|
<span class="cline-any cline-neutral"> </span>
|
|
751
724
|
<span class="cline-any cline-neutral"> </span>
|
|
752
725
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1074,23 +1047,15 @@
|
|
|
1074
1047
|
<span class="cline-any cline-neutral"> </span>
|
|
1075
1048
|
<span class="cline-any cline-no"> </span>
|
|
1076
1049
|
<span class="cline-any cline-no"> </span>
|
|
1077
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1078
1050
|
<span class="cline-any cline-no"> </span>
|
|
1079
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1080
1051
|
<span class="cline-any cline-no"> </span>
|
|
1081
1052
|
<span class="cline-any cline-no"> </span>
|
|
1082
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1083
|
-
<span class="cline-any cline-no"> </span>
|
|
1084
|
-
<span class="cline-any cline-no"> </span>
|
|
1085
|
-
<span class="cline-any cline-no"> </span>
|
|
1086
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1087
1053
|
<span class="cline-any cline-no"> </span>
|
|
1088
1054
|
<span class="cline-any cline-no"> </span>
|
|
1089
1055
|
<span class="cline-any cline-no"> </span>
|
|
1090
1056
|
<span class="cline-any cline-no"> </span>
|
|
1091
1057
|
<span class="cline-any cline-neutral"> </span>
|
|
1092
1058
|
<span class="cline-any cline-neutral"> </span>
|
|
1093
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1094
1059
|
<span class="cline-any cline-no"> </span>
|
|
1095
1060
|
<span class="cline-any cline-neutral"> </span>
|
|
1096
1061
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1155,23 +1120,15 @@
|
|
|
1155
1120
|
<span class="cline-any cline-neutral"> </span>
|
|
1156
1121
|
<span class="cline-any cline-no"> </span>
|
|
1157
1122
|
<span class="cline-any cline-no"> </span>
|
|
1158
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1159
|
-
<span class="cline-any cline-no"> </span>
|
|
1160
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1161
|
-
<span class="cline-any cline-no"> </span>
|
|
1162
|
-
<span class="cline-any cline-no"> </span>
|
|
1163
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1164
1123
|
<span class="cline-any cline-no"> </span>
|
|
1165
1124
|
<span class="cline-any cline-no"> </span>
|
|
1166
1125
|
<span class="cline-any cline-no"> </span>
|
|
1167
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1168
1126
|
<span class="cline-any cline-no"> </span>
|
|
1169
1127
|
<span class="cline-any cline-no"> </span>
|
|
1170
1128
|
<span class="cline-any cline-no"> </span>
|
|
1171
1129
|
<span class="cline-any cline-no"> </span>
|
|
1172
1130
|
<span class="cline-any cline-neutral"> </span>
|
|
1173
1131
|
<span class="cline-any cline-neutral"> </span>
|
|
1174
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1175
1132
|
<span class="cline-any cline-no"> </span>
|
|
1176
1133
|
<span class="cline-any cline-neutral"> </span>
|
|
1177
1134
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1257,6 +1214,7 @@
|
|
|
1257
1214
|
<span class="cline-any cline-neutral"> </span>
|
|
1258
1215
|
<span class="cline-any cline-neutral"> </span>
|
|
1259
1216
|
<span class="cline-any cline-neutral"> </span>
|
|
1217
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1260
1218
|
<span class="cline-any cline-no"> </span>
|
|
1261
1219
|
<span class="cline-any cline-no"> </span>
|
|
1262
1220
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1266,7 +1224,6 @@
|
|
|
1266
1224
|
<span class="cline-any cline-yes">1x</span>
|
|
1267
1225
|
<span class="cline-any cline-no"> </span>
|
|
1268
1226
|
<span class="cline-any cline-no"> </span>
|
|
1269
|
-
<span class="cline-any cline-no"> </span>
|
|
1270
1227
|
<span class="cline-any cline-neutral"> </span>
|
|
1271
1228
|
<span class="cline-any cline-neutral"> </span>
|
|
1272
1229
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1292,7 +1249,9 @@
|
|
|
1292
1249
|
<span class="cline-any cline-neutral"> </span>
|
|
1293
1250
|
<span class="cline-any cline-neutral"> </span>
|
|
1294
1251
|
<span class="cline-any cline-neutral"> </span>
|
|
1252
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1295
1253
|
<span class="cline-any cline-no"> </span>
|
|
1254
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1296
1255
|
<span class="cline-any cline-no"> </span>
|
|
1297
1256
|
<span class="cline-any cline-neutral"> </span>
|
|
1298
1257
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1312,10 +1271,19 @@
|
|
|
1312
1271
|
<span class="cline-any cline-no"> </span>
|
|
1313
1272
|
<span class="cline-any cline-no"> </span>
|
|
1314
1273
|
<span class="cline-any cline-no"> </span>
|
|
1274
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1275
|
+
<span class="cline-any cline-no"> </span>
|
|
1276
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1277
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1278
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1279
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1280
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1281
|
+
<span class="cline-any cline-no"> </span>
|
|
1282
|
+
<span class="cline-any cline-no"> </span>
|
|
1283
|
+
<span class="cline-any cline-no"> </span>
|
|
1315
1284
|
<span class="cline-any cline-no"> </span>
|
|
1316
1285
|
<span class="cline-any cline-no"> </span>
|
|
1317
1286
|
<span class="cline-any cline-no"> </span>
|
|
1318
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1319
1287
|
<span class="cline-any cline-no"> </span>
|
|
1320
1288
|
<span class="cline-any cline-no"> </span>
|
|
1321
1289
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1343,17 +1311,8 @@
|
|
|
1343
1311
|
<span class="cline-any cline-neutral"> </span>
|
|
1344
1312
|
<span class="cline-any cline-neutral"> </span>
|
|
1345
1313
|
<span class="cline-any cline-neutral"> </span>
|
|
1346
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
1347
|
-
import {
|
|
1348
|
-
TranslatorState,
|
|
1349
|
-
shiftState,
|
|
1350
|
-
withSourceMap,
|
|
1351
|
-
indent,
|
|
1352
|
-
createCompilerState,
|
|
1353
|
-
withSourceMapGenerator,
|
|
1354
|
-
withGenerator,
|
|
1355
|
-
TranslatorGenerator,
|
|
1356
|
-
} from '../translator';
|
|
1314
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { v4 as uuidv4 } from 'uuid';
|
|
1315
|
+
import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
1357
1316
|
import TypeAnnotation from './TypeAnnotation__';
|
|
1358
1317
|
import Identifier from './Identifier__';
|
|
1359
1318
|
import MemberExpression from './MemberExpression__';
|
|
@@ -1366,7 +1325,6 @@ import { EventPayload, Params } from '../common/EventEmitter';
|
|
|
1366
1325
|
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
1367
1326
|
|
|
1368
1327
|
import * as utils from '../utils';
|
|
1369
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
1370
1328
|
import BaseNode from '../common/BaseNode';
|
|
1371
1329
|
import LogicItem from './LogicItem__';
|
|
1372
1330
|
import Param from './Param__';
|
|
@@ -1384,7 +1342,6 @@ export class ForEachStatement extends LogicItem {
|
|
|
1384
1342
|
/**
|
|
1385
1343
|
* 产品概念
|
|
1386
1344
|
*/
|
|
1387
|
-
@property('concept')
|
|
1388
1345
|
// @ts-ignore
|
|
1389
1346
|
readonly concept!: 'ForEachStatement';
|
|
1390
1347
|
|
|
@@ -1433,7 +1390,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1433
1390
|
* @param source 需要合并的部分参数
|
|
1434
1391
|
*/
|
|
1435
1392
|
<span class="fstat-no" title="function not covered" > constructor(s</span>ource?: Partial<ForEachStatement>) {
|
|
1436
|
-
<span class="cstat-no" title="statement not covered" > source =
|
|
1393
|
+
<span class="cstat-no" title="statement not covered" > source = { ...ForEachStatement.getDefaultOptions(), ...source};</span>
|
|
1437
1394
|
<span class="cstat-no" title="statement not covered" > super(source);</span>
|
|
1438
1395
|
<span class="cstat-no" title="statement not covered" > super.subConstructor(source);</span>
|
|
1439
1396
|
}
|
|
@@ -1634,7 +1591,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1634
1591
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
1635
1592
|
<span class="cstat-no" title="statement not covered" > each = this.each;</span>
|
|
1636
1593
|
<span class="cstat-no" title="statement not covered" > if (!each) {</span>
|
|
1637
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(
|
|
1594
|
+
<span class="cstat-no" title="statement not covered" > throw new Error(`找不到逻辑项 ${ options}`);</span>
|
|
1638
1595
|
}
|
|
1639
1596
|
} else {
|
|
1640
1597
|
<span class="cstat-no" title="statement not covered" > each = options;</span>
|
|
@@ -1659,7 +1616,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1659
1616
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
1660
1617
|
<span class="cstat-no" title="statement not covered" > start = this.start;</span>
|
|
1661
1618
|
<span class="cstat-no" title="statement not covered" > if (!start) {</span>
|
|
1662
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(
|
|
1619
|
+
<span class="cstat-no" title="statement not covered" > throw new Error(`找不到逻辑项 ${ options}`);</span>
|
|
1663
1620
|
}
|
|
1664
1621
|
} else {
|
|
1665
1622
|
<span class="cstat-no" title="statement not covered" > start = options;</span>
|
|
@@ -1684,7 +1641,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1684
1641
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
1685
1642
|
<span class="cstat-no" title="statement not covered" > end = this.end;</span>
|
|
1686
1643
|
<span class="cstat-no" title="statement not covered" > if (!end) {</span>
|
|
1687
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(
|
|
1644
|
+
<span class="cstat-no" title="statement not covered" > throw new Error(`找不到逻辑项 ${ options}`);</span>
|
|
1688
1645
|
}
|
|
1689
1646
|
} else {
|
|
1690
1647
|
<span class="cstat-no" title="statement not covered" > end = options;</span>
|
|
@@ -1699,12 +1656,12 @@ export class ForEachStatement extends LogicItem {
|
|
|
1699
1656
|
removeItemInBody(logicItem: LogicItem): void;
|
|
1700
1657
|
|
|
1701
1658
|
<span class="fstat-no" title="function not covered" > removeItemInBody(</span>options: LogicItem) {
|
|
1702
|
-
|
|
1659
|
+
const logicItem: LogicItem = <span class="cstat-no" title="statement not covered" >options;</span>
|
|
1703
1660
|
<span class="cstat-no" title="statement not covered" > return logicItem.delete();</span>
|
|
1704
1661
|
}
|
|
1705
1662
|
|
|
1706
1663
|
<span class="fstat-no" title="function not covered" > __removeLogicItem(</span>logicItem: LogicItem) {
|
|
1707
|
-
const parentKey = <span class="cstat-no" title="statement not covered" >logicItem
|
|
1664
|
+
const {parentKey} = <span class="cstat-no" title="statement not covered" >logicItem;</span>
|
|
1708
1665
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1709
1666
|
parentNode: this,
|
|
1710
1667
|
parentKey,
|
|
@@ -1714,21 +1671,13 @@ export class ForEachStatement extends LogicItem {
|
|
|
1714
1671
|
};
|
|
1715
1672
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
1716
1673
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
// @ts-ignore
|
|
1720
|
-
const n = <span class="cstat-no" title="statement not covered" >logicItem.__v_raw || logicItem;</span>
|
|
1721
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
1722
|
-
// @ts-ignore
|
|
1723
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex(<span class="fstat-no" title="function not covered" >(e</span>l) => <span class="cstat-no" title="statement not covered" >(el.__v_raw || el) === n)</span>;</span>
|
|
1674
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
1675
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logicItem);</span>
|
|
1724
1676
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
1725
1677
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
1726
|
-
} else {
|
|
1727
|
-
|
|
1728
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1729
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
1730
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
1731
|
-
}
|
|
1678
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logicItem) {</span>
|
|
1679
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
1680
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
1732
1681
|
}
|
|
1733
1682
|
}
|
|
1734
1683
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -1751,7 +1700,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1751
1700
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
1752
1701
|
<span class="cstat-no" title="statement not covered" > item = this.item;</span>
|
|
1753
1702
|
<span class="cstat-no" title="statement not covered" > if (!item) {</span>
|
|
1754
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(
|
|
1703
|
+
<span class="cstat-no" title="statement not covered" > throw new Error(`找不到输入参数 ${ options}`);</span>
|
|
1755
1704
|
}
|
|
1756
1705
|
} else {
|
|
1757
1706
|
<span class="cstat-no" title="statement not covered" > item = options;</span>
|
|
@@ -1776,7 +1725,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1776
1725
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
1777
1726
|
<span class="cstat-no" title="statement not covered" > index = this.index;</span>
|
|
1778
1727
|
<span class="cstat-no" title="statement not covered" > if (!index) {</span>
|
|
1779
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(
|
|
1728
|
+
<span class="cstat-no" title="statement not covered" > throw new Error(`找不到输入参数 ${ options}`);</span>
|
|
1780
1729
|
}
|
|
1781
1730
|
} else {
|
|
1782
1731
|
<span class="cstat-no" title="statement not covered" > index = options;</span>
|
|
@@ -1785,7 +1734,7 @@ export class ForEachStatement extends LogicItem {
|
|
|
1785
1734
|
}
|
|
1786
1735
|
|
|
1787
1736
|
<span class="fstat-no" title="function not covered" > __removeParam(</span>param: Param) {
|
|
1788
|
-
const parentKey = <span class="cstat-no" title="statement not covered" >param
|
|
1737
|
+
const {parentKey} = <span class="cstat-no" title="statement not covered" >param;</span>
|
|
1789
1738
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1790
1739
|
parentNode: this,
|
|
1791
1740
|
parentKey,
|
|
@@ -1795,21 +1744,13 @@ export class ForEachStatement extends LogicItem {
|
|
|
1795
1744
|
};
|
|
1796
1745
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
1797
1746
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
// @ts-ignore
|
|
1801
|
-
const n = <span class="cstat-no" title="statement not covered" >param.__v_raw || param;</span>
|
|
1802
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
1803
|
-
// @ts-ignore
|
|
1804
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex(<span class="fstat-no" title="function not covered" >(e</span>l) => <span class="cstat-no" title="statement not covered" >(el.__v_raw || el) === n)</span>;</span>
|
|
1747
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
1748
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(param);</span>
|
|
1805
1749
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
1806
1750
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
1807
|
-
} else {
|
|
1808
|
-
|
|
1809
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1810
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
1811
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
1812
|
-
}
|
|
1751
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === param) {</span>
|
|
1752
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
1753
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
1813
1754
|
}
|
|
1814
1755
|
}
|
|
1815
1756
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -1890,11 +1831,12 @@ export class ForEachStatement extends LogicItem {
|
|
|
1890
1831
|
<span class="cstat-no" title="statement not covered" > code += `const ${this.item.name} = $forEachListVariable${number}[${this.index.name}];\n`;</span>
|
|
1891
1832
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.body)) {</span>
|
|
1892
1833
|
<span class="cstat-no" title="statement not covered" > this.body.forEach(<span class="fstat-no" title="function not covered" >(l</span>ogicItem) => {</span>
|
|
1893
|
-
<span class="cstat-no" title="statement not covered" > code
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1834
|
+
<span class="cstat-no" title="statement not covered" > code +=</span>
|
|
1835
|
+
`${logicItem.toJS(
|
|
1836
|
+
shiftState(state, code, {
|
|
1837
|
+
tabSize: 0,
|
|
1838
|
+
}),
|
|
1839
|
+
) }\n`;
|
|
1898
1840
|
});
|
|
1899
1841
|
}
|
|
1900
1842
|
<span class="cstat-no" title="statement not covered" > code += '}\n';</span>
|
|
@@ -1902,77 +1844,87 @@ export class ForEachStatement extends LogicItem {
|
|
|
1902
1844
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
1903
1845
|
}
|
|
1904
1846
|
|
|
1905
|
-
@
|
|
1906
|
-
<span class="fstat-no" title="function not covered" >
|
|
1907
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
1847
|
+
@withSourceMap()
|
|
1848
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
1908
1849
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
1909
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
1910
|
-
?
|
|
1850
|
+
<span class="cstat-no" title="statement not covered" > code += this.each</span>
|
|
1851
|
+
? this.each.toEmbeddedTS(
|
|
1911
1852
|
shiftState(state, code, {
|
|
1912
1853
|
tabSize: 0,
|
|
1913
1854
|
}),
|
|
1914
1855
|
)
|
|
1915
1856
|
: '__IDENTIFIER__';
|
|
1916
|
-
<span class="cstat-no" title="statement not covered" > if (['NewList', 'NewMap'].includes(
|
|
1857
|
+
<span class="cstat-no" title="statement not covered" > if (['NewList', 'NewMap'].includes(this.each?.concept)) <span class="cstat-no" title="statement not covered" >code += '\n';</span></span>
|
|
1917
1858
|
<span class="cstat-no" title="statement not covered" > code += '.__slice(';</span>
|
|
1918
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
1859
|
+
<span class="cstat-no" title="statement not covered" > code += this.start ? this.start.toEmbeddedTS(shiftState(state, code)) : '__IDENTIFIER__';</span>
|
|
1919
1860
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
1920
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
1861
|
+
<span class="cstat-no" title="statement not covered" > code += this.end ? this.end.toEmbeddedTS(shiftState(state, code)) : 'null';</span>
|
|
1921
1862
|
<span class="cstat-no" title="statement not covered" > code += ').__forEach((';</span>
|
|
1922
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
1863
|
+
<span class="cstat-no" title="statement not covered" > code += this.item ? this.item.toEmbeddedTS(shiftState(state, code), true) : '__IDENTIFIER__';</span>
|
|
1923
1864
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
1924
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
1865
|
+
<span class="cstat-no" title="statement not covered" > code += this.index ? this.index.toEmbeddedTS(shiftState(state, code), true) : '__IDENTIFIER__';</span>
|
|
1925
1866
|
<span class="cstat-no" title="statement not covered" > code += ') => {\n';</span>
|
|
1926
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
1927
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1928
|
-
<span class="cstat-no" title="statement not covered" > code
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1867
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.body)) {</span>
|
|
1868
|
+
<span class="cstat-no" title="statement not covered" > this.body.forEach(<span class="fstat-no" title="function not covered" >(l</span>ogicItem) => {</span>
|
|
1869
|
+
<span class="cstat-no" title="statement not covered" > code +=</span>
|
|
1870
|
+
`${logicItem.toEmbeddedTS(
|
|
1871
|
+
shiftState(state, code, {
|
|
1872
|
+
tabSize: (state?.tabSize || 0) + 1,
|
|
1873
|
+
}),
|
|
1874
|
+
) };\n`;
|
|
1933
1875
|
});
|
|
1934
1876
|
}
|
|
1935
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0)}})\n`;</span>
|
|
1877
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0) }})\n`;</span>
|
|
1878
|
+
|
|
1936
1879
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
1937
1880
|
}
|
|
1938
1881
|
|
|
1939
1882
|
@withSourceMap()
|
|
1940
1883
|
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
1941
|
-
let code = <span class="cstat-no" title="statement not covered" >'
|
|
1884
|
+
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
1942
1885
|
<span class="cstat-no" title="statement not covered" > code += this.each</span>
|
|
1943
|
-
? this.each
|
|
1886
|
+
? this.each.toNaturalTS(
|
|
1944
1887
|
shiftState(state, code, {
|
|
1945
1888
|
tabSize: 0,
|
|
1946
|
-
})
|
|
1889
|
+
})
|
|
1947
1890
|
)
|
|
1948
1891
|
: '__IDENTIFIER__';
|
|
1892
|
+
<span class="cstat-no" title="statement not covered" > if (['NewList', 'NewMap'].includes(this.each?.concept)) <span class="cstat-no" title="statement not covered" >code += '\n';</span></span>
|
|
1893
|
+
<span class="cstat-no" title="statement not covered" > code += '.__slice(';</span>
|
|
1894
|
+
<span class="cstat-no" title="statement not covered" > code += this.start ? this.start.toNaturalTS(shiftState(state, code)) : '__IDENTIFIER__';</span>
|
|
1949
1895
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
1950
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1951
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1952
|
-
|
|
1953
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1954
|
-
|
|
1896
|
+
let virtualEnd: LogicItem = <span class="cstat-no" title="statement not covered" >this.end;</span>
|
|
1897
|
+
<span class="cstat-no" title="statement not covered" > if (!virtualEnd && this.each) {</span>
|
|
1898
|
+
// if (['List', 'String', 'Email', 'Text', 'Map'].includes(this.each.__TypeAnnotation?.typeName)) {
|
|
1899
|
+
<span class="cstat-no" title="statement not covered" > virtualEnd = new MemberExpression({</span>
|
|
1900
|
+
object: BaseNode.from({ ...this.each.toJSON(), name: this.each.name }) as LogicItem,
|
|
1901
|
+
property: new Identifier({ name: 'length' }),
|
|
1902
|
+
});
|
|
1903
|
+
// }
|
|
1904
|
+
}
|
|
1905
|
+
<span class="cstat-no" title="statement not covered" > code += virtualEnd ? virtualEnd.toNaturalTS(shiftState(state, code)) : '__IDENTIFIER__';</span>
|
|
1906
|
+
<span class="cstat-no" title="statement not covered" > code += ').__forEach((';</span>
|
|
1907
|
+
<span class="cstat-no" title="statement not covered" > code += this.item ? this.item.toNaturalTS(shiftState(state, code), true) : '__IDENTIFIER__';</span>
|
|
1955
1908
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
1956
|
-
<span class="cstat-no" title="statement not covered" > code += this.index ? this.index
|
|
1957
|
-
<span class="cstat-no" title="statement not covered" > code += ') => {\n
|
|
1958
|
-
|
|
1909
|
+
<span class="cstat-no" title="statement not covered" > code += this.index ? this.index.toNaturalTS(shiftState(state, code), true) : '__IDENTIFIER__';</span>
|
|
1910
|
+
<span class="cstat-no" title="statement not covered" > code += ') => {\n';</span>
|
|
1959
1911
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.body)) {</span>
|
|
1960
1912
|
<span class="cstat-no" title="statement not covered" > this.body.forEach(<span class="fstat-no" title="function not covered" >(l</span>ogicItem) => {</span>
|
|
1961
|
-
<span class="cstat-no" title="statement not covered" > code += `${logicItem
|
|
1913
|
+
<span class="cstat-no" title="statement not covered" > code += `${logicItem.toNaturalTS(</span>
|
|
1962
1914
|
shiftState(state, code, {
|
|
1963
1915
|
tabSize: (state?.tabSize || 0) + 1,
|
|
1964
|
-
})
|
|
1916
|
+
})
|
|
1965
1917
|
)};\n`;
|
|
1966
1918
|
});
|
|
1967
|
-
<span class="cstat-no" title="statement not covered" > if (state
|
|
1968
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1919
|
+
<span class="cstat-no" title="statement not covered" > if (state.focusedNodePath === `${this.nodePath}.body[${this.body.length}]`)</span>
|
|
1920
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent(state.tabSize + 1)}// 当前位置\n`;</span>
|
|
1969
1921
|
}
|
|
1970
1922
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0)}})\n`;</span>
|
|
1971
1923
|
|
|
1972
1924
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
1973
1925
|
}
|
|
1974
1926
|
|
|
1975
|
-
|
|
1927
|
+
//= ===============================================================================
|
|
1976
1928
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
1977
1929
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
1978
1930
|
//================================================================================
|
|
@@ -1990,7 +1942,7 @@ export default ForEachStatement;
|
|
|
1990
1942
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1991
1943
|
Code coverage generated by
|
|
1992
1944
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1993
|
-
at 2023-
|
|
1945
|
+
at 2023-10-18T11:36:07.885Z
|
|
1994
1946
|
</div>
|
|
1995
1947
|
<script src="../../prettify.js"></script>
|
|
1996
1948
|
<script>
|