@lcap/nasl 3.3.3-beta.8 → 3.3.5-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/{78804420-ead6-486f-b682-ab54ccd95dc9.json → b920244d-8d01-4e76-be5a-95132217c5a1.json} +1 -1
- package/.nyc_output/processinfo/b920244d-8d01-4e76-be5a-95132217c5a1.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +113 -128
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +26 -26
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +63 -390
- 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 +1 -1
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/index.html +1 -1
- 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 +370 -592
- package/coverage/src/common/Command.ts.html +1 -1
- package/coverage/src/common/EventEmitter.ts.html +34 -31
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +23 -38
- package/coverage/src/common/index.ts.html +4 -7
- package/coverage/src/concepts/Abort__.ts.html +9 -36
- package/coverage/src/concepts/Anchor__.ts.html +22 -58
- package/coverage/src/concepts/AnonymousFunction__.ts.html +77 -107
- package/coverage/src/concepts/App__.ts.html +253 -907
- package/coverage/src/concepts/Argument__.ts.html +54 -195
- package/coverage/src/concepts/Assignee__.ts.html +70 -79
- package/coverage/src/concepts/AssignmentLine__.ts.html +21 -33
- package/coverage/src/concepts/Assignment__.ts.html +49 -130
- package/coverage/src/concepts/Attribute__.ts.html +179 -20
- package/coverage/src/concepts/AuthInterface__.ts.html +1 -1
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +161 -98
- package/coverage/src/concepts/AuthLogic__.ts.html +1 -1
- package/coverage/src/concepts/BackendVariable__.ts.html +226 -139
- package/coverage/src/concepts/Backend__.ts.html +35 -86
- package/coverage/src/concepts/BatchAssignment__.ts.html +65 -95
- package/coverage/src/concepts/BinaryExpression__.ts.html +89 -218
- package/coverage/src/concepts/BindAttribute__.ts.html +125 -440
- package/coverage/src/concepts/BindDirective__.ts.html +40 -64
- package/coverage/src/concepts/BindEvent__.ts.html +71 -86
- package/coverage/src/concepts/BindStyle__.ts.html +34 -58
- package/coverage/src/concepts/BooleanLiteral__.ts.html +8 -32
- package/coverage/src/concepts/CallAuthInterface__.ts.html +57 -87
- package/coverage/src/concepts/CallConnector__.ts.html +35 -59
- package/coverage/src/concepts/CallFunction__.ts.html +145 -247
- package/coverage/src/concepts/CallInterface__.ts.html +77 -53
- package/coverage/src/concepts/CallLogic__.ts.html +181 -244
- package/coverage/src/concepts/CallQueryComponent__.ts.html +181 -103
- package/coverage/src/concepts/Comment__.ts.html +10 -40
- package/coverage/src/concepts/CompletionProperty__.ts.html +17 -23
- package/coverage/src/concepts/ConfigGroup__.ts.html +27 -27
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +1 -1
- package/coverage/src/concepts/ConfigProperty__.ts.html +36 -66
- package/coverage/src/concepts/Configuration__.ts.html +27 -27
- package/coverage/src/concepts/Connection__.ts.html +29 -77
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +1 -1
- package/coverage/src/concepts/Connector__.ts.html +92 -80
- package/coverage/src/concepts/Constant__.ts.html +222 -72
- package/coverage/src/concepts/DataSource__.ts.html +32 -59
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +1 -1
- package/coverage/src/{utils/time-slicing/controller.ts.html → concepts/DefaultValue__.ts.html} +294 -459
- package/coverage/src/concepts/Destination__.ts.html +67 -79
- package/coverage/src/concepts/End__.ts.html +21 -48
- package/coverage/src/concepts/EntityIndex__.ts.html +17 -35
- package/coverage/src/concepts/EntityProperty__.ts.html +208 -118
- package/coverage/src/concepts/Entity__.ts.html +123 -81
- package/coverage/src/concepts/EnumItem__.ts.html +10 -37
- package/coverage/src/concepts/Enum__.ts.html +32 -65
- package/coverage/src/concepts/Event__.ts.html +21 -21
- package/coverage/src/concepts/ExternalDestination__.ts.html +30 -57
- package/coverage/src/concepts/ForEachStatement__.ts.html +89 -98
- package/coverage/src/concepts/FrontendLibrary__.ts.html +35 -35
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +93 -132
- package/coverage/src/concepts/Function__.ts.html +98 -131
- package/coverage/src/concepts/Identifier__.ts.html +67 -103
- package/coverage/src/concepts/IfStatement__.ts.html +67 -88
- package/coverage/src/concepts/Integration__.ts.html +31 -37
- package/coverage/src/concepts/InterfaceParam__.ts.html +179 -65
- package/coverage/src/concepts/Interface__.ts.html +74 -107
- package/coverage/src/concepts/JSBlock__.ts.html +11 -212
- package/coverage/src/concepts/JavaLogic__.ts.html +9 -39
- package/coverage/src/concepts/LogicItem__.ts.html +17 -44
- package/coverage/src/concepts/Logic__.ts.html +503 -263
- package/coverage/src/concepts/MatchCase__.ts.html +87 -126
- package/coverage/src/concepts/Match__.ts.html +56 -74
- package/coverage/src/concepts/MemberExpression__.ts.html +59 -95
- package/coverage/src/concepts/MicroApp__.ts.html +1 -1
- package/coverage/src/concepts/Module__.ts.html +136 -625
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +21 -21
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +21 -21
- package/coverage/src/concepts/Namespace__.ts.html +178 -166
- package/coverage/src/concepts/NewComposite__.ts.html +178 -295
- package/coverage/src/concepts/NewList__.ts.html +75 -129
- package/coverage/src/concepts/NewMap__.ts.html +139 -100
- package/coverage/src/concepts/New__.ts.html +9 -39
- package/coverage/src/concepts/NullLiteral__.ts.html +5 -29
- package/coverage/src/concepts/NumericLiteral__.ts.html +29 -65
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +39 -69
- package/coverage/src/concepts/OverriddenLogic__.ts.html +264 -234
- package/coverage/src/concepts/Param__.ts.html +154 -196
- package/coverage/src/concepts/Point__.ts.html +1 -1
- package/coverage/src/concepts/ProcessComponent__.ts.html +36 -36
- package/coverage/src/concepts/ProcessElement__.ts.html +285 -183
- package/coverage/src/concepts/ProcessOutcome__.ts.html +13 -82
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +20 -80
- package/coverage/src/concepts/Process__.ts.html +284 -122
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +20 -50
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +11 -38
- package/coverage/src/concepts/QueryFromExpression__.ts.html +29 -62
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +23 -53
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +41 -62
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +29 -59
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +29 -62
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +22 -22
- package/coverage/src/concepts/Rect__.ts.html +1 -1
- package/coverage/src/concepts/Return__.ts.html +187 -148
- package/coverage/src/concepts/Role__.ts.html +15 -42
- package/coverage/src/concepts/SelectMembers__.ts.html +31 -55
- package/coverage/src/concepts/Slot__.ts.html +17 -23
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +28 -67
- package/coverage/src/concepts/Start__.ts.html +5 -29
- package/coverage/src/concepts/StringInterpolation__.ts.html +31 -79
- package/coverage/src/concepts/StringLiteral__.ts.html +26 -53
- package/coverage/src/concepts/StructureProperty__.ts.html +175 -64
- package/coverage/src/concepts/Structure__.ts.html +73 -67
- package/coverage/src/concepts/SwitchCase__.ts.html +45 -66
- package/coverage/src/concepts/SwitchStatement__.ts.html +28 -58
- package/coverage/src/concepts/Theme__.ts.html +7 -7
- package/coverage/src/concepts/Transactional__.ts.html +1 -1
- package/coverage/src/concepts/TriggerEvent__.ts.html +21 -21
- package/coverage/src/concepts/TriggerLauncher__.ts.html +13 -43
- package/coverage/src/concepts/TypeAnnotation__.ts.html +106 -223
- package/coverage/src/concepts/TypeParam__.ts.html +11 -38
- package/coverage/src/concepts/UnaryExpression__.ts.html +28 -73
- package/coverage/src/concepts/Unparsed__.ts.html +6 -27
- package/coverage/src/concepts/UseComponent__.ts.html +1 -1
- package/coverage/src/concepts/ValidationRule__.ts.html +57 -60
- package/coverage/src/concepts/Variable__.ts.html +238 -142
- package/coverage/src/concepts/ViewBlock__.ts.html +1 -1
- package/coverage/src/concepts/ViewComponent__.ts.html +80 -8
- package/coverage/src/concepts/ViewElement__.ts.html +238 -463
- package/coverage/src/concepts/View__.ts.html +296 -251
- package/coverage/src/concepts/WhileStatement__.ts.html +54 -75
- package/coverage/src/concepts/basics/stdlib/index.html +8 -8
- 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 +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +130 -19
- 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 +858 -858
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +2 -2
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +16 -16
- package/coverage/src/decorators/index.ts.html +40 -31
- package/coverage/src/decorators/promise.ts.html +10 -10
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +4 -4
- package/coverage/src/generator/genBundleFiles.ts.html +23 -17
- package/coverage/src/generator/genHash.ts.html +3 -3
- package/coverage/src/generator/genMetaData.ts.html +31 -76
- package/coverage/src/generator/genReleaseBody.ts.html +4 -4
- package/coverage/src/generator/icestark.ts.html +4 -10
- package/coverage/src/generator/index.html +20 -20
- 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 +1 -1
- package/coverage/src/index.ts.html +7 -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 +1 -1
- 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 +1 -1
- package/coverage/src/sentry/index.html +14 -14
- package/coverage/src/sentry/index.ts.html +32 -38
- package/coverage/src/server/createUiTs.ts.html +1 -1
- package/coverage/src/server/entity2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +4 -7
- package/coverage/src/server/formatTsUtils.ts.html +2 -2
- 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 +4 -4
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +2 -2
- package/coverage/src/server/getLogics.ts.html +1 -1
- package/coverage/src/server/getMemberIdentifier.ts.html +128 -131
- package/coverage/src/server/getProcessComponents.ts.html +3 -3
- package/coverage/src/server/getProcesses.ts.html +1 -1
- package/coverage/src/server/getValidates.ts.html +4 -4
- package/coverage/src/server/index.html +26 -26
- package/coverage/src/server/index.ts.html +1 -1
- package/coverage/src/server/naslServer.ts.html +880 -1177
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +52 -52
- package/coverage/src/server/translator.ts.html +14 -50
- package/coverage/src/service/creator/add.configs.js.html +2 -2
- package/coverage/src/service/creator/errHandles.js.html +1 -1
- package/coverage/src/service/creator/index.html +1 -1
- 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 +27 -27
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +137 -110
- 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 +56 -47
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +31 -49
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +89 -80
- package/coverage/src/templator/genEditTableBlock.ts.html +9 -12
- 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 +1 -1
- package/coverage/src/templator/genUpdateBlock.ts.html +36 -48
- package/coverage/src/templator/index.html +39 -39
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +11 -77
- 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 +41 -26
- package/coverage/src/utils/index.ts.html +9 -63
- package/coverage/src/utils/logger.ts.html +13 -13
- 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/common/Command.js +1 -1
- package/out/common/Command.js.map +1 -1
- package/out/concepts/Match__.js +1 -1
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/View__.js +2 -2
- package/out/concepts/View__.js.map +1 -1
- package/package.json +1 -1
- package/src/common/Command.ts +1 -1
- package/src/concepts/Match__.ts +1 -1
- package/src/concepts/View__.ts +5 -5
- package/.nyc_output/processinfo/78804420-ead6-486f-b682-ab54ccd95dc9.json +0 -1
- package/coverage/cobertura-coverage.xml +0 -71878
- package/coverage/src/automate/engine/index.js.html +0 -1471
- package/coverage/src/automate/engine/operators.js.html +0 -862
- package/coverage/src/automate/engine/uniqueName.js.html +0 -412
- package/coverage/src/automate/engine/viewCache.js.html +0 -214
- package/coverage/src/automate/template/index.html +0 -116
- package/coverage/src/automate/template/myProcess.js.html +0 -34645
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/DataElement__.ts.html +0 -118
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2053
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- 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 -247
- 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
- package/coverage/src/utils/time.ts.html +0 -118
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">6.
|
|
26
|
+
<span class="strong">6.23% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>59/946</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/559</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">1.
|
|
40
|
+
<span class="strong">1.42% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>3/
|
|
42
|
+
<span class='fraction'>3/210</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">5.
|
|
47
|
+
<span class="strong">5.67% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>50/881</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -3026,17 +3026,34 @@
|
|
|
3026
3026
|
<a name='L2961'></a><a href='#L2961'>2961</a>
|
|
3027
3027
|
<a name='L2962'></a><a href='#L2962'>2962</a>
|
|
3028
3028
|
<a name='L2963'></a><a href='#L2963'>2963</a>
|
|
3029
|
-
<a name='L2964'></a><a href='#L2964'>2964</a
|
|
3030
|
-
<
|
|
3031
|
-
<
|
|
3032
|
-
<
|
|
3033
|
-
<
|
|
3034
|
-
<
|
|
3035
|
-
<
|
|
3029
|
+
<a name='L2964'></a><a href='#L2964'>2964</a>
|
|
3030
|
+
<a name='L2965'></a><a href='#L2965'>2965</a>
|
|
3031
|
+
<a name='L2966'></a><a href='#L2966'>2966</a>
|
|
3032
|
+
<a name='L2967'></a><a href='#L2967'>2967</a>
|
|
3033
|
+
<a name='L2968'></a><a href='#L2968'>2968</a>
|
|
3034
|
+
<a name='L2969'></a><a href='#L2969'>2969</a>
|
|
3035
|
+
<a name='L2970'></a><a href='#L2970'>2970</a>
|
|
3036
|
+
<a name='L2971'></a><a href='#L2971'>2971</a>
|
|
3037
|
+
<a name='L2972'></a><a href='#L2972'>2972</a>
|
|
3038
|
+
<a name='L2973'></a><a href='#L2973'>2973</a>
|
|
3039
|
+
<a name='L2974'></a><a href='#L2974'>2974</a>
|
|
3040
|
+
<a name='L2975'></a><a href='#L2975'>2975</a>
|
|
3041
|
+
<a name='L2976'></a><a href='#L2976'>2976</a>
|
|
3042
|
+
<a name='L2977'></a><a href='#L2977'>2977</a>
|
|
3043
|
+
<a name='L2978'></a><a href='#L2978'>2978</a>
|
|
3044
|
+
<a name='L2979'></a><a href='#L2979'>2979</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
3045
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3036
3046
|
<span class="cline-any cline-yes">1x</span>
|
|
3037
3047
|
<span class="cline-any cline-neutral"> </span>
|
|
3048
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3038
3049
|
<span class="cline-any cline-neutral"> </span>
|
|
3050
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3051
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3039
3052
|
<span class="cline-any cline-neutral"> </span>
|
|
3053
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3054
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3055
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3056
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3040
3057
|
<span class="cline-any cline-neutral"> </span>
|
|
3041
3058
|
<span class="cline-any cline-neutral"> </span>
|
|
3042
3059
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3049,42 +3066,35 @@
|
|
|
3049
3066
|
<span class="cline-any cline-neutral"> </span>
|
|
3050
3067
|
<span class="cline-any cline-yes">1x</span>
|
|
3051
3068
|
<span class="cline-any cline-yes">1x</span>
|
|
3052
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3053
3069
|
<span class="cline-any cline-yes">1x</span>
|
|
3054
3070
|
<span class="cline-any cline-yes">1x</span>
|
|
3055
3071
|
<span class="cline-any cline-yes">1x</span>
|
|
3056
|
-
<span class="cline-any cline-neutral"> </span>
|
|
3057
3072
|
<span class="cline-any cline-yes">1x</span>
|
|
3058
3073
|
<span class="cline-any cline-neutral"> </span>
|
|
3059
3074
|
<span class="cline-any cline-neutral"> </span>
|
|
3060
3075
|
<span class="cline-any cline-neutral"> </span>
|
|
3061
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3062
3076
|
<span class="cline-any cline-neutral"> </span>
|
|
3063
3077
|
<span class="cline-any cline-neutral"> </span>
|
|
3064
3078
|
<span class="cline-any cline-neutral"> </span>
|
|
3065
3079
|
<span class="cline-any cline-neutral"> </span>
|
|
3066
3080
|
<span class="cline-any cline-neutral"> </span>
|
|
3067
3081
|
<span class="cline-any cline-neutral"> </span>
|
|
3068
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3069
3082
|
<span class="cline-any cline-neutral"> </span>
|
|
3070
3083
|
<span class="cline-any cline-yes">1x</span>
|
|
3071
3084
|
<span class="cline-any cline-neutral"> </span>
|
|
3072
3085
|
<span class="cline-any cline-yes">1x</span>
|
|
3073
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3074
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3075
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3076
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3077
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3078
3086
|
<span class="cline-any cline-neutral"> </span>
|
|
3079
3087
|
<span class="cline-any cline-neutral"> </span>
|
|
3080
3088
|
<span class="cline-any cline-neutral"> </span>
|
|
3081
3089
|
<span class="cline-any cline-neutral"> </span>
|
|
3082
3090
|
<span class="cline-any cline-neutral"> </span>
|
|
3083
3091
|
<span class="cline-any cline-neutral"> </span>
|
|
3092
|
+
<span class="cline-any cline-yes">1x</span>
|
|
3093
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3094
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3084
3095
|
<span class="cline-any cline-neutral"> </span>
|
|
3085
3096
|
<span class="cline-any cline-neutral"> </span>
|
|
3086
3097
|
<span class="cline-any cline-neutral"> </span>
|
|
3087
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3088
3098
|
<span class="cline-any cline-neutral"> </span>
|
|
3089
3099
|
<span class="cline-any cline-yes">1x</span>
|
|
3090
3100
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3163,56 +3173,69 @@
|
|
|
3163
3173
|
<span class="cline-any cline-neutral"> </span>
|
|
3164
3174
|
<span class="cline-any cline-neutral"> </span>
|
|
3165
3175
|
<span class="cline-any cline-neutral"> </span>
|
|
3166
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3167
3176
|
<span class="cline-any cline-neutral"> </span>
|
|
3168
3177
|
<span class="cline-any cline-neutral"> </span>
|
|
3169
3178
|
<span class="cline-any cline-neutral"> </span>
|
|
3179
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3180
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3181
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3170
3182
|
<span class="cline-any cline-neutral"> </span>
|
|
3171
3183
|
<span class="cline-any cline-neutral"> </span>
|
|
3172
3184
|
<span class="cline-any cline-neutral"> </span>
|
|
3173
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3174
3185
|
<span class="cline-any cline-neutral"> </span>
|
|
3175
3186
|
<span class="cline-any cline-neutral"> </span>
|
|
3176
3187
|
<span class="cline-any cline-neutral"> </span>
|
|
3177
3188
|
<span class="cline-any cline-neutral"> </span>
|
|
3189
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3178
3190
|
<span class="cline-any cline-neutral"> </span>
|
|
3179
|
-
<span class="cline-any cline-yes">58x</span>
|
|
3180
3191
|
<span class="cline-any cline-neutral"> </span>
|
|
3181
3192
|
<span class="cline-any cline-neutral"> </span>
|
|
3182
3193
|
<span class="cline-any cline-neutral"> </span>
|
|
3183
3194
|
<span class="cline-any cline-neutral"> </span>
|
|
3184
3195
|
<span class="cline-any cline-neutral"> </span>
|
|
3185
|
-
<span class="cline-any cline-yes">58x</span>
|
|
3186
3196
|
<span class="cline-any cline-neutral"> </span>
|
|
3187
3197
|
<span class="cline-any cline-neutral"> </span>
|
|
3188
3198
|
<span class="cline-any cline-neutral"> </span>
|
|
3199
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3189
3200
|
<span class="cline-any cline-neutral"> </span>
|
|
3190
3201
|
<span class="cline-any cline-neutral"> </span>
|
|
3191
|
-
<span class="cline-any cline-yes">58x</span>
|
|
3192
3202
|
<span class="cline-any cline-neutral"> </span>
|
|
3193
3203
|
<span class="cline-any cline-neutral"> </span>
|
|
3194
3204
|
<span class="cline-any cline-neutral"> </span>
|
|
3195
3205
|
<span class="cline-any cline-neutral"> </span>
|
|
3196
3206
|
<span class="cline-any cline-neutral"> </span>
|
|
3197
|
-
<span class="cline-any cline-yes">58x</span>
|
|
3198
3207
|
<span class="cline-any cline-neutral"> </span>
|
|
3199
3208
|
<span class="cline-any cline-neutral"> </span>
|
|
3209
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3200
3210
|
<span class="cline-any cline-neutral"> </span>
|
|
3201
3211
|
<span class="cline-any cline-neutral"> </span>
|
|
3202
3212
|
<span class="cline-any cline-neutral"> </span>
|
|
3203
|
-
<span class="cline-any cline-yes">58x</span>
|
|
3204
3213
|
<span class="cline-any cline-neutral"> </span>
|
|
3205
3214
|
<span class="cline-any cline-neutral"> </span>
|
|
3206
3215
|
<span class="cline-any cline-neutral"> </span>
|
|
3207
3216
|
<span class="cline-any cline-neutral"> </span>
|
|
3208
3217
|
<span class="cline-any cline-neutral"> </span>
|
|
3209
|
-
<span class="cline-any cline-yes">58x</span>
|
|
3210
3218
|
<span class="cline-any cline-neutral"> </span>
|
|
3219
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3211
3220
|
<span class="cline-any cline-neutral"> </span>
|
|
3212
3221
|
<span class="cline-any cline-neutral"> </span>
|
|
3213
3222
|
<span class="cline-any cline-neutral"> </span>
|
|
3214
3223
|
<span class="cline-any cline-neutral"> </span>
|
|
3215
|
-
<span class="cline-any cline-
|
|
3224
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3225
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3226
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3227
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3228
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3229
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3230
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3231
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3232
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3233
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3234
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3235
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3236
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3237
|
+
<span class="cline-any cline-neutral"> </span>
|
|
3238
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3216
3239
|
<span class="cline-any cline-neutral"> </span>
|
|
3217
3240
|
<span class="cline-any cline-neutral"> </span>
|
|
3218
3241
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -3237,13 +3260,13 @@
|
|
|
3237
3260
|
<span class="cline-any cline-neutral"> </span>
|
|
3238
3261
|
<span class="cline-any cline-neutral"> </span>
|
|
3239
3262
|
<span class="cline-any cline-neutral"> </span>
|
|
3240
|
-
<span class="cline-any cline-yes">
|
|
3241
|
-
<span class="cline-any cline-yes">
|
|
3242
|
-
<span class="cline-any cline-yes">
|
|
3263
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3264
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3265
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3243
3266
|
<span class="cline-any cline-neutral"> </span>
|
|
3244
3267
|
<span class="cline-any cline-neutral"> </span>
|
|
3245
3268
|
<span class="cline-any cline-neutral"> </span>
|
|
3246
|
-
<span class="cline-any cline-yes">
|
|
3269
|
+
<span class="cline-any cline-yes">48x</span>
|
|
3247
3270
|
<span class="cline-any cline-neutral"> </span>
|
|
3248
3271
|
<span class="cline-any cline-neutral"> </span>
|
|
3249
3272
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4570,7 +4593,7 @@
|
|
|
4570
4593
|
<span class="cline-any cline-no"> </span>
|
|
4571
4594
|
<span class="cline-any cline-neutral"> </span>
|
|
4572
4595
|
<span class="cline-any cline-neutral"> </span>
|
|
4573
|
-
<span class="cline-any cline-yes">
|
|
4596
|
+
<span class="cline-any cline-yes">48x</span>
|
|
4574
4597
|
<span class="cline-any cline-neutral"> </span>
|
|
4575
4598
|
<span class="cline-any cline-neutral"> </span>
|
|
4576
4599
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4602,26 +4625,6 @@
|
|
|
4602
4625
|
<span class="cline-any cline-no"> </span>
|
|
4603
4626
|
<span class="cline-any cline-no"> </span>
|
|
4604
4627
|
<span class="cline-any cline-no"> </span>
|
|
4605
|
-
<span class="cline-any cline-no"> </span>
|
|
4606
|
-
<span class="cline-any cline-no"> </span>
|
|
4607
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4608
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4609
|
-
<span class="cline-any cline-no"> </span>
|
|
4610
|
-
<span class="cline-any cline-no"> </span>
|
|
4611
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4612
|
-
<span class="cline-any cline-no"> </span>
|
|
4613
|
-
<span class="cline-any cline-no"> </span>
|
|
4614
|
-
<span class="cline-any cline-no"> </span>
|
|
4615
|
-
<span class="cline-any cline-no"> </span>
|
|
4616
|
-
<span class="cline-any cline-no"> </span>
|
|
4617
|
-
<span class="cline-any cline-no"> </span>
|
|
4618
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4619
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4620
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4621
|
-
<span class="cline-any cline-no"> </span>
|
|
4622
|
-
<span class="cline-any cline-no"> </span>
|
|
4623
|
-
<span class="cline-any cline-no"> </span>
|
|
4624
|
-
<span class="cline-any cline-no"> </span>
|
|
4625
4628
|
<span class="cline-any cline-neutral"> </span>
|
|
4626
4629
|
<span class="cline-any cline-neutral"> </span>
|
|
4627
4630
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4778,6 +4781,8 @@
|
|
|
4778
4781
|
<span class="cline-any cline-no"> </span>
|
|
4779
4782
|
<span class="cline-any cline-neutral"> </span>
|
|
4780
4783
|
<span class="cline-any cline-no"> </span>
|
|
4784
|
+
<span class="cline-any cline-no"> </span>
|
|
4785
|
+
<span class="cline-any cline-no"> </span>
|
|
4781
4786
|
<span class="cline-any cline-neutral"> </span>
|
|
4782
4787
|
<span class="cline-any cline-neutral"> </span>
|
|
4783
4788
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4801,13 +4806,6 @@
|
|
|
4801
4806
|
<span class="cline-any cline-no"> </span>
|
|
4802
4807
|
<span class="cline-any cline-neutral"> </span>
|
|
4803
4808
|
<span class="cline-any cline-no"> </span>
|
|
4804
|
-
<span class="cline-any cline-no"> </span>
|
|
4805
|
-
<span class="cline-any cline-no"> </span>
|
|
4806
|
-
<span class="cline-any cline-no"> </span>
|
|
4807
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4808
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4809
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4810
|
-
<span class="cline-any cline-no"> </span>
|
|
4811
4809
|
<span class="cline-any cline-neutral"> </span>
|
|
4812
4810
|
<span class="cline-any cline-neutral"> </span>
|
|
4813
4811
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -4867,7 +4865,6 @@
|
|
|
4867
4865
|
<span class="cline-any cline-neutral"> </span>
|
|
4868
4866
|
<span class="cline-any cline-neutral"> </span>
|
|
4869
4867
|
<span class="cline-any cline-neutral"> </span>
|
|
4870
|
-
<span class="cline-any cline-neutral"> </span>
|
|
4871
4868
|
<span class="cline-any cline-no"> </span>
|
|
4872
4869
|
<span class="cline-any cline-no"> </span>
|
|
4873
4870
|
<span class="cline-any cline-no"> </span>
|
|
@@ -4912,6 +4909,7 @@
|
|
|
4912
4909
|
<span class="cline-any cline-no"> </span>
|
|
4913
4910
|
<span class="cline-any cline-no"> </span>
|
|
4914
4911
|
<span class="cline-any cline-no"> </span>
|
|
4912
|
+
<span class="cline-any cline-neutral"> </span>
|
|
4915
4913
|
<span class="cline-any cline-no"> </span>
|
|
4916
4914
|
<span class="cline-any cline-no"> </span>
|
|
4917
4915
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5036,6 +5034,8 @@
|
|
|
5036
5034
|
<span class="cline-any cline-no"> </span>
|
|
5037
5035
|
<span class="cline-any cline-no"> </span>
|
|
5038
5036
|
<span class="cline-any cline-no"> </span>
|
|
5037
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5038
|
+
<span class="cline-any cline-no"> </span>
|
|
5039
5039
|
<span class="cline-any cline-no"> </span>
|
|
5040
5040
|
<span class="cline-any cline-neutral"> </span>
|
|
5041
5041
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5044,7 +5044,6 @@
|
|
|
5044
5044
|
<span class="cline-any cline-neutral"> </span>
|
|
5045
5045
|
<span class="cline-any cline-neutral"> </span>
|
|
5046
5046
|
<span class="cline-any cline-yes">1x</span>
|
|
5047
|
-
<span class="cline-any cline-no"> </span>
|
|
5048
5047
|
<span class="cline-any cline-neutral"> </span>
|
|
5049
5048
|
<span class="cline-any cline-no"> </span>
|
|
5050
5049
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5054,6 +5053,7 @@
|
|
|
5054
5053
|
<span class="cline-any cline-neutral"> </span>
|
|
5055
5054
|
<span class="cline-any cline-neutral"> </span>
|
|
5056
5055
|
<span class="cline-any cline-no"> </span>
|
|
5056
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5057
5057
|
<span class="cline-any cline-no"> </span>
|
|
5058
5058
|
<span class="cline-any cline-neutral"> </span>
|
|
5059
5059
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5097,6 +5097,9 @@
|
|
|
5097
5097
|
<span class="cline-any cline-neutral"> </span>
|
|
5098
5098
|
<span class="cline-any cline-neutral"> </span>
|
|
5099
5099
|
<span class="cline-any cline-neutral"> </span>
|
|
5100
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5101
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5102
|
+
<span class="cline-any cline-no"> </span>
|
|
5100
5103
|
<span class="cline-any cline-no"> </span>
|
|
5101
5104
|
<span class="cline-any cline-no"> </span>
|
|
5102
5105
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5109,14 +5112,24 @@
|
|
|
5109
5112
|
<span class="cline-any cline-no"> </span>
|
|
5110
5113
|
<span class="cline-any cline-no"> </span>
|
|
5111
5114
|
<span class="cline-any cline-no"> </span>
|
|
5115
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5116
|
+
<span class="cline-any cline-no"> </span>
|
|
5117
|
+
<span class="cline-any cline-no"> </span>
|
|
5112
5118
|
<span class="cline-any cline-no"> </span>
|
|
5119
|
+
<span class="cline-any cline-no"> </span>
|
|
5120
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5113
5121
|
<span class="cline-any cline-neutral"> </span>
|
|
5114
5122
|
<span class="cline-any cline-neutral"> </span>
|
|
5123
|
+
<span class="cline-any cline-no"> </span>
|
|
5115
5124
|
<span class="cline-any cline-neutral"> </span>
|
|
5116
5125
|
<span class="cline-any cline-no"> </span>
|
|
5117
5126
|
<span class="cline-any cline-no"> </span>
|
|
5118
5127
|
<span class="cline-any cline-no"> </span>
|
|
5119
5128
|
<span class="cline-any cline-no"> </span>
|
|
5129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5130
|
+
<span class="cline-any cline-no"> </span>
|
|
5131
|
+
<span class="cline-any cline-no"> </span>
|
|
5132
|
+
<span class="cline-any cline-no"> </span>
|
|
5120
5133
|
<span class="cline-any cline-no"> </span>
|
|
5121
5134
|
<span class="cline-any cline-no"> </span>
|
|
5122
5135
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5153,6 +5166,7 @@
|
|
|
5153
5166
|
<span class="cline-any cline-no"> </span>
|
|
5154
5167
|
<span class="cline-any cline-neutral"> </span>
|
|
5155
5168
|
<span class="cline-any cline-neutral"> </span>
|
|
5169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5156
5170
|
<span class="cline-any cline-no"> </span>
|
|
5157
5171
|
<span class="cline-any cline-neutral"> </span>
|
|
5158
5172
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5164,6 +5178,7 @@
|
|
|
5164
5178
|
<span class="cline-any cline-neutral"> </span>
|
|
5165
5179
|
<span class="cline-any cline-no"> </span>
|
|
5166
5180
|
<span class="cline-any cline-no"> </span>
|
|
5181
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5167
5182
|
<span class="cline-any cline-no"> </span>
|
|
5168
5183
|
<span class="cline-any cline-no"> </span>
|
|
5169
5184
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5176,12 +5191,14 @@
|
|
|
5176
5191
|
<span class="cline-any cline-no"> </span>
|
|
5177
5192
|
<span class="cline-any cline-no"> </span>
|
|
5178
5193
|
<span class="cline-any cline-no"> </span>
|
|
5194
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5179
5195
|
<span class="cline-any cline-no"> </span>
|
|
5180
5196
|
<span class="cline-any cline-no"> </span>
|
|
5181
5197
|
<span class="cline-any cline-no"> </span>
|
|
5182
5198
|
<span class="cline-any cline-no"> </span>
|
|
5183
5199
|
<span class="cline-any cline-neutral"> </span>
|
|
5184
5200
|
<span class="cline-any cline-no"> </span>
|
|
5201
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5185
5202
|
<span class="cline-any cline-no"> </span>
|
|
5186
5203
|
<span class="cline-any cline-no"> </span>
|
|
5187
5204
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5217,24 +5234,57 @@
|
|
|
5217
5234
|
<span class="cline-any cline-neutral"> </span>
|
|
5218
5235
|
<span class="cline-any cline-neutral"> </span>
|
|
5219
5236
|
<span class="cline-any cline-neutral"> </span>
|
|
5237
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5238
|
+
<span class="cline-any cline-no"> </span>
|
|
5220
5239
|
<span class="cline-any cline-no"> </span>
|
|
5221
5240
|
<span class="cline-any cline-no"> </span>
|
|
5222
5241
|
<span class="cline-any cline-no"> </span>
|
|
5242
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5243
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5244
|
+
<span class="cline-any cline-no"> </span>
|
|
5245
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5246
|
+
<span class="cline-any cline-no"> </span>
|
|
5247
|
+
<span class="cline-any cline-no"> </span>
|
|
5248
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5249
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5250
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5251
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5252
|
+
<span class="cline-any cline-no"> </span>
|
|
5253
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5254
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5255
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5223
5256
|
<span class="cline-any cline-no"> </span>
|
|
5224
5257
|
<span class="cline-any cline-neutral"> </span>
|
|
5225
5258
|
<span class="cline-any cline-no"> </span>
|
|
5259
|
+
<span class="cline-any cline-no"> </span>
|
|
5260
|
+
<span class="cline-any cline-no"> </span>
|
|
5261
|
+
<span class="cline-any cline-no"> </span>
|
|
5262
|
+
<span class="cline-any cline-no"> </span>
|
|
5263
|
+
<span class="cline-any cline-no"> </span>
|
|
5264
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5265
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5226
5266
|
<span class="cline-any cline-neutral"> </span>
|
|
5227
5267
|
<span class="cline-any cline-no"> </span>
|
|
5268
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5228
5269
|
<span class="cline-any cline-no"> </span>
|
|
5229
5270
|
<span class="cline-any cline-neutral"> </span>
|
|
5230
5271
|
<span class="cline-any cline-neutral"> </span>
|
|
5231
5272
|
<span class="cline-any cline-neutral"> </span>
|
|
5273
|
+
<span class="cline-any cline-no"> </span>
|
|
5274
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5275
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5276
|
+
<span class="cline-any cline-no"> </span>
|
|
5277
|
+
<span class="cline-any cline-no"> </span>
|
|
5278
|
+
<span class="cline-any cline-no"> </span>
|
|
5279
|
+
<span class="cline-any cline-no"> </span>
|
|
5232
5280
|
<span class="cline-any cline-neutral"> </span>
|
|
5233
5281
|
<span class="cline-any cline-no"> </span>
|
|
5234
5282
|
<span class="cline-any cline-neutral"> </span>
|
|
5283
|
+
<span class="cline-any cline-no"> </span>
|
|
5235
5284
|
<span class="cline-any cline-neutral"> </span>
|
|
5236
5285
|
<span class="cline-any cline-no"> </span>
|
|
5237
5286
|
<span class="cline-any cline-no"> </span>
|
|
5287
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5238
5288
|
<span class="cline-any cline-no"> </span>
|
|
5239
5289
|
<span class="cline-any cline-no"> </span>
|
|
5240
5290
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5242,11 +5292,22 @@
|
|
|
5242
5292
|
<span class="cline-any cline-no"> </span>
|
|
5243
5293
|
<span class="cline-any cline-neutral"> </span>
|
|
5244
5294
|
<span class="cline-any cline-neutral"> </span>
|
|
5295
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5245
5296
|
<span class="cline-any cline-no"> </span>
|
|
5246
5297
|
<span class="cline-any cline-no"> </span>
|
|
5247
5298
|
<span class="cline-any cline-neutral"> </span>
|
|
5248
5299
|
<span class="cline-any cline-no"> </span>
|
|
5249
5300
|
<span class="cline-any cline-no"> </span>
|
|
5301
|
+
<span class="cline-any cline-no"> </span>
|
|
5302
|
+
<span class="cline-any cline-no"> </span>
|
|
5303
|
+
<span class="cline-any cline-no"> </span>
|
|
5304
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5305
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5307
|
+
<span class="cline-any cline-no"> </span>
|
|
5308
|
+
<span class="cline-any cline-neutral"> </span>
|
|
5309
|
+
<span class="cline-any cline-no"> </span>
|
|
5310
|
+
<span class="cline-any cline-no"> </span>
|
|
5250
5311
|
<span class="cline-any cline-neutral"> </span>
|
|
5251
5312
|
<span class="cline-any cline-neutral"> </span>
|
|
5252
5313
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5423,7 +5484,7 @@
|
|
|
5423
5484
|
<span class="cline-any cline-neutral"> </span>
|
|
5424
5485
|
<span class="cline-any cline-neutral"> </span>
|
|
5425
5486
|
<span class="cline-any cline-neutral"> </span>
|
|
5426
|
-
<span class="cline-any cline-yes">
|
|
5487
|
+
<span class="cline-any cline-yes">48x</span>
|
|
5427
5488
|
<span class="cline-any cline-neutral"> </span>
|
|
5428
5489
|
<span class="cline-any cline-neutral"> </span>
|
|
5429
5490
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5504,20 +5565,6 @@
|
|
|
5504
5565
|
<span class="cline-any cline-no"> </span>
|
|
5505
5566
|
<span class="cline-any cline-neutral"> </span>
|
|
5506
5567
|
<span class="cline-any cline-no"> </span>
|
|
5507
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5508
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5509
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5510
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5511
|
-
<span class="cline-any cline-no"> </span>
|
|
5512
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5513
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5514
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5515
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5516
|
-
<span class="cline-any cline-no"> </span>
|
|
5517
|
-
<span class="cline-any cline-no"> </span>
|
|
5518
|
-
<span class="cline-any cline-no"> </span>
|
|
5519
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5520
|
-
<span class="cline-any cline-no"> </span>
|
|
5521
5568
|
<span class="cline-any cline-no"> </span>
|
|
5522
5569
|
<span class="cline-any cline-no"> </span>
|
|
5523
5570
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -5633,23 +5680,6 @@
|
|
|
5633
5680
|
<span class="cline-any cline-no"> </span>
|
|
5634
5681
|
<span class="cline-any cline-neutral"> </span>
|
|
5635
5682
|
<span class="cline-any cline-neutral"> </span>
|
|
5636
|
-
<span class="cline-any cline-no"> </span>
|
|
5637
|
-
<span class="cline-any cline-no"> </span>
|
|
5638
|
-
<span class="cline-any cline-no"> </span>
|
|
5639
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5640
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5641
|
-
<span class="cline-any cline-no"> </span>
|
|
5642
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5643
|
-
<span class="cline-any cline-no"> </span>
|
|
5644
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5645
|
-
<span class="cline-any cline-no"> </span>
|
|
5646
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5647
|
-
<span class="cline-any cline-no"> </span>
|
|
5648
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5649
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5650
|
-
<span class="cline-any cline-no"> </span>
|
|
5651
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5652
|
-
<span class="cline-any cline-neutral"> </span>
|
|
5653
5683
|
<span class="cline-any cline-neutral"> </span>
|
|
5654
5684
|
<span class="cline-any cline-neutral"> </span>
|
|
5655
5685
|
<span class="cline-any cline-no"> </span>
|
|
@@ -5989,23 +6019,8 @@
|
|
|
5989
6019
|
<span class="cline-any cline-neutral"> </span>
|
|
5990
6020
|
<span class="cline-any cline-neutral"> </span>
|
|
5991
6021
|
<span class="cline-any cline-neutral"> </span>
|
|
5992
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import
|
|
5993
|
-
|
|
5994
|
-
wrapIteratorToGenerator as wrapIterator,
|
|
5995
|
-
returnOrigin,
|
|
5996
|
-
} from '../utils/time-slicing';
|
|
5997
|
-
import type { EmbeddedTSFileGenerator } from '../utils';
|
|
5998
|
-
import Namespace from './Namespace__';
|
|
5999
|
-
import {
|
|
6000
|
-
TranslatorState,
|
|
6001
|
-
shiftState,
|
|
6002
|
-
withSourceMap,
|
|
6003
|
-
indent,
|
|
6004
|
-
createCompilerState,
|
|
6005
|
-
withSourceMapGenerator,
|
|
6006
|
-
withGenerator,
|
|
6007
|
-
TranslatorGenerator,
|
|
6008
|
-
} from '../translator';
|
|
6022
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import Namespace from './Namespace__';
|
|
6023
|
+
import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
6009
6024
|
import translator from '../bak/translator';
|
|
6010
6025
|
import { ElementToVueOptions } from './ViewElement__';
|
|
6011
6026
|
import { Structure } from './Structure__';
|
|
@@ -6016,12 +6031,7 @@ import Match from './Match__';
|
|
|
6016
6031
|
import BatchAssignment from './BatchAssignment__';
|
|
6017
6032
|
import CallInterface from './CallInterface__';
|
|
6018
6033
|
import CallLogic from './CallLogic__';
|
|
6019
|
-
import
|
|
6020
|
-
const getBranchCopyUniCode = <span class="fstat-no" title="function not covered" >() =</span>> (<span class="cstat-no" title="statement not covered" >window as any)?.BranchCopyUniCode</span>
|
|
6021
|
-
|
|
6022
|
-
const removedViewElementCache: {
|
|
6023
|
-
[key: string]: number | bigint;
|
|
6024
|
-
} = {} // 临时记录删除的页面元素计数的最大值
|
|
6034
|
+
import DefaultValue from './DefaultValue__';
|
|
6025
6035
|
|
|
6026
6036
|
//================================================================================
|
|
6027
6037
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
@@ -6041,6 +6051,7 @@ import BindEvent from './BindEvent__';
|
|
|
6041
6051
|
import Module from './Module__';
|
|
6042
6052
|
import Frontend from './Frontend__';
|
|
6043
6053
|
import App from './App__';
|
|
6054
|
+
|
|
6044
6055
|
/**
|
|
6045
6056
|
* 页面
|
|
6046
6057
|
*/
|
|
@@ -6138,43 +6149,70 @@ export class View extends BaseNode {
|
|
|
6138
6149
|
/**
|
|
6139
6150
|
* 页面元素列表
|
|
6140
6151
|
*/
|
|
6141
|
-
@property(
|
|
6152
|
+
@property({
|
|
6153
|
+
objectRef: 'ViewElement',
|
|
6154
|
+
isArray: true,
|
|
6155
|
+
defaultValue: [],
|
|
6156
|
+
})
|
|
6142
6157
|
elements: Array<ViewElement> = [];
|
|
6143
6158
|
|
|
6144
6159
|
/**
|
|
6145
6160
|
* 输入参数列表
|
|
6146
6161
|
*/
|
|
6147
|
-
@property(
|
|
6162
|
+
@property({
|
|
6163
|
+
objectRef: 'Param',
|
|
6164
|
+
isArray: true,
|
|
6165
|
+
defaultValue: [],
|
|
6166
|
+
})
|
|
6148
6167
|
params: Array<Param> = [];
|
|
6149
6168
|
|
|
6150
6169
|
/**
|
|
6151
6170
|
* 变量列表
|
|
6152
6171
|
*/
|
|
6153
|
-
@property(
|
|
6172
|
+
@property({
|
|
6173
|
+
objectRef: 'Variable',
|
|
6174
|
+
isArray: true,
|
|
6175
|
+
defaultValue: [],
|
|
6176
|
+
})
|
|
6154
6177
|
variables: Array<Variable> = [];
|
|
6155
6178
|
|
|
6156
6179
|
/**
|
|
6157
6180
|
* 逻辑列表
|
|
6158
6181
|
*/
|
|
6159
|
-
@property(
|
|
6182
|
+
@property({
|
|
6183
|
+
objectRef: 'Logic',
|
|
6184
|
+
isArray: true,
|
|
6185
|
+
defaultValue: [],
|
|
6186
|
+
})
|
|
6160
6187
|
logics: Array<Logic> = [];
|
|
6161
6188
|
|
|
6162
6189
|
/**
|
|
6163
6190
|
* 元素绑定事件列表
|
|
6164
6191
|
*/
|
|
6165
|
-
@property(
|
|
6192
|
+
@property({
|
|
6193
|
+
objectRef: 'BindEvent',
|
|
6194
|
+
isArray: true,
|
|
6195
|
+
defaultValue: [],
|
|
6196
|
+
})
|
|
6166
6197
|
bindEvents: Array<BindEvent> = [];
|
|
6167
6198
|
|
|
6168
6199
|
/**
|
|
6169
6200
|
* 绑定的角色
|
|
6170
6201
|
*/
|
|
6171
|
-
@property(
|
|
6202
|
+
@property({
|
|
6203
|
+
isArray: true,
|
|
6204
|
+
defaultValue: [],
|
|
6205
|
+
})
|
|
6172
6206
|
bindRoles: Array<string> = [];
|
|
6173
6207
|
|
|
6174
6208
|
/**
|
|
6175
6209
|
* 页面列表
|
|
6176
6210
|
*/
|
|
6177
|
-
@property(
|
|
6211
|
+
@property({
|
|
6212
|
+
objectRef: 'View',
|
|
6213
|
+
isArray: true,
|
|
6214
|
+
defaultValue: [],
|
|
6215
|
+
})
|
|
6178
6216
|
children: Array<View> = [];
|
|
6179
6217
|
|
|
6180
6218
|
/**
|
|
@@ -7560,27 +7598,7 @@ export class View extends BaseNode {
|
|
|
7560
7598
|
<span class="cstat-no" title="statement not covered" > return Array.from(this.existingViewElement);</span>
|
|
7561
7599
|
}
|
|
7562
7600
|
|
|
7563
|
-
<span class="fstat-no" title="function not covered" > getViewElementUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'
|
|
7564
|
-
<span class="cstat-no" title="statement not covered" > this.collectExistingViewElementName();</span>
|
|
7565
|
-
const BranchCopyUniCode = <span class="cstat-no" title="statement not covered" >getBranchCopyUniCode();</span>
|
|
7566
|
-
let newName = <span class="cstat-no" title="statement not covered" >name;</span>
|
|
7567
|
-
const prefix = <span class="cstat-no" title="statement not covered" >name.replace(/\d*$/, '');</span>
|
|
7568
|
-
<span class="cstat-no" title="statement not covered" > if (BranchCopyUniCode && prefix.indexOf(`_${BranchCopyUniCode}_`) === -1) {</span>
|
|
7569
|
-
<span class="cstat-no" title="statement not covered" > newName = name.replace(/\d*$/, <span class="fstat-no" title="function not covered" >(m</span>) => <span class="cstat-no" title="statement not covered" >`_${BranchCopyUniCode}_${m}`)</span>;</span>
|
|
7570
|
-
}
|
|
7571
|
-
// 主分支无 BranchCopyUniCode
|
|
7572
|
-
<span class="cstat-no" title="statement not covered" > if (!BranchCopyUniCode && prefix.at(-1) !== '_') {</span>
|
|
7573
|
-
<span class="cstat-no" title="statement not covered" > newName = name.replace(/\d*$/, <span class="fstat-no" title="function not covered" >(m</span>) => <span class="cstat-no" title="statement not covered" >`_${m}`)</span>;</span>
|
|
7574
|
-
}
|
|
7575
|
-
const newPrefix = <span class="cstat-no" title="statement not covered" >newName.replace(/\d*$/, '');</span>
|
|
7576
|
-
const newPrefixNum = <span class="cstat-no" title="statement not covered" >removedViewElementCache?.[newPrefix] ? removedViewElementCache[newPrefix] : 1</span>
|
|
7577
|
-
const startNum = <span class="cstat-no" title="statement not covered" >newPrefixNum < Number.MAX_SAFE_INTEGER ? newPrefixNum as number + 1 : BigInt(newPrefixNum) + BigInt(1);</span>
|
|
7578
|
-
const viewElementUniqueName = <span class="cstat-no" title="statement not covered" >utils.uniqueMax(newName, this.existingViewElement, removedViewElementCache?.[newPrefix] ? startNum : newPrefixNum);</span>
|
|
7579
|
-
<span class="cstat-no" title="statement not covered" > this.existingViewElement.add(viewElementUniqueName);</span>
|
|
7580
|
-
<span class="cstat-no" title="statement not covered" > return viewElementUniqueName;</span>
|
|
7581
|
-
}
|
|
7582
|
-
|
|
7583
|
-
<span class="fstat-no" title="function not covered" > getViewElementUniqueNameOld(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'viewElement1')</span> {
|
|
7601
|
+
<span class="fstat-no" title="function not covered" > getViewElementUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'viewElement1')</span> {
|
|
7584
7602
|
<span class="cstat-no" title="statement not covered" > this.collectExistingViewElementName();</span>
|
|
7585
7603
|
const viewElementUniqueName = <span class="cstat-no" title="statement not covered" >utils.unique(name, this.existingViewElement);</span>
|
|
7586
7604
|
<span class="cstat-no" title="statement not covered" > this.existingViewElement.add(viewElementUniqueName);</span>
|
|
@@ -7612,7 +7630,7 @@ export class View extends BaseNode {
|
|
|
7612
7630
|
|
|
7613
7631
|
public static readonly TAG_NAME_PREFIX_REG?: RegExp = /^([lieu]|van)[-_]/;
|
|
7614
7632
|
|
|
7615
|
-
<span class="fstat-no" title="function not covered" > mergeBlock(</span>{ code, nodePath, position, cb }: { code: string; nodePath: string; position: string; cb?: Function }) {
|
|
7633
|
+
<span class="fstat-no" title="function not covered" > mergeBlock(</span>{ code, nodePath, position, cb }: { code: string; nodePath: string; position: string; cb?: Function; }) {
|
|
7616
7634
|
const template = <span class="cstat-no" title="statement not covered" >utils.sliceTagContent(code, 'template');</span>
|
|
7617
7635
|
let targetNode = <span class="cstat-no" title="statement not covered" >this.app.findNodeByPath(nodePath);</span>
|
|
7618
7636
|
let parentNode = <span class="cstat-no" title="statement not covered" >position === 'append' ? targetNode : targetNode.parentNode;</span>
|
|
@@ -7740,6 +7758,8 @@ export class View extends BaseNode {
|
|
|
7740
7758
|
);
|
|
7741
7759
|
<span class="cstat-no" title="statement not covered" > this.addBindEvent(event);</span>
|
|
7742
7760
|
} else {
|
|
7761
|
+
const index = <span class="cstat-no" title="statement not covered" >bindEvent.logics.length;</span>
|
|
7762
|
+
<span class="cstat-no" title="statement not covered" > newLogic.name += index;</span>
|
|
7743
7763
|
<span class="cstat-no" title="statement not covered" > bindEvent.addLogic(newLogic);</span>
|
|
7744
7764
|
}
|
|
7745
7765
|
});
|
|
@@ -7763,13 +7783,6 @@ export class View extends BaseNode {
|
|
|
7763
7783
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.logics)) {</span>
|
|
7764
7784
|
<span class="cstat-no" title="statement not covered" > varList.push(...this.logics);</span>
|
|
7765
7785
|
}
|
|
7766
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.bindEvents)) {</span>
|
|
7767
|
-
<span class="cstat-no" title="statement not covered" > this.bindEvents.forEach(<span class="fstat-no" title="function not covered" >(b</span>indEvent) => {</span>
|
|
7768
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(bindEvent.logics)) {</span>
|
|
7769
|
-
<span class="cstat-no" title="statement not covered" > varList.push(...bindEvent.logics);</span>
|
|
7770
|
-
}
|
|
7771
|
-
})
|
|
7772
|
-
}
|
|
7773
7786
|
<span class="cstat-no" title="statement not covered" > return varList.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>
|
|
7774
7787
|
}
|
|
7775
7788
|
|
|
@@ -7826,7 +7839,6 @@ export class View extends BaseNode {
|
|
|
7826
7839
|
first: this.children.find(<span class="fstat-no" title="function not covered" >(c</span>hild) => <span class="cstat-no" title="statement not covered" >child.isIndex)</span>?.name,
|
|
7827
7840
|
auth: this.auth ? 'loginAuth' : undefined,
|
|
7828
7841
|
viewBindEvents: this.getViewBindEvents(),
|
|
7829
|
-
viewBindSyncAttrs: this.getViewBindSyncAttrs(),
|
|
7830
7842
|
viewExpressions: this.getViewExpressions(),
|
|
7831
7843
|
elements: componentList,
|
|
7832
7844
|
elementsAll: componentListExtra,
|
|
@@ -7875,7 +7887,8 @@ export class View extends BaseNode {
|
|
|
7875
7887
|
<span class="cstat-no" title="statement not covered" > mixins.push('keyboardEventMixin');</span>
|
|
7876
7888
|
<span class="cstat-no" title="statement not covered" > code += mixins.join(',');</span>
|
|
7877
7889
|
<span class="cstat-no" title="statement not covered" > code += '],';</span>
|
|
7878
|
-
|
|
7890
|
+
|
|
7891
|
+
<span class="cstat-no" title="statement not covered" > code += translator(definition);</span>
|
|
7879
7892
|
<span class="cstat-no" title="statement not covered" > code += '};\n';</span>
|
|
7880
7893
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
7881
7894
|
}
|
|
@@ -7997,7 +8010,9 @@ export class View extends BaseNode {
|
|
|
7997
8010
|
<span class="fstat-no" title="function not covered" > elementsAttrsAll(</span>elements: Array<ViewElement>, componentListExtra: Array<ViewElement>) {
|
|
7998
8011
|
<span class="cstat-no" title="statement not covered" > if (elements) {</span>
|
|
7999
8012
|
<span class="cstat-no" title="statement not covered" > elements.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem: ViewElement) => {</span>
|
|
8000
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8013
|
+
<span class="cstat-no" title="statement not covered" > if (!PAGE_COMPONENT_INCLUDE_TAG_MAP?.[item.tag]) {</span>
|
|
8014
|
+
<span class="cstat-no" title="statement not covered" > componentListExtra.push(item);</span>
|
|
8015
|
+
}
|
|
8001
8016
|
<span class="cstat-no" title="statement not covered" > if (item.children.length > 0) {</span>
|
|
8002
8017
|
<span class="cstat-no" title="statement not covered" > this.elementsAttrsAll(item.children, componentListExtra);</span>
|
|
8003
8018
|
}
|
|
@@ -8005,9 +8020,8 @@ export class View extends BaseNode {
|
|
|
8005
8020
|
}
|
|
8006
8021
|
}
|
|
8007
8022
|
|
|
8008
|
-
@
|
|
8009
|
-
<span class="fstat-no" title="function not covered" >
|
|
8010
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
8023
|
+
@withSourceMap()
|
|
8024
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
8011
8025
|
function <span class="fstat-no" title="function not covered" >chineseTsName(</span>name: string) {
|
|
8012
8026
|
let tsName = <span class="cstat-no" title="statement not covered" >name;</span>
|
|
8013
8027
|
// 匹配所有特殊字符都转为_
|
|
@@ -8016,15 +8030,16 @@ export class View extends BaseNode {
|
|
|
8016
8030
|
}
|
|
8017
8031
|
// 获取虚拟logic的参数和内容
|
|
8018
8032
|
// 用作展示和tots查找引用
|
|
8019
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8020
|
-
|
|
8033
|
+
<span class="cstat-no" title="statement not covered" > this.getElementLogicRoot();</span>
|
|
8034
|
+
|
|
8035
|
+
let code = <span class="cstat-no" title="statement not covered" >`export namespace ${this.tsName} {\n`;</span>
|
|
8021
8036
|
// 角色
|
|
8022
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
8037
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.bindRoles) && this.bindRoles.length) {</span>
|
|
8023
8038
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8024
8039
|
<span class="cstat-no" title="statement not covered" > code += 'export let __bindRoles = [\n';</span>
|
|
8025
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8040
|
+
<span class="cstat-no" title="statement not covered" > this.bindRoles.forEach(<span class="fstat-no" title="function not covered" >(r</span>ole) => {</span>
|
|
8026
8041
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8027
|
-
<span class="cstat-no" title="statement not covered" > code += `${
|
|
8042
|
+
<span class="cstat-no" title="statement not covered" > code += `${this.app.getNamespace()}.roles.${chineseTsName(role)}.${chineseTsName(role)},`;</span>
|
|
8028
8043
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
8029
8044
|
});
|
|
8030
8045
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
@@ -8033,24 +8048,24 @@ export class View extends BaseNode {
|
|
|
8033
8048
|
}
|
|
8034
8049
|
// 需要类型推导的局部变量/返回值需要调整申明顺序
|
|
8035
8050
|
const advanceMap: Map<Variable, Assignment | BatchAssignment> = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
8036
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8051
|
+
<span class="cstat-no" title="statement not covered" > this.traverseChildren(<span class="fstat-no" title="function not covered" >(e</span>l) => {</span>
|
|
8037
8052
|
<span class="cstat-no" title="statement not covered" > if (el && (el instanceof BatchAssignment || (el instanceof Assignment && el.left?.name))) {</span>
|
|
8038
8053
|
// 子页面内部逻辑过滤
|
|
8039
|
-
<span class="cstat-no" title="statement not covered" > if (el.view !==
|
|
8054
|
+
<span class="cstat-no" title="statement not covered" > if (el.view !== this) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
8040
8055
|
<span class="cstat-no" title="statement not covered" > if (el instanceof Assignment) {</span>
|
|
8041
|
-
const advanceVar = <span class="cstat-no" title="statement not covered" >
|
|
8056
|
+
const advanceVar = <span class="cstat-no" title="statement not covered" >this.variables?.find(</span>
|
|
8042
8057
|
<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>
|
|
8043
8058
|
);
|
|
8044
8059
|
<span class="cstat-no" title="statement not covered" > if (advanceVar && !advanceMap.get(advanceVar)) {</span>
|
|
8045
8060
|
<span class="cstat-no" title="statement not covered" > advanceMap.set(advanceVar, el);</span>
|
|
8046
8061
|
}
|
|
8047
8062
|
} else <span class="cstat-no" title="statement not covered" >if (el instanceof BatchAssignment) {</span>
|
|
8048
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8063
|
+
<span class="cstat-no" title="statement not covered" > el.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex }) => {</span>
|
|
8049
8064
|
const leftCode =
|
|
8050
8065
|
<span class="cstat-no" title="statement not covered" > leftIndex.length === 1</span>
|
|
8051
|
-
?
|
|
8052
|
-
:
|
|
8053
|
-
const advanceVar = <span class="cstat-no" title="statement not covered" >
|
|
8066
|
+
? el.left?.expression?.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
8067
|
+
: el.left?.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
8068
|
+
const advanceVar = <span class="cstat-no" title="statement not covered" >this.variables?.find(</span>
|
|
8054
8069
|
<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>
|
|
8055
8070
|
);
|
|
8056
8071
|
<span class="cstat-no" title="statement not covered" > if (advanceVar && !advanceMap.get(advanceVar)) {</span>
|
|
@@ -8060,40 +8075,53 @@ export class View extends BaseNode {
|
|
|
8060
8075
|
}
|
|
8061
8076
|
}
|
|
8062
8077
|
});
|
|
8063
|
-
|
|
8064
|
-
|
|
8078
|
+
|
|
8079
|
+
// 用来储存默认值翻译结构是__IDENTIFIER__或者__IDENTIFIER__()的节点
|
|
8080
|
+
const IDENTIFIERMAP = <span class="cstat-no" title="statement not covered" >new Set();</span>
|
|
8081
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.params)) {</span>
|
|
8082
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram) => {</span>
|
|
8065
8083
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
8066
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8084
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
8067
8085
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
8068
8086
|
});
|
|
8069
8087
|
}
|
|
8070
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
8071
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8088
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.variables)) {</span>
|
|
8089
|
+
<span class="cstat-no" title="statement not covered" > this.variables.forEach(<span class="fstat-no" title="function not covered" >(v</span>ariable) => {</span>
|
|
8090
|
+
const ts = <span class="cstat-no" title="statement not covered" >variable.defaultValue?.expression?.toEmbeddedTS();</span>
|
|
8091
|
+
<span class="cstat-no" title="statement not covered" > if (['__IDENTIFIER__', '__IDENTIFIER__()'].includes(ts)) {</span>
|
|
8092
|
+
<span class="cstat-no" title="statement not covered" > IDENTIFIERMAP.add(variable);</span>
|
|
8093
|
+
}
|
|
8072
8094
|
<span class="cstat-no" title="statement not covered" > if (!advanceMap.get(variable)) {</span>
|
|
8073
8095
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
8074
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8096
|
+
<span class="cstat-no" title="statement not covered" > code += variable.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
8075
8097
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
8076
8098
|
}
|
|
8077
8099
|
});
|
|
8078
8100
|
}
|
|
8079
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8101
|
+
<span class="cstat-no" title="statement not covered" > advanceMap.forEach(<span class="fstat-no" title="function not covered" >(a</span>ssignment, variable) => {</span>
|
|
8102
|
+
// 有默认值的用默认值来推导类型, 但是如果是__IDENTIFIER__或者__IDENTIFIER__(),就不需要默认值来推导了
|
|
8103
|
+
<span class="cstat-no" title="statement not covered" > if (variable.defaultValue?.expression && !IDENTIFIERMAP.has(variable)) {</span>
|
|
8104
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
8105
|
+
<span class="cstat-no" title="statement not covered" > code += variable.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
8106
|
+
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
8107
|
+
}
|
|
8080
8108
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}// @ts-ignore\n`;</span>
|
|
8081
8109
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}let `;</span>
|
|
8082
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8110
|
+
<span class="cstat-no" title="statement not covered" > code += variable.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
8083
8111
|
<span class="cstat-no" title="statement not covered" > code += ' = ';</span>
|
|
8084
8112
|
<span class="cstat-no" title="statement not covered" > if (assignment instanceof BatchAssignment) {</span>
|
|
8085
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8113
|
+
<span class="cstat-no" title="statement not covered" > assignment.assignmentLines.forEach(<span class="fstat-no" title="function not covered" >({</span> leftIndex, rightIndex }) => {</span>
|
|
8086
8114
|
const leftCode =
|
|
8087
8115
|
<span class="cstat-no" title="statement not covered" > leftIndex.length === 1</span>
|
|
8088
|
-
?
|
|
8089
|
-
:
|
|
8116
|
+
? assignment.left.expression.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
8117
|
+
: assignment.left.members[leftIndex[1]]?.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
8090
8118
|
<span class="cstat-no" title="statement not covered" > if (leftCode === variable.name) {</span>
|
|
8091
8119
|
const rightNode =
|
|
8092
8120
|
<span class="cstat-no" title="statement not covered" > rightIndex.length === 1</span>
|
|
8093
8121
|
? assignment.rights[rightIndex[0]]?.expression
|
|
8094
8122
|
: assignment.rights[rightIndex[0]]?.members[rightIndex[1]];
|
|
8095
|
-
const rightCode = <span class="cstat-no" title="statement not covered" >
|
|
8096
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8123
|
+
const rightCode = <span class="cstat-no" title="statement not covered" >rightNode?.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
8124
|
+
<span class="cstat-no" title="statement not covered" > code += this.getRightCode(rightCode, assignment, rightNode);</span>
|
|
8097
8125
|
}
|
|
8098
8126
|
});
|
|
8099
8127
|
} else {
|
|
@@ -8109,17 +8137,18 @@ export class View extends BaseNode {
|
|
|
8109
8137
|
}
|
|
8110
8138
|
<span class="cstat-no" title="statement not covered" > rightCode +=</span>
|
|
8111
8139
|
assignment.right && assignment.right.toEmbeddedTS
|
|
8112
|
-
?
|
|
8140
|
+
? assignment.right.toEmbeddedTS(shiftState(state, code, { inline: true }))
|
|
8113
8141
|
: '__RIGHT__';
|
|
8114
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8142
|
+
<span class="cstat-no" title="statement not covered" > code += this.getRightCode(rightCode, assignment, assignment.right);</span>
|
|
8115
8143
|
}
|
|
8116
8144
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
8117
8145
|
});
|
|
8146
|
+
|
|
8118
8147
|
// elements类型声明定义
|
|
8119
8148
|
<span class="cstat-no" title="statement not covered" > code += `interface __elements {\n`;</span>
|
|
8120
8149
|
// 生成所有的name和类型定义
|
|
8121
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8122
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8150
|
+
<span class="cstat-no" title="statement not covered" > this.elements.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
8151
|
+
<span class="cstat-no" title="statement not covered" > code += element.toEmbeddedTSDefinition(</span>
|
|
8123
8152
|
shiftState(state, code, {
|
|
8124
8153
|
tabSize: (state?.tabSize || 0) + 1,
|
|
8125
8154
|
}),
|
|
@@ -8127,37 +8156,40 @@ export class View extends BaseNode {
|
|
|
8127
8156
|
});
|
|
8128
8157
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}}\n`;</span>
|
|
8129
8158
|
<span class="cstat-no" title="statement not covered" > code += `let __elements: __elements;\n`;</span>
|
|
8130
|
-
|
|
8159
|
+
|
|
8160
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.elements)) {</span>
|
|
8131
8161
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}interface `;</span>
|
|
8132
8162
|
<span class="cstat-no" title="statement not covered" > code += `__elements_completionProperty {\n`;</span>
|
|
8133
8163
|
const componentList: Array<ViewElement> = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8134
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8164
|
+
<span class="cstat-no" title="statement not covered" > this.elementsAttrs(this.elements, componentList);</span>
|
|
8135
8165
|
const variableList: string[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8136
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8137
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8166
|
+
<span class="cstat-no" title="statement not covered" > this.elements.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8167
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTSVariableDefinition(shiftState(state, code, { inline: true }), variableList);</span>
|
|
8138
8168
|
});
|
|
8139
8169
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1) + `}\n`;</span>
|
|
8140
8170
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8141
8171
|
<span class="cstat-no" title="statement not covered" > code += `let __elements_completionProperty: __elements_completionProperty;\n`;</span>
|
|
8172
|
+
|
|
8142
8173
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8143
8174
|
<span class="cstat-no" title="statement not covered" > code += `let __elements_variable_function = {\n`;</span>
|
|
8144
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8145
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8175
|
+
<span class="cstat-no" title="statement not covered" > this.elements.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8176
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTSVariableFunctionDefinition(shiftState(state, code, { inline: true }));</span>
|
|
8146
8177
|
});
|
|
8147
8178
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1) + `}\n`;</span>
|
|
8179
|
+
|
|
8148
8180
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8149
8181
|
<span class="cstat-no" title="statement not covered" > code += `let __elements_stashFunctionVariable = {\n`;</span>
|
|
8150
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8182
|
+
<span class="cstat-no" title="statement not covered" > variableList.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8151
8183
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 2);</span>
|
|
8152
8184
|
<span class="cstat-no" title="statement not covered" > code += `${item}`;</span>
|
|
8153
8185
|
});
|
|
8154
8186
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1) + `}\n`;</span>
|
|
8155
8187
|
}
|
|
8156
8188
|
// 逻辑
|
|
8157
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
8189
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.logics) && this.logics.length) {</span>
|
|
8158
8190
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8159
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8160
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8191
|
+
<span class="cstat-no" title="statement not covered" > this.logics.forEach(<span class="fstat-no" title="function not covered" >(l</span>ogic) => {</span>
|
|
8192
|
+
<span class="cstat-no" title="statement not covered" > code += logic.toEmbeddedTS(</span>
|
|
8161
8193
|
shiftState(state, code, {
|
|
8162
8194
|
tabSize: (state?.tabSize || 0) + 2,
|
|
8163
8195
|
}),
|
|
@@ -8168,9 +8200,9 @@ export class View extends BaseNode {
|
|
|
8168
8200
|
<span class="cstat-no" title="statement not covered" > code += indent((state?.tabSize || 0) + 1);</span>
|
|
8169
8201
|
}
|
|
8170
8202
|
// 事件
|
|
8171
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
8172
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8173
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8203
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.bindEvents)) {</span>
|
|
8204
|
+
<span class="cstat-no" title="statement not covered" > this.bindEvents.forEach(<span class="fstat-no" title="function not covered" >(e</span>vent) => {</span>
|
|
8205
|
+
<span class="cstat-no" title="statement not covered" > code += event.toEmbeddedTS(</span>
|
|
8174
8206
|
shiftState(state, code, {
|
|
8175
8207
|
tabSize: state?.tabSize || 0,
|
|
8176
8208
|
}),
|
|
@@ -8179,16 +8211,18 @@ export class View extends BaseNode {
|
|
|
8179
8211
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
8180
8212
|
});
|
|
8181
8213
|
}
|
|
8214
|
+
|
|
8182
8215
|
// render函数
|
|
8183
8216
|
<span class="cstat-no" title="statement not covered" > code += `\n${indent((state?.tabSize || 0) + 1)}`;</span>
|
|
8184
8217
|
<span class="cstat-no" title="statement not covered" > code += `export function __render(`;</span>
|
|
8185
8218
|
<span class="cstat-no" title="statement not covered" > code += `){\n`;</span>
|
|
8186
8219
|
<span class="cstat-no" title="statement not covered" > code += indent(state?.tabSize || 0);</span>
|
|
8220
|
+
|
|
8187
8221
|
// elements 元素
|
|
8188
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray(
|
|
8222
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.elements)) {</span>
|
|
8189
8223
|
// 生成嵌套式的内容
|
|
8190
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8191
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8224
|
+
<span class="cstat-no" title="statement not covered" > this.elements.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {</span>
|
|
8225
|
+
<span class="cstat-no" title="statement not covered" > code += element.toEmbeddedTS(</span>
|
|
8192
8226
|
shiftState(state, code, {
|
|
8193
8227
|
tabSize: (state?.tabSize || 0) + 3,
|
|
8194
8228
|
}),
|
|
@@ -8196,18 +8230,60 @@ export class View extends BaseNode {
|
|
|
8196
8230
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
8197
8231
|
});
|
|
8198
8232
|
}
|
|
8233
|
+
|
|
8199
8234
|
<span class="cstat-no" title="statement not covered" > code += `\n${indent((state?.tabSize || 0) + 1)}}\n`;</span>
|
|
8200
|
-
|
|
8235
|
+
|
|
8236
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray(this.params)) {</span>
|
|
8201
8237
|
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}export function $destination(options: {`;</span>
|
|
8202
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8238
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
8203
8239
|
<span class="cstat-no" title="statement not covered" > code += `${param.name}?: `;</span>
|
|
8204
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8240
|
+
<span class="cstat-no" title="statement not covered" > code += param.typeAnnotation.toEmbeddedTS(shiftState(state, code));</span>
|
|
8205
8241
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
8206
8242
|
});
|
|
8243
|
+
|
|
8207
8244
|
// 锚点
|
|
8208
8245
|
<span class="cstat-no" title="statement not covered" > code += `_anchor?: nasl.core.String`;</span>
|
|
8246
|
+
|
|
8209
8247
|
<span class="cstat-no" title="statement not covered" > code += '}){}\n';</span>
|
|
8210
8248
|
}
|
|
8249
|
+
|
|
8250
|
+
/* 默认值草稿区 ---------------------------*/
|
|
8251
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}export function __playground(){\n`;</span>
|
|
8252
|
+
|
|
8253
|
+
/* 参数的默认值是__IDENTIFIER__或者__IDENTIFIER__()时不赋默认值,但是需要ts翻译出来进行报错校验 */
|
|
8254
|
+
<span class="cstat-no" title="statement not covered" > IDENTIFIERMAP.forEach(<span class="fstat-no" title="function not covered" >(n</span>ode: Variable) => {</span>
|
|
8255
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 2)}`;</span>
|
|
8256
|
+
<span class="cstat-no" title="statement not covered" > code += node.defaultValue.expression.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
8257
|
+
<span class="cstat-no" title="statement not covered" > code += '; ';</span>
|
|
8258
|
+
});
|
|
8259
|
+
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
8260
|
+
|
|
8261
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 2)}return\n`;</span>
|
|
8262
|
+
|
|
8263
|
+
<span class="cstat-no" title="statement not covered" > if (this.variables.length) {</span>
|
|
8264
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 2)}/* -----以下是variables的默认值草稿------ */\n`;</span>
|
|
8265
|
+
}
|
|
8266
|
+
<span class="cstat-no" title="statement not covered" > this.variables.forEach(<span class="fstat-no" title="function not covered" >(v</span>ariable) => {</span>
|
|
8267
|
+
<span class="cstat-no" title="statement not covered" > if (variable.defaultValue) {</span>
|
|
8268
|
+
<span class="cstat-no" title="statement not covered" > variable.defaultValue.playground?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8269
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 2 }));</span>
|
|
8270
|
+
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
8271
|
+
});
|
|
8272
|
+
}
|
|
8273
|
+
});
|
|
8274
|
+
<span class="cstat-no" title="statement not covered" > if (this.params.length) {</span>
|
|
8275
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 2)}/* -----以下是params的默认值草稿------ */\n`;</span>
|
|
8276
|
+
}
|
|
8277
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram) => {</span>
|
|
8278
|
+
<span class="cstat-no" title="statement not covered" > if (param.defaultValue && param.defaultValue instanceof DefaultValue) {</span>
|
|
8279
|
+
<span class="cstat-no" title="statement not covered" > param.defaultValue.playground?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8280
|
+
<span class="cstat-no" title="statement not covered" > code += item.toEmbeddedTS(shiftState(state, code, { tabSize: (state?.tabSize || 0) + 2 }));</span>
|
|
8281
|
+
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
8282
|
+
});
|
|
8283
|
+
}
|
|
8284
|
+
});
|
|
8285
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent((state?.tabSize || 0) + 1)}}\n`;</span>
|
|
8286
|
+
|
|
8211
8287
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state?.tabSize || 0)}}\n`;</span>
|
|
8212
8288
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
8213
8289
|
}
|
|
@@ -8323,14 +8399,14 @@ ${indent(state.tabSize)}export function ${this.tsName}_view`;
|
|
|
8323
8399
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
8324
8400
|
}
|
|
8325
8401
|
|
|
8326
|
-
<span class="fstat-no" title="function not covered" >
|
|
8402
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSFile(</span>) {
|
|
8327
8403
|
let code = <span class="cstat-no" title="statement not covered" >`namespace ${this.getTsNamespace()} {\n`;</span>
|
|
8328
8404
|
const state = <span class="cstat-no" title="statement not covered" >createCompilerState(code, {</span>
|
|
8329
8405
|
tabSize: 1,
|
|
8330
8406
|
});
|
|
8331
8407
|
|
|
8332
8408
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
8333
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
8409
|
+
<span class="cstat-no" title="statement not covered" > code += this.toEmbeddedTS(state);</span>
|
|
8334
8410
|
} catch (err) {
|
|
8335
8411
|
<span class="cstat-no" title="statement not covered" > code += '';</span>
|
|
8336
8412
|
<span class="cstat-no" title="statement not covered" > console.log(err);</span>
|
|
@@ -8459,20 +8535,6 @@ ${indent(state.tabSize)}export function ${this.tsName}_view`;
|
|
|
8459
8535
|
});
|
|
8460
8536
|
<span class="cstat-no" title="statement not covered" > return bindEvents;</span>
|
|
8461
8537
|
}
|
|
8462
|
-
|
|
8463
|
-
// 获取页面内所有开启了双向绑定的属性
|
|
8464
|
-
<span class="fstat-no" title="function not covered" > getViewBindSyncAttrs(</span>) {
|
|
8465
|
-
const bindSyncAttrs: BindAttribute[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
8466
|
-
<span class="cstat-no" title="statement not covered" > this.elements.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
8467
|
-
<span class="cstat-no" title="statement not covered" > utils.traverse(</span>
|
|
8468
|
-
<span class="fstat-no" title="function not covered" > (c</span>urrent) => {
|
|
8469
|
-
<span class="cstat-no" title="statement not covered" > bindSyncAttrs.push(...(current.node as ViewElement).getSyncBindAttrs())</span>
|
|
8470
|
-
},
|
|
8471
|
-
{ node: item },
|
|
8472
|
-
);
|
|
8473
|
-
});
|
|
8474
|
-
<span class="cstat-no" title="statement not covered" > return bindSyncAttrs;</span>
|
|
8475
|
-
}
|
|
8476
8538
|
|
|
8477
8539
|
// 获取页面上需要替换的表达式
|
|
8478
8540
|
<span class="fstat-no" title="function not covered" > getViewExpressions(</span>) {
|
|
@@ -8595,26 +8657,9 @@ ${indent(state.tabSize)}export function ${this.tsName}_view`;
|
|
|
8595
8657
|
<span class="cstat-no" title="statement not covered" > if (this.existingViewElement.has(viewElement.name)) {</span>
|
|
8596
8658
|
<span class="cstat-no" title="statement not covered" > this.existingViewElement.delete(viewElement.name);</span>
|
|
8597
8659
|
}
|
|
8598
|
-
|
|
8599
|
-
const prefix = <span class="cstat-no" title="statement not covered" >viewElement?.name.replace(/\d*$/, '');</span>
|
|
8600
|
-
let lastDigit = <span class="cstat-no" title="statement not covered" >viewElement?.name.match(/\d+$/)?.[0];</span>
|
|
8601
|
-
<span class="cstat-no" title="statement not covered" > if (lastDigit === undefined) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
8602
|
-
|
|
8603
|
-
//@ts-ignore
|
|
8604
|
-
<span class="cstat-no" title="statement not covered" > lastDigit = lastDigit < Number.MAX_SAFE_INTEGER ? parseInt(lastDigit) : BigInt(lastDigit);</span>
|
|
8605
|
-
|
|
8606
|
-
<span class="cstat-no" title="statement not covered" > if (removedViewElementCache?.[prefix]) {</span>
|
|
8607
|
-
//@ts-ignore
|
|
8608
|
-
<span class="cstat-no" title="statement not covered" > if (lastDigit > removedViewElementCache[prefix])</span>
|
|
8609
|
-
//@ts-ignore
|
|
8610
|
-
<span class="cstat-no" title="statement not covered" > removedViewElementCache[prefix] = lastDigit;</span>
|
|
8611
|
-
} else {
|
|
8612
|
-
//@ts-ignore
|
|
8613
|
-
<span class="cstat-no" title="statement not covered" > removedViewElementCache[prefix] = lastDigit;</span>
|
|
8614
|
-
}
|
|
8615
8660
|
}
|
|
8616
8661
|
|
|
8617
|
-
<span class="fstat-no" title="function not covered" >
|
|
8662
|
+
<span class="fstat-no" title="function not covered" > getRightCode(</span>code: string, assignment: Assignment | BatchAssignment, rightNode: any): string {
|
|
8618
8663
|
<span class="cstat-no" title="statement not covered" > code = code.replaceAll('\n', ' ');</span>
|
|
8619
8664
|
const logic = <span class="cstat-no" title="statement not covered" >assignment.logic;</span>
|
|
8620
8665
|
const logicRtn = <span class="cstat-no" title="statement not covered" >logic?.returns[0];</span>
|
|
@@ -8647,7 +8692,7 @@ ${indent(state.tabSize)}export function ${this.tsName}_view`;
|
|
|
8647
8692
|
|
|
8648
8693
|
// 处理 current.item、current1.item 等数据
|
|
8649
8694
|
<span class="cstat-no" title="statement not covered" > if (/current(\d)*\.item/.test(code)) {</span>
|
|
8650
|
-
<span class="cstat-no" title="statement not covered" > code =
|
|
8695
|
+
<span class="cstat-no" title="statement not covered" > code = this.handleCurrentItemCode(code, logic);</span>
|
|
8651
8696
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
8652
8697
|
}
|
|
8653
8698
|
|
|
@@ -8692,16 +8737,16 @@ ${indent(state.tabSize)}export function ${this.tsName}_view`;
|
|
|
8692
8737
|
<span class="cstat-no" title="statement not covered" > return viewElements;</span>
|
|
8693
8738
|
}
|
|
8694
8739
|
|
|
8695
|
-
<span class="fstat-no" title="function not covered" >
|
|
8740
|
+
<span class="fstat-no" title="function not covered" > handleCurrentItemCode(</span>code: string, logic: Logic): string {
|
|
8696
8741
|
const viewElementsWithDataSource: ViewElement[] = <span class="cstat-no" title="statement not covered" >this.getAncestorViewElementsWithDataSource(logic);</span>
|
|
8697
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8742
|
+
<span class="cstat-no" title="statement not covered" > viewElementsWithDataSource.forEach(<span class="fstat-no" title="function not covered" >(v</span>iewElement, index) => {</span>
|
|
8698
8743
|
const currentIndex = <span class="cstat-no" title="statement not covered" >viewElementsWithDataSource.length - 1 - index;</span>
|
|
8699
8744
|
const currentItemCode = <span class="cstat-no" title="statement not covered" >`current${currentIndex === 0 ? '' : currentIndex}.item`;</span>
|
|
8700
8745
|
<span class="cstat-no" title="statement not covered" > if (code.includes(currentItemCode)) {</span>
|
|
8701
8746
|
const dataSource = <span class="cstat-no" title="statement not covered" >viewElement.bindAttrs.find(<span class="fstat-no" title="function not covered" >(b</span>Attr) => <span class="cstat-no" title="statement not covered" >bAttr.name === 'data-source')</span>;</span>
|
|
8702
8747
|
<span class="cstat-no" title="statement not covered" > if (dataSource) {</span>
|
|
8703
8748
|
const view = <span class="cstat-no" title="statement not covered" >viewElement.getAncestor('View') as View;</span>
|
|
8704
|
-
const dataSourceTS = <span class="cstat-no" title="statement not covered" >
|
|
8749
|
+
const dataSourceTS = <span class="cstat-no" title="statement not covered" >dataSource.expression.toEmbeddedTS();</span>
|
|
8705
8750
|
const logic = <span class="cstat-no" title="statement not covered" >view.logics.find(<span class="fstat-no" title="function not covered" >(l</span>ogic) => <span class="cstat-no" title="statement not covered" >logic.name === dataSourceTS)</span>;</span>
|
|
8706
8751
|
<span class="cstat-no" title="statement not covered" > if (logic) {</span>
|
|
8707
8752
|
<span class="cstat-no" title="statement not covered" > code = code.replaceAll(</span>
|
|
@@ -8959,7 +9004,7 @@ export const PAGE_COMPONENT_INCLUDE_TAG_MAP: Record<string, Record<string,
|
|
|
8959
9004
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
8960
9005
|
Code coverage generated by
|
|
8961
9006
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
8962
|
-
at 2023-
|
|
9007
|
+
at 2023-10-27T11:50:55.546Z
|
|
8963
9008
|
</div>
|
|
8964
9009
|
<script src="../../prettify.js"></script>
|
|
8965
9010
|
<script>
|