@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">7.
|
|
26
|
+
<span class="strong">7.17% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>55/767</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/487</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">2.
|
|
40
|
+
<span class="strong">2.2% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>3/
|
|
42
|
+
<span class='fraction'>3/136</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">6.
|
|
47
|
+
<span class="strong">6.5% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>47/722</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -2307,55 +2307,7 @@
|
|
|
2307
2307
|
<a name='L2242'></a><a href='#L2242'>2242</a>
|
|
2308
2308
|
<a name='L2243'></a><a href='#L2243'>2243</a>
|
|
2309
2309
|
<a name='L2244'></a><a href='#L2244'>2244</a>
|
|
2310
|
-
<a name='L2245'></a><a href='#L2245'>2245</a>
|
|
2311
|
-
<a name='L2246'></a><a href='#L2246'>2246</a>
|
|
2312
|
-
<a name='L2247'></a><a href='#L2247'>2247</a>
|
|
2313
|
-
<a name='L2248'></a><a href='#L2248'>2248</a>
|
|
2314
|
-
<a name='L2249'></a><a href='#L2249'>2249</a>
|
|
2315
|
-
<a name='L2250'></a><a href='#L2250'>2250</a>
|
|
2316
|
-
<a name='L2251'></a><a href='#L2251'>2251</a>
|
|
2317
|
-
<a name='L2252'></a><a href='#L2252'>2252</a>
|
|
2318
|
-
<a name='L2253'></a><a href='#L2253'>2253</a>
|
|
2319
|
-
<a name='L2254'></a><a href='#L2254'>2254</a>
|
|
2320
|
-
<a name='L2255'></a><a href='#L2255'>2255</a>
|
|
2321
|
-
<a name='L2256'></a><a href='#L2256'>2256</a>
|
|
2322
|
-
<a name='L2257'></a><a href='#L2257'>2257</a>
|
|
2323
|
-
<a name='L2258'></a><a href='#L2258'>2258</a>
|
|
2324
|
-
<a name='L2259'></a><a href='#L2259'>2259</a>
|
|
2325
|
-
<a name='L2260'></a><a href='#L2260'>2260</a>
|
|
2326
|
-
<a name='L2261'></a><a href='#L2261'>2261</a>
|
|
2327
|
-
<a name='L2262'></a><a href='#L2262'>2262</a>
|
|
2328
|
-
<a name='L2263'></a><a href='#L2263'>2263</a>
|
|
2329
|
-
<a name='L2264'></a><a href='#L2264'>2264</a>
|
|
2330
|
-
<a name='L2265'></a><a href='#L2265'>2265</a>
|
|
2331
|
-
<a name='L2266'></a><a href='#L2266'>2266</a>
|
|
2332
|
-
<a name='L2267'></a><a href='#L2267'>2267</a>
|
|
2333
|
-
<a name='L2268'></a><a href='#L2268'>2268</a>
|
|
2334
|
-
<a name='L2269'></a><a href='#L2269'>2269</a>
|
|
2335
|
-
<a name='L2270'></a><a href='#L2270'>2270</a>
|
|
2336
|
-
<a name='L2271'></a><a href='#L2271'>2271</a>
|
|
2337
|
-
<a name='L2272'></a><a href='#L2272'>2272</a>
|
|
2338
|
-
<a name='L2273'></a><a href='#L2273'>2273</a>
|
|
2339
|
-
<a name='L2274'></a><a href='#L2274'>2274</a>
|
|
2340
|
-
<a name='L2275'></a><a href='#L2275'>2275</a>
|
|
2341
|
-
<a name='L2276'></a><a href='#L2276'>2276</a>
|
|
2342
|
-
<a name='L2277'></a><a href='#L2277'>2277</a>
|
|
2343
|
-
<a name='L2278'></a><a href='#L2278'>2278</a>
|
|
2344
|
-
<a name='L2279'></a><a href='#L2279'>2279</a>
|
|
2345
|
-
<a name='L2280'></a><a href='#L2280'>2280</a>
|
|
2346
|
-
<a name='L2281'></a><a href='#L2281'>2281</a>
|
|
2347
|
-
<a name='L2282'></a><a href='#L2282'>2282</a>
|
|
2348
|
-
<a name='L2283'></a><a href='#L2283'>2283</a>
|
|
2349
|
-
<a name='L2284'></a><a href='#L2284'>2284</a>
|
|
2350
|
-
<a name='L2285'></a><a href='#L2285'>2285</a>
|
|
2351
|
-
<a name='L2286'></a><a href='#L2286'>2286</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
2352
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2353
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2354
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2355
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2356
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2357
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2358
|
-
<span class="cline-any cline-yes">1x</span>
|
|
2310
|
+
<a name='L2245'></a><a href='#L2245'>2245</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
2359
2311
|
<span class="cline-any cline-yes">1x</span>
|
|
2360
2312
|
<span class="cline-any cline-neutral"> </span>
|
|
2361
2313
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2364,10 +2316,6 @@
|
|
|
2364
2316
|
<span class="cline-any cline-neutral"> </span>
|
|
2365
2317
|
<span class="cline-any cline-neutral"> </span>
|
|
2366
2318
|
<span class="cline-any cline-neutral"> </span>
|
|
2367
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2368
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2369
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2370
|
-
<span class="cline-any cline-yes">1x</span>
|
|
2371
2319
|
<span class="cline-any cline-yes">1x</span>
|
|
2372
2320
|
<span class="cline-any cline-yes">1x</span>
|
|
2373
2321
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2375,7 +2323,7 @@
|
|
|
2375
2323
|
<span class="cline-any cline-yes">1x</span>
|
|
2376
2324
|
<span class="cline-any cline-yes">1x</span>
|
|
2377
2325
|
<span class="cline-any cline-yes">1x</span>
|
|
2378
|
-
<span class="cline-any cline-
|
|
2326
|
+
<span class="cline-any cline-yes">1x</span>
|
|
2379
2327
|
<span class="cline-any cline-neutral"> </span>
|
|
2380
2328
|
<span class="cline-any cline-neutral"> </span>
|
|
2381
2329
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -2421,7 +2369,6 @@
|
|
|
2421
2369
|
<span class="cline-any cline-neutral"> </span>
|
|
2422
2370
|
<span class="cline-any cline-neutral"> </span>
|
|
2423
2371
|
<span class="cline-any cline-neutral"> </span>
|
|
2424
|
-
<span class="cline-any cline-yes">1x</span>
|
|
2425
2372
|
<span class="cline-any cline-neutral"> </span>
|
|
2426
2373
|
<span class="cline-any cline-neutral"> </span>
|
|
2427
2374
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3474,21 +3421,13 @@
|
|
|
3474
3421
|
<span class="cline-any cline-neutral"> </span>
|
|
3475
3422
|
<span class="cline-any cline-no"> </span>
|
|
3476
3423
|
<span class="cline-any cline-no"> </span>
|
|
3477
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3478
|
-
<span class="cline-any cline-no"> </span>
|
|
3479
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3480
|
-
<span class="cline-any cline-no"> </span>
|
|
3481
3424
|
<span class="cline-any cline-no"> </span>
|
|
3482
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3483
3425
|
<span class="cline-any cline-no"> </span>
|
|
3484
3426
|
<span class="cline-any cline-no"> </span>
|
|
3485
3427
|
<span class="cline-any cline-no"> </span>
|
|
3486
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3487
3428
|
<span class="cline-any cline-no"> </span>
|
|
3488
3429
|
<span class="cline-any cline-no"> </span>
|
|
3489
3430
|
<span class="cline-any cline-no"> </span>
|
|
3490
|
-
<span class="cline-any cline-no"> </span>
|
|
3491
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3492
3431
|
<span class="cline-any cline-neutral"> </span>
|
|
3493
3432
|
<span class="cline-any cline-neutral"> </span>
|
|
3494
3433
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3530,23 +3469,15 @@
|
|
|
3530
3469
|
<span class="cline-any cline-neutral"> </span>
|
|
3531
3470
|
<span class="cline-any cline-no"> </span>
|
|
3532
3471
|
<span class="cline-any cline-no"> </span>
|
|
3533
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3534
|
-
<span class="cline-any cline-no"> </span>
|
|
3535
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3536
|
-
<span class="cline-any cline-no"> </span>
|
|
3537
|
-
<span class="cline-any cline-no"> </span>
|
|
3538
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3539
3472
|
<span class="cline-any cline-no"> </span>
|
|
3540
3473
|
<span class="cline-any cline-no"> </span>
|
|
3541
3474
|
<span class="cline-any cline-no"> </span>
|
|
3542
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3543
3475
|
<span class="cline-any cline-no"> </span>
|
|
3544
3476
|
<span class="cline-any cline-no"> </span>
|
|
3545
3477
|
<span class="cline-any cline-no"> </span>
|
|
3546
3478
|
<span class="cline-any cline-no"> </span>
|
|
3547
3479
|
<span class="cline-any cline-neutral"> </span>
|
|
3548
3480
|
<span class="cline-any cline-neutral"> </span>
|
|
3549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3550
3481
|
<span class="cline-any cline-no"> </span>
|
|
3551
3482
|
<span class="cline-any cline-neutral"> </span>
|
|
3552
3483
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3586,23 +3517,15 @@
|
|
|
3586
3517
|
<span class="cline-any cline-neutral"> </span>
|
|
3587
3518
|
<span class="cline-any cline-no"> </span>
|
|
3588
3519
|
<span class="cline-any cline-no"> </span>
|
|
3589
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3590
3520
|
<span class="cline-any cline-no"> </span>
|
|
3591
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3592
3521
|
<span class="cline-any cline-no"> </span>
|
|
3593
3522
|
<span class="cline-any cline-no"> </span>
|
|
3594
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3595
|
-
<span class="cline-any cline-no"> </span>
|
|
3596
|
-
<span class="cline-any cline-no"> </span>
|
|
3597
|
-
<span class="cline-any cline-no"> </span>
|
|
3598
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3599
3523
|
<span class="cline-any cline-no"> </span>
|
|
3600
3524
|
<span class="cline-any cline-no"> </span>
|
|
3601
3525
|
<span class="cline-any cline-no"> </span>
|
|
3602
3526
|
<span class="cline-any cline-no"> </span>
|
|
3603
3527
|
<span class="cline-any cline-neutral"> </span>
|
|
3604
3528
|
<span class="cline-any cline-neutral"> </span>
|
|
3605
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3606
3529
|
<span class="cline-any cline-no"> </span>
|
|
3607
3530
|
<span class="cline-any cline-neutral"> </span>
|
|
3608
3531
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3642,23 +3565,15 @@
|
|
|
3642
3565
|
<span class="cline-any cline-neutral"> </span>
|
|
3643
3566
|
<span class="cline-any cline-no"> </span>
|
|
3644
3567
|
<span class="cline-any cline-no"> </span>
|
|
3645
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3646
|
-
<span class="cline-any cline-no"> </span>
|
|
3647
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3648
|
-
<span class="cline-any cline-no"> </span>
|
|
3649
|
-
<span class="cline-any cline-no"> </span>
|
|
3650
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3651
3568
|
<span class="cline-any cline-no"> </span>
|
|
3652
3569
|
<span class="cline-any cline-no"> </span>
|
|
3653
3570
|
<span class="cline-any cline-no"> </span>
|
|
3654
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3655
3571
|
<span class="cline-any cline-no"> </span>
|
|
3656
3572
|
<span class="cline-any cline-no"> </span>
|
|
3657
3573
|
<span class="cline-any cline-no"> </span>
|
|
3658
3574
|
<span class="cline-any cline-no"> </span>
|
|
3659
3575
|
<span class="cline-any cline-neutral"> </span>
|
|
3660
3576
|
<span class="cline-any cline-neutral"> </span>
|
|
3661
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3662
3577
|
<span class="cline-any cline-no"> </span>
|
|
3663
3578
|
<span class="cline-any cline-neutral"> </span>
|
|
3664
3579
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3698,21 +3613,13 @@
|
|
|
3698
3613
|
<span class="cline-any cline-neutral"> </span>
|
|
3699
3614
|
<span class="cline-any cline-no"> </span>
|
|
3700
3615
|
<span class="cline-any cline-no"> </span>
|
|
3701
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3702
3616
|
<span class="cline-any cline-no"> </span>
|
|
3703
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3704
3617
|
<span class="cline-any cline-no"> </span>
|
|
3705
3618
|
<span class="cline-any cline-no"> </span>
|
|
3706
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3707
3619
|
<span class="cline-any cline-no"> </span>
|
|
3708
3620
|
<span class="cline-any cline-no"> </span>
|
|
3709
3621
|
<span class="cline-any cline-no"> </span>
|
|
3710
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3711
|
-
<span class="cline-any cline-no"> </span>
|
|
3712
|
-
<span class="cline-any cline-no"> </span>
|
|
3713
3622
|
<span class="cline-any cline-no"> </span>
|
|
3714
|
-
<span class="cline-any cline-no"> </span>
|
|
3715
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3716
3623
|
<span class="cline-any cline-neutral"> </span>
|
|
3717
3624
|
<span class="cline-any cline-neutral"> </span>
|
|
3718
3625
|
<span class="cline-any cline-no"> </span>
|
|
@@ -3751,23 +3658,15 @@
|
|
|
3751
3658
|
<span class="cline-any cline-neutral"> </span>
|
|
3752
3659
|
<span class="cline-any cline-no"> </span>
|
|
3753
3660
|
<span class="cline-any cline-no"> </span>
|
|
3754
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3755
|
-
<span class="cline-any cline-no"> </span>
|
|
3756
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3757
|
-
<span class="cline-any cline-no"> </span>
|
|
3758
|
-
<span class="cline-any cline-no"> </span>
|
|
3759
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3760
3661
|
<span class="cline-any cline-no"> </span>
|
|
3761
3662
|
<span class="cline-any cline-no"> </span>
|
|
3762
3663
|
<span class="cline-any cline-no"> </span>
|
|
3763
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3764
3664
|
<span class="cline-any cline-no"> </span>
|
|
3765
3665
|
<span class="cline-any cline-no"> </span>
|
|
3766
3666
|
<span class="cline-any cline-no"> </span>
|
|
3767
3667
|
<span class="cline-any cline-no"> </span>
|
|
3768
3668
|
<span class="cline-any cline-neutral"> </span>
|
|
3769
3669
|
<span class="cline-any cline-neutral"> </span>
|
|
3770
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3771
3670
|
<span class="cline-any cline-no"> </span>
|
|
3772
3671
|
<span class="cline-any cline-neutral"> </span>
|
|
3773
3672
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4024,23 +3923,13 @@
|
|
|
4024
3923
|
<span class="cline-any cline-neutral"> </span>
|
|
4025
3924
|
<span class="cline-any cline-neutral"> </span>
|
|
4026
3925
|
<span class="cline-any cline-yes">1x</span>
|
|
4027
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4028
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4029
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4030
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4031
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4032
3926
|
<span class="cline-any cline-no"> </span>
|
|
4033
3927
|
<span class="cline-any cline-no"> </span>
|
|
4034
3928
|
<span class="cline-any cline-no"> </span>
|
|
4035
3929
|
<span class="cline-any cline-no"> </span>
|
|
4036
3930
|
<span class="cline-any cline-no"> </span>
|
|
4037
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4038
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4039
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4040
|
-
<span class="cline-any cline-no"> </span>
|
|
4041
3931
|
<span class="cline-any cline-no"> </span>
|
|
4042
3932
|
<span class="cline-any cline-neutral"> </span>
|
|
4043
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4044
3933
|
<span class="cline-any cline-no"> </span>
|
|
4045
3934
|
<span class="cline-any cline-no"> </span>
|
|
4046
3935
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4049,11 +3938,13 @@
|
|
|
4049
3938
|
<span class="cline-any cline-no"> </span>
|
|
4050
3939
|
<span class="cline-any cline-no"> </span>
|
|
4051
3940
|
<span class="cline-any cline-neutral"> </span>
|
|
3941
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4052
3942
|
<span class="cline-any cline-no"> </span>
|
|
4053
3943
|
<span class="cline-any cline-no"> </span>
|
|
4054
3944
|
<span class="cline-any cline-no"> </span>
|
|
4055
3945
|
<span class="cline-any cline-no"> </span>
|
|
4056
3946
|
<span class="cline-any cline-neutral"> </span>
|
|
3947
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4057
3948
|
<span class="cline-any cline-no"> </span>
|
|
4058
3949
|
<span class="cline-any cline-no"> </span>
|
|
4059
3950
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4076,10 +3967,12 @@
|
|
|
4076
3967
|
<span class="cline-any cline-neutral"> </span>
|
|
4077
3968
|
<span class="cline-any cline-neutral"> </span>
|
|
4078
3969
|
<span class="cline-any cline-neutral"> </span>
|
|
3970
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4079
3971
|
<span class="cline-any cline-no"> </span>
|
|
4080
3972
|
<span class="cline-any cline-no"> </span>
|
|
4081
3973
|
<span class="cline-any cline-no"> </span>
|
|
4082
3974
|
<span class="cline-any cline-neutral"> </span>
|
|
3975
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4083
3976
|
<span class="cline-any cline-no"> </span>
|
|
4084
3977
|
<span class="cline-any cline-no"> </span>
|
|
4085
3978
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4091,9 +3984,6 @@
|
|
|
4091
3984
|
<span class="cline-any cline-neutral"> </span>
|
|
4092
3985
|
<span class="cline-any cline-neutral"> </span>
|
|
4093
3986
|
<span class="cline-any cline-yes">1x</span>
|
|
4094
|
-
<span class="cline-any cline-no"> </span>
|
|
4095
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4096
|
-
<span class="cline-any cline-no"> </span>
|
|
4097
3987
|
<span class="cline-any cline-neutral"> </span>
|
|
4098
3988
|
<span class="cline-any cline-no"> </span>
|
|
4099
3989
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4124,6 +4014,7 @@
|
|
|
4124
4014
|
<span class="cline-any cline-no"> </span>
|
|
4125
4015
|
<span class="cline-any cline-neutral"> </span>
|
|
4126
4016
|
<span class="cline-any cline-neutral"> </span>
|
|
4017
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4127
4018
|
<span class="cline-any cline-no"> </span>
|
|
4128
4019
|
<span class="cline-any cline-no"> </span>
|
|
4129
4020
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4159,15 +4050,39 @@
|
|
|
4159
4050
|
<span class="cline-any cline-neutral"> </span>
|
|
4160
4051
|
<span class="cline-any cline-neutral"> </span>
|
|
4161
4052
|
<span class="cline-any cline-neutral"> </span>
|
|
4053
|
+
<span class="cline-any cline-no"> </span>
|
|
4054
|
+
<span class="cline-any cline-no"> </span>
|
|
4055
|
+
<span class="cline-any cline-no"> </span>
|
|
4056
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4057
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4058
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4162
4059
|
<span class="cline-any cline-neutral"> </span>
|
|
4163
4060
|
<span class="cline-any cline-no"> </span>
|
|
4164
4061
|
<span class="cline-any cline-no"> </span>
|
|
4062
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4165
4063
|
<span class="cline-any cline-no"> </span>
|
|
4166
4064
|
<span class="cline-any cline-neutral"> </span>
|
|
4065
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4066
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4067
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4068
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4069
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4070
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4071
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4072
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4073
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4074
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4075
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4076
|
+
<span class="cline-any cline-no"> </span>
|
|
4077
|
+
<span class="cline-any cline-no"> </span>
|
|
4167
4078
|
<span class="cline-any cline-no"> </span>
|
|
4168
4079
|
<span class="cline-any cline-neutral"> </span>
|
|
4169
4080
|
<span class="cline-any cline-no"> </span>
|
|
4081
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4082
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4170
4083
|
<span class="cline-any cline-no"> </span>
|
|
4084
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4085
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4171
4086
|
<span class="cline-any cline-no"> </span>
|
|
4172
4087
|
<span class="cline-any cline-no"> </span>
|
|
4173
4088
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4180,6 +4095,7 @@
|
|
|
4180
4095
|
<span class="cline-any cline-no"> </span>
|
|
4181
4096
|
<span class="cline-any cline-neutral"> </span>
|
|
4182
4097
|
<span class="cline-any cline-neutral"> </span>
|
|
4098
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4183
4099
|
<span class="cline-any cline-no"> </span>
|
|
4184
4100
|
<span class="cline-any cline-no"> </span>
|
|
4185
4101
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4187,6 +4103,7 @@
|
|
|
4187
4103
|
<span class="cline-any cline-no"> </span>
|
|
4188
4104
|
<span class="cline-any cline-neutral"> </span>
|
|
4189
4105
|
<span class="cline-any cline-neutral"> </span>
|
|
4106
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4190
4107
|
<span class="cline-any cline-no"> </span>
|
|
4191
4108
|
<span class="cline-any cline-no"> </span>
|
|
4192
4109
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4260,6 +4177,7 @@
|
|
|
4260
4177
|
<span class="cline-any cline-neutral"> </span>
|
|
4261
4178
|
<span class="cline-any cline-no"> </span>
|
|
4262
4179
|
<span class="cline-any cline-neutral"> </span>
|
|
4180
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4263
4181
|
<span class="cline-any cline-no"> </span>
|
|
4264
4182
|
<span class="cline-any cline-no"> </span>
|
|
4265
4183
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4274,10 +4192,12 @@
|
|
|
4274
4192
|
<span class="cline-any cline-neutral"> </span>
|
|
4275
4193
|
<span class="cline-any cline-neutral"> </span>
|
|
4276
4194
|
<span class="cline-any cline-neutral"> </span>
|
|
4195
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4277
4196
|
<span class="cline-any cline-no"> </span>
|
|
4278
4197
|
<span class="cline-any cline-no"> </span>
|
|
4279
4198
|
<span class="cline-any cline-no"> </span>
|
|
4280
4199
|
<span class="cline-any cline-neutral"> </span>
|
|
4200
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4281
4201
|
<span class="cline-any cline-no"> </span>
|
|
4282
4202
|
<span class="cline-any cline-no"> </span>
|
|
4283
4203
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4345,8 +4265,6 @@
|
|
|
4345
4265
|
<span class="cline-any cline-neutral"> </span>
|
|
4346
4266
|
<span class="cline-any cline-neutral"> </span>
|
|
4347
4267
|
<span class="cline-any cline-no"> </span>
|
|
4348
|
-
<span class="cline-any cline-no"> </span>
|
|
4349
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4350
4268
|
<span class="cline-any cline-neutral"> </span>
|
|
4351
4269
|
<span class="cline-any cline-no"> </span>
|
|
4352
4270
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4633,14 +4551,7 @@
|
|
|
4633
4551
|
<span class="cline-any cline-neutral"> </span>
|
|
4634
4552
|
<span class="cline-any cline-neutral"> </span>
|
|
4635
4553
|
<span class="cline-any cline-neutral"> </span>
|
|
4636
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
4637
|
-
wrapForEachToGenerator as wrapForEach,
|
|
4638
|
-
wrapIteratorToGenerator as wrapIterator,
|
|
4639
|
-
runGeneratorSync as runSync,
|
|
4640
|
-
returnOrigin,
|
|
4641
|
-
} from '../utils/time-slicing';
|
|
4642
|
-
import type { EmbeddedTSFileGenerator } from '../utils';
|
|
4643
|
-
import { FrontendLibrary } from './FrontendLibrary__';
|
|
4554
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { FrontendLibrary } from './FrontendLibrary__';
|
|
4644
4555
|
import {
|
|
4645
4556
|
TranslatorState,
|
|
4646
4557
|
shiftState,
|
|
@@ -4648,11 +4559,7 @@ import {
|
|
|
4648
4559
|
indent,
|
|
4649
4560
|
createCompilerState,
|
|
4650
4561
|
embeddedTSEmitter,
|
|
4651
|
-
withSourceMapGenerator,
|
|
4652
|
-
withGenerator,
|
|
4653
|
-
TranslatorGenerator,
|
|
4654
4562
|
} from '../translator';
|
|
4655
|
-
import { waitOqlQueryComponentChildrenFinish } from '../common';
|
|
4656
4563
|
import Namespace from './Namespace__';
|
|
4657
4564
|
import CallQueryComponent from './CallQueryComponent__';
|
|
4658
4565
|
import ForEachStatement from './ForEachStatement__';
|
|
@@ -4704,7 +4611,6 @@ export class OverriddenLogic extends BaseNode {
|
|
|
4704
4611
|
/**
|
|
4705
4612
|
* 产品概念
|
|
4706
4613
|
*/
|
|
4707
|
-
@property('concept')
|
|
4708
4614
|
// @ts-ignore
|
|
4709
4615
|
readonly concept!: 'OverriddenLogic';
|
|
4710
4616
|
|
|
@@ -4925,7 +4831,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
4925
4831
|
|
|
4926
4832
|
<span class="fstat-no" title="function not covered" > getTypeParamExistingNames(</span>excludedList: Array<TypeParam> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
4927
4833
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
4928
|
-
<span class="cstat-no" title="statement not covered" > return ((this.typeParams as TypeParam[]) || []).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
|
|
4834
|
+
<span class="cstat-no" title="statement not covered" > return ((this.typeParams as TypeParam[]) || []).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>
|
|
4929
4835
|
}
|
|
4930
4836
|
<span class="fstat-no" title="function not covered" > getTypeParamUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'typeParam1')</span> {
|
|
4931
4837
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getTypeParamExistingNames(), undefined, false);</span>
|
|
@@ -5759,21 +5665,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
5759
5665
|
};
|
|
5760
5666
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
5761
5667
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
// @ts-ignore
|
|
5765
|
-
const n = <span class="cstat-no" title="statement not covered" >transactional.__v_raw || transactional;</span>
|
|
5766
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
5767
|
-
// @ts-ignore
|
|
5768
|
-
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>
|
|
5668
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
5669
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(transactional);</span>
|
|
5769
5670
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
5770
5671
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
5771
|
-
} else {
|
|
5772
|
-
|
|
5773
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5774
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5775
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5776
|
-
}
|
|
5672
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === transactional) {</span>
|
|
5673
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5674
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5777
5675
|
}
|
|
5778
5676
|
}
|
|
5779
5677
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -5815,21 +5713,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
5815
5713
|
};
|
|
5816
5714
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
5817
5715
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
// @ts-ignore
|
|
5821
|
-
const n = <span class="cstat-no" title="statement not covered" >typeParam.__v_raw || typeParam;</span>
|
|
5822
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
5823
|
-
// @ts-ignore
|
|
5824
|
-
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>
|
|
5716
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
5717
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(typeParam);</span>
|
|
5825
5718
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
5826
5719
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
5827
|
-
} else {
|
|
5828
|
-
|
|
5829
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5830
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5831
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5832
|
-
}
|
|
5720
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === typeParam) {</span>
|
|
5721
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5722
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5833
5723
|
}
|
|
5834
5724
|
}
|
|
5835
5725
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -5871,21 +5761,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
5871
5761
|
};
|
|
5872
5762
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
5873
5763
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
// @ts-ignore
|
|
5877
|
-
const n = <span class="cstat-no" title="statement not covered" >param.__v_raw || param;</span>
|
|
5878
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
5879
|
-
// @ts-ignore
|
|
5880
|
-
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>
|
|
5764
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
5765
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(param);</span>
|
|
5881
5766
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
5882
5767
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
5883
|
-
} else {
|
|
5884
|
-
|
|
5885
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5886
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5887
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5888
|
-
}
|
|
5768
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === param) {</span>
|
|
5769
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5770
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5889
5771
|
}
|
|
5890
5772
|
}
|
|
5891
5773
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -5927,21 +5809,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
5927
5809
|
};
|
|
5928
5810
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
5929
5811
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
// @ts-ignore
|
|
5933
|
-
const n = <span class="cstat-no" title="statement not covered" >ret.__v_raw || ret;</span>
|
|
5934
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
5935
|
-
// @ts-ignore
|
|
5936
|
-
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>
|
|
5812
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
5813
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(ret);</span>
|
|
5937
5814
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
5938
5815
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
5939
|
-
} else {
|
|
5940
|
-
|
|
5941
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5942
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5943
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5944
|
-
}
|
|
5816
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === ret) {</span>
|
|
5817
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5818
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
5945
5819
|
}
|
|
5946
5820
|
}
|
|
5947
5821
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -5983,21 +5857,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
5983
5857
|
};
|
|
5984
5858
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
5985
5859
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
// @ts-ignore
|
|
5989
|
-
const n = <span class="cstat-no" title="statement not covered" >variable.__v_raw || variable;</span>
|
|
5990
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
5991
|
-
// @ts-ignore
|
|
5992
|
-
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>
|
|
5860
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
5861
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(variable);</span>
|
|
5993
5862
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
5994
5863
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
5995
|
-
} else {
|
|
5996
|
-
|
|
5997
|
-
<span class="cstat-no" title="statement not covered" >
|
|
5998
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5999
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
6000
|
-
}
|
|
5864
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === variable) {</span>
|
|
5865
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5866
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
6001
5867
|
}
|
|
6002
5868
|
}
|
|
6003
5869
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -6036,21 +5902,13 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6036
5902
|
};
|
|
6037
5903
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
6038
5904
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
// @ts-ignore
|
|
6042
|
-
const n = <span class="cstat-no" title="statement not covered" >logicItem.__v_raw || logicItem;</span>
|
|
6043
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
6044
|
-
// @ts-ignore
|
|
6045
|
-
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>
|
|
5905
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
5906
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logicItem);</span>
|
|
6046
5907
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
6047
5908
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
6048
|
-
} else {
|
|
6049
|
-
|
|
6050
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6051
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
6052
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
6053
|
-
}
|
|
5909
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logicItem) {</span>
|
|
5910
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
5911
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
6054
5912
|
}
|
|
6055
5913
|
}
|
|
6056
5914
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -6307,181 +6165,199 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6307
6165
|
};
|
|
6308
6166
|
}
|
|
6309
6167
|
|
|
6310
|
-
@
|
|
6311
|
-
<span class="fstat-no" title="function not covered" >
|
|
6312
|
-
state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState(),</span>
|
|
6313
|
-
prependCode?: string,
|
|
6314
|
-
noName?: boolean,
|
|
6315
|
-
prefix?: boolean,
|
|
6316
|
-
): TranslatorGenerator {
|
|
6317
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
6168
|
+
@withSourceMap()
|
|
6169
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSInProcess(</span>state?: TranslatorState, prependCode?: string, noName?: boolean, prefix?: boolean): string {
|
|
6318
6170
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
6319
|
-
<span class="cstat-no" title="statement not covered" > if (!prefix) <span class="cstat-no" title="statement not covered" >code += `${noName ? '' : `${
|
|
6320
|
-
else <span class="cstat-no" title="statement not covered" >code += `function ${
|
|
6321
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
<span class="cstat-no" title="statement not covered" > code += yield* param.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6326
|
-
<span class="cstat-no" title="statement not covered" > if (index !== self.params.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
6327
|
-
},
|
|
6328
|
-
);
|
|
6171
|
+
<span class="cstat-no" title="statement not covered" > if (!prefix) <span class="cstat-no" title="statement not covered" >code += `${noName ? '' : `${this.name}:`} function(`;</span></span>
|
|
6172
|
+
else <span class="cstat-no" title="statement not covered" >code += `function ${this.name}(`; </span>// 加空格会导致无法查询到引用
|
|
6173
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
6174
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6175
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
6176
|
+
});
|
|
6329
6177
|
<span class="cstat-no" title="statement not covered" > code += `) {\n`;</span>
|
|
6330
6178
|
<span class="cstat-no" title="statement not covered" > code += prependCode || '';</span>
|
|
6331
6179
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
6332
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6180
|
+
<span class="cstat-no" title="statement not covered" > this.variables.forEach(<span class="fstat-no" title="function not covered" >(v</span>ariable) => {</span>
|
|
6333
6181
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
6334
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6182
|
+
<span class="cstat-no" title="statement not covered" > code += variable.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6335
6183
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6336
6184
|
});
|
|
6337
|
-
|
|
6185
|
+
|
|
6186
|
+
<span class="cstat-no" title="statement not covered" > this.returns.forEach(<span class="fstat-no" title="function not covered" >(r</span>et) => {</span>
|
|
6338
6187
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
6339
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6188
|
+
<span class="cstat-no" title="statement not covered" > code += ret.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6340
6189
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6341
6190
|
});
|
|
6342
|
-
|
|
6343
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6191
|
+
|
|
6192
|
+
<span class="cstat-no" title="statement not covered" > if (!this.body.length && this.returns.length) {</span>
|
|
6193
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}return ${this.returns[0].name};\n`;</span>
|
|
6344
6194
|
} else {
|
|
6345
|
-
<span class="cstat-no" title="statement not covered" > if ((
|
|
6346
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
6195
|
+
<span class="cstat-no" title="statement not covered" > if ((this.parentNode as any).type === 'ExclusiveGateway') {</span>
|
|
6196
|
+
<span class="cstat-no" title="statement not covered" > if (this.body.length <= 1) {</span>
|
|
6347
6197
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
6348
6198
|
<span class="cstat-no" title="statement not covered" > code += 'const __LogicEmpty: any = null;';</span>
|
|
6349
6199
|
}
|
|
6350
6200
|
} else <span class="cstat-no" title="statement not covered" >if (</span>
|
|
6351
|
-
|
|
6352
|
-
!(
|
|
6353
|
-
!(
|
|
6201
|
+
this.body.length <= 2 &&
|
|
6202
|
+
!(this.parentNode instanceof Namespace) &&
|
|
6203
|
+
!(this.parentNode instanceof Process)
|
|
6354
6204
|
) {
|
|
6355
6205
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
6356
6206
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0 + 4)}const __LogicEmpty: any = null;`;</span>
|
|
6357
6207
|
}
|
|
6358
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6359
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6208
|
+
<span class="cstat-no" title="statement not covered" > this.body.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
6209
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS && item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
6360
6210
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6361
6211
|
});
|
|
6362
6212
|
}
|
|
6213
|
+
|
|
6363
6214
|
// 在body渲染完成之后把其余的节点放到下面
|
|
6364
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6365
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6215
|
+
<span class="cstat-no" title="statement not covered" > this.playground.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
6216
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
6366
6217
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
6367
6218
|
});
|
|
6219
|
+
|
|
6368
6220
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0 + 4)}}`;</span>
|
|
6369
6221
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
6370
6222
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
6371
6223
|
}
|
|
6372
6224
|
|
|
6373
6225
|
<span class="fstat-no" title="function not covered" > toEmbeddedTSNoExport(</span>state?: TranslatorState): string {
|
|
6374
|
-
<span class="cstat-no" title="statement not covered" > return
|
|
6226
|
+
<span class="cstat-no" title="statement not covered" > return this.toEmbeddedTS(state, 'noExport');</span>
|
|
6375
6227
|
}
|
|
6376
6228
|
|
|
6377
|
-
@
|
|
6378
|
-
<span class="fstat-no" title="function not covered" >
|
|
6379
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
6380
|
-
// 等待 oql 查询返回内容
|
|
6381
|
-
<span class="cstat-no" title="statement not covered" > yield waitOqlQueryComponentChildrenFinish(self);</span>
|
|
6229
|
+
@withSourceMap()
|
|
6230
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state?: TranslatorState, prefix?: string): string {
|
|
6382
6231
|
// 如果传了不要前缀那就为空, 要不用传进来的,要是都没有就默认导出
|
|
6383
6232
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
6384
6233
|
<span class="cstat-no" title="statement not covered" > if (!prefix) {</span>
|
|
6385
|
-
<span class="cstat-no" title="statement not covered" > code += `export function ${
|
|
6234
|
+
<span class="cstat-no" title="statement not covered" > code += `export function ${this.name}`;</span>
|
|
6386
6235
|
} else <span class="cstat-no" title="statement not covered" >if (prefix === 'noExport') {</span>
|
|
6387
|
-
<span class="cstat-no" title="statement not covered" > code += `function ${
|
|
6236
|
+
<span class="cstat-no" title="statement not covered" > code += `function ${this.name}`;</span>
|
|
6388
6237
|
} else <span class="cstat-no" title="statement not covered" >if (prefix === 'inObject') {</span>
|
|
6389
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
6238
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.name}`;</span>
|
|
6390
6239
|
}
|
|
6391
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
6240
|
+
<span class="cstat-no" title="statement not covered" > if (this.typeParams?.length) {</span>
|
|
6392
6241
|
<span class="cstat-no" title="statement not covered" > code += '<';</span>
|
|
6393
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6394
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6395
|
-
<span class="cstat-no" title="statement not covered" > if (typeParamIndex !==
|
|
6242
|
+
<span class="cstat-no" title="statement not covered" > this.typeParams.forEach(<span class="fstat-no" title="function not covered" >(t</span>ypeParam, typeParamIndex) => {</span>
|
|
6243
|
+
<span class="cstat-no" title="statement not covered" > code += typeParam.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6244
|
+
<span class="cstat-no" title="statement not covered" > if (typeParamIndex !== this.typeParams.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
6396
6245
|
});
|
|
6397
6246
|
<span class="cstat-no" title="statement not covered" > code += '>';</span>
|
|
6398
6247
|
}
|
|
6399
6248
|
// 有参数长度
|
|
6400
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
6249
|
+
<span class="cstat-no" title="statement not covered" > if (this.params.length) {</span>
|
|
6401
6250
|
<span class="cstat-no" title="statement not covered" > code += '(';</span>
|
|
6402
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6403
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6404
|
-
<span class="cstat-no" title="statement not covered" > if (index !==
|
|
6251
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
6252
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedTS(shiftState(state, code));</span>
|
|
6253
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
6405
6254
|
});
|
|
6406
6255
|
<span class="cstat-no" title="statement not covered" > code += ')';</span>
|
|
6407
6256
|
} else {
|
|
6408
6257
|
// 没有参数的
|
|
6409
6258
|
<span class="cstat-no" title="statement not covered" > code += '()';</span>
|
|
6410
6259
|
}
|
|
6260
|
+
|
|
6411
6261
|
// 需要类型推导的局部变量/返回值需要调整申明顺序
|
|
6412
6262
|
const advanceMap: Map<Return | Variable, Assignment | BatchAssignment> = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
6413
6263
|
const needGetSourceMapOqlList: Promise<any>[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
6414
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6264
|
+
<span class="cstat-no" title="statement not covered" > this.traverseChildren(<span class="fstat-no" title="function not covered" >(e</span>l) => {</span>
|
|
6415
6265
|
<span class="cstat-no" title="statement not covered" > if (el && (el instanceof BatchAssignment || (el instanceof Assignment && el.left?.name))) {</span>
|
|
6416
6266
|
<span class="cstat-no" title="statement not covered" > if (el instanceof Assignment) {</span>
|
|
6417
|
-
const advanceVar = <span class="cstat-no" title="statement not covered" >
|
|
6267
|
+
const advanceVar = <span class="cstat-no" title="statement not covered" >this.variables?.find(</span>
|
|
6418
6268
|
<span class="fstat-no" title="function not covered" > (v</span>ariable) => <span class="cstat-no" title="statement not covered" >!variable.typeAnnotation && el.left?.name === variable.name,</span>
|
|
6419
6269
|
);
|
|
6420
6270
|
<span class="cstat-no" title="statement not covered" > if (advanceVar && !advanceMap.get(advanceVar)) {</span>
|
|
6421
6271
|
<span class="cstat-no" title="statement not covered" > advanceMap.set(advanceVar, el);</span>
|
|
6422
6272
|
}
|
|
6423
|
-
const advanceRn = <span class="cstat-no" title="statement not covered" >
|
|
6273
|
+
const advanceRn = <span class="cstat-no" title="statement not covered" >this.returns?.find(<span class="fstat-no" title="function not covered" >(r</span>et) => <span class="cstat-no" title="statement not covered" >!ret.typeAnnotation && el.left?.name === ret.name)</span>;</span>
|
|
6424
6274
|
<span class="cstat-no" title="statement not covered" > if (advanceRn && !advanceMap.get(advanceRn)) {</span>
|
|
6425
6275
|
<span class="cstat-no" title="statement not covered" > advanceMap.set(advanceRn, el);</span>
|
|
6426
6276
|
}
|
|
6427
6277
|
} else <span class="cstat-no" title="statement not covered" >if (el instanceof BatchAssignment) {</span>
|
|
6428
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6278
|
+
<span class="cstat-no" title="statement not covered" > el.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex }) => {</span>
|
|
6429
6279
|
const leftCode =
|
|
6430
6280
|
<span class="cstat-no" title="statement not covered" > leftIndex.length === 1</span>
|
|
6431
|
-
?
|
|
6432
|
-
:
|
|
6433
|
-
const advanceVar = <span class="cstat-no" title="statement not covered" >
|
|
6281
|
+
? el.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
6282
|
+
: el.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
6283
|
+
const advanceVar = <span class="cstat-no" title="statement not covered" >this.variables?.find(</span>
|
|
6434
6284
|
<span class="fstat-no" title="function not covered" > (v</span>ariable) => <span class="cstat-no" title="statement not covered" >!variable.typeAnnotation && leftCode === variable.name,</span>
|
|
6435
6285
|
);
|
|
6436
6286
|
<span class="cstat-no" title="statement not covered" > if (advanceVar && !advanceMap.get(advanceVar)) {</span>
|
|
6437
6287
|
<span class="cstat-no" title="statement not covered" > advanceMap.set(advanceVar, el);</span>
|
|
6438
6288
|
}
|
|
6439
|
-
const advanceRn = <span class="cstat-no" title="statement not covered" >
|
|
6289
|
+
const advanceRn = <span class="cstat-no" title="statement not covered" >this.returns?.find(<span class="fstat-no" title="function not covered" >(r</span>et) => <span class="cstat-no" title="statement not covered" >!ret.typeAnnotation && leftCode === ret.name)</span>;</span>
|
|
6440
6290
|
<span class="cstat-no" title="statement not covered" > if (advanceRn && !advanceMap.get(advanceRn)) {</span>
|
|
6441
6291
|
<span class="cstat-no" title="statement not covered" > advanceMap.set(advanceRn, el);</span>
|
|
6442
6292
|
}
|
|
6443
6293
|
});
|
|
6444
6294
|
}
|
|
6445
6295
|
}
|
|
6296
|
+
// 如果有sql查询组件就需要把他们存起来
|
|
6297
|
+
<span class="cstat-no" title="statement not covered" > if (el instanceof OqlQueryComponent) {</span>
|
|
6298
|
+
<span class="cstat-no" title="statement not covered" > if (!el.codeSourceMap) {</span>
|
|
6299
|
+
<span class="cstat-no" title="statement not covered" > needGetSourceMapOqlList.push(el.requestEmbeddedTS());</span>
|
|
6300
|
+
}
|
|
6301
|
+
}
|
|
6446
6302
|
});
|
|
6303
|
+
|
|
6304
|
+
<span class="cstat-no" title="statement not covered" > if (needGetSourceMapOqlList.length) {</span>
|
|
6305
|
+
<span class="cstat-no" title="statement not covered" > Promise.all(needGetSourceMapOqlList).then(<span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
6306
|
+
// 触发一下更新重新生成代码
|
|
6307
|
+
(<span class="cstat-no" title="statement not covered" >this.app as any)?.naslServer?.embeddedTSEmitter.emit('change', {</span>
|
|
6308
|
+
value: [
|
|
6309
|
+
{
|
|
6310
|
+
originEvent: {
|
|
6311
|
+
action: 'update',
|
|
6312
|
+
target: this,
|
|
6313
|
+
},
|
|
6314
|
+
},
|
|
6315
|
+
],
|
|
6316
|
+
});
|
|
6317
|
+
});
|
|
6318
|
+
}
|
|
6447
6319
|
// 兼容 return 没有类型情况
|
|
6448
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
6320
|
+
<span class="cstat-no" title="statement not covered" > if (this.returns.length && this.returns[0].typeAnnotation) {</span>
|
|
6449
6321
|
<span class="cstat-no" title="statement not covered" > code += ': ';</span>
|
|
6450
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6322
|
+
<span class="cstat-no" title="statement not covered" > code += this.returns[0].typeAnnotation?.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6451
6323
|
}
|
|
6452
6324
|
<span class="cstat-no" title="statement not covered" > code += '{\n';</span>
|
|
6325
|
+
|
|
6453
6326
|
// 用于虚拟节点的查找引用
|
|
6454
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6455
|
-
|
|
6327
|
+
<span class="cstat-no" title="statement not covered" > this.virtualParams &&</span>
|
|
6328
|
+
Array.isArray(this.virtualParams) &&
|
|
6329
|
+
this.virtualParams.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram) => {
|
|
6456
6330
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
6457
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6331
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedNameTS(shiftState(state, code, { inline: true }));</span>
|
|
6458
6332
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
6459
|
-
}
|
|
6460
|
-
|
|
6461
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6333
|
+
});
|
|
6334
|
+
|
|
6335
|
+
<span class="cstat-no" title="statement not covered" > this.variables.forEach(<span class="fstat-no" title="function not covered" >(v</span>ariable) => {</span>
|
|
6462
6336
|
<span class="cstat-no" title="statement not covered" > if (!advanceMap.get(variable)) {</span>
|
|
6463
6337
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
6464
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6338
|
+
<span class="cstat-no" title="statement not covered" > code += variable.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6465
6339
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6466
6340
|
}
|
|
6467
6341
|
});
|
|
6468
|
-
|
|
6342
|
+
|
|
6343
|
+
<span class="cstat-no" title="statement not covered" > this.returns.forEach(<span class="fstat-no" title="function not covered" >(r</span>et) => {</span>
|
|
6469
6344
|
<span class="cstat-no" title="statement not covered" > if (!advanceMap.get(ret)) {</span>
|
|
6470
6345
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
6471
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6346
|
+
<span class="cstat-no" title="statement not covered" > code += ret.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6472
6347
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6473
6348
|
}
|
|
6474
6349
|
});
|
|
6475
|
-
|
|
6350
|
+
|
|
6351
|
+
<span class="cstat-no" title="statement not covered" > advanceMap.forEach(<span class="fstat-no" title="function not covered" >(a</span>ssignment, node) => {</span>
|
|
6476
6352
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}// @ts-ignore\n`;</span>
|
|
6477
6353
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
6478
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6354
|
+
<span class="cstat-no" title="statement not covered" > code += node.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6479
6355
|
<span class="cstat-no" title="statement not covered" > if (assignment instanceof BatchAssignment) {</span>
|
|
6480
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6356
|
+
<span class="cstat-no" title="statement not covered" > assignment.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }) => {</span>
|
|
6481
6357
|
const leftCode =
|
|
6482
6358
|
<span class="cstat-no" title="statement not covered" > leftIndex.length === 1</span>
|
|
6483
|
-
?
|
|
6484
|
-
:
|
|
6359
|
+
? assignment.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
6360
|
+
: assignment.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
6485
6361
|
<span class="cstat-no" title="statement not covered" > if (leftCode === node.name) {</span>
|
|
6486
6362
|
const rightNode: any =
|
|
6487
6363
|
<span class="cstat-no" title="statement not covered" > rightIndex.length === 1</span>
|
|
@@ -6493,11 +6369,11 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6493
6369
|
!(rightNode instanceof CallQueryComponent && rightNode.ideVersion !== '2.11')
|
|
6494
6370
|
) {
|
|
6495
6371
|
<span class="cstat-no" title="statement not covered" > code += ': ';</span>
|
|
6496
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6372
|
+
<span class="cstat-no" title="statement not covered" > code += rightNode.typeAnnotation?.toEmbeddedTS(shiftState(state, code, { inline: true })) || 'null';</span>
|
|
6497
6373
|
} else {
|
|
6498
6374
|
<span class="cstat-no" title="statement not covered" > code += ' = ';</span>
|
|
6499
|
-
const rightCode = <span class="cstat-no" title="statement not covered" >
|
|
6500
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6375
|
+
const rightCode = <span class="cstat-no" title="statement not covered" >rightNode?.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
6376
|
+
<span class="cstat-no" title="statement not covered" > code += this.getRightCode(rightCode, assignment, rightNode);</span>
|
|
6501
6377
|
}
|
|
6502
6378
|
}
|
|
6503
6379
|
});
|
|
@@ -6507,14 +6383,14 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6507
6383
|
) {
|
|
6508
6384
|
const rightNode: any = <span class="cstat-no" title="statement not covered" >assignment.right;</span>
|
|
6509
6385
|
<span class="cstat-no" title="statement not covered" > code += ' = ';</span>
|
|
6510
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6386
|
+
<span class="cstat-no" title="statement not covered" > code += rightNode.getInitCode(shiftState(state, code, { inline: true }));</span>
|
|
6511
6387
|
} else <span class="cstat-no" title="statement not covered" >if (</span>
|
|
6512
6388
|
assignment.right?.concept === 'NewComposite' &&
|
|
6513
6389
|
(assignment.right as any)?.typeAnnotation?.typeKind === 'anonymousStructure'
|
|
6514
6390
|
) {
|
|
6515
6391
|
const rightNode: any = <span class="cstat-no" title="statement not covered" >assignment.right;</span>
|
|
6516
6392
|
<span class="cstat-no" title="statement not covered" > code += ' = ';</span>
|
|
6517
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6393
|
+
<span class="cstat-no" title="statement not covered" > code += rightNode.getInitCode(shiftState(state, code, { inline: true }));</span>
|
|
6518
6394
|
} else {
|
|
6519
6395
|
const rightNode: any = <span class="cstat-no" title="statement not covered" >assignment.right;</span>
|
|
6520
6396
|
// 当右边有明确类型时,直接使用其类型。旧版本数据查询不能直接使用其 typeAnnotation
|
|
@@ -6523,7 +6399,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6523
6399
|
!(rightNode instanceof CallQueryComponent && rightNode.ideVersion !== '2.11')
|
|
6524
6400
|
) {
|
|
6525
6401
|
<span class="cstat-no" title="statement not covered" > code += ': ';</span>
|
|
6526
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6402
|
+
<span class="cstat-no" title="statement not covered" > code += rightNode.typeAnnotation?.toEmbeddedTS(shiftState(state, code, { inline: true })) || 'null';</span>
|
|
6527
6403
|
} else {
|
|
6528
6404
|
<span class="cstat-no" title="statement not covered" > code += ' = ';</span>
|
|
6529
6405
|
let rightCode = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
@@ -6538,31 +6414,34 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6538
6414
|
}
|
|
6539
6415
|
<span class="cstat-no" title="statement not covered" > rightCode +=</span>
|
|
6540
6416
|
rightNode && rightNode.toEmbeddedTS
|
|
6541
|
-
?
|
|
6417
|
+
? rightNode.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
6542
6418
|
: '__RIGHT__';
|
|
6543
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6419
|
+
<span class="cstat-no" title="statement not covered" > code += this.getRightCode(rightCode, assignment, rightNode);</span>
|
|
6544
6420
|
}
|
|
6545
6421
|
}
|
|
6546
6422
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6547
6423
|
});
|
|
6548
|
-
|
|
6549
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6424
|
+
|
|
6425
|
+
<span class="cstat-no" title="statement not covered" > if (!this.body.length && this.returns.length) {</span>
|
|
6426
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}return ${this.returns[0].name};\n`;</span>
|
|
6550
6427
|
} else {
|
|
6551
6428
|
// 如果长度小于2 并且不是虚拟节点就 加 报错,
|
|
6552
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
6429
|
+
<span class="cstat-no" title="statement not covered" > if (this.body.length <= 2 && !(this.parentNode instanceof Namespace)) {</span>
|
|
6553
6430
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
6554
6431
|
<span class="cstat-no" title="statement not covered" > code += 'const __LogicEmpty: any = null;';</span>
|
|
6555
6432
|
}
|
|
6556
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6557
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6433
|
+
<span class="cstat-no" title="statement not covered" > this.body.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
6434
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS && item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
6558
6435
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6559
6436
|
});
|
|
6560
6437
|
}
|
|
6438
|
+
|
|
6561
6439
|
// 在body渲染完成之后把其余的节点放到下面
|
|
6562
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6563
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6440
|
+
<span class="cstat-no" title="statement not covered" > this.playground.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
6441
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 1 }));</span>
|
|
6564
6442
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
6565
6443
|
});
|
|
6444
|
+
|
|
6566
6445
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0)}}`;</span>
|
|
6567
6446
|
<span class="cstat-no" title="statement not covered" > if (prefix === 'inObject') {</span>
|
|
6568
6447
|
<span class="cstat-no" title="statement not covered" > code += `,`;</span>
|
|
@@ -6571,7 +6450,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6571
6450
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
6572
6451
|
}
|
|
6573
6452
|
|
|
6574
|
-
<span class="fstat-no" title="function not covered" >
|
|
6453
|
+
<span class="fstat-no" title="function not covered" > getRightCode(</span>code: string, assignment: Assignment | BatchAssignment, rightNode: any): string {
|
|
6575
6454
|
<span class="cstat-no" title="statement not covered" > code = code.replaceAll('\n', ' ');</span>
|
|
6576
6455
|
<span class="cstat-no" title="statement not covered" > if (assignment instanceof Assignment && !assignment.right) <span class="cstat-no" title="statement not covered" >return code;</span></span>
|
|
6577
6456
|
|
|
@@ -6591,12 +6470,12 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6591
6470
|
// ForEachStatement 内部变量需要替换处理,如 item、index
|
|
6592
6471
|
const forEachStatement = <span class="cstat-no" title="statement not covered" >assignment.getAncestor('ForEachStatement') as ForEachStatement;</span>
|
|
6593
6472
|
<span class="cstat-no" title="statement not covered" > if (forEachStatement) {</span>
|
|
6594
|
-
<span class="cstat-no" title="statement not covered" > code =
|
|
6473
|
+
<span class="cstat-no" title="statement not covered" > code = this.handleForEachCode(code, forEachStatement);</span>
|
|
6595
6474
|
}
|
|
6596
6475
|
// Match 需要针对分支缩小类型范围
|
|
6597
6476
|
const matchCase = <span class="cstat-no" title="statement not covered" >assignment.getAncestor('MatchCase') as MatchCase;</span>
|
|
6598
6477
|
<span class="cstat-no" title="statement not covered" > if (matchCase) {</span>
|
|
6599
|
-
<span class="cstat-no" title="statement not covered" > code =
|
|
6478
|
+
<span class="cstat-no" title="statement not covered" > code = this.handleMatchCaseCode(code, matchCase);</span>
|
|
6600
6479
|
}
|
|
6601
6480
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
6602
6481
|
}
|
|
@@ -6619,39 +6498,37 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6619
6498
|
});
|
|
6620
6499
|
}
|
|
6621
6500
|
|
|
6622
|
-
<span class="fstat-no" title="function not covered" >
|
|
6501
|
+
<span class="fstat-no" title="function not covered" > handleForEachCode(</span>code: string, forEachStatement: ForEachStatement): string {
|
|
6623
6502
|
const { item, index, each } = <span class="cstat-no" title="statement not covered" >forEachStatement;</span>
|
|
6624
6503
|
<span class="cstat-no" title="statement not covered" > if (code.includes(item.name)) {</span>
|
|
6625
|
-
const eachTSCode = <span class="cstat-no" title="statement not covered" >each ?
|
|
6504
|
+
const eachTSCode = <span class="cstat-no" title="statement not covered" >each ? each.toEmbeddedTS() : '__IDENTIFIER__'</span>
|
|
6626
6505
|
<span class="cstat-no" title="statement not covered" > code = this.handleReplaceCode(</span>
|
|
6627
6506
|
code,
|
|
6628
6507
|
item.name,
|
|
6629
6508
|
eachTSCode === '__IDENTIFIER__' ? eachTSCode : `${eachTSCode}.__get(0)`,
|
|
6630
6509
|
);
|
|
6631
6510
|
}
|
|
6632
|
-
<span class="cstat-no" title="statement not covered" > if (code.includes(index.name))
|
|
6633
|
-
<span class="cstat-no" title="statement not covered" > code = this.handleReplaceCode(code, index.name, 'new nasl.core.Integer(0)');</span>
|
|
6634
|
-
}
|
|
6511
|
+
<span class="cstat-no" title="statement not covered" > if (code.includes(index.name)) <span class="cstat-no" title="statement not covered" >code = this.handleReplaceCode(code, index.name, 'new nasl.core.Integer(0)');</span></span>
|
|
6635
6512
|
|
|
6636
6513
|
const parentForEachStatement = <span class="cstat-no" title="statement not covered" >forEachStatement.getAncestor('ForEachStatement') as ForEachStatement;</span>
|
|
6637
6514
|
<span class="cstat-no" title="statement not covered" > if (parentForEachStatement) {</span>
|
|
6638
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6515
|
+
<span class="cstat-no" title="statement not covered" > this.handleForEachCode(code, parentForEachStatement);</span>
|
|
6639
6516
|
}
|
|
6640
6517
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
6641
6518
|
}
|
|
6642
6519
|
|
|
6643
|
-
<span class="fstat-no" title="function not covered" >
|
|
6520
|
+
<span class="fstat-no" title="function not covered" > handleMatchCaseCode(</span>code: string, matchCase: MatchCase): string {
|
|
6644
6521
|
const match = <span class="cstat-no" title="statement not covered" >matchCase.getAncestor('Match') as Match;</span>
|
|
6645
|
-
const expressionTsCode = <span class="cstat-no" title="statement not covered" >
|
|
6522
|
+
const expressionTsCode = <span class="cstat-no" title="statement not covered" >match.expression.toEmbeddedTS();</span>
|
|
6646
6523
|
<span class="cstat-no" title="statement not covered" > if (code.includes(expressionTsCode)) {</span>
|
|
6647
6524
|
let typeCode = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
6648
|
-
<span class="cstat-no" title="statement not covered" >
|
|
6525
|
+
<span class="cstat-no" title="statement not covered" > matchCase.patterns.forEach(<span class="fstat-no" title="function not covered" >(p</span>attern, index) => {</span>
|
|
6649
6526
|
<span class="cstat-no" title="statement not covered" > if (pattern instanceof TypeAnnotation) {</span>
|
|
6650
6527
|
<span class="cstat-no" title="statement not covered" > if (index === 0) {</span>
|
|
6651
|
-
<span class="cstat-no" title="statement not covered" > typeCode +=
|
|
6528
|
+
<span class="cstat-no" title="statement not covered" > typeCode += pattern.toEmbeddedTS();</span>
|
|
6652
6529
|
} else {
|
|
6653
6530
|
<span class="cstat-no" title="statement not covered" > typeCode += '|';</span>
|
|
6654
|
-
<span class="cstat-no" title="statement not covered" > typeCode +=
|
|
6531
|
+
<span class="cstat-no" title="statement not covered" > typeCode += pattern.toEmbeddedTS();</span>
|
|
6655
6532
|
}
|
|
6656
6533
|
}
|
|
6657
6534
|
});
|
|
@@ -6661,7 +6538,7 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6661
6538
|
}
|
|
6662
6539
|
const parentMatchCase = <span class="cstat-no" title="statement not covered" >match.getAncestor('MatchCase') as MatchCase;</span>
|
|
6663
6540
|
<span class="cstat-no" title="statement not covered" > if (parentMatchCase) {</span>
|
|
6664
|
-
<span class="cstat-no" title="statement not covered" > code =
|
|
6541
|
+
<span class="cstat-no" title="statement not covered" > code = this.handleMatchCaseCode(code, parentMatchCase);</span>
|
|
6665
6542
|
}
|
|
6666
6543
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
6667
6544
|
}
|
|
@@ -6741,12 +6618,12 @@ export class OverriddenLogic extends BaseNode {
|
|
|
6741
6618
|
<span class="cstat-no" title="statement not covered" > return `/embedded/${this.app.name}${_path}/overriddenLogics/${name}.ts`;</span>
|
|
6742
6619
|
}
|
|
6743
6620
|
|
|
6744
|
-
<span class="fstat-no" title="function not covered" >
|
|
6621
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSFile(</span>) {
|
|
6745
6622
|
let code = <span class="cstat-no" title="statement not covered" >`namespace ${this.getTsNamespace()} {\n`;</span>
|
|
6746
6623
|
|
|
6747
6624
|
const state = <span class="cstat-no" title="statement not covered" >createCompilerState(code, { tabSize: 1 });</span>
|
|
6748
6625
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
6749
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
6626
|
+
<span class="cstat-no" title="statement not covered" > code += this.toEmbeddedTS(state);</span>
|
|
6750
6627
|
} catch (err) {
|
|
6751
6628
|
<span class="cstat-no" title="statement not covered" > console.log(err, '有问题翻译失败');</span>
|
|
6752
6629
|
<span class="cstat-no" title="statement not covered" > code += '';</span>
|
|
@@ -6925,7 +6802,7 @@ export default OverriddenLogic;
|
|
|
6925
6802
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
6926
6803
|
Code coverage generated by
|
|
6927
6804
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
6928
|
-
at 2023-
|
|
6805
|
+
at 2023-10-18T11:36:07.885Z
|
|
6929
6806
|
</div>
|
|
6930
6807
|
<script src="../../prettify.js"></script>
|
|
6931
6808
|
<script>
|