@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">15.
|
|
26
|
+
<span class="strong">15.48% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>107/691</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">8.27% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>25/
|
|
35
|
+
<span class='fraction'>25/302</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">9.
|
|
40
|
+
<span class="strong">9.84% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>13/
|
|
42
|
+
<span class='fraction'>13/132</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">15.03% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>95/632</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1611,82 +1611,12 @@
|
|
|
1611
1611
|
<a name='L1546'></a><a href='#L1546'>1546</a>
|
|
1612
1612
|
<a name='L1547'></a><a href='#L1547'>1547</a>
|
|
1613
1613
|
<a name='L1548'></a><a href='#L1548'>1548</a>
|
|
1614
|
-
<a name='L1549'></a><a href='#L1549'>1549</a>
|
|
1615
|
-
<a name='L1550'></a><a href='#L1550'>1550</a>
|
|
1616
|
-
<a name='L1551'></a><a href='#L1551'>1551</a>
|
|
1617
|
-
<a name='L1552'></a><a href='#L1552'>1552</a>
|
|
1618
|
-
<a name='L1553'></a><a href='#L1553'>1553</a>
|
|
1619
|
-
<a name='L1554'></a><a href='#L1554'>1554</a>
|
|
1620
|
-
<a name='L1555'></a><a href='#L1555'>1555</a>
|
|
1621
|
-
<a name='L1556'></a><a href='#L1556'>1556</a>
|
|
1622
|
-
<a name='L1557'></a><a href='#L1557'>1557</a>
|
|
1623
|
-
<a name='L1558'></a><a href='#L1558'>1558</a>
|
|
1624
|
-
<a name='L1559'></a><a href='#L1559'>1559</a>
|
|
1625
|
-
<a name='L1560'></a><a href='#L1560'>1560</a>
|
|
1626
|
-
<a name='L1561'></a><a href='#L1561'>1561</a>
|
|
1627
|
-
<a name='L1562'></a><a href='#L1562'>1562</a>
|
|
1628
|
-
<a name='L1563'></a><a href='#L1563'>1563</a>
|
|
1629
|
-
<a name='L1564'></a><a href='#L1564'>1564</a>
|
|
1630
|
-
<a name='L1565'></a><a href='#L1565'>1565</a>
|
|
1631
|
-
<a name='L1566'></a><a href='#L1566'>1566</a>
|
|
1632
|
-
<a name='L1567'></a><a href='#L1567'>1567</a>
|
|
1633
|
-
<a name='L1568'></a><a href='#L1568'>1568</a>
|
|
1634
|
-
<a name='L1569'></a><a href='#L1569'>1569</a>
|
|
1635
|
-
<a name='L1570'></a><a href='#L1570'>1570</a>
|
|
1636
|
-
<a name='L1571'></a><a href='#L1571'>1571</a>
|
|
1637
|
-
<a name='L1572'></a><a href='#L1572'>1572</a>
|
|
1638
|
-
<a name='L1573'></a><a href='#L1573'>1573</a>
|
|
1639
|
-
<a name='L1574'></a><a href='#L1574'>1574</a>
|
|
1640
|
-
<a name='L1575'></a><a href='#L1575'>1575</a>
|
|
1641
|
-
<a name='L1576'></a><a href='#L1576'>1576</a>
|
|
1642
|
-
<a name='L1577'></a><a href='#L1577'>1577</a>
|
|
1643
|
-
<a name='L1578'></a><a href='#L1578'>1578</a>
|
|
1644
|
-
<a name='L1579'></a><a href='#L1579'>1579</a>
|
|
1645
|
-
<a name='L1580'></a><a href='#L1580'>1580</a>
|
|
1646
|
-
<a name='L1581'></a><a href='#L1581'>1581</a>
|
|
1647
|
-
<a name='L1582'></a><a href='#L1582'>1582</a>
|
|
1648
|
-
<a name='L1583'></a><a href='#L1583'>1583</a>
|
|
1649
|
-
<a name='L1584'></a><a href='#L1584'>1584</a>
|
|
1650
|
-
<a name='L1585'></a><a href='#L1585'>1585</a>
|
|
1651
|
-
<a name='L1586'></a><a href='#L1586'>1586</a>
|
|
1652
|
-
<a name='L1587'></a><a href='#L1587'>1587</a>
|
|
1653
|
-
<a name='L1588'></a><a href='#L1588'>1588</a>
|
|
1654
|
-
<a name='L1589'></a><a href='#L1589'>1589</a>
|
|
1655
|
-
<a name='L1590'></a><a href='#L1590'>1590</a>
|
|
1656
|
-
<a name='L1591'></a><a href='#L1591'>1591</a>
|
|
1657
|
-
<a name='L1592'></a><a href='#L1592'>1592</a>
|
|
1658
|
-
<a name='L1593'></a><a href='#L1593'>1593</a>
|
|
1659
|
-
<a name='L1594'></a><a href='#L1594'>1594</a>
|
|
1660
|
-
<a name='L1595'></a><a href='#L1595'>1595</a>
|
|
1661
|
-
<a name='L1596'></a><a href='#L1596'>1596</a>
|
|
1662
|
-
<a name='L1597'></a><a href='#L1597'>1597</a>
|
|
1663
|
-
<a name='L1598'></a><a href='#L1598'>1598</a>
|
|
1664
|
-
<a name='L1599'></a><a href='#L1599'>1599</a>
|
|
1665
|
-
<a name='L1600'></a><a href='#L1600'>1600</a>
|
|
1666
|
-
<a name='L1601'></a><a href='#L1601'>1601</a>
|
|
1667
|
-
<a name='L1602'></a><a href='#L1602'>1602</a>
|
|
1668
|
-
<a name='L1603'></a><a href='#L1603'>1603</a>
|
|
1669
|
-
<a name='L1604'></a><a href='#L1604'>1604</a>
|
|
1670
|
-
<a name='L1605'></a><a href='#L1605'>1605</a>
|
|
1671
|
-
<a name='L1606'></a><a href='#L1606'>1606</a>
|
|
1672
|
-
<a name='L1607'></a><a href='#L1607'>1607</a>
|
|
1673
|
-
<a name='L1608'></a><a href='#L1608'>1608</a>
|
|
1674
|
-
<a name='L1609'></a><a href='#L1609'>1609</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
1675
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1676
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1677
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1678
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1679
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1680
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1681
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1682
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1683
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1684
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1614
|
+
<a name='L1549'></a><a href='#L1549'>1549</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
1685
1615
|
<span class="cline-any cline-neutral"> </span>
|
|
1686
1616
|
<span class="cline-any cline-neutral"> </span>
|
|
1687
1617
|
<span class="cline-any cline-yes">1x</span>
|
|
1688
1618
|
<span class="cline-any cline-neutral"> </span>
|
|
1689
|
-
<span class="cline-any cline-
|
|
1619
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1690
1620
|
<span class="cline-any cline-neutral"> </span>
|
|
1691
1621
|
<span class="cline-any cline-yes">1x</span>
|
|
1692
1622
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1720,7 +1650,6 @@
|
|
|
1720
1650
|
<span class="cline-any cline-neutral"> </span>
|
|
1721
1651
|
<span class="cline-any cline-neutral"> </span>
|
|
1722
1652
|
<span class="cline-any cline-neutral"> </span>
|
|
1723
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1724
1653
|
<span class="cline-any cline-neutral"> </span>
|
|
1725
1654
|
<span class="cline-any cline-neutral"> </span>
|
|
1726
1655
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1733,49 +1662,49 @@
|
|
|
1733
1662
|
<span class="cline-any cline-neutral"> </span>
|
|
1734
1663
|
<span class="cline-any cline-neutral"> </span>
|
|
1735
1664
|
<span class="cline-any cline-neutral"> </span>
|
|
1736
|
-
<span class="cline-any cline-yes">
|
|
1665
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1737
1666
|
<span class="cline-any cline-neutral"> </span>
|
|
1738
1667
|
<span class="cline-any cline-neutral"> </span>
|
|
1739
1668
|
<span class="cline-any cline-neutral"> </span>
|
|
1740
1669
|
<span class="cline-any cline-neutral"> </span>
|
|
1741
1670
|
<span class="cline-any cline-neutral"> </span>
|
|
1742
|
-
<span class="cline-any cline-yes">
|
|
1671
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1743
1672
|
<span class="cline-any cline-neutral"> </span>
|
|
1744
1673
|
<span class="cline-any cline-neutral"> </span>
|
|
1745
1674
|
<span class="cline-any cline-neutral"> </span>
|
|
1746
1675
|
<span class="cline-any cline-neutral"> </span>
|
|
1747
1676
|
<span class="cline-any cline-neutral"> </span>
|
|
1748
|
-
<span class="cline-any cline-yes">
|
|
1677
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1749
1678
|
<span class="cline-any cline-neutral"> </span>
|
|
1750
1679
|
<span class="cline-any cline-neutral"> </span>
|
|
1751
1680
|
<span class="cline-any cline-neutral"> </span>
|
|
1752
1681
|
<span class="cline-any cline-neutral"> </span>
|
|
1753
1682
|
<span class="cline-any cline-neutral"> </span>
|
|
1754
|
-
<span class="cline-any cline-yes">
|
|
1683
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1755
1684
|
<span class="cline-any cline-neutral"> </span>
|
|
1756
1685
|
<span class="cline-any cline-neutral"> </span>
|
|
1757
1686
|
<span class="cline-any cline-neutral"> </span>
|
|
1758
1687
|
<span class="cline-any cline-neutral"> </span>
|
|
1759
1688
|
<span class="cline-any cline-neutral"> </span>
|
|
1760
|
-
<span class="cline-any cline-yes">
|
|
1689
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1761
1690
|
<span class="cline-any cline-neutral"> </span>
|
|
1762
1691
|
<span class="cline-any cline-neutral"> </span>
|
|
1763
1692
|
<span class="cline-any cline-neutral"> </span>
|
|
1764
1693
|
<span class="cline-any cline-neutral"> </span>
|
|
1765
1694
|
<span class="cline-any cline-neutral"> </span>
|
|
1766
|
-
<span class="cline-any cline-yes">
|
|
1695
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1767
1696
|
<span class="cline-any cline-neutral"> </span>
|
|
1768
1697
|
<span class="cline-any cline-neutral"> </span>
|
|
1769
1698
|
<span class="cline-any cline-neutral"> </span>
|
|
1770
1699
|
<span class="cline-any cline-neutral"> </span>
|
|
1771
1700
|
<span class="cline-any cline-neutral"> </span>
|
|
1772
|
-
<span class="cline-any cline-yes">
|
|
1773
|
-
<span class="cline-any cline-yes">
|
|
1774
|
-
<span class="cline-any cline-yes">
|
|
1701
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1702
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1703
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1775
1704
|
<span class="cline-any cline-neutral"> </span>
|
|
1776
1705
|
<span class="cline-any cline-neutral"> </span>
|
|
1777
1706
|
<span class="cline-any cline-neutral"> </span>
|
|
1778
|
-
<span class="cline-any cline-yes">
|
|
1707
|
+
<span class="cline-any cline-yes">5x</span>
|
|
1779
1708
|
<span class="cline-any cline-neutral"> </span>
|
|
1780
1709
|
<span class="cline-any cline-neutral"> </span>
|
|
1781
1710
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2362,23 +2291,15 @@
|
|
|
2362
2291
|
<span class="cline-any cline-neutral"> </span>
|
|
2363
2292
|
<span class="cline-any cline-no"> </span>
|
|
2364
2293
|
<span class="cline-any cline-no"> </span>
|
|
2365
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2366
|
-
<span class="cline-any cline-no"> </span>
|
|
2367
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2368
|
-
<span class="cline-any cline-no"> </span>
|
|
2369
|
-
<span class="cline-any cline-no"> </span>
|
|
2370
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2371
2294
|
<span class="cline-any cline-no"> </span>
|
|
2372
2295
|
<span class="cline-any cline-no"> </span>
|
|
2373
2296
|
<span class="cline-any cline-no"> </span>
|
|
2374
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2375
2297
|
<span class="cline-any cline-no"> </span>
|
|
2376
2298
|
<span class="cline-any cline-no"> </span>
|
|
2377
2299
|
<span class="cline-any cline-no"> </span>
|
|
2378
2300
|
<span class="cline-any cline-no"> </span>
|
|
2379
2301
|
<span class="cline-any cline-neutral"> </span>
|
|
2380
2302
|
<span class="cline-any cline-neutral"> </span>
|
|
2381
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2382
2303
|
<span class="cline-any cline-no"> </span>
|
|
2383
2304
|
<span class="cline-any cline-neutral"> </span>
|
|
2384
2305
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2418,23 +2339,15 @@
|
|
|
2418
2339
|
<span class="cline-any cline-neutral"> </span>
|
|
2419
2340
|
<span class="cline-any cline-no"> </span>
|
|
2420
2341
|
<span class="cline-any cline-no"> </span>
|
|
2421
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2422
|
-
<span class="cline-any cline-no"> </span>
|
|
2423
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2424
|
-
<span class="cline-any cline-no"> </span>
|
|
2425
|
-
<span class="cline-any cline-no"> </span>
|
|
2426
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2427
2342
|
<span class="cline-any cline-no"> </span>
|
|
2428
2343
|
<span class="cline-any cline-no"> </span>
|
|
2429
2344
|
<span class="cline-any cline-no"> </span>
|
|
2430
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2431
2345
|
<span class="cline-any cline-no"> </span>
|
|
2432
2346
|
<span class="cline-any cline-no"> </span>
|
|
2433
2347
|
<span class="cline-any cline-no"> </span>
|
|
2434
2348
|
<span class="cline-any cline-no"> </span>
|
|
2435
2349
|
<span class="cline-any cline-neutral"> </span>
|
|
2436
2350
|
<span class="cline-any cline-neutral"> </span>
|
|
2437
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2438
2351
|
<span class="cline-any cline-no"> </span>
|
|
2439
2352
|
<span class="cline-any cline-neutral"> </span>
|
|
2440
2353
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2474,23 +2387,15 @@
|
|
|
2474
2387
|
<span class="cline-any cline-neutral"> </span>
|
|
2475
2388
|
<span class="cline-any cline-no"> </span>
|
|
2476
2389
|
<span class="cline-any cline-no"> </span>
|
|
2477
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2478
|
-
<span class="cline-any cline-no"> </span>
|
|
2479
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2480
|
-
<span class="cline-any cline-no"> </span>
|
|
2481
|
-
<span class="cline-any cline-no"> </span>
|
|
2482
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2483
2390
|
<span class="cline-any cline-no"> </span>
|
|
2484
2391
|
<span class="cline-any cline-no"> </span>
|
|
2485
2392
|
<span class="cline-any cline-no"> </span>
|
|
2486
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2487
2393
|
<span class="cline-any cline-no"> </span>
|
|
2488
2394
|
<span class="cline-any cline-no"> </span>
|
|
2489
2395
|
<span class="cline-any cline-no"> </span>
|
|
2490
2396
|
<span class="cline-any cline-no"> </span>
|
|
2491
2397
|
<span class="cline-any cline-neutral"> </span>
|
|
2492
2398
|
<span class="cline-any cline-neutral"> </span>
|
|
2493
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2494
2399
|
<span class="cline-any cline-no"> </span>
|
|
2495
2400
|
<span class="cline-any cline-neutral"> </span>
|
|
2496
2401
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2530,23 +2435,15 @@
|
|
|
2530
2435
|
<span class="cline-any cline-neutral"> </span>
|
|
2531
2436
|
<span class="cline-any cline-no"> </span>
|
|
2532
2437
|
<span class="cline-any cline-no"> </span>
|
|
2533
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2534
|
-
<span class="cline-any cline-no"> </span>
|
|
2535
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2536
|
-
<span class="cline-any cline-no"> </span>
|
|
2537
|
-
<span class="cline-any cline-no"> </span>
|
|
2538
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2539
2438
|
<span class="cline-any cline-no"> </span>
|
|
2540
2439
|
<span class="cline-any cline-no"> </span>
|
|
2541
2440
|
<span class="cline-any cline-no"> </span>
|
|
2542
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2543
2441
|
<span class="cline-any cline-no"> </span>
|
|
2544
2442
|
<span class="cline-any cline-no"> </span>
|
|
2545
2443
|
<span class="cline-any cline-no"> </span>
|
|
2546
2444
|
<span class="cline-any cline-no"> </span>
|
|
2547
2445
|
<span class="cline-any cline-neutral"> </span>
|
|
2548
2446
|
<span class="cline-any cline-neutral"> </span>
|
|
2549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2550
2447
|
<span class="cline-any cline-no"> </span>
|
|
2551
2448
|
<span class="cline-any cline-neutral"> </span>
|
|
2552
2449
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2808,7 +2705,6 @@
|
|
|
2808
2705
|
<span class="cline-any cline-no"> </span>
|
|
2809
2706
|
<span class="cline-any cline-no"> </span>
|
|
2810
2707
|
<span class="cline-any cline-neutral"> </span>
|
|
2811
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2812
2708
|
<span class="cline-any cline-no"> </span>
|
|
2813
2709
|
<span class="cline-any cline-no"> </span>
|
|
2814
2710
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2856,7 +2752,6 @@
|
|
|
2856
2752
|
<span class="cline-any cline-yes">2x</span>
|
|
2857
2753
|
<span class="cline-any cline-yes">2x</span>
|
|
2858
2754
|
<span class="cline-any cline-neutral"> </span>
|
|
2859
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2860
2755
|
<span class="cline-any cline-yes">2x</span>
|
|
2861
2756
|
<span class="cline-any cline-yes">2x</span>
|
|
2862
2757
|
<span class="cline-any cline-yes">6x</span>
|
|
@@ -2919,7 +2814,6 @@
|
|
|
2919
2814
|
<span class="cline-any cline-yes">3x</span>
|
|
2920
2815
|
<span class="cline-any cline-yes">3x</span>
|
|
2921
2816
|
<span class="cline-any cline-yes">3x</span>
|
|
2922
|
-
<span class="cline-any cline-yes">3x</span>
|
|
2923
2817
|
<span class="cline-any cline-no"> </span>
|
|
2924
2818
|
<span class="cline-any cline-yes">3x</span>
|
|
2925
2819
|
<span class="cline-any cline-yes">3x</span>
|
|
@@ -3001,6 +2895,7 @@
|
|
|
3001
2895
|
<span class="cline-any cline-neutral"> </span>
|
|
3002
2896
|
<span class="cline-any cline-yes">3x</span>
|
|
3003
2897
|
<span class="cline-any cline-yes">3x</span>
|
|
2898
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3004
2899
|
<span class="cline-any cline-yes">3x</span>
|
|
3005
2900
|
<span class="cline-any cline-yes">3x</span>
|
|
3006
2901
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3043,33 +2938,18 @@
|
|
|
3043
2938
|
<span class="cline-any cline-no"> </span>
|
|
3044
2939
|
<span class="cline-any cline-no"> </span>
|
|
3045
2940
|
<span class="cline-any cline-no"> </span>
|
|
3046
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3047
|
-
<span class="cline-any cline-no"> </span>
|
|
3048
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3049
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3050
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3051
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3052
|
-
<span class="cline-any cline-no"> </span>
|
|
3053
|
-
<span class="cline-any cline-no"> </span>
|
|
3054
|
-
<span class="cline-any cline-no"> </span>
|
|
3055
|
-
<span class="cline-any cline-no"> </span>
|
|
3056
|
-
<span class="cline-any cline-no"> </span>
|
|
3057
|
-
<span class="cline-any cline-no"> </span>
|
|
3058
|
-
<span class="cline-any cline-no"> </span>
|
|
3059
|
-
<span class="cline-any cline-no"> </span>
|
|
3060
2941
|
<span class="cline-any cline-no"> </span>
|
|
3061
2942
|
<span class="cline-any cline-no"> </span>
|
|
2943
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3062
2944
|
<span class="cline-any cline-no"> </span>
|
|
2945
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3063
2946
|
<span class="cline-any cline-no"> </span>
|
|
3064
2947
|
<span class="cline-any cline-no"> </span>
|
|
3065
2948
|
<span class="cline-any cline-no"> </span>
|
|
3066
2949
|
<span class="cline-any cline-neutral"> </span>
|
|
3067
|
-
<span class="cline-any cline-no"> </span>
|
|
3068
2950
|
<span class="cline-any cline-neutral"> </span>
|
|
3069
2951
|
<span class="cline-any cline-no"> </span>
|
|
3070
2952
|
<span class="cline-any cline-no"> </span>
|
|
3071
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3072
|
-
<span class="cline-any cline-no"> </span>
|
|
3073
2953
|
<span class="cline-any cline-no"> </span>
|
|
3074
2954
|
<span class="cline-any cline-no"> </span>
|
|
3075
2955
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3087,7 +2967,9 @@
|
|
|
3087
2967
|
<span class="cline-any cline-neutral"> </span>
|
|
3088
2968
|
<span class="cline-any cline-no"> </span>
|
|
3089
2969
|
<span class="cline-any cline-no"> </span>
|
|
2970
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3090
2971
|
<span class="cline-any cline-no"> </span>
|
|
2972
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3091
2973
|
<span class="cline-any cline-no"> </span>
|
|
3092
2974
|
<span class="cline-any cline-no"> </span>
|
|
3093
2975
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3098,9 +2980,6 @@
|
|
|
3098
2980
|
<span class="cline-any cline-yes">1x</span>
|
|
3099
2981
|
<span class="cline-any cline-no"> </span>
|
|
3100
2982
|
<span class="cline-any cline-no"> </span>
|
|
3101
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3102
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3103
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3104
2983
|
<span class="cline-any cline-no"> </span>
|
|
3105
2984
|
<span class="cline-any cline-no"> </span>
|
|
3106
2985
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3126,7 +3005,6 @@
|
|
|
3126
3005
|
<span class="cline-any cline-no"> </span>
|
|
3127
3006
|
<span class="cline-any cline-no"> </span>
|
|
3128
3007
|
<span class="cline-any cline-no"> </span>
|
|
3129
|
-
<span class="cline-any cline-no"> </span>
|
|
3130
3008
|
<span class="cline-any cline-neutral"> </span>
|
|
3131
3009
|
<span class="cline-any cline-no"> </span>
|
|
3132
3010
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3140,8 +3018,6 @@
|
|
|
3140
3018
|
<span class="cline-any cline-no"> </span>
|
|
3141
3019
|
<span class="cline-any cline-no"> </span>
|
|
3142
3020
|
<span class="cline-any cline-no"> </span>
|
|
3143
|
-
<span class="cline-any cline-no"> </span>
|
|
3144
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3145
3021
|
<span class="cline-any cline-neutral"> </span>
|
|
3146
3022
|
<span class="cline-any cline-neutral"> </span>
|
|
3147
3023
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3196,6 +3072,9 @@
|
|
|
3196
3072
|
<span class="cline-any cline-neutral"> </span>
|
|
3197
3073
|
<span class="cline-any cline-neutral"> </span>
|
|
3198
3074
|
<span class="cline-any cline-neutral"> </span>
|
|
3075
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3076
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3077
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3199
3078
|
<span class="cline-any cline-no"> </span>
|
|
3200
3079
|
<span class="cline-any cline-no"> </span>
|
|
3201
3080
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3215,6 +3094,7 @@
|
|
|
3215
3094
|
<span class="cline-any cline-neutral"> </span>
|
|
3216
3095
|
<span class="cline-any cline-no"> </span>
|
|
3217
3096
|
<span class="cline-any cline-no"> </span>
|
|
3097
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3218
3098
|
<span class="cline-any cline-no"> </span>
|
|
3219
3099
|
<span class="cline-any cline-no"> </span>
|
|
3220
3100
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3279,17 +3159,7 @@
|
|
|
3279
3159
|
<span class="cline-any cline-neutral"> </span>
|
|
3280
3160
|
<span class="cline-any cline-neutral"> </span>
|
|
3281
3161
|
<span class="cline-any cline-neutral"> </span>
|
|
3282
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
3283
|
-
import {
|
|
3284
|
-
TranslatorState,
|
|
3285
|
-
shiftState,
|
|
3286
|
-
withSourceMap,
|
|
3287
|
-
indent,
|
|
3288
|
-
createCompilerState,
|
|
3289
|
-
withSourceMapGenerator,
|
|
3290
|
-
withGenerator,
|
|
3291
|
-
TranslatorGenerator,
|
|
3292
|
-
} from '../translator';
|
|
3162
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
3293
3163
|
import { ElementToVueOptions } from './ViewElement__';
|
|
3294
3164
|
import MemberExpression from './MemberExpression__';
|
|
3295
3165
|
import StructureProperty from './StructureProperty__';
|
|
@@ -3326,7 +3196,6 @@ export class NewComposite extends LogicItem {
|
|
|
3326
3196
|
/**
|
|
3327
3197
|
* 产品概念
|
|
3328
3198
|
*/
|
|
3329
|
-
@property('concept')
|
|
3330
3199
|
// @ts-ignore
|
|
3331
3200
|
readonly concept!: 'NewComposite';
|
|
3332
3201
|
|
|
@@ -3475,7 +3344,7 @@ export class NewComposite extends LogicItem {
|
|
|
3475
3344
|
|
|
3476
3345
|
<span class="fstat-no" title="function not covered" > getIdentifierExistingNames(</span>excludedList: Array<Identifier> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3477
3346
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3478
|
-
<span class="cstat-no" title="statement not covered" > return ((this.properties as Identifier[]) || []).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
|
|
3347
|
+
<span class="cstat-no" title="statement not covered" > return ((this.properties as Identifier[]) || []).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>
|
|
3479
3348
|
}
|
|
3480
3349
|
<span class="fstat-no" title="function not covered" > getIdentifierUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'identifier1')</span> {
|
|
3481
3350
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getIdentifierExistingNames(), undefined, false);</span>
|
|
@@ -3628,7 +3497,7 @@ export class NewComposite extends LogicItem {
|
|
|
3628
3497
|
|
|
3629
3498
|
<span class="fstat-no" title="function not covered" > getSelectMembersExistingNames(</span>excludedList: Array<SelectMembers> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3630
3499
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3631
|
-
<span class="cstat-no" title="statement not covered" > return ((this.rights as SelectMembers[]) || []).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
|
|
3500
|
+
<span class="cstat-no" title="statement not covered" > return ((this.rights as SelectMembers[]) || []).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>
|
|
3632
3501
|
}
|
|
3633
3502
|
<span class="fstat-no" title="function not covered" > getSelectMembersUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'selectMembers1')</span> {
|
|
3634
3503
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getSelectMembersExistingNames(), undefined, false);</span>
|
|
@@ -3783,7 +3652,7 @@ export class NewComposite extends LogicItem {
|
|
|
3783
3652
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3784
3653
|
<span class="cstat-no" title="statement not covered" > return ((this.assignmentLines as AssignmentLine[]) || [])</span>
|
|
3785
3654
|
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>
|
|
3786
|
-
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item
|
|
3655
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;
|
|
3787
3656
|
}
|
|
3788
3657
|
<span class="fstat-no" title="function not covered" > getAssignmentLineUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'assignmentLine1')</span> {
|
|
3789
3658
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getAssignmentLineExistingNames(), undefined, false);</span>
|
|
@@ -3970,21 +3839,13 @@ export class NewComposite extends LogicItem {
|
|
|
3970
3839
|
};
|
|
3971
3840
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3972
3841
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
// @ts-ignore
|
|
3976
|
-
const n = <span class="cstat-no" title="statement not covered" >typeAnnotation.__v_raw || typeAnnotation;</span>
|
|
3977
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3978
|
-
// @ts-ignore
|
|
3979
|
-
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>
|
|
3842
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3843
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(typeAnnotation);</span>
|
|
3980
3844
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3981
3845
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3982
|
-
} else {
|
|
3983
|
-
|
|
3984
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3985
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3986
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3987
|
-
}
|
|
3846
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === typeAnnotation) {</span>
|
|
3847
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3848
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3988
3849
|
}
|
|
3989
3850
|
}
|
|
3990
3851
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4026,21 +3887,13 @@ export class NewComposite extends LogicItem {
|
|
|
4026
3887
|
};
|
|
4027
3888
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4028
3889
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
// @ts-ignore
|
|
4032
|
-
const n = <span class="cstat-no" title="statement not covered" >logicItem.__v_raw || logicItem;</span>
|
|
4033
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4034
|
-
// @ts-ignore
|
|
4035
|
-
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>
|
|
3890
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3891
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logicItem);</span>
|
|
4036
3892
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4037
3893
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4038
|
-
} else {
|
|
4039
|
-
|
|
4040
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4041
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4042
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4043
|
-
}
|
|
3894
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logicItem) {</span>
|
|
3895
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3896
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4044
3897
|
}
|
|
4045
3898
|
}
|
|
4046
3899
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4082,21 +3935,13 @@ export class NewComposite extends LogicItem {
|
|
|
4082
3935
|
};
|
|
4083
3936
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4084
3937
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
// @ts-ignore
|
|
4088
|
-
const n = <span class="cstat-no" title="statement not covered" >selectMembers.__v_raw || selectMembers;</span>
|
|
4089
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4090
|
-
// @ts-ignore
|
|
4091
|
-
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>
|
|
3938
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3939
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(selectMembers);</span>
|
|
4092
3940
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4093
3941
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4094
|
-
} else {
|
|
4095
|
-
|
|
4096
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4097
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4098
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4099
|
-
}
|
|
3942
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === selectMembers) {</span>
|
|
3943
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3944
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4100
3945
|
}
|
|
4101
3946
|
}
|
|
4102
3947
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4138,21 +3983,13 @@ export class NewComposite extends LogicItem {
|
|
|
4138
3983
|
};
|
|
4139
3984
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
4140
3985
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
// @ts-ignore
|
|
4144
|
-
const n = <span class="cstat-no" title="statement not covered" >assignmentLine.__v_raw || assignmentLine;</span>
|
|
4145
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
4146
|
-
// @ts-ignore
|
|
4147
|
-
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>
|
|
3986
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3987
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(assignmentLine);</span>
|
|
4148
3988
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
4149
3989
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
4150
|
-
} else {
|
|
4151
|
-
|
|
4152
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4153
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
4154
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4155
|
-
}
|
|
3990
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === assignmentLine) {</span>
|
|
3991
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3992
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
4156
3993
|
}
|
|
4157
3994
|
}
|
|
4158
3995
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -4216,7 +4053,7 @@ export class NewComposite extends LogicItem {
|
|
|
4216
4053
|
}
|
|
4217
4054
|
<span class="cstat-no" title="statement not covered" > members.forEach(<span class="fstat-no" title="function not covered" >(r</span>ightMember: any, rightSecondIndex: number) => {</span>
|
|
4218
4055
|
const rightName = <span class="cstat-no" title="statement not covered" >rightMember.property.name;</span>
|
|
4219
|
-
<span class="cstat-no" title="statement not covered" > if (rightLineSet.has(rightSecondIndex)
|
|
4056
|
+
<span class="cstat-no" title="statement not covered" > if (rightLineSet.has(rightSecondIndex)) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
4220
4057
|
|
|
4221
4058
|
<span class="cstat-no" title="statement not covered" > if (leftName === rightName) {</span>
|
|
4222
4059
|
const rightTypeAnnotation = <span class="cstat-no" title="statement not covered" >rightMember.__TypeAnnotation;</span>
|
|
@@ -4334,7 +4171,7 @@ export class NewComposite extends LogicItem {
|
|
|
4334
4171
|
});
|
|
4335
4172
|
const selectMember = <span class="cstat-no" title="statement not covered" >oldNode.parentNode;</span>
|
|
4336
4173
|
const autoConnectionIndex = <span class="cstat-no" title="statement not covered" >this.rights.findIndex(<span class="fstat-no" title="function not covered" >(r</span>ight) => <span class="cstat-no" title="statement not covered" >right === selectMember)</span>;</span>
|
|
4337
|
-
const newSelectMember = <span class="cstat-no" title="statement not covered" >{ ...
|
|
4174
|
+
const newSelectMember = <span class="cstat-no" title="statement not covered" >{ ...selectMember?.toJSON?.() ?? selectMember, expression, members };</span>
|
|
4338
4175
|
const splitIndex = <span class="cstat-no" title="statement not covered" >this.rights.findIndex(<span class="fstat-no" title="function not covered" >(r</span>ight) => <span class="cstat-no" title="statement not covered" >selectMember === right)</span>;</span>
|
|
4339
4176
|
const newLines: AssignmentLine[] = <span class="cstat-no" title="statement not covered" >this.assignmentLines.filter(<span class="fstat-no" title="function not covered" >({</span> rightIndex }) => <span class="cstat-no" title="statement not covered" >rightIndex[0] !== splitIndex)</span>;</span>
|
|
4340
4177
|
let oldLines: AssignmentLine[] = <span class="cstat-no" title="statement not covered" >this.assignmentLines.filter(<span class="fstat-no" title="function not covered" >({</span> rightIndex }) => <span class="cstat-no" title="statement not covered" >rightIndex[0] === splitIndex)</span>;</span>
|
|
@@ -4343,7 +4180,7 @@ export class NewComposite extends LogicItem {
|
|
|
4343
4180
|
<span class="cstat-no" title="statement not covered" > if (keepMembers?.has(item.completeName)) {</span>
|
|
4344
4181
|
const lines = <span class="cstat-no" title="statement not covered" >this.findlines(item, selectMember);</span>
|
|
4345
4182
|
<span class="cstat-no" title="statement not covered" > lines.forEach(<span class="fstat-no" title="function not covered" >(l</span>ine) => {</span>
|
|
4346
|
-
const newLine = <span class="cstat-no" title="statement not covered" >{ ...
|
|
4183
|
+
const newLine = <span class="cstat-no" title="statement not covered" >{ ...line?.toJSON()?.toJSON?.() ?? line, rightIndex: [line.rightIndex[0], index] };</span>
|
|
4347
4184
|
<span class="cstat-no" title="statement not covered" > newLines.push(newLine as AssignmentLine);</span>
|
|
4348
4185
|
<span class="cstat-no" title="statement not covered" > oldLines = oldLines.filter(<span class="fstat-no" title="function not covered" >({</span> leftIndex }) => <span class="cstat-no" title="statement not covered" >leftIndex[1] !== line.leftIndex[1])</span>;</span>
|
|
4349
4186
|
});
|
|
@@ -4414,9 +4251,8 @@ export class NewComposite extends LogicItem {
|
|
|
4414
4251
|
: this.rights[rightIndex[0]].expression;
|
|
4415
4252
|
<span class="cstat-no" title="statement not covered" > code += `return ${obj};\n`;</span>
|
|
4416
4253
|
} else <span class="cstat-no" title="statement not covered" >if (typeAnnotation.typeKind !== 'anonymousStructure') {</span>
|
|
4417
|
-
<span class="cstat-no" title="statement not covered" > code += `const obj = this.$genInitFromSchema('${</span>
|
|
4418
|
-
typeAnnotation.
|
|
4419
|
-
}', this.$utils['New'](${typeAnnotation.toUI(shiftState(state, code, { inline: true }))}));\n`;
|
|
4254
|
+
<span class="cstat-no" title="statement not covered" > code += `const obj = this.$genInitFromSchema('${typeAnnotation.sortedTypeKey</span>
|
|
4255
|
+
}', this.$utils['New'](${typeAnnotation.toUI(shiftState(state, code, { inline: true }))}));\n`;
|
|
4420
4256
|
<span class="cstat-no" title="statement not covered" > this.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }, index) => {</span>
|
|
4421
4257
|
const leftSecondIndex = <span class="cstat-no" title="statement not covered" >leftIndex[1];</span>
|
|
4422
4258
|
const [rightFirst, rightSecond] = <span class="cstat-no" title="statement not covered" >[rightIndex[0], rightIndex[1]];</span>
|
|
@@ -4462,9 +4298,8 @@ export class NewComposite extends LogicItem {
|
|
|
4462
4298
|
: this.rights[rightIndex[0]].expression;
|
|
4463
4299
|
<span class="cstat-no" title="statement not covered" > code += `return ${obj.toJS(shiftState(state, code, { inline: true }))};\n`;</span>
|
|
4464
4300
|
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (typeAnnotation.typeKind !== 'anonymousStructure') {
|
|
4465
|
-
code += `const obj = this.$genInitFromSchema('${
|
|
4466
|
-
typeAnnotation.
|
|
4467
|
-
}', this.$utils['New'](${typeAnnotation.toJS(shiftState(state, code, { inline: true }))}));\n`;
|
|
4301
|
+
code += `const obj = this.$genInitFromSchema('${typeAnnotation.sortedTypeKey
|
|
4302
|
+
}', this.$utils['New'](${typeAnnotation.toJS(shiftState(state, code, { inline: true }))}));\n`;
|
|
4468
4303
|
const rightMap = new Map();
|
|
4469
4304
|
this.assignmentLines.forEach(({ leftIndex, rightIndex }) => {
|
|
4470
4305
|
const rightIndexJson = JSON.stringify(rightIndex);
|
|
@@ -4519,30 +4354,29 @@ export class NewComposite extends LogicItem {
|
|
|
4519
4354
|
return code;
|
|
4520
4355
|
}
|
|
4521
4356
|
|
|
4522
|
-
@
|
|
4523
|
-
|
|
4524
|
-
const self = this;
|
|
4357
|
+
@withSourceMap()
|
|
4358
|
+
toEmbeddedTS(state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
4525
4359
|
const indent0 = indent(state?.tabSize || 0);
|
|
4526
4360
|
const indent1 = indent((state?.tabSize || 0) + 1);
|
|
4527
4361
|
const indent2 = indent((state?.tabSize || 0) + 2);
|
|
4528
4362
|
const indent3 = indent((state?.tabSize || 0) + 3);
|
|
4529
4363
|
let code = '';
|
|
4530
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!
|
|
4364
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (!this.typeAnnotation) {
|
|
4531
4365
|
<span class="cstat-no" title="statement not covered" > code += '__IDENTIFIER__';</span>
|
|
4532
|
-
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (
|
|
4366
|
+
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (this.typeAnnotation.typeKind !== 'anonymousStructure') {
|
|
4533
4367
|
const rightMap = new Map();
|
|
4534
4368
|
code += `${indent0}(() => { \n`;
|
|
4535
4369
|
// 提供sourcemap,获取类型标注和上下文可选变量
|
|
4536
|
-
|
|
4370
|
+
this.rights.forEach((right) => {
|
|
4537
4371
|
code += indent1;
|
|
4538
|
-
rightMap.set(right.expression,
|
|
4372
|
+
rightMap.set(right.expression, right.expression.toEmbeddedTS(shiftState(state, code, { inline: true })));
|
|
4539
4373
|
code += rightMap.get(right.expression);
|
|
4540
4374
|
code += ';\n';
|
|
4541
4375
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (right.members?.length) {
|
|
4542
4376
|
<span class="cstat-no" title="statement not covered" > code += indent2;</span>
|
|
4543
4377
|
}
|
|
4544
|
-
|
|
4545
|
-
<span class="cstat-no" title="statement not covered" > rightMap.set(member,
|
|
4378
|
+
right.members.forEach(<span class="fstat-no" title="function not covered" >(m</span>ember) => {
|
|
4379
|
+
<span class="cstat-no" title="statement not covered" > rightMap.set(member, member.toEmbeddedTS(shiftState(state, code, { inline: true })));</span>
|
|
4546
4380
|
<span class="cstat-no" title="statement not covered" > code += rightMap.get(member);</span>
|
|
4547
4381
|
<span class="cstat-no" title="statement not covered" > code += '; ';</span>
|
|
4548
4382
|
});
|
|
@@ -4550,152 +4384,140 @@ export class NewComposite extends LogicItem {
|
|
|
4550
4384
|
});
|
|
4551
4385
|
// 方便ts报错检查
|
|
4552
4386
|
code += `${indent1}function __newComposite() {\n`;
|
|
4553
|
-
const { typeAnnotation } =
|
|
4387
|
+
const { typeAnnotation } = this;
|
|
4554
4388
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
4555
4389
|
['nasl.ui', 'nasl.interface', 'nasl.http'].includes(typeAnnotation.typeNamespace) &&
|
|
4556
4390
|
<span class="branch-1 cbranch-no" title="branch not covered" > typeAnnotation.typeKind === 'generic'</span>
|
|
4557
4391
|
) {
|
|
4558
4392
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}let __obj = new ${typeAnnotation.typeNamespace}.${typeAnnotation.typeName}`;</span>
|
|
4559
4393
|
<span class="cstat-no" title="statement not covered" > code += '({';</span>
|
|
4560
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4394
|
+
<span class="cstat-no" title="statement not covered" > this.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }) => {</span>
|
|
4561
4395
|
const leftSecondIndex = <span class="cstat-no" title="statement not covered" >leftIndex[1];</span>
|
|
4562
4396
|
const [rightFirst, rightSecond] = <span class="cstat-no" title="statement not covered" >[rightIndex[0], rightIndex[1]];</span>
|
|
4563
|
-
const leftItem = <span class="cstat-no" title="statement not covered" >
|
|
4397
|
+
const leftItem = <span class="cstat-no" title="statement not covered" >this.properties[leftSecondIndex];</span>
|
|
4564
4398
|
const rightItem =
|
|
4565
4399
|
<span class="cstat-no" title="statement not covered" > rightSecond !== undefined</span>
|
|
4566
|
-
?
|
|
4567
|
-
:
|
|
4400
|
+
? this.rights[rightFirst].members[rightSecond]
|
|
4401
|
+
: this.rights[rightFirst].expression;
|
|
4568
4402
|
const rightTs = <span class="cstat-no" title="statement not covered" >rightMap.get(rightItem);</span>
|
|
4569
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
4403
|
+
<span class="cstat-no" title="statement not covered" > code += `${leftItem.toEmbeddedTS(shiftState(state, code, { inline: true }))}:`;</span>
|
|
4570
4404
|
<span class="cstat-no" title="statement not covered" > code += `${['__IDENTIFIER__', '__IDENTIFIER__()'].includes(rightTs) ? 'null' : rightMap.get(rightItem)},\n `;</span>
|
|
4571
4405
|
});
|
|
4572
4406
|
<span class="cstat-no" title="statement not covered" > code += '})\n';</span>
|
|
4573
4407
|
} else {
|
|
4574
4408
|
code += `${indent2}let __obj = nasl.util.New<`;
|
|
4575
|
-
code +=
|
|
4409
|
+
code += this.typeAnnotation.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
4576
4410
|
code += `>();\n`;
|
|
4577
4411
|
}
|
|
4578
4412
|
// 是否是左边的顶层连线
|
|
4579
|
-
const leftTopIndex =
|
|
4413
|
+
const leftTopIndex = this.assignmentLines.findIndex(({ leftIndex }) => leftIndex[1] === undefined);
|
|
4580
4414
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (leftTopIndex !== -1) {
|
|
4581
|
-
const { rightIndex } = <span class="cstat-no" title="statement not covered" >
|
|
4415
|
+
const { rightIndex } = <span class="cstat-no" title="statement not covered" >this.assignmentLines[leftTopIndex];</span>
|
|
4582
4416
|
const rightExpression =
|
|
4583
4417
|
<span class="cstat-no" title="statement not covered" > rightIndex[1] !== undefined</span>
|
|
4584
|
-
?
|
|
4585
|
-
:
|
|
4586
|
-
<span class="cstat-no" title="statement not covered" > code += `__obj = ${
|
|
4418
|
+
? this.rights[rightIndex[0]].members[rightIndex[1]]
|
|
4419
|
+
: this.rights[rightIndex[0]].expression;
|
|
4420
|
+
<span class="cstat-no" title="statement not covered" > code += `__obj = ${rightExpression.toEmbeddedTS(shiftState(state, code, { inline: true }))};`;</span>
|
|
4587
4421
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
4588
4422
|
} else {
|
|
4589
4423
|
// 左侧properties的identifier的类型标注
|
|
4590
4424
|
code += `${indent2}const { `;
|
|
4591
|
-
|
|
4592
|
-
code +=
|
|
4593
|
-
if (index <
|
|
4425
|
+
this.properties.forEach((item, index) => {
|
|
4426
|
+
code += item.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
4427
|
+
if (index < this.properties.length - 1) code += ', ';
|
|
4594
4428
|
});
|
|
4595
4429
|
code += ' } = __obj;\n';
|
|
4596
|
-
|
|
4430
|
+
this.assignmentLines.forEach(({ leftIndex, rightIndex }) => {
|
|
4597
4431
|
const leftSecondIndex = leftIndex[1];
|
|
4598
4432
|
const [rightFirst, rightSecond] = [rightIndex[0], rightIndex[1]];
|
|
4599
|
-
const leftItem =
|
|
4433
|
+
const leftItem = this.properties[leftSecondIndex];
|
|
4600
4434
|
const rightItem =
|
|
4601
4435
|
rightSecond !== undefined
|
|
4602
|
-
? <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
4603
|
-
:
|
|
4436
|
+
? <span class="branch-0 cbranch-no" title="branch not covered" >this.rights[rightFirst].members[rightSecond]</span>
|
|
4437
|
+
: this.rights[rightFirst].expression;
|
|
4604
4438
|
const rightTs = rightMap.get(rightItem);
|
|
4605
4439
|
code += `${indent2}nasl.core.compareNew(`;
|
|
4606
4440
|
code += `${['__IDENTIFIER__', '__IDENTIFIER__()'].includes(rightTs) ? <span class="branch-0 cbranch-no" title="branch not covered" >'null' </span>: rightMap.get(rightItem)}, `;
|
|
4607
|
-
code += `${
|
|
4441
|
+
code += `${leftItem.toEmbeddedTS(shiftState(state, code, { inline: true }))});\n`;
|
|
4608
4442
|
});
|
|
4609
4443
|
}
|
|
4610
4444
|
code += `${indent2}return __obj;\n`;
|
|
4611
4445
|
code += `${indent1}};\n`;
|
|
4446
|
+
|
|
4612
4447
|
code += `${indent1}return __newComposite();\n`;
|
|
4613
4448
|
code += `${indent0}})()`;
|
|
4614
4449
|
} else {
|
|
4615
4450
|
const nameMap = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
4616
4451
|
const rightMap = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
4617
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4452
|
+
<span class="cstat-no" title="statement not covered" > this.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }) => {</span>
|
|
4618
4453
|
const leftSecondIndex = <span class="cstat-no" title="statement not covered" >leftIndex[1];</span>
|
|
4619
4454
|
const [rightFirst, rightSecond] = <span class="cstat-no" title="statement not covered" >[rightIndex[0], rightIndex[1]];</span>
|
|
4620
|
-
const leftItem = <span class="cstat-no" title="statement not covered" >
|
|
4455
|
+
const leftItem = <span class="cstat-no" title="statement not covered" >this.properties[leftSecondIndex];</span>
|
|
4621
4456
|
const rightItem =
|
|
4622
|
-
<span class="cstat-no" title="statement not covered" > rightSecond !== undefined ?
|
|
4457
|
+
<span class="cstat-no" title="statement not covered" > rightSecond !== undefined ? this.rights[rightFirst].members[rightSecond] : this.rights[rightFirst].expression;</span>
|
|
4623
4458
|
<span class="cstat-no" title="statement not covered" > nameMap.set(leftItem.name, rightItem);</span>
|
|
4624
4459
|
<span class="cstat-no" title="statement not covered" > rightMap.set(rightItem, null);</span>
|
|
4625
4460
|
});
|
|
4626
4461
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}(() => { \n`;</span>
|
|
4627
4462
|
// 提供sourcemap,获取类型标注和上下文可选变量
|
|
4628
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4463
|
+
<span class="cstat-no" title="statement not covered" > this.rights.forEach(<span class="fstat-no" title="function not covered" >(r</span>ight) => {</span>
|
|
4629
4464
|
<span class="cstat-no" title="statement not covered" > code += indent1;</span>
|
|
4630
|
-
let ts = <span class="cstat-no" title="statement not covered" >
|
|
4465
|
+
let ts = <span class="cstat-no" title="statement not covered" >right.expression.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
4631
4466
|
<span class="cstat-no" title="statement not covered" > if (rightMap.has(right.expression)) <span class="cstat-no" title="statement not covered" >rightMap.set(right.expression, ts);</span></span>
|
|
4632
4467
|
<span class="cstat-no" title="statement not covered" > code += ts;</span>
|
|
4633
4468
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
4634
4469
|
<span class="cstat-no" title="statement not covered" > if (right.members?.length) {</span>
|
|
4635
4470
|
<span class="cstat-no" title="statement not covered" > code += indent2;</span>
|
|
4636
4471
|
}
|
|
4637
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4638
|
-
<span class="cstat-no" title="statement not covered" > ts =
|
|
4472
|
+
<span class="cstat-no" title="statement not covered" > right.members.forEach(<span class="fstat-no" title="function not covered" >(m</span>ember) => {</span>
|
|
4473
|
+
<span class="cstat-no" title="statement not covered" > ts = member.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
4639
4474
|
<span class="cstat-no" title="statement not covered" > if (rightMap.has(member)) <span class="cstat-no" title="statement not covered" >rightMap.set(member, ts);</span></span>
|
|
4640
4475
|
<span class="cstat-no" title="statement not covered" > code += ts;</span>
|
|
4641
4476
|
<span class="cstat-no" title="statement not covered" > code += '; ';</span>
|
|
4642
4477
|
});
|
|
4643
4478
|
<span class="cstat-no" title="statement not covered" > code += right.members.length ? '\n' : '';</span>
|
|
4644
4479
|
});
|
|
4645
|
-
// 先把连线的变量定义出来,否则匿名数据结构属性名称与变量名称相同时会报错,
|
|
4646
|
-
<span class="cstat-no" title="statement not covered" > yield* wrapForEach(self.properties, function* <span class="fstat-no" title="function not covered" >warpForEachGenerator(</span>property, index) {</span>
|
|
4647
|
-
const temp = <span class="cstat-no" title="statement not covered" >`temp${index}__`;</span>
|
|
4648
|
-
const { name } = <span class="cstat-no" title="statement not covered" >property;</span>
|
|
4649
|
-
const rightItem = <span class="cstat-no" title="statement not covered" >nameMap.get(name);</span>
|
|
4650
|
-
const ts = <span class="cstat-no" title="statement not covered" >rightMap.get(rightItem);</span>
|
|
4651
|
-
<span class="cstat-no" title="statement not covered" > if (ts !== undefined) {</span>
|
|
4652
|
-
<span class="cstat-no" title="statement not covered" > if (['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts)) {</span>
|
|
4653
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent1}let ${temp}: void = null; \n`;</span>
|
|
4654
|
-
} else {
|
|
4655
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent1}let ${temp}${ts === 'null' ? ':void' : ''} = ${ts}; \n`;</span>
|
|
4656
|
-
}
|
|
4657
|
-
}
|
|
4658
|
-
});
|
|
4659
4480
|
// 方便ts报错检查
|
|
4660
4481
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}function __newComposite() {\n`;</span>
|
|
4661
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4662
|
-
const temp = <span class="cstat-no" title="statement not covered" >`temp${index}
|
|
4663
|
-
const propertyType = <span class="cstat-no" title="statement not covered" >
|
|
4482
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty, index) => {</span>
|
|
4483
|
+
const temp = <span class="cstat-no" title="statement not covered" >`temp${index}`;</span>
|
|
4484
|
+
const propertyType = <span class="cstat-no" title="statement not covered" >this.typeAnnotation.properties[index]?.typeAnnotation;</span>
|
|
4664
4485
|
const { name } = <span class="cstat-no" title="statement not covered" >property;</span>
|
|
4665
4486
|
const rightItem = <span class="cstat-no" title="statement not covered" >nameMap.get(name);</span>
|
|
4666
4487
|
const ts = <span class="cstat-no" title="statement not covered" >rightMap.get(rightItem);</span>
|
|
4667
4488
|
<span class="cstat-no" title="statement not covered" > if (ts !== undefined) {</span>
|
|
4668
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4669
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4670
|
-
<span class="cstat-no" title="statement not covered" > if (propertyType) {</span>
|
|
4671
|
-
const typeTs = <span class="cstat-no" title="statement not covered" >yield* propertyType.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
4672
|
-
<span class="cstat-no" title="statement not covered" > code += typeTs;</span>
|
|
4673
|
-
<span class="cstat-no" title="statement not covered" > code += ` = ${temp};\n`;</span>
|
|
4674
|
-
// 如果是字段是union类型,且赋值的是当前union允许的类型,会导致property.name类型推断成temp的类型
|
|
4675
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent2}${property.name} = ${property.name} as ${typeTs};\n`;</span>
|
|
4489
|
+
<span class="cstat-no" title="statement not covered" > if (['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts)) {</span>
|
|
4490
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent2}let ${temp}: void = null; `;</span>
|
|
4676
4491
|
} else {
|
|
4677
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
4678
|
-
<span class="cstat-no" title="statement not covered" > code += ` = ${temp};\n`;</span>
|
|
4492
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent2}let ${temp}${ts === 'null' ? ':void' : ''} = ${ts}; `;</span>
|
|
4679
4493
|
}
|
|
4494
|
+
<span class="cstat-no" title="statement not covered" > code += `const `;</span>
|
|
4495
|
+
<span class="cstat-no" title="statement not covered" > code += `${property.toEmbeddedTS(shiftState(state, code, { inline: true }))}: `;</span>
|
|
4496
|
+
<span class="cstat-no" title="statement not covered" > code += propertyType</span>
|
|
4497
|
+
? propertyType.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
4498
|
+
: `nasl.core.Incompatible<typeof ${temp}, void>`;
|
|
4499
|
+
<span class="cstat-no" title="statement not covered" > code += ` = ${temp};\n`;</span>
|
|
4680
4500
|
} else <span class="cstat-no" title="statement not covered" >if (propertyType) {</span>
|
|
4681
4501
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}let ${property.name}: `;</span>
|
|
4682
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
4502
|
+
<span class="cstat-no" title="statement not covered" > code += `${propertyType.toEmbeddedTS(shiftState(state, code, { inline: true }))}; `;</span>
|
|
4683
4503
|
<span class="cstat-no" title="statement not covered" > code += `<`;</span>
|
|
4684
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
4504
|
+
<span class="cstat-no" title="statement not covered" > code += `${property.toEmbeddedTS(shiftState(state, code, { inline: true }))}`;</span>
|
|
4685
4505
|
<span class="cstat-no" title="statement not covered" > code += `>${property.name};\n`;</span>
|
|
4686
4506
|
} else {
|
|
4687
4507
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}const `;</span>
|
|
4688
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
4508
|
+
<span class="cstat-no" title="statement not covered" > code += property.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
4689
4509
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
4690
4510
|
}
|
|
4691
4511
|
});
|
|
4692
4512
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}return {\n`;</span>
|
|
4693
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4513
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty) => {</span>
|
|
4694
4514
|
<span class="cstat-no" title="statement not covered" > code += `${indent3}${property.name},\n`;</span>
|
|
4695
4515
|
});
|
|
4696
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent3}__name: "
|
|
4516
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent3}__name: "AStructure_${genHash(JSON.stringify(this))}" as const,\n`;</span>
|
|
4697
4517
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}}\n`;</span>
|
|
4518
|
+
|
|
4698
4519
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}};\n`;</span>
|
|
4520
|
+
|
|
4699
4521
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}return __newComposite();\n`;</span>
|
|
4700
4522
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}})()`;</span>
|
|
4701
4523
|
}
|
|
@@ -4705,10 +4527,7 @@ export class NewComposite extends LogicItem {
|
|
|
4705
4527
|
@withSourceMap()
|
|
4706
4528
|
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>): string {
|
|
4707
4529
|
let code = <span class="cstat-no" title="statement not covered" >'nasl.util.';</span>
|
|
4708
|
-
<span class="cstat-no" title="statement not covered" > code
|
|
4709
|
-
this?.typeAnnotation?.typeKind === 'anonymousStructure'
|
|
4710
|
-
? 'NewAnonymityStructure'
|
|
4711
|
-
: `NewEntity<${this?.typeAnnotation?.typeName || '__IDENTIFIER__'}>`;
|
|
4530
|
+
<span class="cstat-no" title="statement not covered" > code += this?.typeAnnotation?.typeKind === 'anonymousStructure' ? 'NewAnonymityStructure' : `NewEntity<${this?.typeAnnotation?.typeName || '__IDENTIFIER__'}>`;</span>
|
|
4712
4531
|
let params = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
4713
4532
|
<span class="cstat-no" title="statement not covered" > this?.properties?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
4714
4533
|
<span class="cstat-no" title="statement not covered" > if (item) {</span>
|
|
@@ -4722,8 +4541,7 @@ export class NewComposite extends LogicItem {
|
|
|
4722
4541
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
4723
4542
|
}
|
|
4724
4543
|
|
|
4725
|
-
<span class="fstat-no" title="function not covered" >
|
|
4726
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
4544
|
+
<span class="fstat-no" title="function not covered" > getInitCode(</span>state?: TranslatorState): string {
|
|
4727
4545
|
const indent1 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 1);</span>
|
|
4728
4546
|
const indent2 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 2);</span>
|
|
4729
4547
|
const indent3 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 3);</span>
|
|
@@ -4731,7 +4549,7 @@ export class NewComposite extends LogicItem {
|
|
|
4731
4549
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
4732
4550
|
const nameMap = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
4733
4551
|
const rightMap = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
4734
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4552
|
+
<span class="cstat-no" title="statement not covered" > this.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }) => {</span>
|
|
4735
4553
|
const leftSecondIndex = <span class="cstat-no" title="statement not covered" >leftIndex[1];</span>
|
|
4736
4554
|
const [rightFirst, rightSecond] = <span class="cstat-no" title="statement not covered" >[rightIndex[0], rightIndex[1]];</span>
|
|
4737
4555
|
const leftItem = <span class="cstat-no" title="statement not covered" >this.properties[leftSecondIndex];</span>
|
|
@@ -4742,26 +4560,24 @@ export class NewComposite extends LogicItem {
|
|
|
4742
4560
|
});
|
|
4743
4561
|
<span class="cstat-no" title="statement not covered" > code += '(() => { ';</span>
|
|
4744
4562
|
// 提供sourcemap,获取类型标注和上下文可选变量
|
|
4745
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4746
|
-
let ts = <span class="cstat-no" title="statement not covered" >
|
|
4563
|
+
<span class="cstat-no" title="statement not covered" > this.rights.forEach(<span class="fstat-no" title="function not covered" >(r</span>ight) => {</span>
|
|
4564
|
+
let ts = <span class="cstat-no" title="statement not covered" >right.expression.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
4747
4565
|
<span class="cstat-no" title="statement not covered" > if (rightMap.has(right.expression)) <span class="cstat-no" title="statement not covered" >rightMap.set(right.expression, ts);</span></span>
|
|
4748
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4749
|
-
<span class="cstat-no" title="statement not covered" > ts =
|
|
4750
|
-
<span class="cstat-no" title="statement not covered" > if (rightMap.has(member))
|
|
4751
|
-
|
|
4752
|
-
}
|
|
4753
|
-
}
|
|
4566
|
+
<span class="cstat-no" title="statement not covered" > right.members.forEach(<span class="fstat-no" title="function not covered" >(m</span>ember) => {</span>
|
|
4567
|
+
<span class="cstat-no" title="statement not covered" > ts = member.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
4568
|
+
<span class="cstat-no" title="statement not covered" > if (rightMap.has(member)) <span class="cstat-no" title="statement not covered" >rightMap.set(member, ts);</span></span>
|
|
4569
|
+
});
|
|
4754
4570
|
});
|
|
4755
4571
|
// 方便ts报错检查
|
|
4756
4572
|
<span class="cstat-no" title="statement not covered" > code += 'function __newComposite() { ';</span>
|
|
4757
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4573
|
+
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty, index) => {</span>
|
|
4758
4574
|
const { name } = <span class="cstat-no" title="statement not covered" >property;</span>
|
|
4759
|
-
const propertyType = <span class="cstat-no" title="statement not covered" >
|
|
4575
|
+
const propertyType = <span class="cstat-no" title="statement not covered" >this.typeAnnotation.properties[index]?.typeAnnotation;</span>
|
|
4760
4576
|
const rightItem = <span class="cstat-no" title="statement not covered" >nameMap.get(name);</span>
|
|
4761
4577
|
let ts = <span class="cstat-no" title="statement not covered" >rightMap.get(rightItem);</span>
|
|
4762
|
-
<span class="cstat-no" title="statement not covered" > ts =
|
|
4578
|
+
<span class="cstat-no" title="statement not covered" > ts = this.getForeachCode(ts);</span>
|
|
4763
4579
|
<span class="cstat-no" title="statement not covered" > if (propertyType) {</span>
|
|
4764
|
-
<span class="cstat-no" title="statement not covered" > code += `const ${name}: ${
|
|
4580
|
+
<span class="cstat-no" title="statement not covered" > code += `const ${name}: ${propertyType.toEmbeddedTS(shiftState(state, code, { inline: true }))}; `;</span>
|
|
4765
4581
|
} else <span class="cstat-no" title="statement not covered" >if (ts !== undefined) {</span>
|
|
4766
4582
|
<span class="cstat-no" title="statement not covered" > code += `const ${name} = ${['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts) ? null : ts}; `;</span>
|
|
4767
4583
|
} else {
|
|
@@ -4772,7 +4588,7 @@ export class NewComposite extends LogicItem {
|
|
|
4772
4588
|
<span class="cstat-no" title="statement not covered" > this.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>roperty) => {</span>
|
|
4773
4589
|
<span class="cstat-no" title="statement not covered" > code += `${indent4}${property.name},\n`;</span>
|
|
4774
4590
|
});
|
|
4775
|
-
<span class="cstat-no" title="statement not covered" > code += `${indent4}__name: "
|
|
4591
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent4}__name: "AStructure_${genHash(JSON.stringify(this))}" as const,\n`;</span>
|
|
4776
4592
|
<span class="cstat-no" title="statement not covered" > code += `${indent3}}\n`;</span>
|
|
4777
4593
|
|
|
4778
4594
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}};\n`;</span>
|
|
@@ -4782,7 +4598,7 @@ export class NewComposite extends LogicItem {
|
|
|
4782
4598
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
4783
4599
|
}
|
|
4784
4600
|
|
|
4785
|
-
<span class="fstat-no" title="function not covered" >
|
|
4601
|
+
<span class="fstat-no" title="function not covered" > getNewCompositeCode(</span>state?: TranslatorState): string {
|
|
4786
4602
|
const indent0 = <span class="cstat-no" title="statement not covered" >indent(state?.tabSize || 0);</span>
|
|
4787
4603
|
const indent1 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 1);</span>
|
|
4788
4604
|
const indent2 = <span class="cstat-no" title="statement not covered" >indent((state?.tabSize || 0) + 2);</span>
|
|
@@ -4791,38 +4607,42 @@ export class NewComposite extends LogicItem {
|
|
|
4791
4607
|
const rightMap = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
4792
4608
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}(() => { \n`;</span>
|
|
4793
4609
|
// 提供sourcemap,获取类型标注和上下文可选变量
|
|
4794
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4610
|
+
<span class="cstat-no" title="statement not covered" > this.rights.forEach(<span class="fstat-no" title="function not covered" >(r</span>ight) => {</span>
|
|
4795
4611
|
<span class="cstat-no" title="statement not covered" > code += indent1;</span>
|
|
4796
|
-
<span class="cstat-no" title="statement not covered" > rightMap.set(right.expression,
|
|
4612
|
+
<span class="cstat-no" title="statement not covered" > rightMap.set(right.expression, right.expression.toEmbeddedTS(shiftState(state, code, { inline: true })));</span>
|
|
4797
4613
|
// code += rightMap.get(right.expression);
|
|
4798
4614
|
// code += ';\n';
|
|
4799
4615
|
<span class="cstat-no" title="statement not covered" > if (right.members?.length) {</span>
|
|
4800
4616
|
<span class="cstat-no" title="statement not covered" > code += indent2;</span>
|
|
4801
4617
|
}
|
|
4802
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4803
|
-
<span class="cstat-no" title="statement not covered" > rightMap.set(member,
|
|
4804
|
-
|
|
4805
|
-
|
|
4618
|
+
<span class="cstat-no" title="statement not covered" > right.members.forEach(<span class="fstat-no" title="function not covered" >(m</span>ember) => {</span>
|
|
4619
|
+
<span class="cstat-no" title="statement not covered" > rightMap.set(member, member.toEmbeddedTS(shiftState(state, code, { inline: true })));</span>
|
|
4620
|
+
// code += rightMap.get(member);
|
|
4621
|
+
// code += '; ';
|
|
4622
|
+
});
|
|
4623
|
+
// code += right.members.length ? '\n' : '';
|
|
4624
|
+
});
|
|
4806
4625
|
// 方便ts报错检查
|
|
4807
4626
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}function __newComposite() {\n`;</span>
|
|
4808
4627
|
const { typeAnnotation } = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
4809
4628
|
<span class="cstat-no" title="statement not covered" > if (['nasl.ui', 'nasl.interface', 'nasl.http'].includes(typeAnnotation.typeNamespace)) {</span>
|
|
4810
4629
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}let __obj = new ${typeAnnotation.typeNamespace}.${typeAnnotation.typeName}`;</span>
|
|
4811
4630
|
<span class="cstat-no" title="statement not covered" > code += '({';</span>
|
|
4812
|
-
<span class="cstat-no" title="statement not covered" >
|
|
4631
|
+
<span class="cstat-no" title="statement not covered" > this.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }) => {</span>
|
|
4813
4632
|
const leftSecondIndex = <span class="cstat-no" title="statement not covered" >leftIndex[1];</span>
|
|
4814
4633
|
const [rightFirst, rightSecond] = <span class="cstat-no" title="statement not covered" >[rightIndex[0], rightIndex[1]];</span>
|
|
4815
4634
|
const leftItem = <span class="cstat-no" title="statement not covered" >this.properties[leftSecondIndex];</span>
|
|
4816
4635
|
const rightItem =
|
|
4817
4636
|
<span class="cstat-no" title="statement not covered" > rightSecond !== undefined ? this.rights[rightFirst].members[rightSecond] : this.rights[rightFirst].expression;</span>
|
|
4818
4637
|
const rightTs = <span class="cstat-no" title="statement not covered" >rightMap.get(rightItem);</span>
|
|
4819
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
4638
|
+
<span class="cstat-no" title="statement not covered" > code += `${leftItem.toEmbeddedTS(shiftState(state, code, { inline: true }))}:`;</span>
|
|
4820
4639
|
<span class="cstat-no" title="statement not covered" > code += `${['__IDENTIFIER__', '__IDENTIFIER__()'].includes(rightTs) ? 'null' : rightMap.get(rightItem)},\n `;</span>
|
|
4821
|
-
}
|
|
4640
|
+
});
|
|
4822
4641
|
<span class="cstat-no" title="statement not covered" > code += '})\n';</span>
|
|
4823
4642
|
}
|
|
4824
4643
|
<span class="cstat-no" title="statement not covered" > code += `${indent2}return __obj;\n`;</span>
|
|
4825
4644
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}};\n`;</span>
|
|
4645
|
+
|
|
4826
4646
|
<span class="cstat-no" title="statement not covered" > code += `${indent1}return __newComposite();\n`;</span>
|
|
4827
4647
|
<span class="cstat-no" title="statement not covered" > code += `${indent0}})()`;</span>
|
|
4828
4648
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
@@ -4867,12 +4687,12 @@ export class NewComposite extends LogicItem {
|
|
|
4867
4687
|
<span class="cstat-no" title="statement not covered" > this.app.emit('collect:end');</span>
|
|
4868
4688
|
}
|
|
4869
4689
|
|
|
4870
|
-
<span class="fstat-no" title="function not covered" >
|
|
4690
|
+
<span class="fstat-no" title="function not covered" > getForeachCode(</span>code: string): string {
|
|
4871
4691
|
// ForEachStatement 内部变量需要替换处理,如 item、index
|
|
4872
4692
|
const forEachStatement = <span class="cstat-no" title="statement not covered" >this.getAncestor('ForEachStatement') as ForEachStatement;</span>
|
|
4873
4693
|
<span class="cstat-no" title="statement not covered" > if (forEachStatement && code) {</span>
|
|
4874
4694
|
<span class="cstat-no" title="statement not covered" > code = code.replaceAll('\n', ' ');</span>
|
|
4875
|
-
<span class="cstat-no" title="statement not covered" > code =
|
|
4695
|
+
<span class="cstat-no" title="statement not covered" > code = new Logic().handleForEachCode(code, forEachStatement);</span>
|
|
4876
4696
|
}
|
|
4877
4697
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
4878
4698
|
}
|
|
@@ -4894,7 +4714,7 @@ export default NewComposite;
|
|
|
4894
4714
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
4895
4715
|
Code coverage generated by
|
|
4896
4716
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
4897
|
-
at 2023-
|
|
4717
|
+
at 2023-10-18T11:36:07.885Z
|
|
4898
4718
|
</div>
|
|
4899
4719
|
<script src="../../prettify.js"></script>
|
|
4900
4720
|
<script>
|