@lcap/nasl 3.8.3-beta.1 → 3.8.3-beta.2
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.d.ts +9 -4
- package/out/common/BaseNode.js +43 -10
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +2 -50
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BusinessComponent__.js +2 -42
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +2 -50
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +1 -1
- package/out/concepts/CallFunction__.js +1 -1
- package/out/concepts/Identifier__.d.ts +2 -0
- package/out/concepts/Identifier__.js +51 -5
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/Logic__.js +6 -101
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +15 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +2 -50
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.js +4 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +4 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.js +4 -0
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.js +4 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/SubLogic__.js +5 -50
- package/out/concepts/SubLogic__.js.map +1 -1
- package/out/concepts/View__.js +10 -49
- package/out/concepts/View__.js.map +1 -1
- package/out/natural/transformTS2UI.js +3 -3
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transforms/transform2LogicItem.js +3 -3
- package/out/natural/transforms/transform2LogicItem.js.map +1 -1
- package/out/server/naslServer.js +17 -2
- package/out/server/naslServer.js.map +1 -1
- package/out/server/semanticData.d.ts +32 -0
- package/out/server/semanticData.js +371 -0
- package/out/server/semanticData.js.map +1 -0
- package/out/templator/block2nasl/viewMergeBlock.js +2 -1
- package/out/templator/block2nasl/viewMergeBlock.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseNode.ts +50 -8
- package/src/concepts/AuthLogicForCallInterface__.ts +3 -56
- package/src/concepts/BusinessComponent__.ts +6 -51
- package/src/concepts/BusinessLogic__.ts +4 -56
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/Identifier__.ts +57 -6
- package/src/concepts/Logic__.ts +9 -111
- package/src/concepts/MemberExpression__.ts +21 -7
- package/src/concepts/OverriddenLogic__.ts +4 -56
- package/src/concepts/ProcessElementV2__.ts +4 -0
- package/src/concepts/ProcessElement__.ts +4 -0
- package/src/concepts/ProcessV2__.ts +5 -0
- package/src/concepts/Process__.ts +4 -0
- package/src/concepts/SubLogic__.ts +6 -56
- package/src/concepts/View__.ts +14 -54
- package/src/natural/transformTS2UI.ts +7 -7
- package/src/natural/transforms/transform2LogicItem.ts +3 -3
- package/src/server/naslServer.ts +22 -2
- package/src/server/semanticData.ts +447 -0
- package/src/templator/block2nasl/viewMergeBlock.ts +2 -1
- package/src/translator/utils.ts +1 -1
- package/test/concepts/logic/__snapshots__/toEmbeddedTS.spec.ts.snap +182 -0
- package/test/concepts/logic/constant.ts +5 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-member-expression.json +267 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json +457 -0
- package/test/concepts/logic/fixtures/variable-host-call-logic-with-handle-error-member-expression.json +267 -0
- package/test/concepts/logic/toEmbeddedTS.spec.ts +15 -0
- 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">9.
|
|
26
|
+
<span class="strong">9.28% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>31/334</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/170</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">2.63% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>2/76</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">7.
|
|
47
|
+
<span class="strong">7.88% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>25/
|
|
49
|
+
<span class='fraction'>25/317</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1166,54 +1166,7 @@
|
|
|
1166
1166
|
<a name='L1101'></a><a href='#L1101'>1101</a>
|
|
1167
1167
|
<a name='L1102'></a><a href='#L1102'>1102</a>
|
|
1168
1168
|
<a name='L1103'></a><a href='#L1103'>1103</a>
|
|
1169
|
-
<a name='L1104'></a><a href='#L1104'>1104</a>
|
|
1170
|
-
<a name='L1105'></a><a href='#L1105'>1105</a>
|
|
1171
|
-
<a name='L1106'></a><a href='#L1106'>1106</a>
|
|
1172
|
-
<a name='L1107'></a><a href='#L1107'>1107</a>
|
|
1173
|
-
<a name='L1108'></a><a href='#L1108'>1108</a>
|
|
1174
|
-
<a name='L1109'></a><a href='#L1109'>1109</a>
|
|
1175
|
-
<a name='L1110'></a><a href='#L1110'>1110</a>
|
|
1176
|
-
<a name='L1111'></a><a href='#L1111'>1111</a>
|
|
1177
|
-
<a name='L1112'></a><a href='#L1112'>1112</a>
|
|
1178
|
-
<a name='L1113'></a><a href='#L1113'>1113</a>
|
|
1179
|
-
<a name='L1114'></a><a href='#L1114'>1114</a>
|
|
1180
|
-
<a name='L1115'></a><a href='#L1115'>1115</a>
|
|
1181
|
-
<a name='L1116'></a><a href='#L1116'>1116</a>
|
|
1182
|
-
<a name='L1117'></a><a href='#L1117'>1117</a>
|
|
1183
|
-
<a name='L1118'></a><a href='#L1118'>1118</a>
|
|
1184
|
-
<a name='L1119'></a><a href='#L1119'>1119</a>
|
|
1185
|
-
<a name='L1120'></a><a href='#L1120'>1120</a>
|
|
1186
|
-
<a name='L1121'></a><a href='#L1121'>1121</a>
|
|
1187
|
-
<a name='L1122'></a><a href='#L1122'>1122</a>
|
|
1188
|
-
<a name='L1123'></a><a href='#L1123'>1123</a>
|
|
1189
|
-
<a name='L1124'></a><a href='#L1124'>1124</a>
|
|
1190
|
-
<a name='L1125'></a><a href='#L1125'>1125</a>
|
|
1191
|
-
<a name='L1126'></a><a href='#L1126'>1126</a>
|
|
1192
|
-
<a name='L1127'></a><a href='#L1127'>1127</a>
|
|
1193
|
-
<a name='L1128'></a><a href='#L1128'>1128</a>
|
|
1194
|
-
<a name='L1129'></a><a href='#L1129'>1129</a>
|
|
1195
|
-
<a name='L1130'></a><a href='#L1130'>1130</a>
|
|
1196
|
-
<a name='L1131'></a><a href='#L1131'>1131</a>
|
|
1197
|
-
<a name='L1132'></a><a href='#L1132'>1132</a>
|
|
1198
|
-
<a name='L1133'></a><a href='#L1133'>1133</a>
|
|
1199
|
-
<a name='L1134'></a><a href='#L1134'>1134</a>
|
|
1200
|
-
<a name='L1135'></a><a href='#L1135'>1135</a>
|
|
1201
|
-
<a name='L1136'></a><a href='#L1136'>1136</a>
|
|
1202
|
-
<a name='L1137'></a><a href='#L1137'>1137</a>
|
|
1203
|
-
<a name='L1138'></a><a href='#L1138'>1138</a>
|
|
1204
|
-
<a name='L1139'></a><a href='#L1139'>1139</a>
|
|
1205
|
-
<a name='L1140'></a><a href='#L1140'>1140</a>
|
|
1206
|
-
<a name='L1141'></a><a href='#L1141'>1141</a>
|
|
1207
|
-
<a name='L1142'></a><a href='#L1142'>1142</a>
|
|
1208
|
-
<a name='L1143'></a><a href='#L1143'>1143</a>
|
|
1209
|
-
<a name='L1144'></a><a href='#L1144'>1144</a>
|
|
1210
|
-
<a name='L1145'></a><a href='#L1145'>1145</a>
|
|
1211
|
-
<a name='L1146'></a><a href='#L1146'>1146</a>
|
|
1212
|
-
<a name='L1147'></a><a href='#L1147'>1147</a>
|
|
1213
|
-
<a name='L1148'></a><a href='#L1148'>1148</a>
|
|
1214
|
-
<a name='L1149'></a><a href='#L1149'>1149</a>
|
|
1215
|
-
<a name='L1150'></a><a href='#L1150'>1150</a>
|
|
1216
|
-
<a name='L1151'></a><a href='#L1151'>1151</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1278x</span>
|
|
1169
|
+
<a name='L1104'></a><a href='#L1104'>1104</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
1217
1170
|
<span class="cline-any cline-neutral"> </span>
|
|
1218
1171
|
<span class="cline-any cline-neutral"> </span>
|
|
1219
1172
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1225,25 +1178,14 @@
|
|
|
1225
1178
|
<span class="cline-any cline-neutral"> </span>
|
|
1226
1179
|
<span class="cline-any cline-yes">1x</span>
|
|
1227
1180
|
<span class="cline-any cline-neutral"> </span>
|
|
1228
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1229
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1230
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1231
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1232
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1233
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1234
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1235
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1236
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1237
1181
|
<span class="cline-any cline-yes">1x</span>
|
|
1238
1182
|
<span class="cline-any cline-neutral"> </span>
|
|
1239
1183
|
<span class="cline-any cline-yes">1x</span>
|
|
1240
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1241
1184
|
<span class="cline-any cline-yes">1x</span>
|
|
1242
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1243
1185
|
<span class="cline-any cline-yes">1x</span>
|
|
1244
1186
|
<span class="cline-any cline-neutral"> </span>
|
|
1245
1187
|
<span class="cline-any cline-neutral"> </span>
|
|
1246
|
-
<span class="cline-any cline-
|
|
1188
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1247
1189
|
<span class="cline-any cline-neutral"> </span>
|
|
1248
1190
|
<span class="cline-any cline-neutral"> </span>
|
|
1249
1191
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1258,6 +1200,7 @@
|
|
|
1258
1200
|
<span class="cline-any cline-neutral"> </span>
|
|
1259
1201
|
<span class="cline-any cline-yes">1x</span>
|
|
1260
1202
|
<span class="cline-any cline-neutral"> </span>
|
|
1203
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1261
1204
|
<span class="cline-any cline-neutral"> </span>
|
|
1262
1205
|
<span class="cline-any cline-neutral"> </span>
|
|
1263
1206
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1268,10 +1211,6 @@
|
|
|
1268
1211
|
<span class="cline-any cline-neutral"> </span>
|
|
1269
1212
|
<span class="cline-any cline-neutral"> </span>
|
|
1270
1213
|
<span class="cline-any cline-neutral"> </span>
|
|
1271
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1272
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1273
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1274
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1275
1214
|
<span class="cline-any cline-neutral"> </span>
|
|
1276
1215
|
<span class="cline-any cline-neutral"> </span>
|
|
1277
1216
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -1280,11 +1219,6 @@
|
|
|
1280
1219
|
<span class="cline-any cline-neutral"> </span>
|
|
1281
1220
|
<span class="cline-any cline-neutral"> </span>
|
|
1282
1221
|
<span class="cline-any cline-neutral"> </span>
|
|
1283
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1284
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1285
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1286
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1287
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1288
1222
|
<span class="cline-any cline-neutral"> </span>
|
|
1289
1223
|
<span class="cline-any cline-yes">1x</span>
|
|
1290
1224
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1292,27 +1226,28 @@
|
|
|
1292
1226
|
<span class="cline-any cline-neutral"> </span>
|
|
1293
1227
|
<span class="cline-any cline-neutral"> </span>
|
|
1294
1228
|
<span class="cline-any cline-neutral"> </span>
|
|
1229
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1295
1230
|
<span class="cline-any cline-yes">1x</span>
|
|
1296
1231
|
<span class="cline-any cline-neutral"> </span>
|
|
1297
1232
|
<span class="cline-any cline-neutral"> </span>
|
|
1298
1233
|
<span class="cline-any cline-neutral"> </span>
|
|
1299
1234
|
<span class="cline-any cline-neutral"> </span>
|
|
1300
1235
|
<span class="cline-any cline-neutral"> </span>
|
|
1301
|
-
<span class="cline-any cline-yes">1x</span>
|
|
1302
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1303
1236
|
<span class="cline-any cline-neutral"> </span>
|
|
1237
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1304
1238
|
<span class="cline-any cline-neutral"> </span>
|
|
1305
1239
|
<span class="cline-any cline-neutral"> </span>
|
|
1306
1240
|
<span class="cline-any cline-neutral"> </span>
|
|
1307
1241
|
<span class="cline-any cline-neutral"> </span>
|
|
1308
1242
|
<span class="cline-any cline-neutral"> </span>
|
|
1309
1243
|
<span class="cline-any cline-neutral"> </span>
|
|
1244
|
+
<span class="cline-any cline-yes">1x</span>
|
|
1310
1245
|
<span class="cline-any cline-neutral"> </span>
|
|
1311
|
-
<span class="cline-any cline-yes">16x</span>
|
|
1312
1246
|
<span class="cline-any cline-neutral"> </span>
|
|
1313
1247
|
<span class="cline-any cline-neutral"> </span>
|
|
1314
1248
|
<span class="cline-any cline-neutral"> </span>
|
|
1315
1249
|
<span class="cline-any cline-neutral"> </span>
|
|
1250
|
+
<span class="cline-any cline-yes">16x</span>
|
|
1316
1251
|
<span class="cline-any cline-neutral"> </span>
|
|
1317
1252
|
<span class="cline-any cline-neutral"> </span>
|
|
1318
1253
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1325,7 +1260,6 @@
|
|
|
1325
1260
|
<span class="cline-any cline-neutral"> </span>
|
|
1326
1261
|
<span class="cline-any cline-neutral"> </span>
|
|
1327
1262
|
<span class="cline-any cline-neutral"> </span>
|
|
1328
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1329
1263
|
<span class="cline-any cline-yes">1x</span>
|
|
1330
1264
|
<span class="cline-any cline-neutral"> </span>
|
|
1331
1265
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1388,6 +1322,17 @@
|
|
|
1388
1322
|
<span class="cline-any cline-neutral"> </span>
|
|
1389
1323
|
<span class="cline-any cline-neutral"> </span>
|
|
1390
1324
|
<span class="cline-any cline-neutral"> </span>
|
|
1325
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1326
|
+
<span class="cline-any cline-no"> </span>
|
|
1327
|
+
<span class="cline-any cline-no"> </span>
|
|
1328
|
+
<span class="cline-any cline-no"> </span>
|
|
1329
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1330
|
+
<span class="cline-any cline-no"> </span>
|
|
1331
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1332
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1333
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1334
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1335
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1391
1336
|
<span class="cline-any cline-no"> </span>
|
|
1392
1337
|
<span class="cline-any cline-neutral"> </span>
|
|
1393
1338
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1452,7 +1397,6 @@
|
|
|
1452
1397
|
<span class="cline-any cline-neutral"> </span>
|
|
1453
1398
|
<span class="cline-any cline-no"> </span>
|
|
1454
1399
|
<span class="cline-any cline-no"> </span>
|
|
1455
|
-
<span class="cline-any cline-no"> </span>
|
|
1456
1400
|
<span class="cline-any cline-neutral"> </span>
|
|
1457
1401
|
<span class="cline-any cline-no"> </span>
|
|
1458
1402
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1602,7 +1546,6 @@
|
|
|
1602
1546
|
<span class="cline-any cline-neutral"> </span>
|
|
1603
1547
|
<span class="cline-any cline-no"> </span>
|
|
1604
1548
|
<span class="cline-any cline-no"> </span>
|
|
1605
|
-
<span class="cline-any cline-no"> </span>
|
|
1606
1549
|
<span class="cline-any cline-neutral"> </span>
|
|
1607
1550
|
<span class="cline-any cline-no"> </span>
|
|
1608
1551
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1760,23 +1703,15 @@
|
|
|
1760
1703
|
<span class="cline-any cline-neutral"> </span>
|
|
1761
1704
|
<span class="cline-any cline-no"> </span>
|
|
1762
1705
|
<span class="cline-any cline-no"> </span>
|
|
1763
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1764
|
-
<span class="cline-any cline-no"> </span>
|
|
1765
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1766
|
-
<span class="cline-any cline-no"> </span>
|
|
1767
|
-
<span class="cline-any cline-no"> </span>
|
|
1768
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1769
1706
|
<span class="cline-any cline-no"> </span>
|
|
1770
1707
|
<span class="cline-any cline-no"> </span>
|
|
1771
1708
|
<span class="cline-any cline-no"> </span>
|
|
1772
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1773
1709
|
<span class="cline-any cline-no"> </span>
|
|
1774
1710
|
<span class="cline-any cline-no"> </span>
|
|
1775
1711
|
<span class="cline-any cline-no"> </span>
|
|
1776
1712
|
<span class="cline-any cline-no"> </span>
|
|
1777
1713
|
<span class="cline-any cline-neutral"> </span>
|
|
1778
1714
|
<span class="cline-any cline-neutral"> </span>
|
|
1779
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1780
1715
|
<span class="cline-any cline-no"> </span>
|
|
1781
1716
|
<span class="cline-any cline-neutral"> </span>
|
|
1782
1717
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1816,23 +1751,15 @@
|
|
|
1816
1751
|
<span class="cline-any cline-neutral"> </span>
|
|
1817
1752
|
<span class="cline-any cline-no"> </span>
|
|
1818
1753
|
<span class="cline-any cline-no"> </span>
|
|
1819
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1820
|
-
<span class="cline-any cline-no"> </span>
|
|
1821
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1822
|
-
<span class="cline-any cline-no"> </span>
|
|
1823
|
-
<span class="cline-any cline-no"> </span>
|
|
1824
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1825
1754
|
<span class="cline-any cline-no"> </span>
|
|
1826
1755
|
<span class="cline-any cline-no"> </span>
|
|
1827
1756
|
<span class="cline-any cline-no"> </span>
|
|
1828
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1829
1757
|
<span class="cline-any cline-no"> </span>
|
|
1830
1758
|
<span class="cline-any cline-no"> </span>
|
|
1831
1759
|
<span class="cline-any cline-no"> </span>
|
|
1832
1760
|
<span class="cline-any cline-no"> </span>
|
|
1833
1761
|
<span class="cline-any cline-neutral"> </span>
|
|
1834
1762
|
<span class="cline-any cline-neutral"> </span>
|
|
1835
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1836
1763
|
<span class="cline-any cline-no"> </span>
|
|
1837
1764
|
<span class="cline-any cline-neutral"> </span>
|
|
1838
1765
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1872,23 +1799,15 @@
|
|
|
1872
1799
|
<span class="cline-any cline-neutral"> </span>
|
|
1873
1800
|
<span class="cline-any cline-no"> </span>
|
|
1874
1801
|
<span class="cline-any cline-no"> </span>
|
|
1875
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1876
|
-
<span class="cline-any cline-no"> </span>
|
|
1877
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1878
|
-
<span class="cline-any cline-no"> </span>
|
|
1879
|
-
<span class="cline-any cline-no"> </span>
|
|
1880
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1881
1802
|
<span class="cline-any cline-no"> </span>
|
|
1882
1803
|
<span class="cline-any cline-no"> </span>
|
|
1883
1804
|
<span class="cline-any cline-no"> </span>
|
|
1884
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1885
1805
|
<span class="cline-any cline-no"> </span>
|
|
1886
1806
|
<span class="cline-any cline-no"> </span>
|
|
1887
1807
|
<span class="cline-any cline-no"> </span>
|
|
1888
1808
|
<span class="cline-any cline-no"> </span>
|
|
1889
1809
|
<span class="cline-any cline-neutral"> </span>
|
|
1890
1810
|
<span class="cline-any cline-neutral"> </span>
|
|
1891
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1892
1811
|
<span class="cline-any cline-no"> </span>
|
|
1893
1812
|
<span class="cline-any cline-neutral"> </span>
|
|
1894
1813
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2097,9 +2016,6 @@
|
|
|
2097
2016
|
<span class="cline-any cline-neutral"> </span>
|
|
2098
2017
|
<span class="cline-any cline-neutral"> </span>
|
|
2099
2018
|
<span class="cline-any cline-neutral"> </span>
|
|
2100
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2101
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2102
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2103
2019
|
<span class="cline-any cline-no"> </span>
|
|
2104
2020
|
<span class="cline-any cline-no"> </span>
|
|
2105
2021
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2187,19 +2103,12 @@
|
|
|
2187
2103
|
<span class="cline-any cline-no"> </span>
|
|
2188
2104
|
<span class="cline-any cline-no"> </span>
|
|
2189
2105
|
<span class="cline-any cline-neutral"> </span>
|
|
2190
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2191
|
-
<span class="cline-any cline-no"> </span>
|
|
2192
|
-
<span class="cline-any cline-no"> </span>
|
|
2193
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2194
2106
|
<span class="cline-any cline-no"> </span>
|
|
2195
2107
|
<span class="cline-any cline-neutral"> </span>
|
|
2196
2108
|
<span class="cline-any cline-neutral"> </span>
|
|
2197
2109
|
<span class="cline-any cline-neutral"> </span>
|
|
2198
2110
|
<span class="cline-any cline-yes">1x</span>
|
|
2199
2111
|
<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
2112
|
<span class="cline-any cline-no"> </span>
|
|
2204
2113
|
<span class="cline-any cline-no"> </span>
|
|
2205
2114
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2207,6 +2116,7 @@
|
|
|
2207
2116
|
<span class="cline-any cline-no"> </span>
|
|
2208
2117
|
<span class="cline-any cline-neutral"> </span>
|
|
2209
2118
|
<span class="cline-any cline-neutral"> </span>
|
|
2119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2210
2120
|
<span class="cline-any cline-no"> </span>
|
|
2211
2121
|
<span class="cline-any cline-no"> </span>
|
|
2212
2122
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2235,6 +2145,7 @@
|
|
|
2235
2145
|
<span class="cline-any cline-no"> </span>
|
|
2236
2146
|
<span class="cline-any cline-no"> </span>
|
|
2237
2147
|
<span class="cline-any cline-neutral"> </span>
|
|
2148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
2238
2149
|
<span class="cline-any cline-no"> </span>
|
|
2239
2150
|
<span class="cline-any cline-no"> </span>
|
|
2240
2151
|
<span class="cline-any cline-no"> </span>
|
|
@@ -2349,11 +2260,6 @@
|
|
|
2349
2260
|
<span class="cline-any cline-neutral"> </span>
|
|
2350
2261
|
<span class="cline-any cline-neutral"> </span>
|
|
2351
2262
|
<span class="cline-any cline-neutral"> </span>
|
|
2352
|
-
<span class="cline-any cline-no"> </span>
|
|
2353
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2354
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2355
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2356
|
-
<span class="cline-any cline-neutral"> </span>
|
|
2357
2263
|
<span class="cline-any cline-neutral"> </span>
|
|
2358
2264
|
<span class="cline-any cline-neutral"> </span>
|
|
2359
2265
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -2363,60 +2269,45 @@
|
|
|
2363
2269
|
<span class="cline-any cline-neutral"> </span>
|
|
2364
2270
|
<span class="cline-any cline-neutral"> </span>
|
|
2365
2271
|
<span class="cline-any cline-neutral"> </span>
|
|
2366
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
2367
|
-
import
|
|
2368
|
-
import
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
withSourceMap,
|
|
2372
|
-
createCompilerState,
|
|
2373
|
-
withSourceMapGenerator,
|
|
2374
|
-
withGenerator,
|
|
2375
|
-
TranslatorGenerator,
|
|
2376
|
-
} from '../translator';
|
|
2377
|
-
import type Namespace from './Namespace__';
|
|
2378
|
-
import type TypeAnnotation from './TypeAnnotation__';
|
|
2379
|
-
import type Structure from './Structure__';
|
|
2380
|
-
import type Param from './Param__';
|
|
2381
|
-
import { CUSTOM_CONNECTOR_EDITABLE_SUFFIX } from './basics/constants';
|
|
2272
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { TranslatorState, shiftState, withSourceMap, createCompilerState } from '../translator';
|
|
2273
|
+
import Namespace from './Namespace__';
|
|
2274
|
+
import TypeAnnotation from './TypeAnnotation__';
|
|
2275
|
+
import Structure from './Structure__';
|
|
2276
|
+
import Param from './Param__';
|
|
2382
2277
|
//================================================================================
|
|
2383
2278
|
// 从这里开始到结尾注释之间的代码由 NASL Workbench 自动生成,请不手动修改!
|
|
2384
2279
|
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
2385
2280
|
//================================================================================
|
|
2386
2281
|
import { EventPayload, Params } from '../common/EventEmitter';
|
|
2387
|
-
import { concept, excludedInJSON, property,
|
|
2282
|
+
import { concept, excludedInJSON, property, className } from '../decorators';
|
|
2388
2283
|
|
|
2389
2284
|
import * as utils from '../utils';
|
|
2390
|
-
import * as types from './utils/types';
|
|
2391
|
-
import * as asserts from './utils/asserts';
|
|
2392
2285
|
import { v4 as uuidv4 } from 'uuid';
|
|
2393
|
-
import
|
|
2394
|
-
import
|
|
2395
|
-
import
|
|
2396
|
-
import
|
|
2397
|
-
import
|
|
2398
|
-
import
|
|
2399
|
-
import
|
|
2400
|
-
import
|
|
2401
|
-
import
|
|
2402
|
-
import
|
|
2403
|
-
import
|
|
2286
|
+
import BaseNode from '../common/BaseNode';
|
|
2287
|
+
import InterfaceParam from './InterfaceParam__';
|
|
2288
|
+
import Return from './Return__';
|
|
2289
|
+
import BindAttribute from './BindAttribute__';
|
|
2290
|
+
import Module from './Module__';
|
|
2291
|
+
import Connector from './Connector__';
|
|
2292
|
+
import App from './App__';
|
|
2293
|
+
import View from './View__';
|
|
2294
|
+
import Frontend from './Frontend__';
|
|
2295
|
+
import ProcessElement from './ProcessElement__';
|
|
2296
|
+
import Process from './Process__';
|
|
2404
2297
|
|
|
2405
2298
|
/**
|
|
2406
2299
|
* 接口
|
|
2407
2300
|
*/
|
|
2301
|
+
@className
|
|
2408
2302
|
@concept('接口')
|
|
2409
|
-
|
|
2303
|
+
// @ts-ignore
|
|
2304
|
+
export class Interface extends BaseNode {
|
|
2410
2305
|
/** 类名 */
|
|
2411
|
-
static readonly ConceptName
|
|
2412
|
-
|
|
2413
|
-
/** 继承链 */
|
|
2414
|
-
static readonly inheritanceChain: string[] = ['ImportedInterface', 'AbstractInterface', 'BaseNode'];
|
|
2306
|
+
static readonly ConceptName = 'Interface';
|
|
2415
2307
|
|
|
2416
2308
|
/**
|
|
2417
2309
|
* 产品概念
|
|
2418
2310
|
*/
|
|
2419
|
-
@property('concept')
|
|
2420
2311
|
// @ts-ignore
|
|
2421
2312
|
readonly concept!: 'Interface' | 'AuthInterface';
|
|
2422
2313
|
|
|
@@ -2424,58 +2315,54 @@ export class Interface extends ImportedInterface {
|
|
|
2424
2315
|
* 接口名称
|
|
2425
2316
|
*/
|
|
2426
2317
|
@property()
|
|
2318
|
+
// @ts-ignore
|
|
2427
2319
|
name!: string;
|
|
2428
2320
|
|
|
2429
2321
|
/**
|
|
2430
2322
|
* 导出的来源
|
|
2431
2323
|
*/
|
|
2432
2324
|
@property()
|
|
2325
|
+
// @ts-ignore
|
|
2433
2326
|
originLogicName!: string;
|
|
2434
2327
|
|
|
2435
2328
|
/**
|
|
2436
2329
|
* 接口路径
|
|
2437
2330
|
*/
|
|
2438
2331
|
@property()
|
|
2332
|
+
// @ts-ignore
|
|
2439
2333
|
path!: string;
|
|
2440
2334
|
|
|
2441
2335
|
/**
|
|
2442
2336
|
* 接口方法
|
|
2443
2337
|
*/
|
|
2444
2338
|
@property()
|
|
2339
|
+
// @ts-ignore
|
|
2445
2340
|
method!: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
2446
2341
|
|
|
2447
2342
|
/**
|
|
2448
2343
|
* 接口描述
|
|
2449
2344
|
*/
|
|
2450
2345
|
@property()
|
|
2346
|
+
// @ts-ignore
|
|
2451
2347
|
description!: string;
|
|
2452
2348
|
|
|
2453
2349
|
/**
|
|
2454
2350
|
* 接口参数列表
|
|
2455
2351
|
*/
|
|
2456
|
-
@property(
|
|
2457
|
-
objectRef: 'InterfaceParam',
|
|
2458
|
-
isArray: true,
|
|
2459
|
-
defaultValue: [],
|
|
2460
|
-
})
|
|
2352
|
+
@property('InterfaceParam')
|
|
2461
2353
|
params: Array<InterfaceParam> = [];
|
|
2462
2354
|
|
|
2463
2355
|
/**
|
|
2464
2356
|
* 输出参数列表
|
|
2465
2357
|
*/
|
|
2466
|
-
@property(
|
|
2467
|
-
objectRef: 'Return',
|
|
2468
|
-
isArray: true,
|
|
2469
|
-
defaultValue: [],
|
|
2470
|
-
})
|
|
2358
|
+
@property('Return')
|
|
2471
2359
|
returns: Array<Return> = [];
|
|
2472
2360
|
|
|
2473
2361
|
/**
|
|
2474
2362
|
* 验证规则
|
|
2475
2363
|
*/
|
|
2476
|
-
@property(
|
|
2477
|
-
|
|
2478
|
-
})
|
|
2364
|
+
@property('BindAttribute')
|
|
2365
|
+
// @ts-ignore
|
|
2479
2366
|
validation!: BindAttribute;
|
|
2480
2367
|
|
|
2481
2368
|
/**
|
|
@@ -2534,10 +2421,21 @@ export class Interface extends ImportedInterface {
|
|
|
2534
2421
|
return super.from(source, parentNode, parentKey) as Interface;
|
|
2535
2422
|
}
|
|
2536
2423
|
|
|
2424
|
+
/**
|
|
2425
|
+
* 从父级删除该节点
|
|
2426
|
+
* @internal
|
|
2427
|
+
*/
|
|
2428
|
+
<span class="fstat-no" title="function not covered" > _delete(</span>) {
|
|
2429
|
+
let params: Params = <span class="cstat-no" title="statement not covered" >null;</span>
|
|
2430
|
+
<span class="cstat-no" title="statement not covered" > if (this.parentNode) {</span>
|
|
2431
|
+
<span class="cstat-no" title="statement not covered" > params = (this.parentNode as any)?.__removeInterface?.(this);</span>
|
|
2432
|
+
}
|
|
2433
|
+
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
2434
|
+
}
|
|
2537
2435
|
/**
|
|
2538
2436
|
* 设置接口名称
|
|
2539
2437
|
*/
|
|
2540
|
-
<span class="fstat-no" title="function not covered" > setName(
|
|
2438
|
+
<span class="fstat-no" title="function not covered" > setName(</span>name: string) {
|
|
2541
2439
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2542
2440
|
name,
|
|
2543
2441
|
};
|
|
@@ -2550,7 +2448,7 @@ export class Interface extends ImportedInterface {
|
|
|
2550
2448
|
/**
|
|
2551
2449
|
* 设置接口描述
|
|
2552
2450
|
*/
|
|
2553
|
-
<span class="fstat-no" title="function not covered" > setDescription(
|
|
2451
|
+
<span class="fstat-no" title="function not covered" > setDescription(</span>description: string) {
|
|
2554
2452
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2555
2453
|
description,
|
|
2556
2454
|
};
|
|
@@ -2562,7 +2460,7 @@ export class Interface extends ImportedInterface {
|
|
|
2562
2460
|
/**
|
|
2563
2461
|
* 设置验证规则
|
|
2564
2462
|
*/
|
|
2565
|
-
<span class="fstat-no" title="function not covered" > setValidation(
|
|
2463
|
+
<span class="fstat-no" title="function not covered" > setValidation(</span>validation: BindAttribute) {
|
|
2566
2464
|
<span class="cstat-no" title="statement not covered" > validation._delete();</span>
|
|
2567
2465
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'validation' };</span>
|
|
2568
2466
|
<span class="cstat-no" title="statement not covered" > Object.assign(validation, relationOptions);</span>
|
|
@@ -2574,7 +2472,7 @@ export class Interface extends ImportedInterface {
|
|
|
2574
2472
|
});
|
|
2575
2473
|
}
|
|
2576
2474
|
|
|
2577
|
-
<span class="fstat-no" title="function not covered" > getInterfaceParamUniqueName(
|
|
2475
|
+
<span class="fstat-no" title="function not covered" > getInterfaceParamUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'interfaceParam1')</span> {
|
|
2578
2476
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getVarExistingNames(), undefined, false);</span>
|
|
2579
2477
|
}
|
|
2580
2478
|
|
|
@@ -2599,10 +2497,9 @@ export class Interface extends ImportedInterface {
|
|
|
2599
2497
|
*/
|
|
2600
2498
|
_insertInterfaceParamAt(interfaceParam: InterfaceParam, index: number): InterfaceParam;
|
|
2601
2499
|
|
|
2602
|
-
<span class="fstat-no" title="function not covered" > _insertInterfaceParamAt(
|
|
2500
|
+
<span class="fstat-no" title="function not covered" > _insertInterfaceParamAt(</span>options: string | Partial<InterfaceParam> | InterfaceParam, index: number) {
|
|
2603
2501
|
const interfaceParamOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
2604
2502
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'params' };</span>
|
|
2605
|
-
const <span class="cstat-no" title="statement not covered" >InterfaceParam = getConceptConstructor('InterfaceParam');</span>
|
|
2606
2503
|
let interfaceParam: InterfaceParam;
|
|
2607
2504
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2608
2505
|
<span class="cstat-no" title="statement not covered" > interfaceParam = InterfaceParam.from(</span>
|
|
@@ -2613,7 +2510,7 @@ export class Interface extends ImportedInterface {
|
|
|
2613
2510
|
this,
|
|
2614
2511
|
'params',
|
|
2615
2512
|
);
|
|
2616
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2513
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2617
2514
|
<span class="cstat-no" title="statement not covered" > interfaceParam = InterfaceParam.from(</span>
|
|
2618
2515
|
{
|
|
2619
2516
|
...interfaceParamOptions,
|
|
@@ -2622,8 +2519,8 @@ export class Interface extends ImportedInterface {
|
|
|
2622
2519
|
this,
|
|
2623
2520
|
'params',
|
|
2624
2521
|
);
|
|
2625
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2626
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2522
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof InterfaceParam) {</span>
|
|
2523
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2627
2524
|
<span class="cstat-no" title="statement not covered" > interfaceParam = options;</span>
|
|
2628
2525
|
<span class="cstat-no" title="statement not covered" > Object.assign(interfaceParam, relationOptions);</span>
|
|
2629
2526
|
} else {
|
|
@@ -2658,7 +2555,7 @@ export class Interface extends ImportedInterface {
|
|
|
2658
2555
|
*/
|
|
2659
2556
|
insertInterfaceParamAt(interfaceParam: InterfaceParam, index: number): InterfaceParam;
|
|
2660
2557
|
|
|
2661
|
-
<span class="fstat-no" title="function not covered" > insertInterfaceParamAt(
|
|
2558
|
+
<span class="fstat-no" title="function not covered" > insertInterfaceParamAt(</span>options: string | Partial<InterfaceParam> | InterfaceParam, index: number) {
|
|
2662
2559
|
const node = <span class="cstat-no" title="statement not covered" >this._insertInterfaceParamAt(options as any, index);</span>
|
|
2663
2560
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2664
2561
|
index,
|
|
@@ -2689,7 +2586,7 @@ export class Interface extends ImportedInterface {
|
|
|
2689
2586
|
*/
|
|
2690
2587
|
_addInterfaceParam(interfaceParam: InterfaceParam): InterfaceParam;
|
|
2691
2588
|
|
|
2692
|
-
<span class="fstat-no" title="function not covered" > _addInterfaceParam(
|
|
2589
|
+
<span class="fstat-no" title="function not covered" > _addInterfaceParam(</span>options?: string | Partial<InterfaceParam> | InterfaceParam) {
|
|
2693
2590
|
const index = <span class="cstat-no" title="statement not covered" >this.params.length;</span>
|
|
2694
2591
|
<span class="cstat-no" title="statement not covered" > return this._insertInterfaceParamAt(options as any, index);</span>
|
|
2695
2592
|
}
|
|
@@ -2713,7 +2610,7 @@ export class Interface extends ImportedInterface {
|
|
|
2713
2610
|
*/
|
|
2714
2611
|
addInterfaceParam(interfaceParam: InterfaceParam): InterfaceParam;
|
|
2715
2612
|
|
|
2716
|
-
<span class="fstat-no" title="function not covered" > addInterfaceParam(
|
|
2613
|
+
<span class="fstat-no" title="function not covered" > addInterfaceParam(</span>options?: string | Partial<InterfaceParam> | InterfaceParam) {
|
|
2717
2614
|
const node = <span class="cstat-no" title="statement not covered" >this._addInterfaceParam(options as any);</span>
|
|
2718
2615
|
const index = <span class="cstat-no" title="statement not covered" >this.params.indexOf(node);</span>
|
|
2719
2616
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -2724,7 +2621,7 @@ export class Interface extends ImportedInterface {
|
|
|
2724
2621
|
<span class="cstat-no" title="statement not covered" > return node;</span>
|
|
2725
2622
|
}
|
|
2726
2623
|
|
|
2727
|
-
<span class="fstat-no" title="function not covered" > getReturnUniqueName(
|
|
2624
|
+
<span class="fstat-no" title="function not covered" > getReturnUniqueName(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >'result')</span> {
|
|
2728
2625
|
<span class="cstat-no" title="statement not covered" > return utils.unique(name, this.getVarExistingNames(), undefined, false);</span>
|
|
2729
2626
|
}
|
|
2730
2627
|
|
|
@@ -2749,10 +2646,9 @@ export class Interface extends ImportedInterface {
|
|
|
2749
2646
|
*/
|
|
2750
2647
|
_insertReturnAt(ret: Return, index: number): Return;
|
|
2751
2648
|
|
|
2752
|
-
<span class="fstat-no" title="function not covered" > _insertReturnAt(
|
|
2649
|
+
<span class="fstat-no" title="function not covered" > _insertReturnAt(</span>options: string | Partial<Return> | Return, index: number) {
|
|
2753
2650
|
const retOptions: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
2754
2651
|
const relationOptions = <span class="cstat-no" title="statement not covered" >{ parentNode: this, parentKey: 'returns' };</span>
|
|
2755
|
-
const <span class="cstat-no" title="statement not covered" >Return = getConceptConstructor('Return');</span>
|
|
2756
2652
|
let ret: Return;
|
|
2757
2653
|
<span class="cstat-no" title="statement not covered" > if (!options) {</span>
|
|
2758
2654
|
<span class="cstat-no" title="statement not covered" > ret = Return.from(</span>
|
|
@@ -2763,7 +2659,7 @@ export class Interface extends ImportedInterface {
|
|
|
2763
2659
|
this,
|
|
2764
2660
|
'returns',
|
|
2765
2661
|
);
|
|
2766
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2662
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeof options === 'string') {</span>
|
|
2767
2663
|
<span class="cstat-no" title="statement not covered" > ret = Return.from(</span>
|
|
2768
2664
|
{
|
|
2769
2665
|
...retOptions,
|
|
@@ -2772,8 +2668,8 @@ export class Interface extends ImportedInterface {
|
|
|
2772
2668
|
this,
|
|
2773
2669
|
'returns',
|
|
2774
2670
|
);
|
|
2775
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2776
|
-
<span class="cstat-no" title="statement not covered" > options.ensureDelete();
|
|
2671
|
+
} else <span class="cstat-no" title="statement not covered" >if (options instanceof Return) {</span>
|
|
2672
|
+
<span class="cstat-no" title="statement not covered" > options.ensureDelete(); </span>// 同一实例不支持多处存在
|
|
2777
2673
|
<span class="cstat-no" title="statement not covered" > ret = options;</span>
|
|
2778
2674
|
<span class="cstat-no" title="statement not covered" > Object.assign(ret, relationOptions);</span>
|
|
2779
2675
|
} else {
|
|
@@ -2808,7 +2704,7 @@ export class Interface extends ImportedInterface {
|
|
|
2808
2704
|
*/
|
|
2809
2705
|
insertReturnAt(ret: Return, index: number): Return;
|
|
2810
2706
|
|
|
2811
|
-
<span class="fstat-no" title="function not covered" > insertReturnAt(
|
|
2707
|
+
<span class="fstat-no" title="function not covered" > insertReturnAt(</span>options: string | Partial<Return> | Return, index: number) {
|
|
2812
2708
|
const node = <span class="cstat-no" title="statement not covered" >this._insertReturnAt(options as any, index);</span>
|
|
2813
2709
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
2814
2710
|
index,
|
|
@@ -2839,7 +2735,7 @@ export class Interface extends ImportedInterface {
|
|
|
2839
2735
|
*/
|
|
2840
2736
|
_addReturn(ret: Return): Return;
|
|
2841
2737
|
|
|
2842
|
-
<span class="fstat-no" title="function not covered" > _addReturn(
|
|
2738
|
+
<span class="fstat-no" title="function not covered" > _addReturn(</span>options?: string | Partial<Return> | Return) {
|
|
2843
2739
|
const index = <span class="cstat-no" title="statement not covered" >this.returns.length;</span>
|
|
2844
2740
|
<span class="cstat-no" title="statement not covered" > return this._insertReturnAt(options as any, index);</span>
|
|
2845
2741
|
}
|
|
@@ -2863,7 +2759,7 @@ export class Interface extends ImportedInterface {
|
|
|
2863
2759
|
*/
|
|
2864
2760
|
addReturn(ret: Return): Return;
|
|
2865
2761
|
|
|
2866
|
-
<span class="fstat-no" title="function not covered" > addReturn(
|
|
2762
|
+
<span class="fstat-no" title="function not covered" > addReturn(</span>options?: string | Partial<Return> | Return) {
|
|
2867
2763
|
const node = <span class="cstat-no" title="statement not covered" >this._addReturn(options as any);</span>
|
|
2868
2764
|
const index = <span class="cstat-no" title="statement not covered" >this.returns.indexOf(node);</span>
|
|
2869
2765
|
<span class="cstat-no" title="statement not covered" > node.create({</span>
|
|
@@ -2886,10 +2782,10 @@ export class Interface extends ImportedInterface {
|
|
|
2886
2782
|
*/
|
|
2887
2783
|
removeInterfaceParam(interfaceParam: InterfaceParam): void;
|
|
2888
2784
|
|
|
2889
|
-
<span class="fstat-no" title="function not covered" > removeInterfaceParam(
|
|
2785
|
+
<span class="fstat-no" title="function not covered" > removeInterfaceParam(</span>options: string | InterfaceParam) {
|
|
2890
2786
|
let interfaceParam: InterfaceParam;
|
|
2891
2787
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2892
|
-
<span class="cstat-no" title="statement not covered" > interfaceParam = (this.params as InterfaceParam[]).find(
|
|
2788
|
+
<span class="cstat-no" title="statement not covered" > interfaceParam = (this.params as InterfaceParam[]).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>
|
|
2893
2789
|
<span class="cstat-no" title="statement not covered" > if (!interfaceParam) {</span>
|
|
2894
2790
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到接口参数 ' + options);</span>
|
|
2895
2791
|
}
|
|
@@ -2899,7 +2795,7 @@ export class Interface extends ImportedInterface {
|
|
|
2899
2795
|
<span class="cstat-no" title="statement not covered" > return interfaceParam.delete();</span>
|
|
2900
2796
|
}
|
|
2901
2797
|
|
|
2902
|
-
<span class="fstat-no" title="function not covered" > __removeInterfaceParam(
|
|
2798
|
+
<span class="fstat-no" title="function not covered" > __removeInterfaceParam(</span>interfaceParam: InterfaceParam) {
|
|
2903
2799
|
const parentKey = <span class="cstat-no" title="statement not covered" >interfaceParam.parentKey;</span>
|
|
2904
2800
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2905
2801
|
parentNode: this,
|
|
@@ -2910,21 +2806,13 @@ export class Interface extends ImportedInterface {
|
|
|
2910
2806
|
};
|
|
2911
2807
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
2912
2808
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
// @ts-ignore
|
|
2916
|
-
const n = <span class="cstat-no" title="statement not covered" >interfaceParam.__v_raw || interfaceParam;</span>
|
|
2917
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
2918
|
-
// @ts-ignore
|
|
2919
|
-
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>
|
|
2809
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
2810
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(interfaceParam);</span>
|
|
2920
2811
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
2921
2812
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
2922
|
-
} else {
|
|
2923
|
-
|
|
2924
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2925
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2926
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2927
|
-
}
|
|
2813
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === interfaceParam) {</span>
|
|
2814
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2815
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2928
2816
|
}
|
|
2929
2817
|
}
|
|
2930
2818
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -2942,10 +2830,10 @@ export class Interface extends ImportedInterface {
|
|
|
2942
2830
|
*/
|
|
2943
2831
|
removeReturn(ret: Return): void;
|
|
2944
2832
|
|
|
2945
|
-
<span class="fstat-no" title="function not covered" > removeReturn(
|
|
2833
|
+
<span class="fstat-no" title="function not covered" > removeReturn(</span>options: string | Return) {
|
|
2946
2834
|
let ret: Return;
|
|
2947
2835
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
2948
|
-
<span class="cstat-no" title="statement not covered" > ret = (this.returns as Return[]).find(
|
|
2836
|
+
<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>
|
|
2949
2837
|
<span class="cstat-no" title="statement not covered" > if (!ret) {</span>
|
|
2950
2838
|
<span class="cstat-no" title="statement not covered" > throw new Error('找不到输出参数 ' + options);</span>
|
|
2951
2839
|
}
|
|
@@ -2955,7 +2843,7 @@ export class Interface extends ImportedInterface {
|
|
|
2955
2843
|
<span class="cstat-no" title="statement not covered" > return ret.delete();</span>
|
|
2956
2844
|
}
|
|
2957
2845
|
|
|
2958
|
-
<span class="fstat-no" title="function not covered" > __removeReturn(
|
|
2846
|
+
<span class="fstat-no" title="function not covered" > __removeReturn(</span>ret: Return) {
|
|
2959
2847
|
const parentKey = <span class="cstat-no" title="statement not covered" >ret.parentKey;</span>
|
|
2960
2848
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2961
2849
|
parentNode: this,
|
|
@@ -2966,21 +2854,13 @@ export class Interface extends ImportedInterface {
|
|
|
2966
2854
|
};
|
|
2967
2855
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
2968
2856
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
// @ts-ignore
|
|
2972
|
-
const n = <span class="cstat-no" title="statement not covered" >ret.__v_raw || ret;</span>
|
|
2973
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
2974
|
-
// @ts-ignore
|
|
2975
|
-
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>
|
|
2857
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
2858
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(ret);</span>
|
|
2976
2859
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
2977
2860
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
2978
|
-
} else {
|
|
2979
|
-
|
|
2980
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2981
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2982
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2983
|
-
}
|
|
2861
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === ret) {</span>
|
|
2862
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2863
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
2984
2864
|
}
|
|
2985
2865
|
}
|
|
2986
2866
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -2998,7 +2878,7 @@ export class Interface extends ImportedInterface {
|
|
|
2998
2878
|
*/
|
|
2999
2879
|
removeValidation(validation: BindAttribute): void;
|
|
3000
2880
|
|
|
3001
|
-
<span class="fstat-no" title="function not covered" > removeValidation(
|
|
2881
|
+
<span class="fstat-no" title="function not covered" > removeValidation(</span>options: string | BindAttribute) {
|
|
3002
2882
|
let validation: BindAttribute;
|
|
3003
2883
|
<span class="cstat-no" title="statement not covered" > if (typeof options === 'string') {</span>
|
|
3004
2884
|
<span class="cstat-no" title="statement not covered" > validation = this.validation;</span>
|
|
@@ -3011,7 +2891,7 @@ export class Interface extends ImportedInterface {
|
|
|
3011
2891
|
<span class="cstat-no" title="statement not covered" > return validation.delete();</span>
|
|
3012
2892
|
}
|
|
3013
2893
|
|
|
3014
|
-
<span class="fstat-no" title="function not covered" > __removeBindAttribute(
|
|
2894
|
+
<span class="fstat-no" title="function not covered" > __removeBindAttribute(</span>bindAttribute: BindAttribute) {
|
|
3015
2895
|
const parentKey = <span class="cstat-no" title="statement not covered" >bindAttribute.parentKey;</span>
|
|
3016
2896
|
const params: Params = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3017
2897
|
parentNode: this,
|
|
@@ -3022,21 +2902,13 @@ export class Interface extends ImportedInterface {
|
|
|
3022
2902
|
};
|
|
3023
2903
|
<span class="cstat-no" title="statement not covered" > if (parentKey) {</span>
|
|
3024
2904
|
<span class="cstat-no" title="statement not covered" > params.parentKey = parentKey;</span>
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
// @ts-ignore
|
|
3028
|
-
const n = <span class="cstat-no" title="statement not covered" >bindAttribute.__v_raw || bindAttribute;</span>
|
|
3029
|
-
<span class="cstat-no" title="statement not covered" > if (Array.isArray((t as any)[parentKey])) {</span>
|
|
3030
|
-
// @ts-ignore
|
|
3031
|
-
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>
|
|
2905
|
+
<span class="cstat-no" title="statement not covered" > if (Array.isArray((this as any)[parentKey])) {</span>
|
|
2906
|
+
const index = (<span class="cstat-no" title="statement not covered" >this as any)[parentKey].indexOf(bindAttribute);</span>
|
|
3032
2907
|
<span class="cstat-no" title="statement not covered" > ~index && (this as any)[parentKey].splice(index, 1);</span>
|
|
3033
2908
|
<span class="cstat-no" title="statement not covered" > params.index = index;</span>
|
|
3034
|
-
} else {
|
|
3035
|
-
|
|
3036
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3037
|
-
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
3038
|
-
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3039
|
-
}
|
|
2909
|
+
} else <span class="cstat-no" title="statement not covered" >if ((this as any)[parentKey] === bindAttribute) {</span>
|
|
2910
|
+
<span class="cstat-no" title="statement not covered" > params.index = 0;</span>
|
|
2911
|
+
(<span class="cstat-no" title="statement not covered" >this as any)[parentKey] = undefined;</span>
|
|
3040
2912
|
}
|
|
3041
2913
|
}
|
|
3042
2914
|
<span class="cstat-no" title="statement not covered" > return params;</span>
|
|
@@ -3066,7 +2938,7 @@ export class Interface extends ImportedInterface {
|
|
|
3066
2938
|
<span class="cstat-no" title="statement not covered" > return !!this.module;</span>
|
|
3067
2939
|
}
|
|
3068
2940
|
|
|
3069
|
-
<span class="fstat-no" title="function not covered" > afterDelete() {
|
|
2941
|
+
<span class="fstat-no" title="function not covered" > afterDelete(</span>) {
|
|
3070
2942
|
// 处理 DUBBO 协议接口删除后的操作
|
|
3071
2943
|
<span class="cstat-no" title="statement not covered" > if (this.protocol === 'DUBBO') {</span>
|
|
3072
2944
|
const moduleNode = <span class="cstat-no" title="statement not covered" >this.parentNode as Module;</span>
|
|
@@ -3093,7 +2965,7 @@ export class Interface extends ImportedInterface {
|
|
|
3093
2965
|
}
|
|
3094
2966
|
}
|
|
3095
2967
|
|
|
3096
|
-
<span class="fstat-no" title="function not covered" > toService() {
|
|
2968
|
+
<span class="fstat-no" title="function not covered" > toService(</span>) {
|
|
3097
2969
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
3098
2970
|
config: {
|
|
3099
2971
|
serviceType: 'external',
|
|
@@ -3108,7 +2980,7 @@ export class Interface extends ImportedInterface {
|
|
|
3108
2980
|
/**
|
|
3109
2981
|
* 设置接口描述
|
|
3110
2982
|
*/
|
|
3111
|
-
<span class="fstat-no" title="function not covered" > updateOption(
|
|
2983
|
+
<span class="fstat-no" title="function not covered" > updateOption(</span>source: Partial<Interface>) {
|
|
3112
2984
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3113
2985
|
...source,
|
|
3114
2986
|
};
|
|
@@ -3118,12 +2990,12 @@ export class Interface extends ImportedInterface {
|
|
|
3118
2990
|
}
|
|
3119
2991
|
|
|
3120
2992
|
// 更新所有调用接口
|
|
3121
|
-
<span class="fstat-no" title="function not covered" > async
|
|
2993
|
+
<span class="fstat-no" title="function not covered" > async </span>updateAllRefCallInterface() {
|
|
3122
2994
|
const refs = <span class="cstat-no" title="statement not covered" >await this.findUsage();</span>
|
|
3123
|
-
<span class="cstat-no" title="statement not covered" > refs.forEach(
|
|
3124
|
-
const loopFindNode = <span class="cstat-no" title="statement not covered"
|
|
2995
|
+
<span class="cstat-no" title="statement not covered" > refs.forEach(<span class="fstat-no" title="function not covered" >(v</span>al: any) => {</span>
|
|
2996
|
+
const loopFindNode = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>tem: any) => {</span>
|
|
3125
2997
|
<span class="cstat-no" title="statement not covered" > if (item.children) {</span>
|
|
3126
|
-
<span class="cstat-no" title="statement not covered" > item.children.forEach(
|
|
2998
|
+
<span class="cstat-no" title="statement not covered" > item.children.forEach(<span class="fstat-no" title="function not covered" >(i</span>: any) => <span class="cstat-no" title="statement not covered" >loopFindNode(i))</span>;</span>
|
|
3127
2999
|
} else {
|
|
3128
3000
|
<span class="cstat-no" title="statement not covered" > item.node?.setCallee?.(this);</span>
|
|
3129
3001
|
}
|
|
@@ -3133,7 +3005,7 @@ export class Interface extends ImportedInterface {
|
|
|
3133
3005
|
}
|
|
3134
3006
|
|
|
3135
3007
|
/* 删除空数据模块 */
|
|
3136
|
-
<span class="fstat-no" title="function not covered" > deleteLogincAndModule() {
|
|
3008
|
+
<span class="fstat-no" title="function not covered" > deleteLogincAndModule(</span>) {
|
|
3137
3009
|
<span class="cstat-no" title="statement not covered" > this.rootNode.emit('collect:start', {</span>
|
|
3138
3010
|
actionMsg: `删除接口“${this.name}”`,
|
|
3139
3011
|
});
|
|
@@ -3150,23 +3022,23 @@ export class Interface extends ImportedInterface {
|
|
|
3150
3022
|
}
|
|
3151
3023
|
|
|
3152
3024
|
/* 删除接口引用的数据结构 */
|
|
3153
|
-
<span class="fstat-no" title="function not covered" > deleteStructures() {
|
|
3025
|
+
<span class="fstat-no" title="function not covered" > deleteStructures(</span>) {
|
|
3154
3026
|
// 需要过滤被其他接口同时引用的数据结构
|
|
3155
3027
|
|
|
3156
3028
|
const { structures } = <span class="cstat-no" title="statement not covered" >this.parentNode as Module;</span>
|
|
3157
3029
|
// 递归找出 response/request 的 Body/Returns 引用的数据结构
|
|
3158
|
-
const getStructures = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(t</span
|
|
3030
|
+
const getStructures = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(t</span>ypeAnnotation: TypeAnnotation, result: Array<Structure> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> => {</span>
|
|
3159
3031
|
<span class="cstat-no" title="statement not covered" > if (!typeAnnotation) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
3160
3032
|
<span class="cstat-no" title="statement not covered" > if (typeAnnotation.typeKind === 'reference') {</span>
|
|
3161
|
-
const targetStructure = <span class="cstat-no" title="statement not covered" >structures.find(
|
|
3033
|
+
const targetStructure = <span class="cstat-no" title="statement not covered" >structures.find(<span class="fstat-no" title="function not covered" >(s</span>) => <span class="cstat-no" title="statement not covered" >s.name === typeAnnotation.typeName)</span>;</span>
|
|
3162
3034
|
<span class="cstat-no" title="statement not covered" > if (targetStructure) {</span>
|
|
3163
3035
|
<span class="cstat-no" title="statement not covered" > result.push(targetStructure);</span>
|
|
3164
|
-
<span class="cstat-no" title="statement not covered" > targetStructure?.properties.forEach(
|
|
3036
|
+
<span class="cstat-no" title="statement not covered" > targetStructure?.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>rop) => {</span>
|
|
3165
3037
|
<span class="cstat-no" title="statement not covered" > getStructures(prop.typeAnnotation, result);</span>
|
|
3166
3038
|
});
|
|
3167
3039
|
}
|
|
3168
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3169
|
-
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments.forEach(
|
|
3040
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeAnnotation.typeKind === 'generic') {</span>
|
|
3041
|
+
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments.forEach(<span class="fstat-no" title="function not covered" >(a</span>rg) => {</span>
|
|
3170
3042
|
<span class="cstat-no" title="statement not covered" > getStructures(arg, result);</span>
|
|
3171
3043
|
});
|
|
3172
3044
|
}
|
|
@@ -3176,13 +3048,13 @@ export class Interface extends ImportedInterface {
|
|
|
3176
3048
|
const otherStructureMap: Record<string, number> = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
3177
3049
|
// 找出其他接口引用的数据结构
|
|
3178
3050
|
(<span class="cstat-no" title="statement not covered" >this.parentNode as Module).interfaces</span>
|
|
3179
|
-
.filter(
|
|
3180
|
-
.forEach(
|
|
3051
|
+
.filter(<span class="fstat-no" title="function not covered" >(i</span>tf) => <span class="cstat-no" title="statement not covered" >itf !== this)</span>
|
|
3052
|
+
.forEach(<span class="fstat-no" title="function not covered" >(i</span>tf) => {
|
|
3181
3053
|
const params = <span class="cstat-no" title="statement not covered" >itf.params || [];</span>
|
|
3182
3054
|
const returns = <span class="cstat-no" title="statement not covered" >itf.returns || [];</span>
|
|
3183
|
-
<span class="cstat-no" title="statement not covered" > [...params, ...returns].forEach(
|
|
3055
|
+
<span class="cstat-no" title="statement not covered" > [...params, ...returns].forEach(<span class="fstat-no" title="function not covered" >(p</span>) => {</span>
|
|
3184
3056
|
const strus = <span class="cstat-no" title="statement not covered" >getStructures(p.typeAnnotation);</span>
|
|
3185
|
-
<span class="cstat-no" title="statement not covered" > strus.forEach(
|
|
3057
|
+
<span class="cstat-no" title="statement not covered" > strus.forEach(<span class="fstat-no" title="function not covered" >(s</span>) => {</span>
|
|
3186
3058
|
<span class="cstat-no" title="statement not covered" > if (!(s.name in otherStructureMap)) {</span>
|
|
3187
3059
|
<span class="cstat-no" title="statement not covered" > otherStructureMap[s.name] = 0;</span>
|
|
3188
3060
|
}
|
|
@@ -3192,9 +3064,9 @@ export class Interface extends ImportedInterface {
|
|
|
3192
3064
|
});
|
|
3193
3065
|
const params = <span class="cstat-no" title="statement not covered" >this.params || [];</span>
|
|
3194
3066
|
const returns = <span class="cstat-no" title="statement not covered" >this.returns || [];</span>
|
|
3195
|
-
<span class="cstat-no" title="statement not covered" > [...params, ...returns].forEach(
|
|
3067
|
+
<span class="cstat-no" title="statement not covered" > [...params, ...returns].forEach(<span class="fstat-no" title="function not covered" >(p</span>) => {</span>
|
|
3196
3068
|
const strus = <span class="cstat-no" title="statement not covered" >getStructures(p.typeAnnotation);</span>
|
|
3197
|
-
<span class="cstat-no" title="statement not covered" > strus.forEach(
|
|
3069
|
+
<span class="cstat-no" title="statement not covered" > strus.forEach(<span class="fstat-no" title="function not covered" >(s</span>) => {</span>
|
|
3198
3070
|
<span class="cstat-no" title="statement not covered" > if (!(s.name in otherStructureMap)) {</span>
|
|
3199
3071
|
(<span class="cstat-no" title="statement not covered" >this.parentNode as Module).removeStructure(s);</span>
|
|
3200
3072
|
}
|
|
@@ -3205,7 +3077,7 @@ export class Interface extends ImportedInterface {
|
|
|
3205
3077
|
/**
|
|
3206
3078
|
* 设置逻辑名称
|
|
3207
3079
|
*/
|
|
3208
|
-
<span class="fstat-no" title="function not covered" > setOriginLogicName(
|
|
3080
|
+
<span class="fstat-no" title="function not covered" > setOriginLogicName(</span>originLogicName: string) {
|
|
3209
3081
|
const object = <span class="cstat-no" title="statement not covered" >{</span>
|
|
3210
3082
|
originLogicName,
|
|
3211
3083
|
};
|
|
@@ -3214,12 +3086,12 @@ export class Interface extends ImportedInterface {
|
|
|
3214
3086
|
});
|
|
3215
3087
|
}
|
|
3216
3088
|
|
|
3217
|
-
<span class="fstat-no" title="function not covered" >
|
|
3089
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTSFile(</span>) {
|
|
3218
3090
|
let code = <span class="cstat-no" title="statement not covered" >`namespace ${this.getTsNamespace()} {\n`;</span>
|
|
3219
3091
|
|
|
3220
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
3092
|
+
const state = <span class="cstat-no" title="statement not covered" >createCompilerState(code, { tabSize: 1 });</span>
|
|
3221
3093
|
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
3222
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3094
|
+
<span class="cstat-no" title="statement not covered" > code += this.toEmbeddedTS(state);</span>
|
|
3223
3095
|
} catch (err) {
|
|
3224
3096
|
<span class="cstat-no" title="statement not covered" > code += '';</span>
|
|
3225
3097
|
<span class="cstat-no" title="statement not covered" > console.log(err);</span>
|
|
@@ -3245,13 +3117,10 @@ export class Interface extends ImportedInterface {
|
|
|
3245
3117
|
* 生成宿主语言的文件路径
|
|
3246
3118
|
* @param name 一般不用传,用于 rename
|
|
3247
3119
|
*/
|
|
3248
|
-
<span class="fstat-no" title="function not covered" > getEmbeddedFilePath(
|
|
3249
|
-
// 自定义连接器 编辑态文件对应parentKey 为 connectors,
|
|
3250
|
-
// 稳定态文件对应parentKey 为 dependencies
|
|
3120
|
+
<span class="fstat-no" title="function not covered" > getEmbeddedFilePath(</span>name = <span class="branch-0 cbranch-no" title="branch not covered" >this.name)</span> {
|
|
3251
3121
|
// 连接器相关的接口,本身没有 module 属性故,需要额外处理
|
|
3252
|
-
|
|
3253
3122
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode.concept === 'Connector') {</span>
|
|
3254
|
-
<span class="cstat-no" title="statement not covered" > return `/embedded/${this.app.name}/${this.parentNode.
|
|
3123
|
+
<span class="cstat-no" title="statement not covered" > return `/embedded/${this.app.name}/dependencies/${this.parentNode.name}/interfaces/${name}.ts`;</span>
|
|
3255
3124
|
<span class="cstat-no" title="statement not covered" > ``;</span>
|
|
3256
3125
|
}
|
|
3257
3126
|
const _path = <span class="cstat-no" title="statement not covered" >this.module ? `/${this.module.parentKey}/${this.module.name}` : '';</span>
|
|
@@ -3337,81 +3206,76 @@ export class Interface extends ImportedInterface {
|
|
|
3337
3206
|
<span class="cstat-no" title="statement not covered" > if (excludeds.includes(this.name)) {</span>
|
|
3338
3207
|
<span class="cstat-no" title="statement not covered" > return `_${this.name}`;</span>
|
|
3339
3208
|
}
|
|
3340
|
-
// 来自集成中心,且是连接内部的逻辑,则认为是编辑态的,需要加上后缀
|
|
3341
|
-
<span class="cstat-no" title="statement not covered" > if (this.connector && this.integration) {</span>
|
|
3342
|
-
<span class="cstat-no" title="statement not covered" > return `${this.name}${CUSTOM_CONNECTOR_EDITABLE_SUFFIX}`;</span>
|
|
3343
|
-
}
|
|
3344
3209
|
<span class="cstat-no" title="statement not covered" > return this.name;</span>
|
|
3345
3210
|
}
|
|
3346
3211
|
|
|
3347
|
-
@
|
|
3348
|
-
<span class="fstat-no" title="function not covered" >
|
|
3349
|
-
const self = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3350
|
-
// 是否含有 Module 相关的祖先节点,相关均不会翻译出 let logic =xxx;
|
|
3351
|
-
const hasModuleLikeAncestor = <span class="cstat-no" title="statement not covered" >!!(this.module || this.connector);</span>
|
|
3212
|
+
@withSourceMap()
|
|
3213
|
+
<span class="fstat-no" title="function not covered" > toEmbeddedTS(</span>state = <span class="branch-0 cbranch-no" title="branch not covered" >createCompilerState())</span>: string {
|
|
3352
3214
|
let code = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
3353
|
-
const getCheckerCode = <span class="cstat-no" title="statement not covered"
|
|
3354
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3215
|
+
const getCheckerCode = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
3216
|
+
<span class="cstat-no" title="statement not covered" > if (this.validation) {</span>
|
|
3355
3217
|
<span class="cstat-no" title="statement not covered" > code += '\n(';</span>
|
|
3356
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3218
|
+
<span class="cstat-no" title="statement not covered" > code += this.validation.toEmbeddedTS(shiftState(state, code));</span>
|
|
3357
3219
|
<span class="cstat-no" title="statement not covered" > code += ');\n';</span>
|
|
3358
3220
|
}
|
|
3359
3221
|
};
|
|
3360
|
-
|
|
3361
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3222
|
+
|
|
3223
|
+
<span class="cstat-no" title="statement not covered" > code += `export function ${this.tsName}(`;</span>
|
|
3224
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3362
3225
|
<span class="cstat-no" title="statement not covered" > if (index === 0) {</span>
|
|
3363
3226
|
<span class="cstat-no" title="statement not covered" > code += '{';</span>
|
|
3364
3227
|
}
|
|
3365
3228
|
<span class="cstat-no" title="statement not covered" > code += param.tsName;</span>
|
|
3366
|
-
<span class="cstat-no" title="statement not covered" > if (index !==
|
|
3229
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1) {</span>
|
|
3367
3230
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
3368
3231
|
} else {
|
|
3369
3232
|
<span class="cstat-no" title="statement not covered" > code += '}:';</span>
|
|
3370
3233
|
}
|
|
3371
3234
|
});
|
|
3372
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3235
|
+
<span class="cstat-no" title="statement not covered" > this.params.forEach(<span class="fstat-no" title="function not covered" >(p</span>aram, index) => {</span>
|
|
3373
3236
|
<span class="cstat-no" title="statement not covered" > if (index === 0) {</span>
|
|
3374
3237
|
<span class="cstat-no" title="statement not covered" > code += '{';</span>
|
|
3375
3238
|
}
|
|
3376
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3377
|
-
<span class="cstat-no" title="statement not covered" > if (index !==
|
|
3239
|
+
<span class="cstat-no" title="statement not covered" > code += param.toEmbeddedTS(shiftState(state, code), !(param as InterfaceParam).required);</span>
|
|
3240
|
+
<span class="cstat-no" title="statement not covered" > if (index !== this.params.length - 1) {</span>
|
|
3378
3241
|
<span class="cstat-no" title="statement not covered" > code += ', ';</span>
|
|
3379
3242
|
} else {
|
|
3380
3243
|
<span class="cstat-no" title="statement not covered" > code += '}';</span>
|
|
3381
3244
|
}
|
|
3382
3245
|
});
|
|
3383
3246
|
<span class="cstat-no" title="statement not covered" > code += `):`;</span>
|
|
3384
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3385
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3386
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3247
|
+
<span class="cstat-no" title="statement not covered" > if (this.returns && this.returns.length > 0) {</span>
|
|
3248
|
+
<span class="cstat-no" title="statement not covered" > this.returns.forEach(<span class="fstat-no" title="function not covered" >(r</span>et) => {</span>
|
|
3249
|
+
<span class="cstat-no" title="statement not covered" > code += ret.typeAnnotation.toEmbeddedTS(shiftState(state, code));</span>
|
|
3387
3250
|
});
|
|
3251
|
+
|
|
3388
3252
|
<span class="cstat-no" title="statement not covered" > code += '{\n';</span>
|
|
3389
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3390
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3253
|
+
<span class="cstat-no" title="statement not covered" > getCheckerCode();</span>
|
|
3254
|
+
<span class="cstat-no" title="statement not covered" > code += this.module</span>
|
|
3391
3255
|
? ''
|
|
3392
|
-
: `let logic =${(
|
|
3256
|
+
: `let logic =${(this.parentNode as Namespace).getTsNamespace()}.logics.${this.originLogicName};\n`;
|
|
3393
3257
|
<span class="cstat-no" title="statement not covered" > code += 'let ';</span>
|
|
3394
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3258
|
+
<span class="cstat-no" title="statement not covered" > code += this.returns[0].toEmbeddedTS(shiftState(state, code, { inline: true }));</span>
|
|
3395
3259
|
<span class="cstat-no" title="statement not covered" > code += ';\n';</span>
|
|
3396
3260
|
<span class="cstat-no" title="statement not covered" > code += `return `;</span>
|
|
3397
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3261
|
+
<span class="cstat-no" title="statement not covered" > code += this.returns[0].tsName || '__return;';</span>
|
|
3398
3262
|
<span class="cstat-no" title="statement not covered" > code += '\n }';</span>
|
|
3399
3263
|
} else {
|
|
3400
3264
|
<span class="cstat-no" title="statement not covered" > code += 'void {\n';</span>
|
|
3401
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3402
|
-
<span class="cstat-no" title="statement not covered" > code +=
|
|
3265
|
+
<span class="cstat-no" title="statement not covered" > getCheckerCode();</span>
|
|
3266
|
+
<span class="cstat-no" title="statement not covered" > code += this.module</span>
|
|
3403
3267
|
? ''
|
|
3404
|
-
: `let logic =${(
|
|
3268
|
+
: `let logic =${(this.parentNode as Namespace).getTsNamespace()}.logics.${this.originLogicName};\n`;
|
|
3405
3269
|
<span class="cstat-no" title="statement not covered" > code += '};';</span>
|
|
3406
3270
|
}
|
|
3407
3271
|
<span class="cstat-no" title="statement not covered" > code += '\n';</span>
|
|
3408
3272
|
<span class="cstat-no" title="statement not covered" > return code;</span>
|
|
3409
3273
|
}
|
|
3410
3274
|
|
|
3411
|
-
<span class="fstat-no" title="function not covered" > getNamespace()
|
|
3275
|
+
<span class="fstat-no" title="function not covered" > getNamespace(</span>) {
|
|
3412
3276
|
// 针对 Connector 下的 Interface 需要做额外的兼容处理
|
|
3413
3277
|
// 本来 Connector 对应的 Namespace 是 connector,走默认逻辑就成
|
|
3414
|
-
// 但是后端在翻译 Connector 下的 Interface 时选择的前缀为 extensions
|
|
3278
|
+
// 但是后端在翻译 Connector 下的 Interface 时选择的前缀为 extensions 故这里需要强行改成 extensions
|
|
3415
3279
|
<span class="cstat-no" title="statement not covered" > if (this.parentNode?.concept === 'Connector') {</span>
|
|
3416
3280
|
<span class="cstat-no" title="statement not covered" > return `extensions.${this.parentNode.name}.interfaces`;</span>
|
|
3417
3281
|
}
|
|
@@ -3427,7 +3291,7 @@ export class Interface extends ImportedInterface {
|
|
|
3427
3291
|
<span class="cstat-no" title="statement not covered" > throw new Error('无法获取命名空间,请设置 parentNode!');</span>
|
|
3428
3292
|
}
|
|
3429
3293
|
|
|
3430
|
-
<span class="fstat-no" title="function not covered" > getTsNamespace() {
|
|
3294
|
+
<span class="fstat-no" title="function not covered" > getTsNamespace(</span>) {
|
|
3431
3295
|
// 针对 Connector 下的 Interface 需要做额外的兼容处理
|
|
3432
3296
|
// 本来 Connector 对应的 Namespace 是 connector,走默认逻辑就成
|
|
3433
3297
|
// 但是后端在翻译 Connector 下的 Interface 时选择的前缀为 extensions 故这里需要强行改成 extensions
|
|
@@ -3446,35 +3310,35 @@ export class Interface extends ImportedInterface {
|
|
|
3446
3310
|
<span class="cstat-no" title="statement not covered" > throw new Error('无法获取命名空间,请设置 parentNode!');</span>
|
|
3447
3311
|
}
|
|
3448
3312
|
|
|
3449
|
-
<span class="fstat-no" title="function not covered" > getVarExistingNames(
|
|
3313
|
+
<span class="fstat-no" title="function not covered" > getVarExistingNames(</span>excludedList: Array<InterfaceParam | Return> = <span class="branch-0 cbranch-no" title="branch not covered" >[])</span> {
|
|
3450
3314
|
const excludedSet = <span class="cstat-no" title="statement not covered" >new Set(excludedList);</span>
|
|
3451
|
-
<span class="cstat-no" title="statement not covered" > return [...this.params, ...this.returns].filter(
|
|
3315
|
+
<span class="cstat-no" title="statement not covered" > return [...this.params, ...this.returns].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>
|
|
3452
3316
|
}
|
|
3453
3317
|
|
|
3454
3318
|
// 递归找出 response/request 的 Body/Returns 引用的数据结构
|
|
3455
|
-
<span class="fstat-no" title="function not covered" > getRefStructures(
|
|
3319
|
+
<span class="fstat-no" title="function not covered" > getRefStructures(</span>structures: Structure[] = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span> includeNameList?: string[] ): Set<Structure> {
|
|
3456
3320
|
const structuresSet: Set<Structure> = <span class="cstat-no" title="statement not covered" >new Set();</span>
|
|
3457
|
-
const loopSaveStructure = <span class="cstat-no" title="statement not covered"
|
|
3321
|
+
const loopSaveStructure = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(t</span>ypeAnnotation: TypeAnnotation) => {</span>
|
|
3458
3322
|
<span class="cstat-no" title="statement not covered" > if (!typeAnnotation) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
3459
3323
|
<span class="cstat-no" title="statement not covered" > if (typeAnnotation.typeKind === 'reference') {</span>
|
|
3460
|
-
const targetStructure = <span class="cstat-no" title="statement not covered" >structures.find(
|
|
3324
|
+
const targetStructure = <span class="cstat-no" title="statement not covered" >structures.find(<span class="fstat-no" title="function not covered" >(s</span>) => <span class="cstat-no" title="statement not covered" >s.name === typeAnnotation.typeName)</span>;</span>
|
|
3461
3325
|
<span class="cstat-no" title="statement not covered" > if (targetStructure && !structuresSet.has(targetStructure)) {</span>
|
|
3462
3326
|
<span class="cstat-no" title="statement not covered" > structuresSet.add(targetStructure);</span>
|
|
3463
|
-
<span class="cstat-no" title="statement not covered" > targetStructure?.properties.forEach(
|
|
3327
|
+
<span class="cstat-no" title="statement not covered" > targetStructure?.properties.forEach(<span class="fstat-no" title="function not covered" >(p</span>rop) => {</span>
|
|
3464
3328
|
<span class="cstat-no" title="statement not covered" > loopSaveStructure(prop.typeAnnotation);</span>
|
|
3465
3329
|
});
|
|
3466
3330
|
}
|
|
3467
|
-
<span class="cstat-no" title="statement not covered" >
|
|
3331
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeAnnotation.typeKind === 'generic') {</span>
|
|
3468
3332
|
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments.forEach(loopSaveStructure);</span>
|
|
3469
3333
|
}
|
|
3470
3334
|
};
|
|
3471
3335
|
|
|
3472
|
-
const { params = <span class="branch-0 cbranch-no" title="branch not covered" >[]
|
|
3473
|
-
let targetList = <span class="cstat-no" title="statement not covered" >[...params, ...returns]
|
|
3336
|
+
const { params = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span> returns = <span class="branch-0 cbranch-no" title="branch not covered" >[] </span>} = <span class="cstat-no" title="statement not covered" >this;</span>
|
|
3337
|
+
let targetList = <span class="cstat-no" title="statement not covered" >[...params, ...returns]</span>
|
|
3474
3338
|
<span class="cstat-no" title="statement not covered" > if (includeNameList && includeNameList.length > 0) {</span>
|
|
3475
|
-
<span class="cstat-no" title="statement not covered" > targetList = targetList.filter(
|
|
3339
|
+
<span class="cstat-no" title="statement not covered" > targetList = targetList.filter(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >includeNameList.includes(item.name))</span></span>
|
|
3476
3340
|
}
|
|
3477
|
-
<span class="cstat-no" title="statement not covered" > targetList.forEach(
|
|
3341
|
+
<span class="cstat-no" title="statement not covered" > targetList.forEach(<span class="fstat-no" title="function not covered" >(p</span>) => {</span>
|
|
3478
3342
|
<span class="cstat-no" title="statement not covered" > if ('in' in p && p.in === 'cookie') {</span>
|
|
3479
3343
|
<span class="cstat-no" title="statement not covered" > p.in = 'header';</span>
|
|
3480
3344
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
@@ -3484,22 +3348,17 @@ export class Interface extends ImportedInterface {
|
|
|
3484
3348
|
<span class="cstat-no" title="statement not covered" > return structuresSet;</span>
|
|
3485
3349
|
}
|
|
3486
3350
|
|
|
3487
|
-
<span class="fstat-no" title="function not covered" > deleteRefStructures(
|
|
3488
|
-
<span class="cstat-no" title="statement not covered" > if (
|
|
3489
|
-
const module = <span class="cstat-no" title="statement not covered" >this.upperNode
|
|
3351
|
+
<span class="fstat-no" title="function not covered" > deleteRefStructures(</span>includeNameList?: string[]) {
|
|
3352
|
+
<span class="cstat-no" title="statement not covered" > if (this.upperNode instanceof Connector) {</span>
|
|
3353
|
+
const module = <span class="cstat-no" title="statement not covered" >this.upperNode</span>
|
|
3490
3354
|
const oldStructuresSet = <span class="cstat-no" title="statement not covered" >this.getRefStructures(module.structures, includeNameList);</span>
|
|
3491
|
-
<span class="cstat-no" title="statement not covered" > oldStructuresSet.forEach(
|
|
3355
|
+
<span class="cstat-no" title="statement not covered" > oldStructuresSet.forEach(<span class="fstat-no" title="function not covered" >(s</span>: Structure) => <span class="cstat-no" title="statement not covered" >s.delete())</span>;</span>
|
|
3492
3356
|
}
|
|
3493
3357
|
}
|
|
3494
3358
|
|
|
3495
|
-
<span class="fstat-no" title="function not covered" > deleteInterface() {
|
|
3496
|
-
<span class="cstat-no" title="statement not covered" > this.deleteRefStructures()
|
|
3497
|
-
<span class="cstat-no" title="statement not covered" > this.delete()
|
|
3498
|
-
}
|
|
3499
|
-
|
|
3500
|
-
// 是否来自于 集成中心
|
|
3501
|
-
<span class="fstat-no" title="function not covered" > get i</span>ntegration() {
|
|
3502
|
-
<span class="cstat-no" title="statement not covered" > return this.getAncestor('Integration');</span>
|
|
3359
|
+
<span class="fstat-no" title="function not covered" > deleteInterface(</span>) {
|
|
3360
|
+
<span class="cstat-no" title="statement not covered" > this.deleteRefStructures()</span>
|
|
3361
|
+
<span class="cstat-no" title="statement not covered" > this.delete()</span>
|
|
3503
3362
|
}
|
|
3504
3363
|
|
|
3505
3364
|
//================================================================================
|
|
@@ -3520,7 +3379,7 @@ export default Interface;
|
|
|
3520
3379
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
3521
3380
|
Code coverage generated by
|
|
3522
3381
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
3523
|
-
at 2023-
|
|
3382
|
+
at 2023-10-18T11:36:07.885Z
|
|
3524
3383
|
</div>
|
|
3525
3384
|
<script src="../../prettify.js"></script>
|
|
3526
3385
|
<script>
|