@lcap/nasl 3.8.2-beta.7 → 3.8.2-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/cobertura-coverage.xml +66121 -10220
- package/coverage/index.html +50 -395
- package/coverage/src/automate/engine/index.html +19 -19
- package/coverage/src/automate/engine/utils.js.html +101 -101
- package/coverage/src/bak/index.html +19 -19
- package/coverage/src/bak/translator.js.html +96 -141
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +13 -13
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +29 -29
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +10 -10
- package/coverage/src/breakpoint/generator/index.html +47 -47
- package/coverage/src/breakpoint/generator/index.ts.html +20 -20
- package/coverage/src/breakpoint/index.html +7 -7
- package/coverage/src/breakpoint/index.ts.html +6 -6
- package/coverage/src/breakpoint/shared/constants.ts.html +7 -7
- package/coverage/src/breakpoint/shared/index.html +45 -45
- package/coverage/src/breakpoint/shared/index.ts.html +5 -5
- package/coverage/src/breakpoint/shared/operations.ts.html +15 -15
- package/coverage/src/breakpoint/shared/socket.ts.html +85 -85
- package/coverage/src/breakpoint/shared/utils.ts.html +49 -49
- package/coverage/src/breakpoint/store/core.ts.html +100 -100
- package/coverage/src/breakpoint/store/dock.ts.html +46 -46
- package/coverage/src/breakpoint/store/index.html +33 -33
- package/coverage/src/breakpoint/store/index.ts.html +7 -7
- package/coverage/src/common/BaseNode.ts.html +350 -1187
- package/coverage/src/common/Command.ts.html +20 -20
- package/coverage/src/common/EventEmitter.ts.html +31 -49
- package/coverage/src/common/Messager.ts.html +28 -28
- package/coverage/src/common/asyncFuncMap.ts.html +7 -7
- package/coverage/src/common/index.html +55 -70
- package/coverage/src/common/index.ts.html +8 -11
- package/coverage/src/concepts/Abort__.ts.html +20 -56
- package/coverage/src/concepts/Anchor__.ts.html +51 -117
- package/coverage/src/concepts/AnonymousFunction__.ts.html +232 -343
- package/coverage/src/concepts/App__.ts.html +1283 -2681
- package/coverage/src/concepts/Argument__.ts.html +135 -135
- package/coverage/src/concepts/Assignee__.ts.html +91 -250
- package/coverage/src/concepts/AssignmentLine__.ts.html +28 -88
- package/coverage/src/concepts/Assignment__.ts.html +110 -206
- package/coverage/src/concepts/Attribute__.ts.html +50 -239
- package/coverage/src/concepts/AuthInterface__.ts.html +32 -26
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +188 -203
- package/coverage/src/concepts/AuthLogic__.ts.html +28 -43
- package/coverage/src/concepts/BackendVariable__.ts.html +132 -438
- package/coverage/src/concepts/Backend__.ts.html +57 -156
- package/coverage/src/concepts/BatchAssignment__.ts.html +270 -420
- package/coverage/src/concepts/BinaryExpression__.ts.html +158 -266
- package/coverage/src/concepts/BindAttribute__.ts.html +204 -399
- package/coverage/src/concepts/BindDirective__.ts.html +73 -217
- package/coverage/src/concepts/BindEvent__.ts.html +161 -293
- package/coverage/src/concepts/BindStyle__.ts.html +58 -139
- package/coverage/src/concepts/BooleanLiteral__.ts.html +33 -63
- package/coverage/src/concepts/CallAuthInterface__.ts.html +95 -236
- package/coverage/src/concepts/CallConnector__.ts.html +69 -108
- package/coverage/src/concepts/CallFunction__.ts.html +234 -399
- package/coverage/src/concepts/CallInterface__.ts.html +145 -241
- package/coverage/src/concepts/CallLogic__.ts.html +525 -633
- package/coverage/src/concepts/CallQueryComponent__.ts.html +232 -385
- package/coverage/src/concepts/Comment__.ts.html +27 -63
- package/coverage/src/concepts/CompletionProperty__.ts.html +51 -72
- package/coverage/src/concepts/ConfigGroup__.ts.html +51 -99
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +34 -40
- package/coverage/src/concepts/ConfigProperty__.ts.html +78 -150
- package/coverage/src/concepts/Configuration__.ts.html +48 -99
- package/coverage/src/concepts/Connection__.ts.html +64 -154
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +32 -35
- package/coverage/src/concepts/Connector__.ts.html +228 -3117
- package/coverage/src/concepts/Constant__.ts.html +74 -374
- package/coverage/src/concepts/DataSource__.ts.html +104 -173
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +21 -27
- package/coverage/src/concepts/Destination__.ts.html +121 -190
- package/coverage/src/concepts/End__.ts.html +40 -76
- package/coverage/src/concepts/EntityIndex__.ts.html +44 -80
- package/coverage/src/concepts/EntityProperty__.ts.html +158 -440
- package/coverage/src/concepts/Entity__.ts.html +161 -326
- package/coverage/src/concepts/EnumItem__.ts.html +33 -66
- package/coverage/src/concepts/Enum__.ts.html +64 -139
- package/coverage/src/concepts/Event__.ts.html +51 -87
- package/coverage/src/concepts/ExternalDestination__.ts.html +60 -126
- package/coverage/src/concepts/ForEachStatement__.ts.html +152 -239
- package/coverage/src/concepts/FrontendLibrary__.ts.html +69 -153
- package/coverage/src/concepts/FrontendVariable__.ts.html +19 -76
- package/coverage/src/concepts/Frontend__.ts.html +161 -884
- package/coverage/src/concepts/Function__.ts.html +171 -396
- package/coverage/src/concepts/Identifier__.ts.html +100 -130
- package/coverage/src/concepts/IfStatement__.ts.html +110 -209
- package/coverage/src/concepts/Integration__.ts.html +57 -132
- package/coverage/src/concepts/InterfaceParam__.ts.html +76 -310
- package/coverage/src/concepts/Interface__.ts.html +183 -324
- package/coverage/src/concepts/JSBlock__.ts.html +26 -59
- package/coverage/src/concepts/JavaLogic__.ts.html +28 -58
- package/coverage/src/concepts/LogicItem__.ts.html +73 -151
- package/coverage/src/concepts/Logic__.ts.html +509 -965
- package/coverage/src/concepts/MatchCase__.ts.html +158 -281
- package/coverage/src/concepts/Match__.ts.html +121 -280
- package/coverage/src/concepts/MemberExpression__.ts.html +172 -256
- package/coverage/src/concepts/MicroApp__.ts.html +34 -25
- package/coverage/src/concepts/Module__.ts.html +1270 -1375
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +46 -94
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +48 -93
- package/coverage/src/concepts/Namespace__.ts.html +630 -1251
- package/coverage/src/concepts/NewComposite__.ts.html +341 -557
- package/coverage/src/concepts/NewList__.ts.html +111 -291
- package/coverage/src/concepts/NewMap__.ts.html +128 -332
- package/coverage/src/concepts/New__.ts.html +21 -57
- package/coverage/src/concepts/NullLiteral__.ts.html +23 -56
- package/coverage/src/concepts/NumericLiteral__.ts.html +51 -114
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +76 -211
- package/coverage/src/concepts/OverriddenLogic__.ts.html +394 -643
- package/coverage/src/concepts/Param__.ts.html +174 -315
- package/coverage/src/concepts/Point__.ts.html +21 -27
- package/coverage/src/concepts/ProcessComponent__.ts.html +67 -145
- package/coverage/src/concepts/ProcessElement__.ts.html +281 -854
- package/coverage/src/concepts/ProcessOutcome__.ts.html +25 -100
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +26 -113
- package/coverage/src/concepts/Process__.ts.html +201 -552
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +35 -89
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +35 -62
- package/coverage/src/concepts/QueryFromExpression__.ts.html +47 -119
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +37 -97
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +69 -153
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +36 -105
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +36 -108
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +50 -101
- package/coverage/src/concepts/Rect__.ts.html +25 -25
- package/coverage/src/concepts/Return__.ts.html +131 -368
- package/coverage/src/concepts/Role__.ts.html +37 -67
- package/coverage/src/concepts/SelectMembers__.ts.html +57 -141
- package/coverage/src/concepts/Slot__.ts.html +40 -64
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +62 -122
- package/coverage/src/concepts/Start__.ts.html +25 -58
- package/coverage/src/concepts/StringInterpolation__.ts.html +77 -185
- package/coverage/src/concepts/StringLiteral__.ts.html +47 -158
- package/coverage/src/concepts/StructureProperty__.ts.html +78 -306
- package/coverage/src/concepts/Structure__.ts.html +90 -285
- package/coverage/src/concepts/SwitchCase__.ts.html +66 -141
- package/coverage/src/concepts/SwitchStatement__.ts.html +58 -136
- package/coverage/src/concepts/Theme__.ts.html +24 -36
- package/coverage/src/concepts/Transactional__.ts.html +33 -36
- package/coverage/src/concepts/TriggerEvent__.ts.html +480 -63
- package/coverage/src/concepts/TriggerLauncher__.ts.html +43 -73
- package/coverage/src/concepts/TypeAnnotation__.ts.html +231 -564
- package/coverage/src/concepts/TypeParam__.ts.html +23 -59
- package/coverage/src/concepts/UnaryExpression__.ts.html +47 -131
- package/coverage/src/concepts/Unparsed__.ts.html +29 -59
- package/coverage/src/concepts/UseComponent__.ts.html +21 -27
- package/coverage/src/concepts/ValidationRule__.ts.html +96 -234
- package/coverage/src/concepts/Variable__.ts.html +132 -456
- package/coverage/src/concepts/ViewBlock__.ts.html +23 -26
- package/coverage/src/concepts/ViewComponent__.ts.html +157 -394
- package/coverage/src/concepts/ViewElement__.ts.html +514 -910
- package/coverage/src/concepts/View__.ts.html +425 -1271
- package/coverage/src/concepts/WhileStatement__.ts.html +79 -175
- package/coverage/src/concepts/basics/stdlib/index.html +85 -85
- package/coverage/src/concepts/basics/stdlib/index.ts.html +29 -167
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +152 -206
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +139 -172
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +47 -92
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +31 -130
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +43 -61
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +23 -53
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +167 -203
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +45 -78
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +51 -81
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +66 -69
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +606 -654
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +993 -1050
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +2131 -2236
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +563 -596
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +40 -28
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +9 -9
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +7 -7
- package/coverage/src/concepts/basics/types/index.html +16 -16
- package/coverage/src/concepts/basics/types/index.ts.html +18 -18
- package/coverage/src/concepts/index.html +1215 -1365
- package/coverage/src/concepts/index.ts.html +7 -31
- package/coverage/src/concepts/index__.ts.html +8 -38
- package/coverage/src/config.ts.html +20 -2
- package/coverage/src/decorators/index.html +32 -32
- package/coverage/src/decorators/index.ts.html +93 -108
- package/coverage/src/decorators/promise.ts.html +26 -26
- package/coverage/src/eventBus.ts.html +7 -7
- package/coverage/src/generator/compileComponent.ts.html +10 -10
- package/coverage/src/generator/genBundleFiles.ts.html +45 -273
- package/coverage/src/generator/genHash.ts.html +8 -8
- package/coverage/src/generator/genMetaData.ts.html +49 -280
- package/coverage/src/generator/genReleaseBody.ts.html +98 -113
- package/coverage/src/generator/icestark.ts.html +8 -14
- package/coverage/src/generator/index.html +87 -87
- package/coverage/src/generator/index.ts.html +6 -6
- package/coverage/src/generator/microApp.ts.html +10 -10
- package/coverage/src/generator/permission.ts.html +80 -152
- package/coverage/src/generator/qiankun.ts.html +7 -13
- package/coverage/src/generator/styleReplacer.ts.html +17 -17
- package/coverage/src/index.html +10 -40
- package/coverage/src/index.ts.html +12 -15
- package/coverage/src/manager/diagnostic.ts.html +31 -28
- package/coverage/src/manager/index.html +27 -27
- package/coverage/src/manager/stepRecorder.ts.html +17 -17
- package/coverage/src/natural/genNaturalTS.ts.html +30 -30
- package/coverage/src/natural/index.html +41 -41
- package/coverage/src/natural/index.ts.html +6 -6
- package/coverage/src/natural/naslStdlibMap.ts.html +10 -10
- package/coverage/src/natural/transformTSCode.ts.html +137 -197
- package/coverage/src/sentry/index.html +19 -19
- package/coverage/src/sentry/index.ts.html +43 -49
- package/coverage/src/server/createUiTs.ts.html +37 -46
- package/coverage/src/server/entity2LogicNamespace.ts.html +21 -21
- package/coverage/src/server/event.js.html +7 -7
- package/coverage/src/server/extendBaseNode.ts.html +90 -132
- package/coverage/src/server/formatTsUtils.ts.html +105 -108
- package/coverage/src/server/getConnector.ts.html +24 -96
- package/coverage/src/server/getExtensionModules.ts.html +14 -14
- package/coverage/src/server/getFunctions.ts.html +15 -15
- package/coverage/src/server/getInterfaces.ts.html +18 -18
- package/coverage/src/server/getLogging.ts.html +11 -11
- package/coverage/src/server/getLogics.ts.html +74 -122
- package/coverage/src/server/getMemberIdentifier.ts.html +163 -358
- package/coverage/src/server/getProcessComponents.ts.html +13 -13
- package/coverage/src/server/getProcesses.ts.html +86 -236
- package/coverage/src/server/getValidates.ts.html +14 -17
- package/coverage/src/server/index.html +181 -181
- package/coverage/src/server/index.ts.html +8 -11
- package/coverage/src/server/naslServer.ts.html +1270 -1933
- package/coverage/src/server/naslStdlibMap.ts.html +10 -10
- package/coverage/src/server/process2LogicNamespace.ts.html +20 -20
- package/coverage/src/server/translator.ts.html +89 -134
- package/coverage/src/service/creator/add.configs.js.html +17 -35
- package/coverage/src/service/creator/errHandles.js.html +45 -36
- package/coverage/src/service/creator/index.html +35 -35
- package/coverage/src/service/creator/index.js.html +14 -14
- package/coverage/src/service/datasource/api.js.html +7 -7
- package/coverage/src/service/datasource/index.html +12 -12
- package/coverage/src/service/datasource/index.js.html +5 -5
- package/coverage/src/service/logic/api.js.html +7 -7
- package/coverage/src/service/logic/index.html +12 -12
- package/coverage/src/service/logic/index.js.html +5 -5
- package/coverage/src/service/storage/api.js.html +7 -7
- package/coverage/src/service/storage/index.html +56 -56
- package/coverage/src/service/storage/index.ts.html +5 -5
- package/coverage/src/service/storage/init.ts.html +624 -1758
- package/coverage/src/service/storage/jsoner.ts.html +23 -86
- package/coverage/src/service/storage/map.ts.html +21 -21
- package/coverage/src/service/storage/service.ts.html +14 -14
- package/coverage/src/service/storage/storagePoint.ts.html +9 -9
- package/coverage/src/templator/genCallComponentLogic.ts.html +12 -12
- package/coverage/src/templator/genCreateBlock.ts.html +94 -154
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +90 -90
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +150 -132
- package/coverage/src/templator/genEditTableBlock.ts.html +41 -104
- package/coverage/src/templator/genEnumSelectBlock.ts.html +12 -93
- package/coverage/src/templator/genGetBlock.ts.html +18 -18
- package/coverage/src/templator/genGridViewBlock.ts.html +35 -35
- package/coverage/src/templator/genListViewBlock.ts.html +15 -15
- package/coverage/src/templator/genQueryComponent.ts.html +35 -35
- package/coverage/src/templator/genSelectBlock.ts.html +20 -101
- package/coverage/src/templator/genTableBlock.ts.html +33 -96
- package/coverage/src/templator/genUpdateBlock.ts.html +78 -162
- package/coverage/src/templator/index.html +147 -147
- package/coverage/src/templator/index.ts.html +12 -12
- package/coverage/src/templator/utils.ts.html +32 -95
- package/coverage/src/translator/constant.ts.html +7 -7
- package/coverage/src/translator/index.html +28 -43
- package/coverage/src/translator/index.ts.html +6 -6
- package/coverage/src/translator/utils.ts.html +71 -452
- package/coverage/src/utils/cookie.ts.html +19 -19
- package/coverage/src/utils/env.ts.html +2 -2
- package/coverage/src/utils/index.html +37 -82
- package/coverage/src/utils/index.ts.html +798 -66
- package/coverage/src/utils/logger.ts.html +1 -1
- package/coverage/src/utils/sortTsString.ts.html +18 -33
- package/coverage/src/utils/string.ts.html +50 -8
- package/coverage/src/utils/time-slicing/controller.ts.html +8 -8
- package/coverage/src/utils/time-slicing/index.html +64 -79
- package/coverage/src/utils/time-slicing/index.ts.html +8 -8
- package/coverage/src/utils/time-slicing/page-state.ts.html +1 -1
- package/coverage/src/utils/time-slicing/performance.ts.html +4 -4
- package/coverage/src/utils/time-slicing/runner.ts.html +51 -51
- package/coverage/src/utils/time-slicing/tool.ts.html +29 -29
- package/coverage/src/utils/time-slicing/utils.ts.html +16 -16
- package/coverage/src/utils/time-slicing/wrapper.ts.html +50 -50
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +27 -27
- package/coverage/src/utils/types.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/BaseNode.js +5 -3
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/ComponentAPI.d.ts +9 -0
- package/out/concepts/AuthLogicForCallInterface__.js +21 -6
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +25 -9
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +21 -6
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallInterface__.js +14 -4
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +1 -0
- package/out/concepts/CallLogic__.js +25 -10
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/EnumItem__.js +2 -2
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Logic__.js +22 -7
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +19 -13
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +21 -6
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ViewElement__.js +35 -20
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +32 -14
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.js +78 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +40 -40
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/generator/genBundleFiles.js +1 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/release-body/utils.js +1 -1
- package/out/natural/getContext/index.js +7 -4
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/tools.js +9 -3
- package/out/natural/tools.js.map +1 -1
- package/out/natural/transformTS2UI.js +20 -14
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/server/getMemberIdentifier.js +11 -17
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.js +8 -2
- package/out/server/naslServer.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.processV2.ts +19 -0
- package/sandbox/stdlib/nasl.ui.ts +8 -8
- package/src/common/BaseNode.ts +5 -3
- package/src/common/ComponentAPI.ts +7 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +23 -6
- package/src/concepts/BusinessComponent__.ts +27 -9
- package/src/concepts/BusinessLogic__.ts +23 -6
- package/src/concepts/CallInterface__.ts +12 -5
- package/src/concepts/CallLogic__.ts +31 -10
- package/src/concepts/EnumItem__.ts +2 -2
- package/src/concepts/Logic__.ts +27 -10
- package/src/concepts/MemberExpression__.ts +20 -13
- package/src/concepts/OverriddenLogic__.ts +23 -6
- package/src/concepts/ViewElement__.ts +41 -21
- package/src/concepts/View__.ts +35 -14
- package/src/concepts/basics/stdlib/nasl.processV2.ts +79 -0
- package/src/concepts/basics/stdlib/nasl.ui.ts +40 -40
- package/src/generator/genBundleFiles.ts +1 -1
- package/src/generator/release-body/utils.ts +1 -1
- package/src/natural/getContext/index.ts +8 -5
- package/src/natural/tools.ts +9 -3
- package/src/natural/transformTS2UI.ts +19 -14
- package/src/server/getMemberIdentifier.ts +14 -14
- package/src/server/naslServer.ts +8 -2
- package/test/concepts/member-expression/__snapshots__/toJS.spec.ts.snap +1 -1
- package/test/concepts/member-expression/__snapshots__/toVue.spec.ts.snap +1 -1
- package/.nyc_output/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/.nyc_output/processinfo/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/AbstractInterface__.ts.html +0 -277
- package/coverage/src/concepts/Block__.ts.html +0 -907
- package/coverage/src/concepts/CountersignPolicy__.ts.html +0 -319
- package/coverage/src/concepts/DefaultValue__.ts.html +0 -1024
- package/coverage/src/concepts/I18nInfo__.ts.html +0 -424
- package/coverage/src/concepts/ImportedInterface__.ts.html +0 -262
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2035
- package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +0 -301
- package/coverage/src/concepts/SequentialPolicy__.ts.html +0 -265
- package/coverage/src/concepts/StaticString__.ts.html +0 -397
- package/coverage/src/concepts/basics/constants.ts.html +0 -88
- package/coverage/src/concepts/basics/index.html +0 -116
- package/coverage/src/concepts/utils/asserts.ts.html +0 -28675
- package/coverage/src/concepts/utils/index.html +0 -131
- package/coverage/src/concepts/utils/types.ts.html +0 -2092
- package/coverage/src/translator/types.ts.html +0 -256
- package/coverage/src/utils/i18nInfo.ts.html +0 -166
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- package/dist/README.md +0 -97
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -397
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -91
- package/dist/src/automate/engine/index.d.ts +0 -4
- package/dist/src/automate/engine/operators.d.ts +0 -26
- package/dist/src/automate/engine/uniqueName.d.ts +0 -12
- package/dist/src/automate/engine/utils.d.ts +0 -25
- package/dist/src/automate/engine/viewCache.d.ts +0 -19
- package/dist/src/automate/template/myProcess.d.ts +0 -10
- package/dist/src/automate/upgrader/2.12.d.ts +0 -7
- package/dist/src/automate/upgrader/2.14-components.d.ts +0 -1115
- package/dist/src/automate/upgrader/2.14.d.ts +0 -10
- package/dist/src/automate/upgrader/2.14.old.d.ts +0 -1
- package/dist/src/automate/upgrader/2.16.d.ts +0 -10
- package/dist/src/automate/upgrader/2.17.d.ts +0 -21
- package/dist/src/automate/upgrader/2.18.d.ts +0 -10
- package/dist/src/automate/upgrader/2.20.d.ts +0 -17
- package/dist/src/bak/translator.d.ts +0 -1
- package/dist/src/breakpoint/generator/AfterStartNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +0 -7
- package/dist/src/breakpoint/generator/BreakpointNode.d.ts +0 -20
- package/dist/src/breakpoint/generator/CallbackNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/FragmentNode.d.ts +0 -4
- package/dist/src/breakpoint/generator/index.d.ts +0 -4
- package/dist/src/breakpoint/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/constants.d.ts +0 -37
- package/dist/src/breakpoint/shared/index.d.ts +0 -3
- package/dist/src/breakpoint/shared/operations.d.ts +0 -10
- package/dist/src/breakpoint/shared/socket.d.ts +0 -48
- package/dist/src/breakpoint/shared/utils.d.ts +0 -27
- package/dist/src/breakpoint/store/core.d.ts +0 -80
- package/dist/src/breakpoint/store/dock.d.ts +0 -1
- package/dist/src/breakpoint/store/index.d.ts +0 -2
- package/dist/src/common/BaseNode.d.ts +0 -384
- package/dist/src/common/Command.d.ts +0 -21
- package/dist/src/common/ComponentAPI.d.ts +0 -112
- package/dist/src/common/EventEmitter.d.ts +0 -61
- package/dist/src/common/Messager.d.ts +0 -91
- package/dist/src/common/asyncFuncMap.d.ts +0 -2
- package/dist/src/common/index.d.ts +0 -4
- package/dist/src/common/utils.d.ts +0 -2
- package/dist/src/concepts/Abort__.d.ts +0 -31
- package/dist/src/concepts/AbstractInterface__.d.ts +0 -25
- package/dist/src/concepts/Anchor__.d.ts +0 -42
- package/dist/src/concepts/AnonymousFunction__.d.ts +0 -144
- package/dist/src/concepts/App__.d.ts +0 -1711
- package/dist/src/concepts/Argument__.d.ts +0 -64
- package/dist/src/concepts/Assignee__.d.ts +0 -294
- package/dist/src/concepts/AssignmentLine__.d.ts +0 -43
- package/dist/src/concepts/Assignment__.d.ts +0 -57
- package/dist/src/concepts/Attribute__.d.ts +0 -75
- package/dist/src/concepts/AuthInterface__.d.ts +0 -38
- package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +0 -145
- package/dist/src/concepts/AuthLogic__.d.ts +0 -69
- package/dist/src/concepts/BackendVariable__.d.ts +0 -118
- package/dist/src/concepts/Backend__.d.ts +0 -127
- package/dist/src/concepts/BaseSetter__.d.ts +0 -25
- package/dist/src/concepts/BatchAssignment__.d.ts +0 -244
- package/dist/src/concepts/BinaryExpression__.d.ts +0 -61
- package/dist/src/concepts/BindAttribute__.d.ts +0 -284
- package/dist/src/concepts/BindDirective__.d.ts +0 -156
- package/dist/src/concepts/BindEvent__.d.ts +0 -246
- package/dist/src/concepts/BindStyle__.d.ts +0 -127
- package/dist/src/concepts/Block__.d.ts +0 -88
- package/dist/src/concepts/BooleanLiteral__.d.ts +0 -44
- package/dist/src/concepts/BusinessComponent__.d.ts +0 -640
- package/dist/src/concepts/BusinessLogic__.d.ts +0 -44
- package/dist/src/concepts/CallAuthInterface__.d.ts +0 -132
- package/dist/src/concepts/CallConnector__.d.ts +0 -55
- package/dist/src/concepts/CallEvent__.d.ts +0 -100
- package/dist/src/concepts/CallFunction__.d.ts +0 -171
- package/dist/src/concepts/CallInterface__.d.ts +0 -143
- package/dist/src/concepts/CallLogic__.d.ts +0 -224
- package/dist/src/concepts/CallQueryComponent__.d.ts +0 -383
- package/dist/src/concepts/CapsulesSetter__.d.ts +0 -109
- package/dist/src/concepts/Comment__.d.ts +0 -41
- package/dist/src/concepts/CompletionProperty__.d.ts +0 -87
- package/dist/src/concepts/ConfigGroup__.d.ts +0 -121
- package/dist/src/concepts/ConfigPropertyValue__.d.ts +0 -42
- package/dist/src/concepts/ConfigProperty__.d.ts +0 -147
- package/dist/src/concepts/Configuration__.d.ts +0 -120
- package/dist/src/concepts/Connection__.d.ts +0 -159
- package/dist/src/concepts/ConnectorLogic__.d.ts +0 -33
- package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +0 -44
- package/dist/src/concepts/ConnectorTrigger__.d.ts +0 -76
- package/dist/src/concepts/Connector__.d.ts +0 -532
- package/dist/src/concepts/Constant__.d.ts +0 -94
- package/dist/src/concepts/CountersignPolicy__.d.ts +0 -29
- package/dist/src/concepts/DataSource__.d.ts +0 -163
- package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +0 -35
- package/dist/src/concepts/DefaultValue__.d.ts +0 -94
- package/dist/src/concepts/Destination__.d.ts +0 -150
- package/dist/src/concepts/End__.d.ts +0 -30
- package/dist/src/concepts/EntityIndex__.d.ts +0 -93
- package/dist/src/concepts/EntityProperty__.d.ts +0 -255
- package/dist/src/concepts/Entity__.d.ts +0 -332
- package/dist/src/concepts/EnumItem__.d.ts +0 -83
- package/dist/src/concepts/EnumSelectSetter__.d.ts +0 -109
- package/dist/src/concepts/Enum__.d.ts +0 -133
- package/dist/src/concepts/EventDeclaration__.d.ts +0 -41
- package/dist/src/concepts/Event__.d.ts +0 -149
- package/dist/src/concepts/ExternalDestination__.d.ts +0 -63
- package/dist/src/concepts/ForEachStatement__.d.ts +0 -126
- package/dist/src/concepts/FrontendLibrary__.d.ts +0 -208
- package/dist/src/concepts/FrontendType__.d.ts +0 -304
- package/dist/src/concepts/FrontendVariable__.d.ts +0 -41
- package/dist/src/concepts/Frontend__.d.ts +0 -389
- package/dist/src/concepts/Function__.d.ts +0 -399
- package/dist/src/concepts/I18nInfo__.d.ts +0 -47
- package/dist/src/concepts/IconSetter__.d.ts +0 -29
- package/dist/src/concepts/Identifier__.d.ts +0 -66
- package/dist/src/concepts/IfStatement__.d.ts +0 -155
- package/dist/src/concepts/ImageSetter__.d.ts +0 -25
- package/dist/src/concepts/ImportedInterface__.d.ts +0 -29
- package/dist/src/concepts/InputSetter__.d.ts +0 -29
- package/dist/src/concepts/Integration__.d.ts +0 -127
- package/dist/src/concepts/InterfaceParam__.d.ts +0 -119
- package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +0 -34
- package/dist/src/concepts/Interface__.d.ts +0 -323
- package/dist/src/concepts/JSBlock__.d.ts +0 -38
- package/dist/src/concepts/JavaLogic__.d.ts +0 -50
- package/dist/src/concepts/LogicDeclaration__.d.ts +0 -289
- package/dist/src/concepts/LogicItem__.d.ts +0 -171
- package/dist/src/concepts/Logic__.d.ts +0 -632
- package/dist/src/concepts/MatchCase__.d.ts +0 -264
- package/dist/src/concepts/Match__.d.ts +0 -122
- package/dist/src/concepts/MemberExpression__.d.ts +0 -64
- package/dist/src/concepts/MetadataType__.d.ts +0 -220
- package/dist/src/concepts/MicroApp__.d.ts +0 -53
- package/dist/src/concepts/Module__.d.ts +0 -1142
- package/dist/src/concepts/MsgTriggerEvent__.d.ts +0 -138
- package/dist/src/concepts/MsgTriggerLauncher__.d.ts +0 -119
- package/dist/src/concepts/MultiApprovalPolicy__.d.ts +0 -25
- package/dist/src/concepts/Namespace__.d.ts +0 -1060
- package/dist/src/concepts/NewComposite__.d.ts +0 -346
- package/dist/src/concepts/NewList__.d.ts +0 -135
- package/dist/src/concepts/NewMap__.d.ts +0 -226
- package/dist/src/concepts/New__.d.ts +0 -30
- package/dist/src/concepts/NullLiteral__.d.ts +0 -36
- package/dist/src/concepts/NumberInputSetter__.d.ts +0 -45
- package/dist/src/concepts/NumericLiteral__.d.ts +0 -53
- package/dist/src/concepts/OqlQueryComponent__.d.ts +0 -67
- package/dist/src/concepts/OverriddenLogic__.d.ts +0 -615
- package/dist/src/concepts/Paginate__.d.ts +0 -59
- package/dist/src/concepts/ParamWithGroup__.d.ts +0 -44
- package/dist/src/concepts/Param__.d.ts +0 -140
- package/dist/src/concepts/Point__.d.ts +0 -33
- package/dist/src/concepts/ProcessComponent__.d.ts +0 -214
- package/dist/src/concepts/ProcessElement__.d.ts +0 -620
- package/dist/src/concepts/ProcessOutcome__.d.ts +0 -35
- package/dist/src/concepts/ProcessOutcomes__.d.ts +0 -35
- package/dist/src/concepts/Process__.d.ts +0 -605
- package/dist/src/concepts/PropDeclaration__.d.ts +0 -99
- package/dist/src/concepts/PropertySelectSetter__.d.ts +0 -25
- package/dist/src/concepts/QueryAggregateExpression__.d.ts +0 -50
- package/dist/src/concepts/QueryFieldExpression__.d.ts +0 -66
- package/dist/src/concepts/QueryFromExpression__.d.ts +0 -107
- package/dist/src/concepts/QueryGroupByExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryJoinExpression__.d.ts +0 -194
- package/dist/src/concepts/QueryLimitExpression__.d.ts +0 -46
- package/dist/src/concepts/QueryOrderByExpression__.d.ts +0 -57
- package/dist/src/concepts/QuerySelectExpression__.d.ts +0 -213
- package/dist/src/concepts/Rect__.d.ts +0 -41
- package/dist/src/concepts/Return__.d.ts +0 -120
- package/dist/src/concepts/Role__.d.ts +0 -58
- package/dist/src/concepts/SelectMembers__.d.ts +0 -134
- package/dist/src/concepts/SequentialPolicy__.d.ts +0 -25
- package/dist/src/concepts/SetterOption__.d.ts +0 -49
- package/dist/src/concepts/SlotDeclaration__.d.ts +0 -213
- package/dist/src/concepts/Slot__.d.ts +0 -53
- package/dist/src/concepts/SqlQueryComponent__.d.ts +0 -63
- package/dist/src/concepts/Start__.d.ts +0 -30
- package/dist/src/concepts/StaticString__.d.ts +0 -49
- package/dist/src/concepts/StringInterpolation__.d.ts +0 -122
- package/dist/src/concepts/StringLiteral__.d.ts +0 -51
- package/dist/src/concepts/StructureProperty__.d.ts +0 -119
- package/dist/src/concepts/Structure__.d.ts +0 -243
- package/dist/src/concepts/SwitchCase__.d.ts +0 -91
- package/dist/src/concepts/SwitchSetter__.d.ts +0 -25
- package/dist/src/concepts/SwitchStatement__.d.ts +0 -90
- package/dist/src/concepts/ThemeVariable__.d.ts +0 -29
- package/dist/src/concepts/Theme__.d.ts +0 -39
- package/dist/src/concepts/Transactional__.d.ts +0 -85
- package/dist/src/concepts/TriggerEvent__.d.ts +0 -42
- package/dist/src/concepts/TriggerLauncher__.d.ts +0 -76
- package/dist/src/concepts/TypeAnnotation__.d.ts +0 -303
- package/dist/src/concepts/TypeParam__.d.ts +0 -34
- package/dist/src/concepts/UnaryExpression__.d.ts +0 -45
- package/dist/src/concepts/Unparsed__.d.ts +0 -41
- package/dist/src/concepts/UseComponent__.d.ts +0 -33
- package/dist/src/concepts/ValidationRule__.d.ts +0 -133
- package/dist/src/concepts/Variable__.d.ts +0 -137
- package/dist/src/concepts/ViewBlockWithImage__.d.ts +0 -33
- package/dist/src/concepts/ViewBlock__.d.ts +0 -37
- package/dist/src/concepts/ViewComponentDeclaration__.d.ts +0 -721
- package/dist/src/concepts/ViewElement__.d.ts +0 -652
- package/dist/src/concepts/View__.d.ts +0 -728
- package/dist/src/concepts/WhileStatement__.d.ts +0 -94
- package/dist/src/concepts/basics/constants.d.ts +0 -1
- package/dist/src/concepts/basics/stdlib/index.d.ts +0 -16
- package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +0 -7
- package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +0 -9
- package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +0 -6
- package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +0 -5
- package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -4
- package/dist/src/concepts/basics/stdlib/timeZone.d.ts +0 -5
- package/dist/src/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/dist/src/concepts/basics/types/index.d.ts +0 -17
- package/dist/src/concepts/index.d.ts +0 -7
- package/dist/src/concepts/index__.d.ts +0 -156
- package/dist/src/concepts/utils/asserts.d.ts +0 -7825
- package/dist/src/concepts/utils/quick-info.d.ts +0 -13
- package/dist/src/concepts/utils/types.d.ts +0 -510
- package/dist/src/config.d.ts +0 -52
- package/dist/src/decorators/index.d.ts +0 -67
- package/dist/src/decorators/promise.d.ts +0 -7
- package/dist/src/enums/KEYWORDS.d.ts +0 -6
- package/dist/src/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/dist/src/eventBus.d.ts +0 -3
- package/dist/src/generator/compileComponent.d.ts +0 -11
- package/dist/src/generator/genBundleFiles.d.ts +0 -37
- package/dist/src/generator/genHash.d.ts +0 -7
- package/dist/src/generator/genMetaData.d.ts +0 -31
- package/dist/src/generator/icestark.d.ts +0 -2
- package/dist/src/generator/index.d.ts +0 -7
- package/dist/src/generator/microApp.d.ts +0 -2
- package/dist/src/generator/permission.d.ts +0 -14
- package/dist/src/generator/qiankun.d.ts +0 -2
- package/dist/src/generator/release-body/body.d.ts +0 -42
- package/dist/src/generator/release-body/data.d.ts +0 -45
- package/dist/src/generator/release-body/index.d.ts +0 -2
- package/dist/src/generator/release-body/internal.d.ts +0 -622
- package/dist/src/generator/release-body/types.d.ts +0 -57
- package/dist/src/generator/release-body/utils.d.ts +0 -418
- package/dist/src/generator/release-body/validation.d.ts +0 -3
- package/dist/src/generator/styleReplacer.d.ts +0 -3
- package/dist/src/index.d.ts +0 -14
- package/dist/src/manager/diagnostic.d.ts +0 -39
- package/dist/src/manager/stepRecorder.d.ts +0 -20
- package/dist/src/natural/componentData.d.ts +0 -31
- package/dist/src/natural/genNaturalTS.d.ts +0 -241
- package/dist/src/natural/index.d.ts +0 -6
- package/dist/src/natural/naslStdlibMap.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeClaims.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +0 -1
- package/dist/src/natural/prompt/analyzeTasks.d.ts +0 -1
- package/dist/src/natural/prompt/executeClaims.d.ts +0 -1
- package/dist/src/natural/transformTSCode.d.ts +0 -7
- package/dist/src/sentry/index.d.ts +0 -34
- package/dist/src/server/createUiTs.d.ts +0 -17
- package/dist/src/server/entity2LogicNamespace.d.ts +0 -10
- package/dist/src/server/event.d.ts +0 -30
- package/dist/src/server/extendBaseNode.d.ts +0 -1
- package/dist/src/server/formatTsUtils.d.ts +0 -36
- package/dist/src/server/getConnector.d.ts +0 -15
- package/dist/src/server/getExtensionModules.d.ts +0 -3
- package/dist/src/server/getFunctions.d.ts +0 -3
- package/dist/src/server/getInterfaces.d.ts +0 -2
- package/dist/src/server/getLogging.d.ts +0 -1
- package/dist/src/server/getLogics.d.ts +0 -5
- package/dist/src/server/getMemberIdentifier.d.ts +0 -17
- package/dist/src/server/getProcessComponents.d.ts +0 -2
- package/dist/src/server/getProcesses.d.ts +0 -33
- package/dist/src/server/getScope.d.ts +0 -13
- package/dist/src/server/getValidates.d.ts +0 -3
- package/dist/src/server/index.d.ts +0 -5
- package/dist/src/server/naslServer.d.ts +0 -391
- package/dist/src/server/naslStdlibMap.d.ts +0 -2
- package/dist/src/server/process2LogicNamespace.d.ts +0 -26
- package/dist/src/server/translator.d.ts +0 -26
- package/dist/src/service/creator/add.configs.d.ts +0 -1
- package/dist/src/service/creator/errHandles.d.ts +0 -18
- package/dist/src/service/creator/index.d.ts +0 -1
- package/dist/src/service/datasource/api.d.ts +0 -12
- package/dist/src/service/datasource/index.d.ts +0 -2
- package/dist/src/service/logic/api.d.ts +0 -9
- package/dist/src/service/logic/checktypeSocket.d.ts +0 -5
- package/dist/src/service/logic/index.d.ts +0 -2
- package/dist/src/service/storage/api.d.ts +0 -54
- package/dist/src/service/storage/index.d.ts +0 -2
- package/dist/src/service/storage/init.d.ts +0 -105
- package/dist/src/service/storage/jsoner.d.ts +0 -36
- package/dist/src/service/storage/map.d.ts +0 -4
- package/dist/src/service/storage/service.d.ts +0 -25
- package/dist/src/service/storage/storagePoint.d.ts +0 -17
- package/dist/src/service/video/BaseService.d.ts +0 -7
- package/dist/src/service/video/MainCallbackService.d.ts +0 -12
- package/dist/src/service/video/VideoTranscribe.d.ts +0 -15
- package/dist/src/service/video/publishService.d.ts +0 -1
- package/dist/src/templator/genCallComponentLogic.d.ts +0 -17
- package/dist/src/templator/genCreateBlock.d.ts +0 -10
- package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
- package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +0 -61
- package/dist/src/templator/genEditTableBlock.d.ts +0 -51
- package/dist/src/templator/genEnumSelectBlock.d.ts +0 -10
- package/dist/src/templator/genGetBlock.d.ts +0 -6
- package/dist/src/templator/genGridViewBlock.d.ts +0 -55
- package/dist/src/templator/genListViewBlock.d.ts +0 -19
- package/dist/src/templator/genQueryComponent.d.ts +0 -34
- package/dist/src/templator/genSelectBlock.d.ts +0 -45
- package/dist/src/templator/genTableBlock.d.ts +0 -55
- package/dist/src/templator/genUpdateBlock.d.ts +0 -6
- package/dist/src/templator/index.d.ts +0 -19
- package/dist/src/templator/utils.d.ts +0 -683
- package/dist/src/translator/constant.d.ts +0 -6
- package/dist/src/translator/index.d.ts +0 -3
- package/dist/src/translator/types.d.ts +0 -85
- package/dist/src/translator/utils.d.ts +0 -47
- package/dist/src/utils/cookie.d.ts +0 -9
- package/dist/src/utils/create.d.ts +0 -2
- package/dist/src/utils/env.d.ts +0 -2
- package/dist/src/utils/file.d.ts +0 -33
- package/dist/src/utils/i18nInfo.d.ts +0 -5
- package/dist/src/utils/index.d.ts +0 -72
- package/dist/src/utils/logger.d.ts +0 -8
- package/dist/src/utils/sortTsString.d.ts +0 -1
- package/dist/src/utils/string.d.ts +0 -64
- package/dist/src/utils/time-slicing/constant.d.ts +0 -35
- package/dist/src/utils/time-slicing/controller.d.ts +0 -53
- package/dist/src/utils/time-slicing/index.d.ts +0 -5
- package/dist/src/utils/time-slicing/page-state.d.ts +0 -2
- package/dist/src/utils/time-slicing/performance.d.ts +0 -11
- package/dist/src/utils/time-slicing/runner.d.ts +0 -12
- package/dist/src/utils/time-slicing/tool.d.ts +0 -24
- package/dist/src/utils/time-slicing/utils.d.ts +0 -62
- package/dist/src/utils/time-slicing/wrapper.d.ts +0 -18
- package/dist/src/utils/traverse.d.ts +0 -36
- package/dist/src/utils/types.d.ts +0 -13
- package/dist/src/utils/window.d.ts +0 -7
- package/dist/test/concepts/anonymous-function/constant.d.ts +0 -2
- package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/constant.d.ts +0 -2
- package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/constant.d.ts +0 -2
- package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/constant.d.ts +0 -2
- package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/binary-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/constant.d.ts +0 -2
- package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/constant.d.ts +0 -2
- package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-function/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/constant.d.ts +0 -2
- package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-interface/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/constant.d.ts +0 -2
- package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toUI.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/constant.d.ts +0 -2
- package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/entity/constant.d.ts +0 -2
- package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/constant.d.ts +0 -2
- package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/identifier/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/match/constant.d.ts +0 -2
- package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/match/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/constant.d.ts +0 -2
- package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/member-expression/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/constant.d.ts +0 -2
- package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-composite/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/constant.d.ts +0 -2
- package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-list/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/constant.d.ts +0 -2
- package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/new-map/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/constant.d.ts +0 -2
- package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/null-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/constant.d.ts +0 -2
- package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/constant.d.ts +0 -2
- package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/string-literal/toVue.spec.d.ts +0 -1
- package/dist/test/concepts/utils.d.ts +0 -13
- package/dist/test/concepts/validation-rule/constant.d.ts +0 -2
- package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/toJS.spec.d.ts +0 -1
- package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/constant.d.ts +0 -2
- package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +0 -1
- package/dist/test/concepts/view-element/toVue.spec.d.ts +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/time-slicing/runner.spec.d.ts +0 -1
- package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +0 -1
- package/dist/test/time-slicing/utils.d.ts +0 -1
- package/dist/test/time-slicing/wrapper.spec.d.ts +0 -1
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">9% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>30/333</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/146</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">1.61% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>1/62</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">7.57% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>24/317</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1234,92 +1234,7 @@
|
|
|
1234
1234
|
<a name='L1169'></a><a href='#L1169'>1169</a>
|
|
1235
1235
|
<a name='L1170'></a><a href='#L1170'>1170</a>
|
|
1236
1236
|
<a name='L1171'></a><a href='#L1171'>1171</a>
|
|
1237
|
-
<a name='L1172'></a><a href='#L1172'>1172</a>
|
|
1238
|
-
<a name='L1173'></a><a href='#L1173'>1173</a>
|
|
1239
|
-
<a name='L1174'></a><a href='#L1174'>1174</a>
|
|
1240
|
-
<a name='L1175'></a><a href='#L1175'>1175</a>
|
|
1241
|
-
<a name='L1176'></a><a href='#L1176'>1176</a>
|
|
1242
|
-
<a name='L1177'></a><a href='#L1177'>1177</a>
|
|
1243
|
-
<a name='L1178'></a><a href='#L1178'>1178</a>
|
|
1244
|
-
<a name='L1179'></a><a href='#L1179'>1179</a>
|
|
1245
|
-
<a name='L1180'></a><a href='#L1180'>1180</a>
|
|
1246
|
-
<a name='L1181'></a><a href='#L1181'>1181</a>
|
|
1247
|
-
<a name='L1182'></a><a href='#L1182'>1182</a>
|
|
1248
|
-
<a name='L1183'></a><a href='#L1183'>1183</a>
|
|
1249
|
-
<a name='L1184'></a><a href='#L1184'>1184</a>
|
|
1250
|
-
<a name='L1185'></a><a href='#L1185'>1185</a>
|
|
1251
|
-
<a name='L1186'></a><a href='#L1186'>1186</a>
|
|
1252
|
-
<a name='L1187'></a><a href='#L1187'>1187</a>
|
|
1253
|
-
<a name='L1188'></a><a href='#L1188'>1188</a>
|
|
1254
|
-
<a name='L1189'></a><a href='#L1189'>1189</a>
|
|
1255
|
-
<a name='L1190'></a><a href='#L1190'>1190</a>
|
|
1256
|
-
<a name='L1191'></a><a href='#L1191'>1191</a>
|
|
1257
|
-
<a name='L1192'></a><a href='#L1192'>1192</a>
|
|
1258
|
-
<a name='L1193'></a><a href='#L1193'>1193</a>
|
|
1259
|
-
<a name='L1194'></a><a href='#L1194'>1194</a>
|
|
1260
|
-
<a name='L1195'></a><a href='#L1195'>1195</a>
|
|
1261
|
-
<a name='L1196'></a><a href='#L1196'>1196</a>
|
|
1262
|
-
<a name='L1197'></a><a href='#L1197'>1197</a>
|
|
1263
|
-
<a name='L1198'></a><a href='#L1198'>1198</a>
|
|
1264
|
-
<a name='L1199'></a><a href='#L1199'>1199</a>
|
|
1265
|
-
<a name='L1200'></a><a href='#L1200'>1200</a>
|
|
1266
|
-
<a name='L1201'></a><a href='#L1201'>1201</a>
|
|
1267
|
-
<a name='L1202'></a><a href='#L1202'>1202</a>
|
|
1268
|
-
<a name='L1203'></a><a href='#L1203'>1203</a>
|
|
1269
|
-
<a name='L1204'></a><a href='#L1204'>1204</a>
|
|
1270
|
-
<a name='L1205'></a><a href='#L1205'>1205</a>
|
|
1271
|
-
<a name='L1206'></a><a href='#L1206'>1206</a>
|
|
1272
|
-
<a name='L1207'></a><a href='#L1207'>1207</a>
|
|
1273
|
-
<a name='L1208'></a><a href='#L1208'>1208</a>
|
|
1274
|
-
<a name='L1209'></a><a href='#L1209'>1209</a>
|
|
1275
|
-
<a name='L1210'></a><a href='#L1210'>1210</a>
|
|
1276
|
-
<a name='L1211'></a><a href='#L1211'>1211</a>
|
|
1277
|
-
<a name='L1212'></a><a href='#L1212'>1212</a>
|
|
1278
|
-
<a name='L1213'></a><a href='#L1213'>1213</a>
|
|
1279
|
-
<a name='L1214'></a><a href='#L1214'>1214</a>
|
|
1280
|
-
<a name='L1215'></a><a href='#L1215'>1215</a>
|
|
1281
|
-
<a name='L1216'></a><a href='#L1216'>1216</a>
|
|
1282
|
-
<a name='L1217'></a><a href='#L1217'>1217</a>
|
|
1283
|
-
<a name='L1218'></a><a href='#L1218'>1218</a>
|
|
1284
|
-
<a name='L1219'></a><a href='#L1219'>1219</a>
|
|
1285
|
-
<a name='L1220'></a><a href='#L1220'>1220</a>
|
|
1286
|
-
<a name='L1221'></a><a href='#L1221'>1221</a>
|
|
1287
|
-
<a name='L1222'></a><a href='#L1222'>1222</a>
|
|
1288
|
-
<a name='L1223'></a><a href='#L1223'>1223</a>
|
|
1289
|
-
<a name='L1224'></a><a href='#L1224'>1224</a>
|
|
1290
|
-
<a name='L1225'></a><a href='#L1225'>1225</a>
|
|
1291
|
-
<a name='L1226'></a><a href='#L1226'>1226</a>
|
|
1292
|
-
<a name='L1227'></a><a href='#L1227'>1227</a>
|
|
1293
|
-
<a name='L1228'></a><a href='#L1228'>1228</a>
|
|
1294
|
-
<a name='L1229'></a><a href='#L1229'>1229</a>
|
|
1295
|
-
<a name='L1230'></a><a href='#L1230'>1230</a>
|
|
1296
|
-
<a name='L1231'></a><a href='#L1231'>1231</a>
|
|
1297
|
-
<a name='L1232'></a><a href='#L1232'>1232</a>
|
|
1298
|
-
<a name='L1233'></a><a href='#L1233'>1233</a>
|
|
1299
|
-
<a name='L1234'></a><a href='#L1234'>1234</a>
|
|
1300
|
-
<a name='L1235'></a><a href='#L1235'>1235</a>
|
|
1301
|
-
<a name='L1236'></a><a href='#L1236'>1236</a>
|
|
1302
|
-
<a name='L1237'></a><a href='#L1237'>1237</a>
|
|
1303
|
-
<a name='L1238'></a><a href='#L1238'>1238</a>
|
|
1304
|
-
<a name='L1239'></a><a href='#L1239'>1239</a>
|
|
1305
|
-
<a name='L1240'></a><a href='#L1240'>1240</a>
|
|
1306
|
-
<a name='L1241'></a><a href='#L1241'>1241</a>
|
|
1307
|
-
<a name='L1242'></a><a href='#L1242'>1242</a>
|
|
1308
|
-
<a name='L1243'></a><a href='#L1243'>1243</a>
|
|
1309
|
-
<a name='L1244'></a><a href='#L1244'>1244</a>
|
|
1310
|
-
<a name='L1245'></a><a href='#L1245'>1245</a>
|
|
1311
|
-
<a name='L1246'></a><a href='#L1246'>1246</a>
|
|
1312
|
-
<a name='L1247'></a><a href='#L1247'>1247</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1339x</span>
|
|
1313
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1314
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1315
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1316
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1317
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1318
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1319
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1320
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1321
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1322
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1237
|
+
<a name='L1172'></a><a href='#L1172'>1172</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
1323
1238
|
<span class="cline-any cline-yes">1x</span>
|
|
1324
1239
|
<span class="cline-any cline-neutral"> </span>
|
|
1325
1240
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -1334,22 +1249,10 @@
|
|
|
1334
1249
|
<span class="cline-any cline-yes">1x</span>
|
|
1335
1250
|
<span class="cline-any cline-neutral"> </span>
|
|
1336
1251
|
<span class="cline-any cline-yes">1x</span>
|
|
1337
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1338
1252
|
<span class="cline-any cline-yes">1x</span>
|
|
1339
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1340
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1341
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1342
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1343
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1344
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1345
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1346
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1347
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1348
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1349
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1350
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1351
1253
|
<span class="cline-any cline-yes">1x</span>
|
|
1352
|
-
<span class="cline-any cline-
|
|
1254
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1255
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1353
1256
|
<span class="cline-any cline-neutral"> </span>
|
|
1354
1257
|
<span class="cline-any cline-neutral"> </span>
|
|
1355
1258
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1362,18 +1265,12 @@
|
|
|
1362
1265
|
<span class="cline-any cline-neutral"> </span>
|
|
1363
1266
|
<span class="cline-any cline-yes">1x</span>
|
|
1364
1267
|
<span class="cline-any cline-neutral"> </span>
|
|
1365
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1366
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1367
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1368
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1369
1268
|
<span class="cline-any cline-yes">1x</span>
|
|
1370
1269
|
<span class="cline-any cline-neutral"> </span>
|
|
1371
1270
|
<span class="cline-any cline-neutral"> </span>
|
|
1372
1271
|
<span class="cline-any cline-neutral"> </span>
|
|
1373
1272
|
<span class="cline-any cline-neutral"> </span>
|
|
1374
1273
|
<span class="cline-any cline-neutral"> </span>
|
|
1375
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1376
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1377
1274
|
<span class="cline-any cline-neutral"> </span>
|
|
1378
1275
|
<span class="cline-any cline-neutral"> </span>
|
|
1379
1276
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1381,39 +1278,38 @@
|
|
|
1381
1278
|
<span class="cline-any cline-neutral"> </span>
|
|
1382
1279
|
<span class="cline-any cline-neutral"> </span>
|
|
1383
1280
|
<span class="cline-any cline-neutral"> </span>
|
|
1384
|
-
<span class="cline-any cline-
|
|
1385
|
-
<span class="cline-any cline-yes">202x</span>
|
|
1386
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1387
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1281
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1388
1282
|
<span class="cline-any cline-neutral"> </span>
|
|
1389
1283
|
<span class="cline-any cline-neutral"> </span>
|
|
1390
1284
|
<span class="cline-any cline-neutral"> </span>
|
|
1391
1285
|
<span class="cline-any cline-neutral"> </span>
|
|
1392
1286
|
<span class="cline-any cline-neutral"> </span>
|
|
1393
1287
|
<span class="cline-any cline-neutral"> </span>
|
|
1288
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1394
1289
|
<span class="cline-any cline-neutral"> </span>
|
|
1395
|
-
<span class="cline-any cline-yes">202x</span>
|
|
1396
1290
|
<span class="cline-any cline-neutral"> </span>
|
|
1397
1291
|
<span class="cline-any cline-neutral"> </span>
|
|
1398
1292
|
<span class="cline-any cline-neutral"> </span>
|
|
1399
1293
|
<span class="cline-any cline-neutral"> </span>
|
|
1294
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1400
1295
|
<span class="cline-any cline-neutral"> </span>
|
|
1401
1296
|
<span class="cline-any cline-neutral"> </span>
|
|
1402
1297
|
<span class="cline-any cline-neutral"> </span>
|
|
1403
1298
|
<span class="cline-any cline-neutral"> </span>
|
|
1404
1299
|
<span class="cline-any cline-neutral"> </span>
|
|
1405
|
-
<span class="cline-any cline-yes">
|
|
1300
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1406
1301
|
<span class="cline-any cline-neutral"> </span>
|
|
1407
1302
|
<span class="cline-any cline-neutral"> </span>
|
|
1408
1303
|
<span class="cline-any cline-neutral"> </span>
|
|
1409
1304
|
<span class="cline-any cline-neutral"> </span>
|
|
1410
1305
|
<span class="cline-any cline-neutral"> </span>
|
|
1306
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1411
1307
|
<span class="cline-any cline-neutral"> </span>
|
|
1412
1308
|
<span class="cline-any cline-neutral"> </span>
|
|
1413
1309
|
<span class="cline-any cline-neutral"> </span>
|
|
1414
1310
|
<span class="cline-any cline-neutral"> </span>
|
|
1415
|
-
<span class="cline-any cline-yes">202x</span>
|
|
1416
1311
|
<span class="cline-any cline-neutral"> </span>
|
|
1312
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1417
1313
|
<span class="cline-any cline-neutral"> </span>
|
|
1418
1314
|
<span class="cline-any cline-neutral"> </span>
|
|
1419
1315
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1439,9 +1335,9 @@
|
|
|
1439
1335
|
<span class="cline-any cline-neutral"> </span>
|
|
1440
1336
|
<span class="cline-any cline-neutral"> </span>
|
|
1441
1337
|
<span class="cline-any cline-neutral"> </span>
|
|
1442
|
-
<span class="cline-any cline-yes">
|
|
1443
|
-
<span class="cline-any cline-yes">
|
|
1444
|
-
<span class="cline-any cline-yes">
|
|
1338
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1339
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1340
|
+
<span class="cline-any cline-yes">197x</span>
|
|
1445
1341
|
<span class="cline-any cline-neutral"> </span>
|
|
1446
1342
|
<span class="cline-any cline-neutral"> </span>
|
|
1447
1343
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1531,7 +1427,6 @@
|
|
|
1531
1427
|
<span class="cline-any cline-neutral"> </span>
|
|
1532
1428
|
<span class="cline-any cline-no"> </span>
|
|
1533
1429
|
<span class="cline-any cline-no"> </span>
|
|
1534
|
-
<span class="cline-any cline-no"> </span>
|
|
1535
1430
|
<span class="cline-any cline-neutral"> </span>
|
|
1536
1431
|
<span class="cline-any cline-no"> </span>
|
|
1537
1432
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1681,7 +1576,6 @@
|
|
|
1681
1576
|
<span class="cline-any cline-neutral"> </span>
|
|
1682
1577
|
<span class="cline-any cline-no"> </span>
|
|
1683
1578
|
<span class="cline-any cline-no"> </span>
|
|
1684
|
-
<span class="cline-any cline-no"> </span>
|
|
1685
1579
|
<span class="cline-any cline-neutral"> </span>
|
|
1686
1580
|
<span class="cline-any cline-no"> </span>
|
|
1687
1581
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1831,7 +1725,6 @@
|
|
|
1831
1725
|
<span class="cline-any cline-neutral"> </span>
|
|
1832
1726
|
<span class="cline-any cline-no"> </span>
|
|
1833
1727
|
<span class="cline-any cline-no"> </span>
|
|
1834
|
-
<span class="cline-any cline-no"> </span>
|
|
1835
1728
|
<span class="cline-any cline-neutral"> </span>
|
|
1836
1729
|
<span class="cline-any cline-no"> </span>
|
|
1837
1730
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1981,7 +1874,6 @@
|
|
|
1981
1874
|
<span class="cline-any cline-neutral"> </span>
|
|
1982
1875
|
<span class="cline-any cline-no"> </span>
|
|
1983
1876
|
<span class="cline-any cline-no"> </span>
|
|
1984
|
-
<span class="cline-any cline-no"> </span>
|
|
1985
1877
|
<span class="cline-any cline-neutral"> </span>
|
|
1986
1878
|
<span class="cline-any cline-no"> </span>
|
|
1987
1879
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2139,23 +2031,15 @@
|
|
|
2139
2031
|
<span class="cline-any cline-neutral"> </span>
|
|
2140
2032
|
<span class="cline-any cline-no"> </span>
|
|
2141
2033
|
<span class="cline-any cline-no"> </span>
|
|
2142
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2143
|
-
<span class="cline-any cline-no"> </span>
|
|
2144
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2145
|
-
<span class="cline-any cline-no"> </span>
|
|
2146
|
-
<span class="cline-any cline-no"> </span>
|
|
2147
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2148
2034
|
<span class="cline-any cline-no"> </span>
|
|
2149
2035
|
<span class="cline-any cline-no"> </span>
|
|
2150
2036
|
<span class="cline-any cline-no"> </span>
|
|
2151
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2152
2037
|
<span class="cline-any cline-no"> </span>
|
|
2153
2038
|
<span class="cline-any cline-no"> </span>
|
|
2154
2039
|
<span class="cline-any cline-no"> </span>
|
|
2155
2040
|
<span class="cline-any cline-no"> </span>
|
|
2156
2041
|
<span class="cline-any cline-neutral"> </span>
|
|
2157
2042
|
<span class="cline-any cline-neutral"> </span>
|
|
2158
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2159
2043
|
<span class="cline-any cline-no"> </span>
|
|
2160
2044
|
<span class="cline-any cline-neutral"> </span>
|
|
2161
2045
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2195,23 +2079,15 @@
|
|
|
2195
2079
|
<span class="cline-any cline-neutral"> </span>
|
|
2196
2080
|
<span class="cline-any cline-no"> </span>
|
|
2197
2081
|
<span class="cline-any cline-no"> </span>
|
|
2198
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2199
|
-
<span class="cline-any cline-no"> </span>
|
|
2200
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2201
|
-
<span class="cline-any cline-no"> </span>
|
|
2202
|
-
<span class="cline-any cline-no"> </span>
|
|
2203
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2204
2082
|
<span class="cline-any cline-no"> </span>
|
|
2205
2083
|
<span class="cline-any cline-no"> </span>
|
|
2206
2084
|
<span class="cline-any cline-no"> </span>
|
|
2207
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2208
2085
|
<span class="cline-any cline-no"> </span>
|
|
2209
2086
|
<span class="cline-any cline-no"> </span>
|
|
2210
2087
|
<span class="cline-any cline-no"> </span>
|
|
2211
2088
|
<span class="cline-any cline-no"> </span>
|
|
2212
2089
|
<span class="cline-any cline-neutral"> </span>
|
|
2213
2090
|
<span class="cline-any cline-neutral"> </span>
|
|
2214
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2215
2091
|
<span class="cline-any cline-no"> </span>
|
|
2216
2092
|
<span class="cline-any cline-neutral"> </span>
|
|
2217
2093
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2251,21 +2127,13 @@
|
|
|
2251
2127
|
<span class="cline-any cline-neutral"> </span>
|
|
2252
2128
|
<span class="cline-any cline-no"> </span>
|
|
2253
2129
|
<span class="cline-any cline-no"> </span>
|
|
2254
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2255
2130
|
<span class="cline-any cline-no"> </span>
|
|
2256
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2257
2131
|
<span class="cline-any cline-no"> </span>
|
|
2258
2132
|
<span class="cline-any cline-no"> </span>
|
|
2259
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2260
2133
|
<span class="cline-any cline-no"> </span>
|
|
2261
2134
|
<span class="cline-any cline-no"> </span>
|
|
2262
2135
|
<span class="cline-any cline-no"> </span>
|
|
2263
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2264
|
-
<span class="cline-any cline-no"> </span>
|
|
2265
|
-
<span class="cline-any cline-no"> </span>
|
|
2266
2136
|
<span class="cline-any cline-no"> </span>
|
|
2267
|
-
<span class="cline-any cline-no"> </span>
|
|
2268
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2269
2137
|
<span class="cline-any cline-neutral"> </span>
|
|
2270
2138
|
<span class="cline-any cline-neutral"> </span>
|
|
2271
2139
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2307,23 +2175,15 @@
|
|
|
2307
2175
|
<span class="cline-any cline-neutral"> </span>
|
|
2308
2176
|
<span class="cline-any cline-no"> </span>
|
|
2309
2177
|
<span class="cline-any cline-no"> </span>
|
|
2310
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2311
|
-
<span class="cline-any cline-no"> </span>
|
|
2312
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2313
|
-
<span class="cline-any cline-no"> </span>
|
|
2314
|
-
<span class="cline-any cline-no"> </span>
|
|
2315
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2316
2178
|
<span class="cline-any cline-no"> </span>
|
|
2317
2179
|
<span class="cline-any cline-no"> </span>
|
|
2318
2180
|
<span class="cline-any cline-no"> </span>
|
|
2319
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2320
2181
|
<span class="cline-any cline-no"> </span>
|
|
2321
2182
|
<span class="cline-any cline-no"> </span>
|
|
2322
2183
|
<span class="cline-any cline-no"> </span>
|
|
2323
2184
|
<span class="cline-any cline-no"> </span>
|
|
2324
2185
|
<span class="cline-any cline-neutral"> </span>
|
|
2325
2186
|
<span class="cline-any cline-neutral"> </span>
|
|
2326
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2327
2187
|
<span class="cline-any cline-no"> </span>
|
|
2328
2188
|
<span class="cline-any cline-neutral"> </span>
|
|
2329
2189
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2363,21 +2223,13 @@
|
|
|
2363
2223
|
<span class="cline-any cline-neutral"> </span>
|
|
2364
2224
|
<span class="cline-any cline-no"> </span>
|
|
2365
2225
|
<span class="cline-any cline-no"> </span>
|
|
2366
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2367
|
-
<span class="cline-any cline-no"> </span>
|
|
2368
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2369
|
-
<span class="cline-any cline-no"> </span>
|
|
2370
2226
|
<span class="cline-any cline-no"> </span>
|
|
2371
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2372
2227
|
<span class="cline-any cline-no"> </span>
|
|
2373
2228
|
<span class="cline-any cline-no"> </span>
|
|
2374
2229
|
<span class="cline-any cline-no"> </span>
|
|
2375
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2376
2230
|
<span class="cline-any cline-no"> </span>
|
|
2377
2231
|
<span class="cline-any cline-no"> </span>
|
|
2378
2232
|
<span class="cline-any cline-no"> </span>
|
|
2379
|
-
<span class="cline-any cline-no"> </span>
|
|
2380
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2381
2233
|
<span class="cline-any cline-neutral"> </span>
|
|
2382
2234
|
<span class="cline-any cline-neutral"> </span>
|
|
2383
2235
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2439,22 +2291,24 @@
|
|
|
2439
2291
|
<span class="cline-any cline-no"> </span>
|
|
2440
2292
|
<span class="cline-any cline-no"> </span>
|
|
2441
2293
|
<span class="cline-any cline-no"> </span>
|
|
2442
|
-
<span class="cline-any cline-no"> </span>
|
|
2443
2294
|
<span class="cline-any cline-neutral"> </span>
|
|
2444
2295
|
<span class="cline-any cline-no"> </span>
|
|
2445
2296
|
<span class="cline-any cline-no"> </span>
|
|
2446
2297
|
<span class="cline-any cline-no"> </span>
|
|
2447
2298
|
<span class="cline-any cline-no"> </span>
|
|
2448
2299
|
<span class="cline-any cline-neutral"> </span>
|
|
2449
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2450
2300
|
<span class="cline-any cline-no"> </span>
|
|
2301
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2451
2302
|
<span class="cline-any cline-no"> </span>
|
|
2452
2303
|
<span class="cline-any cline-no"> </span>
|
|
2453
2304
|
<span class="cline-any cline-neutral"> </span>
|
|
2305
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2454
2307
|
<span class="cline-any cline-no"> </span>
|
|
2455
2308
|
<span class="cline-any cline-neutral"> </span>
|
|
2456
2309
|
<span class="cline-any cline-no"> </span>
|
|
2457
2310
|
<span class="cline-any cline-neutral"> </span>
|
|
2311
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2458
2312
|
<span class="cline-any cline-no"> </span>
|
|
2459
2313
|
<span class="cline-any cline-neutral"> </span>
|
|
2460
2314
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2466,6 +2320,7 @@
|
|
|
2466
2320
|
<span class="cline-any cline-no"> </span>
|
|
2467
2321
|
<span class="cline-any cline-no"> </span>
|
|
2468
2322
|
<span class="cline-any cline-no"> </span>
|
|
2323
|
+
<span class="cline-any cline-no"> </span>
|
|
2469
2324
|
<span class="cline-any cline-neutral"> </span>
|
|
2470
2325
|
<span class="cline-any cline-no"> </span>
|
|
2471
2326
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2477,8 +2332,6 @@
|
|
|
2477
2332
|
<span class="cline-any cline-no"> </span>
|
|
2478
2333
|
<span class="cline-any cline-no"> </span>
|
|
2479
2334
|
<span class="cline-any cline-neutral"> </span>
|
|
2480
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2481
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2482
2335
|
<span class="cline-any cline-no"> </span>
|
|
2483
2336
|
<span class="cline-any cline-neutral"> </span>
|
|
2484
2337
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2520,22 +2373,19 @@
|
|
|
2520
2373
|
<span class="cline-any cline-neutral"> </span>
|
|
2521
2374
|
<span class="cline-any cline-neutral"> </span>
|
|
2522
2375
|
<span class="cline-any cline-neutral"> </span>
|
|
2523
|
-
<span class="cline-any cline-
|
|
2524
|
-
<span class="cline-any cline-
|
|
2525
|
-
<span class="cline-any cline-
|
|
2526
|
-
<span class="cline-any cline-
|
|
2527
|
-
<span class="cline-any cline-yes">2x</span>
|
|
2528
|
-
<span class="cline-any cline-yes">2x</span>
|
|
2529
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2530
|
-
<span class="cline-any cline-yes">2x</span>
|
|
2531
|
-
<span class="cline-any cline-yes">2x</span>
|
|
2532
|
-
<span class="cline-any cline-yes">2x</span>
|
|
2376
|
+
<span class="cline-any cline-no"> </span>
|
|
2377
|
+
<span class="cline-any cline-no"> </span>
|
|
2378
|
+
<span class="cline-any cline-no"> </span>
|
|
2379
|
+
<span class="cline-any cline-no"> </span>
|
|
2533
2380
|
<span class="cline-any cline-neutral"> </span>
|
|
2381
|
+
<span class="cline-any cline-no"> </span>
|
|
2382
|
+
<span class="cline-any cline-no"> </span>
|
|
2383
|
+
<span class="cline-any cline-no"> </span>
|
|
2534
2384
|
<span class="cline-any cline-neutral"> </span>
|
|
2535
2385
|
<span class="cline-any cline-no"> </span>
|
|
2536
2386
|
<span class="cline-any cline-neutral"> </span>
|
|
2537
|
-
<span class="cline-any cline-
|
|
2538
|
-
<span class="cline-any cline-
|
|
2387
|
+
<span class="cline-any cline-no"> </span>
|
|
2388
|
+
<span class="cline-any cline-no"> </span>
|
|
2539
2389
|
<span class="cline-any cline-neutral"> </span>
|
|
2540
2390
|
<span class="cline-any cline-neutral"> </span>
|
|
2541
2391
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2555,18 +2405,8 @@
|
|
|
2555
2405
|
<span class="cline-any cline-neutral"> </span>
|
|
2556
2406
|
<span class="cline-any cline-neutral"> </span>
|
|
2557
2407
|
<span class="cline-any cline-neutral"> </span>
|
|
2558
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import
|
|
2559
|
-
import
|
|
2560
|
-
import {
|
|
2561
|
-
TranslatorState,
|
|
2562
|
-
shiftState,
|
|
2563
|
-
withSourceMap,
|
|
2564
|
-
indent,
|
|
2565
|
-
createCompilerState,
|
|
2566
|
-
withSourceMapGenerator,
|
|
2567
|
-
withGenerator,
|
|
2568
|
-
TranslatorGenerator,
|
|
2569
|
-
} from '../translator';
|
|
2408
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import Namespace from './Namespace__';
|
|
2409
|
+
import { TranslatorState, shiftState, withSourceMap, indent, createCompilerState } from '../translator';
|
|
2570
2410
|
import { ElementToVueOptions } from './ViewElement__';
|
|
2571
2411
|
import asyncFuncMap from '../common/asyncFuncMap';
|
|
2572
2412
|
|
|
@@ -2575,36 +2415,32 @@ import asyncFuncMap from '../common/asyncFuncMap';
|
|
|
2575
2415
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
2576
2416
|
//================================================================================
|
|
2577
2417
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
2578
|
-
import { concept, excludedInJSON, property,
|
|
2418
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
2579
2419
|
|
|
2580
2420
|
import * as utils from '../utils';
|
|
2581
|
-
import * as types from './utils/types';
|
|
2582
|
-
import * as asserts from './utils/asserts';
|
|
2583
2421
|
import { v4 as uuidv4 } from 'uuid';
|
|
2584
2422
|
import BaseNode from '../common/BaseNode';
|
|
2585
|
-
import
|
|
2586
|
-
import
|
|
2587
|
-
import
|
|
2588
|
-
import
|
|
2589
|
-
import
|
|
2590
|
-
import
|
|
2591
|
-
import
|
|
2423
|
+
import TypeParam from './TypeParam__';
|
|
2424
|
+
import Param from './Param__';
|
|
2425
|
+
import Return from './Return__';
|
|
2426
|
+
import Variable from './Variable__';
|
|
2427
|
+
import LogicItem from './LogicItem__';
|
|
2428
|
+
import Module from './Module__';
|
|
2429
|
+
import App from './App__';
|
|
2592
2430
|
|
|
2593
2431
|
/**
|
|
2594
2432
|
* 函数
|
|
2595
2433
|
*/
|
|
2434
|
+
@className
|
|
2596
2435
|
@concept('函数')
|
|
2436
|
+
// @ts-ignore
|
|
2597
2437
|
export class Function extends BaseNode {
|
|
2598
2438
|
/** 类名 */
|
|
2599
|
-
static readonly ConceptName
|
|
2600
|
-
|
|
2601
|
-
/** 继承链 */
|
|
2602
|
-
static readonly inheritanceChain: string[] = ['BaseNode'];
|
|
2439
|
+
static readonly ConceptName = 'Function';
|
|
2603
2440
|
|
|
2604
2441
|
/**
|
|
2605
2442
|
* 产品概念
|
|
2606
2443
|
*/
|
|
2607
|
-
@property('concept')
|
|
2608
2444
|
// @ts-ignore
|
|
2609
2445
|
readonly concept!: 'Function';
|
|
2610
2446
|
|
|
@@ -2612,60 +2448,45 @@ export class Function extends BaseNode {
|
|
|
2612
2448
|
* 函数名称
|
|
2613
2449
|
*/
|
|
2614
2450
|
@property()
|
|
2451
|
+
// @ts-ignore
|
|
2615
2452
|
name!: string;
|
|
2616
2453
|
|
|
2617
2454
|
/**
|
|
2618
2455
|
* 函数描述
|
|
2619
2456
|
*/
|
|
2620
2457
|
@property()
|
|
2458
|
+
// @ts-ignore
|
|
2621
2459
|
description!: string;
|
|
2622
2460
|
|
|
2623
2461
|
/**
|
|
2624
2462
|
* 类型参数列表
|
|
2625
2463
|
*/
|
|
2626
|
-
@property(
|
|
2627
|
-
objectRef: 'TypeParam',
|
|
2628
|
-
isArray: true,
|
|
2629
|
-
defaultValue: [],
|
|
2630
|
-
})
|
|
2464
|
+
@property('TypeParam')
|
|
2631
2465
|
typeParams: Array<TypeParam> = [];
|
|
2632
2466
|
|
|
2633
2467
|
/**
|
|
2634
2468
|
* 输入参数列表
|
|
2635
2469
|
*/
|
|
2636
|
-
@property(
|
|
2637
|
-
objectRef: 'Param',
|
|
2638
|
-
isArray: true,
|
|
2639
|
-
defaultValue: [],
|
|
2640
|
-
})
|
|
2470
|
+
@property('Param')
|
|
2641
2471
|
params: Array<Param> = [];
|
|
2642
2472
|
|
|
2643
2473
|
/**
|
|
2644
2474
|
* 输出参数列表
|
|
2645
2475
|
*/
|
|
2646
|
-
@property(
|
|
2647
|
-
objectRef: 'Return',
|
|
2648
|
-
isArray: true,
|
|
2649
|
-
defaultValue: [],
|
|
2650
|
-
})
|
|
2476
|
+
@property('Return')
|
|
2651
2477
|
returns: Array<Return> = [];
|
|
2652
2478
|
|
|
2653
2479
|
/**
|
|
2654
2480
|
* 变量列表
|
|
2655
2481
|
*/
|
|
2656
|
-
@property(
|
|
2657
|
-
objectRef: 'Variable',
|
|
2658
|
-
isArray: true,
|
|
2659
|
-
defaultValue: [],
|
|
2660
|
-
})
|
|
2482
|
+
@property('Variable')
|
|
2661
2483
|
variables: Array<Variable> = [];
|
|
2662
2484
|
|
|
2663
2485
|
/**
|
|
2664
2486
|
* 逻辑项
|
|
2665
2487
|
*/
|
|
2666
|
-
@property(
|
|
2667
|
-
|
|
2668
|
-
})
|
|
2488
|
+
@property('LogicItem')
|
|
2489
|
+
// @ts-ignore
|
|
2669
2490
|
returnExpression!: LogicItem;
|
|
2670
2491
|
|
|
2671
2492
|
/**
|
|
@@ -2690,7 +2511,7 @@ export class Function extends BaseNode {
|
|
|
2690
2511
|
super.subConstructor(source);
|
|
2691
2512
|
}
|
|
2692
2513
|
|
|
2693
|
-
<span class="fstat-no" title="function not covered" > static
|
|
2514
|
+
<span class="fstat-no" title="function not covered" > static </span>from(source: any, parentNode?: any, parentKey?: string): Function {
|
|
2694
2515
|
<span class="cstat-no" title="statement not covered" > return super.from(source, parentNode, parentKey) as Function;</span>
|
|
2695
2516
|
}
|
|
2696
2517
|
|
|
@@ -2698,7 +2519,7 @@ export class Function extends BaseNode {
|
|
|
2698
2519
|
* 从父级删除该节点
|
|
2699
2520
|
* @internal
|
|
2700
2521
|
*/
|
|
2701
|
-
<span class="fstat-no" title="function not covered" > _delete() {
|
|
2522
|
+
<span class="fstat-no" title="function not covered" > _delete(</span>) {
|
|
2702
2523
|
let params: Params = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
2703
2524
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
2704
2525
|
<span class="cstat-no" title="statement not covered" > params = (this.parentNode as any)?.__removeFunction?.(this);</span>
|
|
@@ -2708,7 +2529,7 @@ export class Function extends BaseNode {
|
|
|
2708
2529
|
/**
|
|
2709
2530
|
* 设置函数名称
|
|
2710
2531
|
*/
|
|
2711
|
-
<span class="fstat-no" title="function not covered" > setName(
|
|
2532
|
+
<span class="fstat-no" title="function not covered" > setName(</span>name: string) {
|
|
2712
2533
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2713
2534
|
name,
|
|
2714
2535
|
};
|
|
@@ -2721,7 +2542,7 @@ export class Function extends BaseNode {
|
|
|
2721
2542
|
/**
|
|
2722
2543
|
* 设置函数描述
|
|
2723
2544
|
*/
|
|
2724
|
-
<span class="fstat-no" title="function not covered" > setDescription(
|
|
2545
|
+
<span class="fstat-no" title="function not covered" > setDescription(</span>description: string) {
|
|
2725
2546
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2726
2547
|
description,
|
|
2727
2548
|
};
|
|
@@ -2733,7 +2554,7 @@ export class Function extends BaseNode {
|
|
|
2733
2554
|
/**
|
|
2734
2555
|
* 设置逻辑项
|
|
2735
2556
|
*/
|
|
2736
|
-
<span class="fstat-no" title="function not covered" > setReturnExpression(
|
|
2557
|
+
<span class="fstat-no" title="function not covered" > setReturnExpression(</span>returnExpression: LogicItem) {
|
|
2737
2558
|
<span class="cstat-no" title="statement not covered" > returnExpression._delete();</span>
|
|
2738
2559
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'returnExpression' };</span>
|
|
2739
2560
|
<span class="cstat-no" title="statement not covered" > Object.assign(returnExpression, relationOptions);</span>
|
|
@@ -2745,11 +2566,11 @@ export class Function extends BaseNode {
|
|
|
2745
2566
|
});
|
|
2746
2567
|
}
|
|
2747
2568
|
|
|
2748
|
-
<span class="fstat-no" title="function not covered" > getTypeParamExistingNames(
|
|
2569
|
+
<span class="fstat-no" title="function not covered" > getTypeParamExistingNames(</span>excludedList: Array<TypeParam> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
2749
2570
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
2750
|
-
<span class="cstat-no" title="statement not covered" > return ((this.typeParams as TypeParam[]) || []).filter(
|
|
2571
|
+
<span class="cstat-no" title="statement not covered" > return ((this.typeParams as TypeParam[]) || []).filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;</span>
|
|
2751
2572
|
}
|
|
2752
|
-
<span class="fstat-no" title="function not covered" > getTypeParamUniqueName(
|
|
2573
|
+
<span class="fstat-no" title="function not covered" > getTypeParamUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'typeParam1')</span> {
|
|
2753
2574
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getTypeParamExistingNames(), undefined, false);</span>
|
|
2754
2575
|
}
|
|
2755
2576
|
|
|
@@ -2774,10 +2595,9 @@ export class Function extends BaseNode {
|
|
|
2774
2595
|
*/
|
|
2775
2596
|
_insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
|
|
2776
2597
|
|
|
2777
|
-
<span class="fstat-no" title="function not covered" > _insertTypeParamAt(
|
|
2598
|
+
<span class="fstat-no" title="function not covered" > _insertTypeParamAt(</span>options: string | Partial<TypeParam> | TypeParam, index: number) {
|
|
2778
2599
|
const typeParamOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
2779
2600
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'typeParams' };</span>
|
|
2780
|
-
const <span class="cstat-no" title="statement not covered" >TypeParam = getConceptConstructor('TypeParam');</span>
|
|
2781
2601
|
let typeParam: TypeParam;
|
|
2782
2602
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2783
2603
|
<span class="cstat-no" title="statement not covered" > typeParam = TypeParam.from(</span>
|
|
@@ -2788,7 +2608,7 @@ export class Function extends BaseNode {
|
|
|
2788
2608
|
this,
|
|
2789
2609
|
'typeParams',
|
|
2790
2610
|
);
|
|
2791
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2611
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2792
2612
|
<span class="cstat-no" title="statement not covered" > typeParam = TypeParam.from(</span>
|
|
2793
2613
|
{
|
|
2794
2614
|
...typeParamOptions,
|
|
@@ -2797,8 +2617,8 @@ export class Function extends BaseNode {
|
|
|
2797
2617
|
this,
|
|
2798
2618
|
'typeParams',
|
|
2799
2619
|
);
|
|
2800
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2801
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2620
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof TypeParam) {</span>
|
|
2621
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2802
2622
|
<span class="cstat-no" title="statement not covered" > typeParam = options;</span>
|
|
2803
2623
|
<span class="cstat-no" title="statement not covered" > Object.assign(typeParam, relationOptions);</span>
|
|
2804
2624
|
} else {
|
|
@@ -2833,7 +2653,7 @@ export class Function extends BaseNode {
|
|
|
2833
2653
|
*/
|
|
2834
2654
|
insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
|
|
2835
2655
|
|
|
2836
|
-
<span class="fstat-no" title="function not covered" > insertTypeParamAt(
|
|
2656
|
+
<span class="fstat-no" title="function not covered" > insertTypeParamAt(</span>options: string | Partial<TypeParam> | TypeParam, index: number) {
|
|
2837
2657
|
const node = <span class="cstat-no" title="statement not covered" >this._insertTypeParamAt(options as any, index);</span>
|
|
2838
2658
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2839
2659
|
index,
|
|
@@ -2864,7 +2684,7 @@ export class Function extends BaseNode {
|
|
|
2864
2684
|
*/
|
|
2865
2685
|
_addTypeParam(typeParam: TypeParam): TypeParam;
|
|
2866
2686
|
|
|
2867
|
-
<span class="fstat-no" title="function not covered" > _addTypeParam(
|
|
2687
|
+
<span class="fstat-no" title="function not covered" > _addTypeParam(</span>options?: string | Partial<TypeParam> | TypeParam) {
|
|
2868
2688
|
const index = <span class="cstat-no" title="statement not covered" >this.typeParams.length;</span>
|
|
2869
2689
|
<span class="cstat-no" title="statement not covered" > return this._insertTypeParamAt(options as any, index);</span>
|
|
2870
2690
|
}
|
|
@@ -2888,7 +2708,7 @@ export class Function extends BaseNode {
|
|
|
2888
2708
|
*/
|
|
2889
2709
|
addTypeParam(typeParam: TypeParam): TypeParam;
|
|
2890
2710
|
|
|
2891
|
-
<span class="fstat-no" title="function not covered" > addTypeParam(
|
|
2711
|
+
<span class="fstat-no" title="function not covered" > addTypeParam(</span>options?: string | Partial<TypeParam> | TypeParam) {
|
|
2892
2712
|
const node = <span class="cstat-no" title="statement not covered" >this._addTypeParam(options as any);</span>
|
|
2893
2713
|
const index = <span class="cstat-no" title="statement not covered" >this.typeParams.indexOf(node);</span>
|
|
2894
2714
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -2899,7 +2719,7 @@ export class Function extends BaseNode {
|
|
|
2899
2719
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
2900
2720
|
}
|
|
2901
2721
|
|
|
2902
|
-
<span class="fstat-no" title="function not covered" > getParamUniqueName(
|
|
2722
|
+
<span class="fstat-no" title="function not covered" > getParamUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'param1')</span> {
|
|
2903
2723
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getVarExistingNames(), undefined, false);</span>
|
|
2904
2724
|
}
|
|
2905
2725
|
|
|
@@ -2924,10 +2744,9 @@ export class Function extends BaseNode {
|
|
|
2924
2744
|
*/
|
|
2925
2745
|
_insertParamAt(param: Param, index: number): Param;
|
|
2926
2746
|
|
|
2927
|
-
<span class="fstat-no" title="function not covered" > _insertParamAt(
|
|
2747
|
+
<span class="fstat-no" title="function not covered" > _insertParamAt(</span>options: string | Partial<Param> | Param, index: number) {
|
|
2928
2748
|
const paramOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
2929
2749
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'params' };</span>
|
|
2930
|
-
const <span class="cstat-no" title="statement not covered" >Param = getConceptConstructor('Param');</span>
|
|
2931
2750
|
let param: Param;
|
|
2932
2751
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2933
2752
|
<span class="cstat-no" title="statement not covered" > param = Param.from(</span>
|
|
@@ -2938,7 +2757,7 @@ export class Function extends BaseNode {
|
|
|
2938
2757
|
this,
|
|
2939
2758
|
'params',
|
|
2940
2759
|
);
|
|
2941
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2760
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2942
2761
|
<span class="cstat-no" title="statement not covered" > param = Param.from(</span>
|
|
2943
2762
|
{
|
|
2944
2763
|
...paramOptions,
|
|
@@ -2947,8 +2766,8 @@ export class Function extends BaseNode {
|
|
|
2947
2766
|
this,
|
|
2948
2767
|
'params',
|
|
2949
2768
|
);
|
|
2950
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2951
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2769
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Param) {</span>
|
|
2770
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2952
2771
|
<span class="cstat-no" title="statement not covered" > param = options;</span>
|
|
2953
2772
|
<span class="cstat-no" title="statement not covered" > Object.assign(param, relationOptions);</span>
|
|
2954
2773
|
} else {
|
|
@@ -2983,7 +2802,7 @@ export class Function extends BaseNode {
|
|
|
2983
2802
|
*/
|
|
2984
2803
|
insertParamAt(param: Param, index: number): Param;
|
|
2985
2804
|
|
|
2986
|
-
<span class="fstat-no" title="function not covered" > insertParamAt(
|
|
2805
|
+
<span class="fstat-no" title="function not covered" > insertParamAt(</span>options: string | Partial<Param> | Param, index: number) {
|
|
2987
2806
|
const node = <span class="cstat-no" title="statement not covered" >this._insertParamAt(options as any, index);</span>
|
|
2988
2807
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2989
2808
|
index,
|
|
@@ -3014,7 +2833,7 @@ export class Function extends BaseNode {
|
|
|
3014
2833
|
*/
|
|
3015
2834
|
_addParam(param: Param): Param;
|
|
3016
2835
|
|
|
3017
|
-
<span class="fstat-no" title="function not covered" > _addParam(
|
|
2836
|
+
<span class="fstat-no" title="function not covered" > _addParam(</span>options?: string | Partial<Param> | Param) {
|
|
3018
2837
|
const index = <span class="cstat-no" title="statement not covered" >this.params.length;</span>
|
|
3019
2838
|
<span class="cstat-no" title="statement not covered" > return this._insertParamAt(options as any, index);</span>
|
|
3020
2839
|
}
|
|
@@ -3038,7 +2857,7 @@ export class Function extends BaseNode {
|
|
|
3038
2857
|
*/
|
|
3039
2858
|
addParam(param: Param): Param;
|
|
3040
2859
|
|
|
3041
|
-
<span class="fstat-no" title="function not covered" > addParam(
|
|
2860
|
+
<span class="fstat-no" title="function not covered" > addParam(</span>options?: string | Partial<Param> | Param) {
|
|
3042
2861
|
const node = <span class="cstat-no" title="statement not covered" >this._addParam(options as any);</span>
|
|
3043
2862
|
const index = <span class="cstat-no" title="statement not covered" >this.params.indexOf(node);</span>
|
|
3044
2863
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3049,7 +2868,7 @@ export class Function extends BaseNode {
|
|
|
3049
2868
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3050
2869
|
}
|
|
3051
2870
|
|
|
3052
|
-
<span class="fstat-no" title="function not covered" > getReturnUniqueName(
|
|
2871
|
+
<span class="fstat-no" title="function not covered" > getReturnUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'result')</span> {
|
|
3053
2872
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getVarExistingNames(), undefined, false);</span>
|
|
3054
2873
|
}
|
|
3055
2874
|
|
|
@@ -3074,10 +2893,9 @@ export class Function extends BaseNode {
|
|
|
3074
2893
|
*/
|
|
3075
2894
|
_insertReturnAt(ret: Return, index: number): Return;
|
|
3076
2895
|
|
|
3077
|
-
<span class="fstat-no" title="function not covered" > _insertReturnAt(
|
|
2896
|
+
<span class="fstat-no" title="function not covered" > _insertReturnAt(</span>options: string | Partial<Return> | Return, index: number) {
|
|
3078
2897
|
const retOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3079
2898
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'returns' };</span>
|
|
3080
|
-
const <span class="cstat-no" title="statement not covered" >Return = getConceptConstructor('Return');</span>
|
|
3081
2899
|
let ret: Return;
|
|
3082
2900
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3083
2901
|
<span class="cstat-no" title="statement not covered" > ret = Return.from(</span>
|
|
@@ -3088,7 +2906,7 @@ export class Function extends BaseNode {
|
|
|
3088
2906
|
this,
|
|
3089
2907
|
'returns',
|
|
3090
2908
|
);
|
|
3091
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2909
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3092
2910
|
<span class="cstat-no" title="statement not covered" > ret = Return.from(</span>
|
|
3093
2911
|
{
|
|
3094
2912
|
...retOptions,
|
|
@@ -3097,8 +2915,8 @@ export class Function extends BaseNode {
|
|
|
3097
2915
|
this,
|
|
3098
2916
|
'returns',
|
|
3099
2917
|
);
|
|
3100
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3101
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2918
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Return) {</span>
|
|
2919
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3102
2920
|
<span class="cstat-no" title="statement not covered" > ret = options;</span>
|
|
3103
2921
|
<span class="cstat-no" title="statement not covered" > Object.assign(ret, relationOptions);</span>
|
|
3104
2922
|
} else {
|
|
@@ -3133,7 +2951,7 @@ export class Function extends BaseNode {
|
|
|
3133
2951
|
*/
|
|
3134
2952
|
insertReturnAt(ret: Return, index: number): Return;
|
|
3135
2953
|
|
|
3136
|
-
<span class="fstat-no" title="function not covered" > insertReturnAt(
|
|
2954
|
+
<span class="fstat-no" title="function not covered" > insertReturnAt(</span>options: string | Partial<Return> | Return, index: number) {
|
|
3137
2955
|
const node = <span class="cstat-no" title="statement not covered" >this._insertReturnAt(options as any, index);</span>
|
|
3138
2956
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3139
2957
|
index,
|
|
@@ -3164,7 +2982,7 @@ export class Function extends BaseNode {
|
|
|
3164
2982
|
*/
|
|
3165
2983
|
_addReturn(ret: Return): Return;
|
|
3166
2984
|
|
|
3167
|
-
<span class="fstat-no" title="function not covered" > _addReturn(
|
|
2985
|
+
<span class="fstat-no" title="function not covered" > _addReturn(</span>options?: string | Partial<Return> | Return) {
|
|
3168
2986
|
const index = <span class="cstat-no" title="statement not covered" >this.returns.length;</span>
|
|
3169
2987
|
<span class="cstat-no" title="statement not covered" > return this._insertReturnAt(options as any, index);</span>
|
|
3170
2988
|
}
|
|
@@ -3188,7 +3006,7 @@ export class Function extends BaseNode {
|
|
|
3188
3006
|
*/
|
|
3189
3007
|
addReturn(ret: Return): Return;
|
|
3190
3008
|
|
|
3191
|
-
<span class="fstat-no" title="function not covered" > addReturn(
|
|
3009
|
+
<span class="fstat-no" title="function not covered" > addReturn(</span>options?: string | Partial<Return> | Return) {
|
|
3192
3010
|
const node = <span class="cstat-no" title="statement not covered" >this._addReturn(options as any);</span>
|
|
3193
3011
|
const index = <span class="cstat-no" title="statement not covered" >this.returns.indexOf(node);</span>
|
|
3194
3012
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3199,7 +3017,7 @@ export class Function extends BaseNode {
|
|
|
3199
3017
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
3200
3018
|
}
|
|
3201
3019
|
|
|
3202
|
-
<span class="fstat-no" title="function not covered" > getVariableUniqueName(
|
|
3020
|
+
<span class="fstat-no" title="function not covered" > getVariableUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'variable1')</span> {
|
|
3203
3021
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getVarExistingNames(), undefined, false);</span>
|
|
3204
3022
|
}
|
|
3205
3023
|
|
|
@@ -3224,10 +3042,9 @@ export class Function extends BaseNode {
|
|
|
3224
3042
|
*/
|
|
3225
3043
|
_insertVariableAt(variable: Variable, index: number): Variable;
|
|
3226
3044
|
|
|
3227
|
-
<span class="fstat-no" title="function not covered" > _insertVariableAt(
|
|
3045
|
+
<span class="fstat-no" title="function not covered" > _insertVariableAt(</span>options: string | Partial<Variable> | Variable, index: number) {
|
|
3228
3046
|
const variableOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3229
3047
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'variables' };</span>
|
|
3230
|
-
const <span class="cstat-no" title="statement not covered" >Variable = getConceptConstructor('Variable');</span>
|
|
3231
3048
|
let variable: Variable;
|
|
3232
3049
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
3233
3050
|
<span class="cstat-no" title="statement not covered" > variable = Variable.from(</span>
|
|
@@ -3238,7 +3055,7 @@ export class Function extends BaseNode {
|
|
|
3238
3055
|
this,
|
|
3239
3056
|
'variables',
|
|
3240
3057
|
);
|
|
3241
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3058
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
3242
3059
|
<span class="cstat-no" title="statement not covered" > variable = Variable.from(</span>
|
|
3243
3060
|
{
|
|
3244
3061
|
...variableOptions,
|
|
@@ -3247,8 +3064,8 @@ export class Function extends BaseNode {
|
|
|
3247
3064
|
this,
|
|
3248
3065
|
'variables',
|
|
3249
3066
|
);
|
|
3250
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3251
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
3067
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Variable) {</span>
|
|
3068
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
3252
3069
|
<span class="cstat-no" title="statement not covered" > variable = options;</span>
|
|
3253
3070
|
<span class="cstat-no" title="statement not covered" > Object.assign(variable, relationOptions);</span>
|
|
3254
3071
|
} else {
|
|
@@ -3283,7 +3100,7 @@ export class Function extends BaseNode {
|
|
|
3283
3100
|
*/
|
|
3284
3101
|
insertVariableAt(variable: Variable, index: number): Variable;
|
|
3285
3102
|
|
|
3286
|
-
<span class="fstat-no" title="function not covered" > insertVariableAt(
|
|
3103
|
+
<span class="fstat-no" title="function not covered" > insertVariableAt(</span>options: string | Partial<Variable> | Variable, index: number) {
|
|
3287
3104
|
const node = <span class="cstat-no" title="statement not covered" >this._insertVariableAt(options as any, index);</span>
|
|
3288
3105
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
3289
3106
|
index,
|
|
@@ -3314,7 +3131,7 @@ export class Function extends BaseNode {
|
|
|
3314
3131
|
*/
|
|
3315
3132
|
_addVariable(variable: Variable): Variable;
|
|
3316
3133
|
|
|
3317
|
-
<span class="fstat-no" title="function not covered" > _addVariable(
|
|
3134
|
+
<span class="fstat-no" title="function not covered" > _addVariable(</span>options?: string | Partial<Variable> | Variable) {
|
|
3318
3135
|
const index = <span class="cstat-no" title="statement not covered" >this.variables.length;</span>
|
|
3319
3136
|
<span class="cstat-no" title="statement not covered" > return this._insertVariableAt(options as any, index);</span>
|
|
3320
3137
|
}
|
|
@@ -3338,7 +3155,7 @@ export class Function extends BaseNode {
|
|
|
3338
3155
|
*/
|
|
3339
3156
|
addVariable(variable: Variable): Variable;
|
|
3340
3157
|
|
|
3341
|
-
<span class="fstat-no" title="function not covered" > addVariable(
|
|
3158
|
+
<span class="fstat-no" title="function not covered" > addVariable(</span>options?: string | Partial<Variable> | Variable) {
|
|
3342
3159
|
const node = <span class="cstat-no" title="statement not covered" >this._addVariable(options as any);</span>
|
|
3343
3160
|
const index = <span class="cstat-no" title="statement not covered" >this.variables.indexOf(node);</span>
|
|
3344
3161
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -3361,10 +3178,10 @@ export class Function extends BaseNode {
|
|
|
3361
3178
|
*/
|
|
3362
3179
|
removeTypeParam(typeParam: TypeParam): void;
|
|
3363
3180
|
|
|
3364
|
-
<span class="fstat-no" title="function not covered" > removeTypeParam(
|
|
3181
|
+
<span class="fstat-no" title="function not covered" > removeTypeParam(</span>options: string | TypeParam) {
|
|
3365
3182
|
let typeParam: TypeParam;
|
|
3366
3183
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3367
|
-
<span class="cstat-no" title="statement not covered" > typeParam = (this.typeParams as TypeParam[]).find(
|
|
3184
|
+
<span class="cstat-no" title="statement not covered" > typeParam = (this.typeParams as TypeParam[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
3368
3185
|
<span class="cstat-no" title="statement not covered" > if (!typeParam) {</span>
|
|
3369
3186
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到类型参数 ' + options);</span>
|
|
3370
3187
|
}
|
|
@@ -3374,7 +3191,7 @@ export class Function extends BaseNode {
|
|
|
3374
3191
|
<span class="cstat-no" title="statement not covered" > return typeParam.delete();</span>
|
|
3375
3192
|
}
|
|
3376
3193
|
|
|
3377
|
-
<span class="fstat-no" title="function not covered" > __removeTypeParam(
|
|
3194
|
+
<span class="fstat-no" title="function not covered" > __removeTypeParam(</span>typeParam: TypeParam) {
|
|
3378
3195
|
const parentKey = <span class="cstat-no" title="statement not covered" >typeParam.parentKey;</span>
|
|
3379
3196
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3380
3197
|
parentNode: this,
|
|
@@ -3385,21 +3202,13 @@ export class Function extends BaseNode {
|
|
|
3385
3202
|
};
|
|
3386
3203
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3387
3204
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
// @ts-ignore
|
|
3391
|
-
const n = <span class="cstat-no" title="statement not covered" >typeParam.__v_raw || typeParam;</span>
|
|
3392
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3393
|
-
// @ts-ignore
|
|
3394
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
3205
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3206
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(typeParam);</span>
|
|
3395
3207
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3396
3208
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3397
|
-
} else {
|
|
3398
|
-
|
|
3399
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3400
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3401
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3402
|
-
}
|
|
3209
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === typeParam) {</span>
|
|
3210
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3211
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3403
3212
|
}
|
|
3404
3213
|
}
|
|
3405
3214
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3417,10 +3226,10 @@ export class Function extends BaseNode {
|
|
|
3417
3226
|
*/
|
|
3418
3227
|
removeParam(param: Param): void;
|
|
3419
3228
|
|
|
3420
|
-
<span class="fstat-no" title="function not covered" > removeParam(
|
|
3229
|
+
<span class="fstat-no" title="function not covered" > removeParam(</span>options: string | Param) {
|
|
3421
3230
|
let param: Param;
|
|
3422
3231
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3423
|
-
<span class="cstat-no" title="statement not covered" > param = (this.params as Param[]).find(
|
|
3232
|
+
<span class="cstat-no" title="statement not covered" > param = (this.params as Param[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
3424
3233
|
<span class="cstat-no" title="statement not covered" > if (!param) {</span>
|
|
3425
3234
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到输入参数 ' + options);</span>
|
|
3426
3235
|
}
|
|
@@ -3430,7 +3239,7 @@ export class Function extends BaseNode {
|
|
|
3430
3239
|
<span class="cstat-no" title="statement not covered" > return param.delete();</span>
|
|
3431
3240
|
}
|
|
3432
3241
|
|
|
3433
|
-
<span class="fstat-no" title="function not covered" > __removeParam(
|
|
3242
|
+
<span class="fstat-no" title="function not covered" > __removeParam(</span>param: Param) {
|
|
3434
3243
|
const parentKey = <span class="cstat-no" title="statement not covered" >param.parentKey;</span>
|
|
3435
3244
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3436
3245
|
parentNode: this,
|
|
@@ -3441,21 +3250,13 @@ export class Function extends BaseNode {
|
|
|
3441
3250
|
};
|
|
3442
3251
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3443
3252
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
// @ts-ignore
|
|
3447
|
-
const n = <span class="cstat-no" title="statement not covered" >param.__v_raw || param;</span>
|
|
3448
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3449
|
-
// @ts-ignore
|
|
3450
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
3253
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3254
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(param);</span>
|
|
3451
3255
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3452
3256
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3453
|
-
} else {
|
|
3454
|
-
|
|
3455
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3456
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3457
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3458
|
-
}
|
|
3257
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === param) {</span>
|
|
3258
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3259
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3459
3260
|
}
|
|
3460
3261
|
}
|
|
3461
3262
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3473,10 +3274,10 @@ export class Function extends BaseNode {
|
|
|
3473
3274
|
*/
|
|
3474
3275
|
removeReturn(ret: Return): void;
|
|
3475
3276
|
|
|
3476
|
-
<span class="fstat-no" title="function not covered" > removeReturn(
|
|
3277
|
+
<span class="fstat-no" title="function not covered" > removeReturn(</span>options: string | Return) {
|
|
3477
3278
|
let ret: Return;
|
|
3478
3279
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3479
|
-
<span class="cstat-no" title="statement not covered" > ret = (this.returns as Return[]).find(
|
|
3280
|
+
<span class="cstat-no" title="statement not covered" > ret = (this.returns as Return[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
3480
3281
|
<span class="cstat-no" title="statement not covered" > if (!ret) {</span>
|
|
3481
3282
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到输出参数 ' + options);</span>
|
|
3482
3283
|
}
|
|
@@ -3486,7 +3287,7 @@ export class Function extends BaseNode {
|
|
|
3486
3287
|
<span class="cstat-no" title="statement not covered" > return ret.delete();</span>
|
|
3487
3288
|
}
|
|
3488
3289
|
|
|
3489
|
-
<span class="fstat-no" title="function not covered" > __removeReturn(
|
|
3290
|
+
<span class="fstat-no" title="function not covered" > __removeReturn(</span>ret: Return) {
|
|
3490
3291
|
const parentKey = <span class="cstat-no" title="statement not covered" >ret.parentKey;</span>
|
|
3491
3292
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3492
3293
|
parentNode: this,
|
|
@@ -3497,21 +3298,13 @@ export class Function extends BaseNode {
|
|
|
3497
3298
|
};
|
|
3498
3299
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3499
3300
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
// @ts-ignore
|
|
3503
|
-
const n = <span class="cstat-no" title="statement not covered" >ret.__v_raw || ret;</span>
|
|
3504
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3505
|
-
// @ts-ignore
|
|
3506
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
3301
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3302
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(ret);</span>
|
|
3507
3303
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3508
3304
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3509
|
-
} else {
|
|
3510
|
-
|
|
3511
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3512
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3513
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3514
|
-
}
|
|
3305
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === ret) {</span>
|
|
3306
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3307
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3515
3308
|
}
|
|
3516
3309
|
}
|
|
3517
3310
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3529,10 +3322,10 @@ export class Function extends BaseNode {
|
|
|
3529
3322
|
*/
|
|
3530
3323
|
removeVariable(variable: Variable): void;
|
|
3531
3324
|
|
|
3532
|
-
<span class="fstat-no" title="function not covered" > removeVariable(
|
|
3325
|
+
<span class="fstat-no" title="function not covered" > removeVariable(</span>options: string | Variable) {
|
|
3533
3326
|
let variable: Variable;
|
|
3534
3327
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3535
|
-
<span class="cstat-no" title="statement not covered" > variable = (this.variables as Variable[]).find(
|
|
3328
|
+
<span class="cstat-no" title="statement not covered" > variable = (this.variables as Variable[]).find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === options)</span>;</span>
|
|
3536
3329
|
<span class="cstat-no" title="statement not covered" > if (!variable) {</span>
|
|
3537
3330
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到变量 ' + options);</span>
|
|
3538
3331
|
}
|
|
@@ -3542,7 +3335,7 @@ export class Function extends BaseNode {
|
|
|
3542
3335
|
<span class="cstat-no" title="statement not covered" > return variable.delete();</span>
|
|
3543
3336
|
}
|
|
3544
3337
|
|
|
3545
|
-
<span class="fstat-no" title="function not covered" > __removeVariable(
|
|
3338
|
+
<span class="fstat-no" title="function not covered" > __removeVariable(</span>variable: Variable) {
|
|
3546
3339
|
const parentKey = <span class="cstat-no" title="statement not covered" >variable.parentKey;</span>
|
|
3547
3340
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3548
3341
|
parentNode: this,
|
|
@@ -3553,21 +3346,13 @@ export class Function extends BaseNode {
|
|
|
3553
3346
|
};
|
|
3554
3347
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3555
3348
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
// @ts-ignore
|
|
3559
|
-
const n = <span class="cstat-no" title="statement not covered" >variable.__v_raw || variable;</span>
|
|
3560
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3561
|
-
// @ts-ignore
|
|
3562
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
3349
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3350
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(variable);</span>
|
|
3563
3351
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3564
3352
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3565
|
-
} else {
|
|
3566
|
-
|
|
3567
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3568
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3569
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3570
|
-
}
|
|
3353
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === variable) {</span>
|
|
3354
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3355
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3571
3356
|
}
|
|
3572
3357
|
}
|
|
3573
3358
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3585,7 +3370,7 @@ export class Function extends BaseNode {
|
|
|
3585
3370
|
*/
|
|
3586
3371
|
removeReturnExpression(returnExpression: LogicItem): void;
|
|
3587
3372
|
|
|
3588
|
-
<span class="fstat-no" title="function not covered" > removeReturnExpression(
|
|
3373
|
+
<span class="fstat-no" title="function not covered" > removeReturnExpression(</span>options: string | LogicItem) {
|
|
3589
3374
|
let returnExpression: LogicItem;
|
|
3590
3375
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3591
3376
|
<span class="cstat-no" title="statement not covered" > returnExpression = this.returnExpression;</span>
|
|
@@ -3598,7 +3383,7 @@ export class Function extends BaseNode {
|
|
|
3598
3383
|
<span class="cstat-no" title="statement not covered" > return returnExpression.delete();</span>
|
|
3599
3384
|
}
|
|
3600
3385
|
|
|
3601
|
-
<span class="fstat-no" title="function not covered" > __removeLogicItem(
|
|
3386
|
+
<span class="fstat-no" title="function not covered" > __removeLogicItem(</span>logicItem: LogicItem) {
|
|
3602
3387
|
const parentKey = <span class="cstat-no" title="statement not covered" >logicItem.parentKey;</span>
|
|
3603
3388
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3604
3389
|
parentNode: this,
|
|
@@ -3609,21 +3394,13 @@ export class Function extends BaseNode {
|
|
|
3609
3394
|
};
|
|
3610
3395
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3611
3396
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
// @ts-ignore
|
|
3615
|
-
const n = <span class="cstat-no" title="statement not covered" >logicItem.__v_raw || logicItem;</span>
|
|
3616
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3617
|
-
// @ts-ignore
|
|
3618
|
-
const index = (<span class="cstat-no" title="statement not covered" >t as any)[parentKey].findIndex((<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >el) => (e</span>l.__v_raw || el) === n)</span>;</span>
|
|
3397
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
3398
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(logicItem);</span>
|
|
3619
3399
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3620
3400
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3621
|
-
} else {
|
|
3622
|
-
|
|
3623
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3624
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3625
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3626
|
-
}
|
|
3401
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === logicItem) {</span>
|
|
3402
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3403
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3627
3404
|
}
|
|
3628
3405
|
}
|
|
3629
3406
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3634,7 +3411,7 @@ export class Function extends BaseNode {
|
|
|
3634
3411
|
// 自动生成的代码已结束。下面可以手动编写。
|
|
3635
3412
|
//================================================================================
|
|
3636
3413
|
|
|
3637
|
-
<span class="fstat-no" title="function not covered" > toJS(
|
|
3414
|
+
<span class="fstat-no" title="function not covered" > toJS(</span>state?: TranslatorState): String {
|
|
3638
3415
|
const grandParent = <span class="cstat-no" title="statement not covered" >this.parentNode?.parentNode as any;</span>
|
|
3639
3416
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3640
3417
|
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
@@ -3646,7 +3423,7 @@ export class Function extends BaseNode {
|
|
|
3646
3423
|
<span class="cstat-no" title="statement not covered" > code += ')';</span>
|
|
3647
3424
|
<span class="cstat-no" title="statement not covered" > code += ' => (';</span>
|
|
3648
3425
|
<span class="cstat-no" title="statement not covered" > if (this.returnExpression) {</span>
|
|
3649
|
-
<span class="cstat-no" title="statement not covered" > code += this.returnExpression.toJS(state);</span>
|
|
3426
|
+
<span class="cstat-no" title="statement not covered" > code += this.returnExpression.toJS(shiftState(state, code));</span>
|
|
3650
3427
|
}
|
|
3651
3428
|
<span class="cstat-no" title="statement not covered" > code += ')';</span>
|
|
3652
3429
|
let resultCode = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
@@ -3659,14 +3436,14 @@ export class Function extends BaseNode {
|
|
|
3659
3436
|
<span class="cstat-no" title="statement not covered" > return resultCode;</span>
|
|
3660
3437
|
}
|
|
3661
3438
|
|
|
3662
|
-
<span class="fstat-no" title="function not covered" > getVarExistingNames(
|
|
3439
|
+
<span class="fstat-no" title="function not covered" > getVarExistingNames(</span>excludedList: Array<Param | Return | Variable> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3663
3440
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3664
3441
|
<span class="cstat-no" title="statement not covered" > return [...this.params, ...this.returns, ...this.variables]</span>
|
|
3665
|
-
.filter(
|
|
3666
|
-
.map(
|
|
3442
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >!excludedSet.has(item))</span>
|
|
3443
|
+
.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name)</span>;
|
|
3667
3444
|
}
|
|
3668
3445
|
|
|
3669
|
-
<span class="fstat-no" title="function not covered" > getNamespace(): string {
|
|
3446
|
+
<span class="fstat-no" title="function not covered" > getNamespace(</span>): string {
|
|
3670
3447
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
3671
3448
|
let parentNodeNamespace = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3672
3449
|
<span class="cstat-no" title="statement not covered" > if ((this.parentNode as Namespace).getNamespace) {</span>
|
|
@@ -3677,41 +3454,44 @@ export class Function extends BaseNode {
|
|
|
3677
3454
|
<span class="cstat-no" title="statement not covered" > throw new Error('无法获取命名空间,请设置 parentNode!');</span>
|
|
3678
3455
|
}
|
|
3679
3456
|
|
|
3680
|
-
@
|
|
3681
|
-
<span class="fstat-no" title="function not covered" >
|
|
3682
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3457
|
+
@withSourceMap()
|
|
3458
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
3683
3459
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3684
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3460
|
+
<span class="cstat-no" title="statement not covered" > if (this.returnExpression) {</span>
|
|
3685
3461
|
<span class="cstat-no" title="statement not covered" > code += `(`;</span>
|
|
3686
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3687
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3688
|
-
<span class="cstat-no" title="statement not covered" > if (index !==
|
|
3462
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3463
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
3464
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
3689
3465
|
});
|
|
3690
3466
|
<span class="cstat-no" title="statement not covered" > code += `)`;</span>
|
|
3691
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3467
|
+
<span class="cstat-no" title="statement not covered" > if (this.returns.length) {</span>
|
|
3692
3468
|
<span class="cstat-no" title="statement not covered" > code += ': ';</span>
|
|
3693
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3694
|
-
returnOrigin('');
|
|
3469
|
+
<span class="cstat-no" title="statement not covered" > code += this.returns[0].typeAnnotation?.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
3695
3470
|
}
|
|
3696
3471
|
<span class="cstat-no" title="statement not covered" > code += ` => (`;</span>
|
|
3697
|
-
|
|
3698
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3472
|
+
|
|
3473
|
+
<span class="cstat-no" title="statement not covered" > if (this.returnExpression) {</span>
|
|
3474
|
+
<span class="cstat-no" title="statement not covered" > code +=</span>
|
|
3475
|
+
this.returnExpression.toEmbeddedTS &&
|
|
3476
|
+
this.returnExpression.toEmbeddedTS(shiftState(state, code, { tabSize: state.tabSize + 1 }));
|
|
3699
3477
|
}
|
|
3700
3478
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state.tabSize)})`;</span>
|
|
3701
3479
|
} else {
|
|
3702
3480
|
<span class="cstat-no" title="statement not covered" > code += '__IDENTIFIER__';</span>
|
|
3703
3481
|
}
|
|
3482
|
+
|
|
3704
3483
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3705
3484
|
}
|
|
3706
3485
|
|
|
3707
3486
|
@withSourceMap()
|
|
3708
|
-
<span class="fstat-no" title="function not covered" > toNaturalTS(<span class="branch-0 cbranch-no" title="branch not covered" >
|
|
3487
|
+
<span class="fstat-no" title="function not covered" > toNaturalTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
3709
3488
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3710
3489
|
<span class="cstat-no" title="statement not covered" > if (this.returnExpression) {</span>
|
|
3711
3490
|
<span class="cstat-no" title="statement not covered" > code += `(`;</span>
|
|
3712
3491
|
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3713
3492
|
<span class="cstat-no" title="statement not covered" > code += param.toNaturalTS(shiftState(state, code, { inline: true }));</span>
|
|
3714
|
-
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1)
|
|
3493
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1)</span>
|
|
3494
|
+
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
3715
3495
|
});
|
|
3716
3496
|
<span class="cstat-no" title="statement not covered" > code += `)`;</span>
|
|
3717
3497
|
<span class="cstat-no" title="statement not covered" > if (this.returns.length) {</span>
|
|
@@ -3721,9 +3501,7 @@ export class Function extends BaseNode {
|
|
|
3721
3501
|
<span class="cstat-no" title="statement not covered" > code += ` => (`;</span>
|
|
3722
3502
|
|
|
3723
3503
|
<span class="cstat-no" title="statement not covered" > if (this.returnExpression) {</span>
|
|
3724
|
-
<span class="cstat-no" title="statement not covered" > code
|
|
3725
|
-
this.returnExpression.toNaturalTS &&
|
|
3726
|
-
this.returnExpression.toNaturalTS(shiftState(state, code, { tabSize: state.tabSize + 1, inline: true }));
|
|
3504
|
+
<span class="cstat-no" title="statement not covered" > code += this.returnExpression.toNaturalTS && this.returnExpression.toNaturalTS(shiftState(state, code, { tabSize: state.tabSize + 1, inline: true }));</span>
|
|
3727
3505
|
}
|
|
3728
3506
|
<span class="cstat-no" title="statement not covered" > code += `${indent(state.tabSize)})`;</span>
|
|
3729
3507
|
} else {
|
|
@@ -3733,7 +3511,7 @@ export class Function extends BaseNode {
|
|
|
3733
3511
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3734
3512
|
}
|
|
3735
3513
|
|
|
3736
|
-
<span class="fstat-no" title="function not covered" > toVue(
|
|
3514
|
+
<span class="fstat-no" title="function not covered" > toVue(</span>options?: ElementToVueOptions): string {
|
|
3737
3515
|
let code = <span class="cstat-no" title="statement not covered" >'(';</span>
|
|
3738
3516
|
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3739
3517
|
<span class="cstat-no" title="statement not covered" > code += param.name;</span>
|
|
@@ -3749,7 +3527,7 @@ export class Function extends BaseNode {
|
|
|
3749
3527
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3750
3528
|
}
|
|
3751
3529
|
|
|
3752
|
-
<span class="fstat-no" title="function not covered" > toUI(
|
|
3530
|
+
<span class="fstat-no" title="function not covered" > toUI(</span>state?: TranslatorState): string {
|
|
3753
3531
|
let code = <span class="cstat-no" title="statement not covered" >'(';</span>
|
|
3754
3532
|
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3755
3533
|
<span class="cstat-no" title="statement not covered" > code += param.name;</span>
|
|
@@ -3759,29 +3537,26 @@ export class Function extends BaseNode {
|
|
|
3759
3537
|
<span class="cstat-no" title="statement not covered" > code += ` => (`;</span>
|
|
3760
3538
|
|
|
3761
3539
|
<span class="cstat-no" title="statement not covered" > if (this.returnExpression) {</span>
|
|
3762
|
-
<span class="cstat-no" title="statement not covered" > code += this.returnExpression.toUI && this.returnExpression.toUI(
|
|
3540
|
+
<span class="cstat-no" title="statement not covered" > code += this.returnExpression.toUI && this.returnExpression.toUI();</span>
|
|
3763
3541
|
}
|
|
3764
3542
|
<span class="cstat-no" title="statement not covered" > code += ')';</span>
|
|
3765
3543
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3766
3544
|
}
|
|
3767
3545
|
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
code += yield* param.toEmbeddedTS(shiftState(state, code, { inline: true }));
|
|
3774
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (index !== self.params.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span>
|
|
3546
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSDefinition(</span>state?: TranslatorState): string {
|
|
3547
|
+
let code = <span class="cstat-no" title="statement not covered" >'(';</span>
|
|
3548
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3549
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
3550
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1) <span class="cstat-no" title="statement not covered" >code += ', ';</span></span>
|
|
3775
3551
|
});
|
|
3776
|
-
code += `) => (
|
|
3777
|
-
|
|
3778
|
-
code +=
|
|
3779
|
-
returnOrigin('');
|
|
3552
|
+
<span class="cstat-no" title="statement not covered" > code += `) => (`;</span>
|
|
3553
|
+
<span class="cstat-no" title="statement not covered" > if (this.returns.length) {</span>
|
|
3554
|
+
<span class="cstat-no" title="statement not covered" > code += this.returns[0].typeAnnotation?.toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
3780
3555
|
} else {
|
|
3781
3556
|
<span class="cstat-no" title="statement not covered" > code += 'any';</span>
|
|
3782
3557
|
}
|
|
3783
|
-
code += `${indent(state.tabSize)})
|
|
3784
|
-
return code
|
|
3558
|
+
<span class="cstat-no" title="statement not covered" > code += `${indent(state.tabSize)})`;</span>
|
|
3559
|
+
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3785
3560
|
}
|
|
3786
3561
|
|
|
3787
3562
|
<span class="fstat-no" title="function not covered" > get c</span>alleeKey() {
|
|
@@ -3808,7 +3583,7 @@ export default Function;
|
|
|
3808
3583
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
3809
3584
|
Code coverage generated by
|
|
3810
3585
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
3811
|
-
at 2023-
|
|
3586
|
+
at 2023-10-18T11:36:07.885Z
|
|
3812
3587
|
</div>
|
|
3813
3588
|
<script src="../../prettify.js"></script>
|
|
3814
3589
|
<script>
|