@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">
|
|
26
|
+
<span class="strong">2.47% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>11/444</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/256</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/53</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">2.6% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>11/423</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -931,8 +931,8 @@
|
|
|
931
931
|
<a name='L866'></a><a href='#L866'>866</a>
|
|
932
932
|
<a name='L867'></a><a href='#L867'>867</a>
|
|
933
933
|
<a name='L868'></a><a href='#L868'>868</a>
|
|
934
|
-
<a name='L869'></a><a href='#L869'>869</a>
|
|
935
|
-
<
|
|
934
|
+
<a name='L869'></a><a href='#L869'>869</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
935
|
+
<span class="cline-any cline-neutral"> </span>
|
|
936
936
|
<span class="cline-any cline-neutral"> </span>
|
|
937
937
|
<span class="cline-any cline-neutral"> </span>
|
|
938
938
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -953,8 +953,6 @@
|
|
|
953
953
|
<span class="cline-any cline-neutral"> </span>
|
|
954
954
|
<span class="cline-any cline-neutral"> </span>
|
|
955
955
|
<span class="cline-any cline-neutral"> </span>
|
|
956
|
-
<span class="cline-any cline-yes">1x</span>
|
|
957
|
-
<span class="cline-any cline-yes">1x</span>
|
|
958
956
|
<span class="cline-any cline-yes">1x</span>
|
|
959
957
|
<span class="cline-any cline-neutral"> </span>
|
|
960
958
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -978,7 +976,7 @@
|
|
|
978
976
|
<span class="cline-any cline-neutral"> </span>
|
|
979
977
|
<span class="cline-any cline-neutral"> </span>
|
|
980
978
|
<span class="cline-any cline-neutral"> </span>
|
|
981
|
-
<span class="cline-any cline-
|
|
979
|
+
<span class="cline-any cline-neutral"> </span>
|
|
982
980
|
<span class="cline-any cline-no"> </span>
|
|
983
981
|
<span class="cline-any cline-no"> </span>
|
|
984
982
|
<span class="cline-any cline-no"> </span>
|
|
@@ -986,7 +984,7 @@
|
|
|
986
984
|
<span class="cline-any cline-no"> </span>
|
|
987
985
|
<span class="cline-any cline-neutral"> </span>
|
|
988
986
|
<span class="cline-any cline-neutral"> </span>
|
|
989
|
-
<span class="cline-any cline-
|
|
987
|
+
<span class="cline-any cline-neutral"> </span>
|
|
990
988
|
<span class="cline-any cline-no"> </span>
|
|
991
989
|
<span class="cline-any cline-no"> </span>
|
|
992
990
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -995,6 +993,7 @@
|
|
|
995
993
|
<span class="cline-any cline-neutral"> </span>
|
|
996
994
|
<span class="cline-any cline-neutral"> </span>
|
|
997
995
|
<span class="cline-any cline-neutral"> </span>
|
|
996
|
+
<span class="cline-any cline-neutral"> </span>
|
|
998
997
|
<span class="cline-any cline-yes">1x</span>
|
|
999
998
|
<span class="cline-any cline-no"> </span>
|
|
1000
999
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1056,7 +1055,6 @@
|
|
|
1056
1055
|
<span class="cline-any cline-no"> </span>
|
|
1057
1056
|
<span class="cline-any cline-neutral"> </span>
|
|
1058
1057
|
<span class="cline-any cline-no"> </span>
|
|
1059
|
-
<span class="cline-any cline-no"> </span>
|
|
1060
1058
|
<span class="cline-any cline-neutral"> </span>
|
|
1061
1059
|
<span class="cline-any cline-neutral"> </span>
|
|
1062
1060
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1095,7 +1093,7 @@
|
|
|
1095
1093
|
<span class="cline-any cline-no"> </span>
|
|
1096
1094
|
<span class="cline-any cline-neutral"> </span>
|
|
1097
1095
|
<span class="cline-any cline-neutral"> </span>
|
|
1098
|
-
<span class="cline-any cline-
|
|
1096
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1099
1097
|
<span class="cline-any cline-neutral"> </span>
|
|
1100
1098
|
<span class="cline-any cline-neutral"> </span>
|
|
1101
1099
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1123,7 +1121,7 @@
|
|
|
1123
1121
|
<span class="cline-any cline-neutral"> </span>
|
|
1124
1122
|
<span class="cline-any cline-no"> </span>
|
|
1125
1123
|
<span class="cline-any cline-neutral"> </span>
|
|
1126
|
-
<span class="cline-any cline-
|
|
1124
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1127
1125
|
<span class="cline-any cline-neutral"> </span>
|
|
1128
1126
|
<span class="cline-any cline-neutral"> </span>
|
|
1129
1127
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1191,7 +1189,7 @@
|
|
|
1191
1189
|
<span class="cline-any cline-yes">1x</span>
|
|
1192
1190
|
<span class="cline-any cline-no"> </span>
|
|
1193
1191
|
<span class="cline-any cline-neutral"> </span>
|
|
1194
|
-
<span class="cline-any cline-
|
|
1192
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1195
1193
|
<span class="cline-any cline-neutral"> </span>
|
|
1196
1194
|
<span class="cline-any cline-no"> </span>
|
|
1197
1195
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1247,7 +1245,7 @@
|
|
|
1247
1245
|
<span class="cline-any cline-neutral"> </span>
|
|
1248
1246
|
<span class="cline-any cline-neutral"> </span>
|
|
1249
1247
|
<span class="cline-any cline-neutral"> </span>
|
|
1250
|
-
<span class="cline-any cline-
|
|
1248
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1251
1249
|
<span class="cline-any cline-no"> </span>
|
|
1252
1250
|
<span class="cline-any cline-neutral"> </span>
|
|
1253
1251
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1347,7 +1345,7 @@
|
|
|
1347
1345
|
<span class="cline-any cline-neutral"> </span>
|
|
1348
1346
|
<span class="cline-any cline-neutral"> </span>
|
|
1349
1347
|
<span class="cline-any cline-neutral"> </span>
|
|
1350
|
-
<span class="cline-any cline-
|
|
1348
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1351
1349
|
<span class="cline-any cline-no"> </span>
|
|
1352
1350
|
<span class="cline-any cline-neutral"> </span>
|
|
1353
1351
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1402,7 +1400,7 @@
|
|
|
1402
1400
|
<span class="cline-any cline-no"> </span>
|
|
1403
1401
|
<span class="cline-any cline-no"> </span>
|
|
1404
1402
|
<span class="cline-any cline-neutral"> </span>
|
|
1405
|
-
<span class="cline-any cline-
|
|
1403
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1406
1404
|
<span class="cline-any cline-no"> </span>
|
|
1407
1405
|
<span class="cline-any cline-no"> </span>
|
|
1408
1406
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1427,7 +1425,7 @@
|
|
|
1427
1425
|
<span class="cline-any cline-neutral"> </span>
|
|
1428
1426
|
<span class="cline-any cline-neutral"> </span>
|
|
1429
1427
|
<span class="cline-any cline-neutral"> </span>
|
|
1430
|
-
<span class="cline-any cline-
|
|
1428
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1431
1429
|
<span class="cline-any cline-no"> </span>
|
|
1432
1430
|
<span class="cline-any cline-no"> </span>
|
|
1433
1431
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1473,7 +1471,7 @@
|
|
|
1473
1471
|
<span class="cline-any cline-no"> </span>
|
|
1474
1472
|
<span class="cline-any cline-no"> </span>
|
|
1475
1473
|
<span class="cline-any cline-neutral"> </span>
|
|
1476
|
-
<span class="cline-any cline-
|
|
1474
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1477
1475
|
<span class="cline-any cline-neutral"> </span>
|
|
1478
1476
|
<span class="cline-any cline-neutral"> </span>
|
|
1479
1477
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1512,7 +1510,7 @@
|
|
|
1512
1510
|
<span class="cline-any cline-neutral"> </span>
|
|
1513
1511
|
<span class="cline-any cline-neutral"> </span>
|
|
1514
1512
|
<span class="cline-any cline-neutral"> </span>
|
|
1515
|
-
<span class="cline-any cline-
|
|
1513
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1516
1514
|
<span class="cline-any cline-no"> </span>
|
|
1517
1515
|
<span class="cline-any cline-no"> </span>
|
|
1518
1516
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1623,7 +1621,7 @@
|
|
|
1623
1621
|
<span class="cline-any cline-neutral"> </span>
|
|
1624
1622
|
<span class="cline-any cline-neutral"> </span>
|
|
1625
1623
|
<span class="cline-any cline-neutral"> </span>
|
|
1626
|
-
<span class="cline-any cline-
|
|
1624
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1627
1625
|
<span class="cline-any cline-no"> </span>
|
|
1628
1626
|
<span class="cline-any cline-no"> </span>
|
|
1629
1627
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1690,7 +1688,7 @@
|
|
|
1690
1688
|
<span class="cline-any cline-neutral"> </span>
|
|
1691
1689
|
<span class="cline-any cline-neutral"> </span>
|
|
1692
1690
|
<span class="cline-any cline-neutral"> </span>
|
|
1693
|
-
<span class="cline-any cline-
|
|
1691
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1694
1692
|
<span class="cline-any cline-no"> </span>
|
|
1695
1693
|
<span class="cline-any cline-no"> </span>
|
|
1696
1694
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1801,7 +1799,7 @@
|
|
|
1801
1799
|
<span class="cline-any cline-neutral"> </span>
|
|
1802
1800
|
<span class="cline-any cline-no"> </span>
|
|
1803
1801
|
<span class="cline-any cline-neutral"> </span>
|
|
1804
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"
|
|
1802
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import {
|
|
1805
1803
|
BaseNode,
|
|
1806
1804
|
Identifier,
|
|
1807
1805
|
TypeAnnotation,
|
|
@@ -1815,7 +1813,7 @@
|
|
|
1815
1813
|
Logic,
|
|
1816
1814
|
ConfigProperty,
|
|
1817
1815
|
App,
|
|
1818
|
-
|
|
1816
|
+
SynatxNode,
|
|
1819
1817
|
BindAttribute,
|
|
1820
1818
|
Interface,
|
|
1821
1819
|
CallLogic,
|
|
@@ -1824,7 +1822,6 @@
|
|
|
1824
1822
|
AuthLogicForCallInterface,
|
|
1825
1823
|
} from '..';
|
|
1826
1824
|
import { getNaslNodeByNodeCallee } from '../automate/engine/utils';
|
|
1827
|
-
import { runGeneratorSync as runSync } from '../utils';
|
|
1828
1825
|
|
|
1829
1826
|
interface variableItem {
|
|
1830
1827
|
text: string;
|
|
@@ -1847,15 +1844,15 @@ interface variableItem {
|
|
|
1847
1844
|
// 7: {text: 'DEV_AdminRole', kind: 'enumName'}
|
|
1848
1845
|
* @returns type roles.DEV_AdminRole
|
|
1849
1846
|
*/
|
|
1850
|
-
function <span class="fstat-no" title="function not covered" >formatTs2TypeString(
|
|
1847
|
+
function <span class="fstat-no" title="function not covered" >formatTs2TypeString(</span>displayParts: Array<{ text: string; kind: string }>) {
|
|
1851
1848
|
let str = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
1852
|
-
<span class="cstat-no" title="statement not covered" > displayParts?.forEach(
|
|
1849
|
+
<span class="cstat-no" title="statement not covered" > displayParts?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
1853
1850
|
<span class="cstat-no" title="statement not covered" > str += item.text;</span>
|
|
1854
1851
|
});
|
|
1855
1852
|
<span class="cstat-no" title="statement not covered" > return str;</span>
|
|
1856
1853
|
}
|
|
1857
1854
|
|
|
1858
|
-
function <span class="fstat-no" title="function not covered" >isValidName(
|
|
1855
|
+
function <span class="fstat-no" title="function not covered" >isValidName(</span>str: string) {
|
|
1859
1856
|
const regex = <span class="cstat-no" title="statement not covered" >/^[a-zA-Z][a-zA-Z0-9_]*$/;</span>
|
|
1860
1857
|
<span class="cstat-no" title="statement not covered" > return regex.test(str);</span>
|
|
1861
1858
|
}
|
|
@@ -1863,8 +1860,9 @@ function <span class="fstat-no" title="function not covered" >isValidName(s</spa
|
|
|
1863
1860
|
* 解析 Completion 和 QuickInfo 的 displayString
|
|
1864
1861
|
* 生成 TypeAnnotation
|
|
1865
1862
|
* @param displayString
|
|
1863
|
+
* @returns TypeAnnotation
|
|
1866
1864
|
*/
|
|
1867
|
-
export function
|
|
1865
|
+
export function <span class="fstat-no" title="function not covered" >type2TypeAnnotation(</span>oldType: Array<any> | {}): TypeAnnotation {
|
|
1868
1866
|
<span class="cstat-no" title="statement not covered" > if (!oldType) <span class="cstat-no" title="statement not covered" >return null;</span></span>
|
|
1869
1867
|
let type = <span class="cstat-no" title="statement not covered" >oldType;</span>
|
|
1870
1868
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(oldType)) {</span>
|
|
@@ -1877,44 +1875,44 @@ export function* <span class="fstat-no" title="function not covered" >type2TypeA
|
|
|
1877
1875
|
// 自定义类型
|
|
1878
1876
|
const newProperties: StructureProperty[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
1879
1877
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(properties) && properties.length) {</span>
|
|
1880
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1878
|
+
<span class="cstat-no" title="statement not covered" > properties.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
1881
1879
|
<span class="cstat-no" title="statement not covered" > if (!item?.name?.startsWith('__')) {</span>
|
|
1882
1880
|
// 如果没有获取到类型,就默认塞一个string
|
|
1883
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
1881
|
+
const itemType = <span class="cstat-no" title="statement not covered" >type2TypeAnnotation(item.typeInfo) || TypeAnnotation.createPrimitive('String');</span>
|
|
1884
1882
|
const structureProperty = <span class="cstat-no" title="statement not covered" >StructureProperty.from({ name: item.name, typeAnnotation: itemType }, typeAnnotation, 'properties');</span>
|
|
1885
1883
|
<span class="cstat-no" title="statement not covered" > newProperties.push(structureProperty);</span>
|
|
1886
1884
|
}
|
|
1887
|
-
}
|
|
1885
|
+
});
|
|
1888
1886
|
}
|
|
1889
1887
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createTypeAnonymousStructure(newProperties);</span>
|
|
1890
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1888
|
+
} else <span class="cstat-no" title="statement not covered" >if (!typeName || typeName === 'Promise' || typeName === 'nasl' || typeName === '___IDENTIFIER__') {</span>
|
|
1891
1889
|
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
1892
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1890
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeName === 'String' || typeName === 'Boolean') {</span>
|
|
1893
1891
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createPrimitive(typeName);</span>
|
|
1894
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1892
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeName === 'Union') {</span>
|
|
1895
1893
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createPrimitive('Union');</span>
|
|
1896
1894
|
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments = [];</span>
|
|
1897
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1898
|
-
const typeItem = <span class="cstat-no" title="statement not covered" >
|
|
1895
|
+
<span class="cstat-no" title="statement not covered" > typeArguments.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem: any) => {</span>
|
|
1896
|
+
const typeItem = <span class="cstat-no" title="statement not covered" >type2TypeAnnotation(item);</span>
|
|
1899
1897
|
<span class="cstat-no" title="statement not covered" > if (typeItem) {</span>
|
|
1900
1898
|
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArgumentsPush(typeItem);</span>
|
|
1901
1899
|
}
|
|
1902
|
-
}
|
|
1903
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1900
|
+
});
|
|
1901
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeNamespace && typeNamespace.startsWith('nasl.core')) {</span>
|
|
1904
1902
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createPrimitive(typeName);</span>
|
|
1905
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1903
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeNamespace && typeArguments?.length) {</span>
|
|
1906
1904
|
// 泛型类型
|
|
1907
1905
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createGeneric(typeName, {</span>
|
|
1908
1906
|
typeNamespace,
|
|
1909
1907
|
});
|
|
1910
1908
|
// 如果有泛型处理泛型
|
|
1911
1909
|
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments = [];</span>
|
|
1912
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1913
|
-
const typeItem = <span class="cstat-no" title="statement not covered" >
|
|
1910
|
+
<span class="cstat-no" title="statement not covered" > typeArguments.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem: any) => {</span>
|
|
1911
|
+
const typeItem = <span class="cstat-no" title="statement not covered" >type2TypeAnnotation(item);</span>
|
|
1914
1912
|
<span class="cstat-no" title="statement not covered" > if (typeItem) {</span>
|
|
1915
1913
|
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArgumentsPush(typeItem);</span>
|
|
1916
1914
|
}
|
|
1917
|
-
}
|
|
1915
|
+
});
|
|
1918
1916
|
} else {
|
|
1919
1917
|
// 其余的引用类型
|
|
1920
1918
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createReference(typeName, {</span>
|
|
@@ -1924,7 +1922,6 @@ export function* <span class="fstat-no" title="function not covered" >type2TypeA
|
|
|
1924
1922
|
} catch (err) {
|
|
1925
1923
|
<span class="cstat-no" title="statement not covered" > console.log(err, type);</span>
|
|
1926
1924
|
}
|
|
1927
|
-
<span class="cstat-no" title="statement not covered" > yield;</span>
|
|
1928
1925
|
<span class="cstat-no" title="statement not covered" > return typeAnnotation;</span>
|
|
1929
1926
|
}
|
|
1930
1927
|
|
|
@@ -1934,7 +1931,7 @@ export function* <span class="fstat-no" title="function not covered" >type2TypeA
|
|
|
1934
1931
|
* @param displayString
|
|
1935
1932
|
* @returns TypeAnnotation
|
|
1936
1933
|
*/
|
|
1937
|
-
export function <span class="fstat-no" title="function not covered" >displayString2TypeAnnotation(
|
|
1934
|
+
export function <span class="fstat-no" title="function not covered" >displayString2TypeAnnotation(</span>typeStr: string, parentPrefix?: string): TypeAnnotation {
|
|
1938
1935
|
let type = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
1939
1936
|
<span class="cstat-no" title="statement not covered" > if (typeStr?.includes(': ')) {</span>
|
|
1940
1937
|
const lastIndexOf = <span class="cstat-no" title="statement not covered" >typeStr.lastIndexOf(': ');</span>
|
|
@@ -1964,7 +1961,7 @@ export function <span class="fstat-no" title="function not covered" >displayStri
|
|
|
1964
1961
|
<span class="cstat-no" title="statement not covered" > return typeAnnotation as TypeAnnotation;</span>
|
|
1965
1962
|
}
|
|
1966
1963
|
|
|
1967
|
-
function <span class="fstat-no" title="function not covered" >createGenericTypeAnnotation(
|
|
1964
|
+
function <span class="fstat-no" title="function not covered" >createGenericTypeAnnotation(</span>type: string, parentPrefix?: string) {
|
|
1968
1965
|
// 取出匹配的内容
|
|
1969
1966
|
|
|
1970
1967
|
const childType = <span class="cstat-no" title="statement not covered" >type.substring(0, type.indexOf('<'));</span>
|
|
@@ -1985,14 +1982,14 @@ function <span class="fstat-no" title="function not covered" >createGenericTypeA
|
|
|
1985
1982
|
|
|
1986
1983
|
// 如果不是就创造内部的真正类型
|
|
1987
1984
|
<span class="cstat-no" title="statement not covered" > if (newtext.includes(',')) {</span>
|
|
1988
|
-
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments = newtext.split(',').map(
|
|
1985
|
+
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments = newtext.split(',').map(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >createType2Annotation(item))</span>;</span>
|
|
1989
1986
|
} else {
|
|
1990
1987
|
<span class="cstat-no" title="statement not covered" > typeAnnotation.typeArguments = [argTypeAnnotation];</span>
|
|
1991
1988
|
}
|
|
1992
1989
|
}
|
|
1993
1990
|
<span class="cstat-no" title="statement not covered" > return typeAnnotation;</span>
|
|
1994
1991
|
}
|
|
1995
|
-
function <span class="fstat-no" title="function not covered" >createType2Annotation(
|
|
1992
|
+
function <span class="fstat-no" title="function not covered" >createType2Annotation(</span>type: string, parentPrefix?: string): TypeAnnotation {
|
|
1996
1993
|
let typeAnnotation;
|
|
1997
1994
|
// 没有泛型类型的
|
|
1998
1995
|
const types = <span class="cstat-no" title="statement not covered" >type.split('.');</span>
|
|
@@ -2004,21 +2001,21 @@ function <span class="fstat-no" title="function not covered" >createType2Annotat
|
|
|
2004
2001
|
const typeNamespace = <span class="cstat-no" title="statement not covered" >types.join('.');</span>
|
|
2005
2002
|
<span class="cstat-no" title="statement not covered" > if (type.startsWith('nasl.core')) {</span>
|
|
2006
2003
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createPrimitive(typeName);</span>
|
|
2007
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2004
|
+
} else <span class="cstat-no" title="statement not covered" >if (type.startsWith('nasl.ui')) {</span>
|
|
2008
2005
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createReference(typeName, {</span>
|
|
2009
2006
|
typeNamespace,
|
|
2010
2007
|
});
|
|
2011
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2008
|
+
} else <span class="cstat-no" title="statement not covered" >if (type.startsWith('nasl.process')) {</span>
|
|
2012
2009
|
// nasl的引用类型
|
|
2013
2010
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createReference(typeName, {</span>
|
|
2014
2011
|
typeNamespace,
|
|
2015
2012
|
});
|
|
2016
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2013
|
+
} else <span class="cstat-no" title="statement not covered" >if (type.startsWith('nasl.collection')) {</span>
|
|
2017
2014
|
// nasl的泛型类型
|
|
2018
2015
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createGeneric(typeName, {</span>
|
|
2019
2016
|
typeNamespace,
|
|
2020
2017
|
});
|
|
2021
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2018
|
+
} else <span class="cstat-no" title="statement not covered" >if (type.startsWith('dataSources.') || type.startsWith('structures.') || type.startsWith('enums.')) {</span>
|
|
2022
2019
|
<span class="cstat-no" title="statement not covered" > typeAnnotation = TypeAnnotation.createReference(typeName, {</span>
|
|
2023
2020
|
typeNamespace: (parentPrefix || 'app.') + typeNamespace,
|
|
2024
2021
|
});
|
|
@@ -2030,7 +2027,7 @@ function <span class="fstat-no" title="function not covered" >createType2Annotat
|
|
|
2030
2027
|
}
|
|
2031
2028
|
<span class="cstat-no" title="statement not covered" > return typeAnnotation;</span>
|
|
2032
2029
|
}
|
|
2033
|
-
export function <span class="fstat-no" title="function not covered" >getPlatformType(
|
|
2030
|
+
export function <span class="fstat-no" title="function not covered" >getPlatformType(</span>type: string): string {
|
|
2034
2031
|
let tsType = <span class="cstat-no" title="statement not covered" >'';</span>
|
|
2035
2032
|
|
|
2036
2033
|
<span class="cstat-no" title="statement not covered" > if (type?.includes(': ')) {</span>
|
|
@@ -2043,7 +2040,7 @@ export function <span class="fstat-no" title="function not covered" >getPlatform
|
|
|
2043
2040
|
const namespacePrefix = <span class="cstat-no" title="statement not covered" >['app', 'extensions', 'apis', 'components', 'nasl'];</span>
|
|
2044
2041
|
<span class="cstat-no" title="statement not covered" > if (tsType === 'String') {</span>
|
|
2045
2042
|
<span class="cstat-no" title="statement not covered" > return 'nasl.core.String';</span>
|
|
2046
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2043
|
+
} else <span class="cstat-no" title="statement not covered" >if (tsType === 'Boolean') {</span>
|
|
2047
2044
|
<span class="cstat-no" title="statement not covered" > return 'nasl.core.Boolean';</span>
|
|
2048
2045
|
}
|
|
2049
2046
|
|
|
@@ -2057,17 +2054,17 @@ export function <span class="fstat-no" title="function not covered" >getPlatform
|
|
|
2057
2054
|
}
|
|
2058
2055
|
<span class="cstat-no" title="statement not covered" > return tsType;</span>
|
|
2059
2056
|
}
|
|
2060
|
-
export function <span class="fstat-no" title="function not covered" >isNoChildType(
|
|
2057
|
+
export function <span class="fstat-no" title="function not covered" >isNoChildType(</span>type: String) {
|
|
2061
2058
|
<span class="cstat-no" title="statement not covered" > return (type?.startsWith('nasl.core') && !['String', 'Text', 'Email'].includes(type.split('.')[2])) || type?.startsWith('app.enums');</span>
|
|
2062
2059
|
}
|
|
2063
|
-
function <span class="fstat-no" title="function not covered" >findNode(
|
|
2060
|
+
function <span class="fstat-no" title="function not covered" >findNode(</span>typeKey: string, node: BaseNode) {
|
|
2064
2061
|
let newType: Structure | Logic;
|
|
2065
2062
|
<span class="cstat-no" title="statement not covered" > if (typeKey.startsWith('nasl.') && typeKey.includes('<')) {</span>
|
|
2066
2063
|
const findGenericsIndex = <span class="cstat-no" title="statement not covered" >typeKey.indexOf('<');</span>
|
|
2067
2064
|
<span class="cstat-no" title="statement not covered" > typeKey = typeKey.substring(0, findGenericsIndex);</span>
|
|
2068
2065
|
const typeIndex = <span class="cstat-no" title="statement not covered" >typeKey.lastIndexOf('.');</span>
|
|
2069
2066
|
<span class="cstat-no" title="statement not covered" > newType = getNaslNodeByNodeCallee(typeKey.substring(0, typeIndex), typeKey.substring(typeIndex + 1, typeKey.length));</span>
|
|
2070
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2067
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeKey.startsWith('nasl.')) {</span>
|
|
2071
2068
|
const typeIndex = <span class="cstat-no" title="statement not covered" >typeKey.lastIndexOf('.');</span>
|
|
2072
2069
|
<span class="cstat-no" title="statement not covered" > newType = getNaslNodeByNodeCallee(typeKey.substring(0, typeIndex), typeKey.substring(typeIndex + 1, typeKey.length));</span>
|
|
2073
2070
|
} else {
|
|
@@ -2082,13 +2079,13 @@ function <span class="fstat-no" title="function not covered" >findNode(t</span>y
|
|
|
2082
2079
|
* @param item 当前节点的内容
|
|
2083
2080
|
* @param node 获取变量框的位置
|
|
2084
2081
|
*/
|
|
2085
|
-
export function <span class="fstat-no" title="function not covered" >nextFindTypeChild(
|
|
2082
|
+
export function <span class="fstat-no" title="function not covered" >nextFindTypeChild(</span>typeKey: string, item: any, node: SynatxNode) {
|
|
2086
2083
|
const newType = <span class="cstat-no" title="statement not covered" >findNode(typeKey, node);</span>
|
|
2087
2084
|
<span class="cstat-no" title="statement not covered" > if ((newType as Structure)?.properties && (newType as Structure).properties.length) {</span>
|
|
2088
2085
|
// 处理泛型的内容要取到值
|
|
2089
2086
|
const StructureJson = <span class="cstat-no" title="statement not covered" >newType.toJSON();</span>
|
|
2090
2087
|
const newStructure = <span class="cstat-no" title="statement not covered" >new Structure(StructureJson);</span>
|
|
2091
|
-
<span class="cstat-no" title="statement not covered" > newStructure.properties.forEach(
|
|
2088
|
+
<span class="cstat-no" title="statement not covered" > newStructure.properties.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem: StructureProperty | EntityProperty) => {</span>
|
|
2092
2089
|
const itemType = <span class="cstat-no" title="statement not covered" >item?.typeAnnotation?.typeKey;</span>
|
|
2093
2090
|
<span class="cstat-no" title="statement not covered" > if (itemType === 'T' && /<([^()]+)>/g.exec(typeKey)) {</span>
|
|
2094
2091
|
const newTypes = <span class="cstat-no" title="statement not covered" >/<([^()]+)>/g.exec(typeKey);</span>
|
|
@@ -2116,7 +2113,7 @@ export function <span class="fstat-no" title="function not covered" >nextFindTyp
|
|
|
2116
2113
|
lCAPRolePerMapping: dataSources.defaultDS.entities.LCAPRolePerMapping;
|
|
2117
2114
|
}>`
|
|
2118
2115
|
*/
|
|
2119
|
-
function <span class="fstat-no" title="function not covered" >getAStructureScopeType(
|
|
2116
|
+
function <span class="fstat-no" title="function not covered" >getAStructureScopeType(</span>type: string, parent: any, node: SynatxNode) {
|
|
2120
2117
|
let newType = <span class="cstat-no" title="statement not covered" >type</span>
|
|
2121
2118
|
.replaceAll(' ', '')
|
|
2122
2119
|
.replaceAll('\n', '')
|
|
@@ -2137,7 +2134,7 @@ function <span class="fstat-no" title="function not covered" >getAStructureScope
|
|
|
2137
2134
|
const newStructure = <span class="cstat-no" title="statement not covered" >new Structure(StructureJson);</span>
|
|
2138
2135
|
const children = <span class="cstat-no" title="statement not covered" >newStructure.properties;</span>
|
|
2139
2136
|
<span class="cstat-no" title="statement not covered" > if (children && children.length) {</span>
|
|
2140
|
-
const newChildren = <span class="cstat-no" title="statement not covered" >children.map(
|
|
2137
|
+
const newChildren = <span class="cstat-no" title="statement not covered" >children.map(<span class="fstat-no" title="function not covered" >(s</span>tructureProperty) => {</span>
|
|
2141
2138
|
const structureItem: any = <span class="cstat-no" title="statement not covered" >structureProperty;</span>
|
|
2142
2139
|
// 如果没有父节点就是Identifier
|
|
2143
2140
|
<span class="cstat-no" title="statement not covered" > structureItem.value = `${parentItem.value}.${structureItem.name}`;</span>
|
|
@@ -2153,7 +2150,7 @@ function <span class="fstat-no" title="function not covered" >getAStructureScope
|
|
|
2153
2150
|
const context = <span class="cstat-no" title="statement not covered" >/\{([^()]+)\}/.exec(newType);</span>
|
|
2154
2151
|
<span class="cstat-no" title="statement not covered" > newType = context[1];</span>
|
|
2155
2152
|
let res: any[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
2156
|
-
<span class="cstat-no" title="statement not covered" > newType.split(';').forEach(
|
|
2153
|
+
<span class="cstat-no" title="statement not covered" > newType.split(';').forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2157
2154
|
<span class="cstat-no" title="statement not covered" > if (item) {</span>
|
|
2158
2155
|
const itemArr = <span class="cstat-no" title="statement not covered" >item.split(':');</span>
|
|
2159
2156
|
const name = <span class="cstat-no" title="statement not covered" >itemArr[0];</span>
|
|
@@ -2172,7 +2169,7 @@ function <span class="fstat-no" title="function not covered" >getAStructureScope
|
|
|
2172
2169
|
});
|
|
2173
2170
|
}
|
|
2174
2171
|
});
|
|
2175
|
-
<span class="cstat-no" title="statement not covered" > res = res.map(
|
|
2172
|
+
<span class="cstat-no" title="statement not covered" > res = res.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2176
2173
|
const newItem: any = <span class="cstat-no" title="statement not covered" >item;</span>
|
|
2177
2174
|
// 如果没有父节点就是Identifier
|
|
2178
2175
|
<span class="cstat-no" title="statement not covered" > newItem.value = `${structureItem.value}.${newItem.name}`;</span>
|
|
@@ -2216,7 +2213,7 @@ function <span class="fstat-no" title="function not covered" >getAStructureScope
|
|
|
2216
2213
|
total: nasl.core.Long;
|
|
2217
2214
|
}`
|
|
2218
2215
|
*/
|
|
2219
|
-
function <span class="fstat-no" title="function not covered" >getAStructureObjectStringType(
|
|
2216
|
+
function <span class="fstat-no" title="function not covered" >getAStructureObjectStringType(</span>type: string, parent: any, node: SynatxNode) {
|
|
2220
2217
|
let newType = <span class="cstat-no" title="statement not covered" >type</span>
|
|
2221
2218
|
.replaceAll(' ', '')
|
|
2222
2219
|
.replaceAll('\n', '')
|
|
@@ -2226,7 +2223,7 @@ function <span class="fstat-no" title="function not covered" >getAStructureObjec
|
|
|
2226
2223
|
<span class="cstat-no" title="statement not covered" > newType = newType.replace(/\{([^()]+)\}/, '');</span>
|
|
2227
2224
|
}
|
|
2228
2225
|
let res: any[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
2229
|
-
<span class="cstat-no" title="statement not covered" > newType.split(';').forEach(
|
|
2226
|
+
<span class="cstat-no" title="statement not covered" > newType.split(';').forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2230
2227
|
<span class="cstat-no" title="statement not covered" > if (item) {</span>
|
|
2231
2228
|
const itemArr = <span class="cstat-no" title="statement not covered" >item.split(':');</span>
|
|
2232
2229
|
const name = <span class="cstat-no" title="statement not covered" >itemArr[0];</span>
|
|
@@ -2245,7 +2242,7 @@ function <span class="fstat-no" title="function not covered" >getAStructureObjec
|
|
|
2245
2242
|
<span class="cstat-no" title="statement not covered" > parentItem.value = parentItem.text;</span>
|
|
2246
2243
|
<span class="cstat-no" title="statement not covered" > parentItem.name = parentItem.text;</span>
|
|
2247
2244
|
|
|
2248
|
-
<span class="cstat-no" title="statement not covered" > res = res.map(
|
|
2245
|
+
<span class="cstat-no" title="statement not covered" > res = res.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2249
2246
|
const newItem: any = <span class="cstat-no" title="statement not covered" >item;</span>
|
|
2250
2247
|
// 如果没有父节点就是Identifier
|
|
2251
2248
|
<span class="cstat-no" title="statement not covered" > newItem.value = `${parentItem.value}.${newItem.name}`;</span>
|
|
@@ -2271,13 +2268,13 @@ function <span class="fstat-no" title="function not covered" >getAStructureObjec
|
|
|
2271
2268
|
<span class="cstat-no" title="statement not covered" > completionProperty.icon = getNodeiconFromLogic(completionProperty, node);</span>
|
|
2272
2269
|
<span class="cstat-no" title="statement not covered" > return completionProperty;</span>
|
|
2273
2270
|
}
|
|
2274
|
-
function <span class="fstat-no" title="function not covered" >nextObjectTypeChild(
|
|
2271
|
+
function <span class="fstat-no" title="function not covered" >nextObjectTypeChild(</span>typeKey: string, item: any, node: SynatxNode) {
|
|
2275
2272
|
const newType = <span class="cstat-no" title="statement not covered" >findNode(typeKey, node);</span>
|
|
2276
2273
|
<span class="cstat-no" title="statement not covered" > if ((newType as Structure)?.properties && (newType as Structure).properties.length) {</span>
|
|
2277
2274
|
// 处理泛型的内容要取到值
|
|
2278
2275
|
const StructureJson = <span class="cstat-no" title="statement not covered" >newType.toJSON();</span>
|
|
2279
2276
|
const newStructure = <span class="cstat-no" title="statement not covered" >new Structure(StructureJson);</span>
|
|
2280
|
-
<span class="cstat-no" title="statement not covered" > newStructure.properties.forEach(
|
|
2277
|
+
<span class="cstat-no" title="statement not covered" > newStructure.properties.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem: StructureProperty | EntityProperty) => {</span>
|
|
2281
2278
|
const itemType = <span class="cstat-no" title="statement not covered" >item?.typeAnnotation?.typeKey;</span>
|
|
2282
2279
|
<span class="cstat-no" title="statement not covered" > if (itemType === 'T' && /<([^()]+)>/g.exec(typeKey)) {</span>
|
|
2283
2280
|
const newTypes = <span class="cstat-no" title="statement not covered" >/<([^()]+)>/g.exec(typeKey);</span>
|
|
@@ -2296,13 +2293,13 @@ function <span class="fstat-no" title="function not covered" >nextObjectTypeChil
|
|
|
2296
2293
|
}
|
|
2297
2294
|
}
|
|
2298
2295
|
|
|
2299
|
-
function <span class="fstat-no" title="function not covered" >getNodeTypeVariableData(
|
|
2296
|
+
function <span class="fstat-no" title="function not covered" >getNodeTypeVariableData(</span>nodeType: any, item: any, node: SynatxNode) {
|
|
2300
2297
|
<span class="cstat-no" title="statement not covered" > item.value = item.text;</span>
|
|
2301
2298
|
<span class="cstat-no" title="statement not covered" > item.name = item.text;</span>
|
|
2302
2299
|
const parentExpression = <span class="cstat-no" title="statement not covered" >new Identifier({ name: item.text });</span>
|
|
2303
2300
|
<span class="cstat-no" title="statement not covered" > item.expression = parentExpression;</span>
|
|
2304
2301
|
<span class="cstat-no" title="statement not covered" > if (nodeType) {</span>
|
|
2305
|
-
const <span class="cstat-no" title="statement not covered" >
|
|
2302
|
+
const typeAnnotation = <span class="cstat-no" title="statement not covered" >type2TypeAnnotation(nodeType);</span>
|
|
2306
2303
|
const typeKeyMap = <span class="cstat-no" title="statement not covered" >new Map();</span>
|
|
2307
2304
|
const app = <span class="cstat-no" title="statement not covered" >node.rootNode as App;</span>
|
|
2308
2305
|
let structure: any = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
@@ -2312,12 +2309,12 @@ function <span class="fstat-no" title="function not covered" >getNodeTypeVariabl
|
|
|
2312
2309
|
// 数据查询没有输出参数,特殊处理
|
|
2313
2310
|
<span class="cstat-no" title="statement not covered" > if (typeAnnotation.typeKind === 'anonymousStructure') {</span>
|
|
2314
2311
|
<span class="cstat-no" title="statement not covered" > structure = { properties: typeAnnotation.properties };</span>
|
|
2315
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2312
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeAnnotation.typeArguments) {</span>
|
|
2316
2313
|
<span class="cstat-no" title="statement not covered" > structure = { properties: app.getSelectRef(typeAnnotation, true) };</span>
|
|
2317
2314
|
} else {
|
|
2318
2315
|
<span class="cstat-no" title="statement not covered" > structure = app.findNodeByCompleteName(typeAnnotation.typeNamespace + '.' + typeAnnotation.typeName);</span>
|
|
2319
2316
|
}
|
|
2320
|
-
<span class="cstat-no" title="statement not covered" > structure?.properties?.forEach(
|
|
2317
|
+
<span class="cstat-no" title="statement not covered" > structure?.properties?.forEach(<span class="fstat-no" title="function not covered" >(s</span>tructureProperty: StructureProperty) => {</span>
|
|
2321
2318
|
const { name, typeAnnotation } = <span class="cstat-no" title="statement not covered" >structureProperty;</span>
|
|
2322
2319
|
const expression = <span class="cstat-no" title="statement not covered" >new MemberExpression({</span>
|
|
2323
2320
|
object: parentExpression,
|
|
@@ -2360,7 +2357,7 @@ function <span class="fstat-no" title="function not covered" >recursionProperty(
|
|
|
2360
2357
|
}
|
|
2361
2358
|
}
|
|
2362
2359
|
|
|
2363
|
-
<span class="cstat-no" title="statement not covered" > structure?.properties?.forEach(
|
|
2360
|
+
<span class="cstat-no" title="statement not covered" > structure?.properties?.forEach(<span class="fstat-no" title="function not covered" >(s</span>tructureProperty: StructureProperty) => {</span>
|
|
2364
2361
|
const { name, typeAnnotation } = <span class="cstat-no" title="statement not covered" >structureProperty;</span>
|
|
2365
2362
|
const object = <span class="cstat-no" title="statement not covered" >BaseNode.from({ ...parentCompletion.expression.toJSON() }) as any;</span>
|
|
2366
2363
|
const expression = <span class="cstat-no" title="statement not covered" >new MemberExpression({</span>
|
|
@@ -2381,11 +2378,11 @@ function <span class="fstat-no" title="function not covered" >recursionProperty(
|
|
|
2381
2378
|
});
|
|
2382
2379
|
}
|
|
2383
2380
|
|
|
2384
|
-
function <span class="fstat-no" title="function not covered" >getNextFlag(
|
|
2381
|
+
function <span class="fstat-no" title="function not covered" >getNextFlag(</span>typeKey: string, typeKeyMap: Map<string, number>) {
|
|
2385
2382
|
<span class="cstat-no" title="statement not covered" > if (['nasl.core.String', 'nasl.collection.List', 'nasl.collection.Map'].includes(typeKey)) <span class="cstat-no" title="statement not covered" >return true;</span></span>
|
|
2386
2383
|
<span class="cstat-no" title="statement not covered" > if (typeKeyMap.get(typeKey) === 3) {</span>
|
|
2387
2384
|
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
2388
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2385
|
+
} else <span class="cstat-no" title="statement not covered" >if (typeKeyMap.get(typeKey) > 0) {</span>
|
|
2389
2386
|
<span class="cstat-no" title="statement not covered" > typeKeyMap.set(typeKey, typeKeyMap.get(typeKey) + 1);</span>
|
|
2390
2387
|
} else {
|
|
2391
2388
|
<span class="cstat-no" title="statement not covered" > typeKeyMap.set(typeKey, 1);</span>
|
|
@@ -2393,9 +2390,9 @@ function <span class="fstat-no" title="function not covered" >getNextFlag(t</spa
|
|
|
2393
2390
|
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
2394
2391
|
}
|
|
2395
2392
|
// 格式化变量数据
|
|
2396
|
-
export function <span class="fstat-no" title="function not covered" >formatVariableData(
|
|
2393
|
+
export function <span class="fstat-no" title="function not covered" >formatVariableData(</span>data: unknown | variableItem[], node: SynatxNode, parent?: any) {
|
|
2397
2394
|
<span class="cstat-no" title="statement not covered" > if (Array.isArray(data)) {</span>
|
|
2398
|
-
let result = <span class="cstat-no" title="statement not covered" >data.map(
|
|
2395
|
+
let result = <span class="cstat-no" title="statement not covered" >data.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2399
2396
|
<span class="cstat-no" title="statement not covered" > item.children = [];</span>
|
|
2400
2397
|
// 当前的类型如 app.entitys.entity1 nasl.core.String
|
|
2401
2398
|
let typeKey: string;
|
|
@@ -2414,10 +2411,10 @@ export function <span class="fstat-no" title="function not covered" >formatVaria
|
|
|
2414
2411
|
<span class="cstat-no" title="statement not covered" > if (newCurrentType.startsWith('{') && newCurrentType.endsWith('}')) {</span>
|
|
2415
2412
|
const completionProperty = <span class="cstat-no" title="statement not covered" >getAStructureObjectStringType(newCurrentType, item, node);</span>
|
|
2416
2413
|
<span class="cstat-no" title="statement not covered" > return completionProperty;</span>
|
|
2417
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2414
|
+
} else <span class="cstat-no" title="statement not covered" >if (newCurrentType.startsWith('nasl.ui.Current<{')) {</span>
|
|
2418
2415
|
const completionProperty = <span class="cstat-no" title="statement not covered" >getAStructureScopeType(newCurrentType, item, node);</span>
|
|
2419
2416
|
<span class="cstat-no" title="statement not covered" > return completionProperty;</span>
|
|
2420
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2417
|
+
} else <span class="cstat-no" title="statement not covered" >if (newCurrentType.startsWith('nasl.collection.List<{') && newCurrentType.endsWith('}>')) {</span>
|
|
2421
2418
|
<span class="cstat-no" title="statement not covered" > currentType = 'nasl.collection.List<nasl.core.Any>';</span>
|
|
2422
2419
|
}
|
|
2423
2420
|
}
|
|
@@ -2425,7 +2422,7 @@ export function <span class="fstat-no" title="function not covered" >formatVaria
|
|
|
2425
2422
|
<span class="cstat-no" title="statement not covered" > typeKey = getPlatformType(currentType);</span>
|
|
2426
2423
|
<span class="cstat-no" title="statement not covered" > item.typeAnnotation = displayString2TypeAnnotation(typeKey);</span>
|
|
2427
2424
|
}
|
|
2428
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2425
|
+
} else <span class="cstat-no" title="statement not covered" >if (item instanceof StructureProperty || item instanceof EntityProperty) {</span>
|
|
2429
2426
|
<span class="cstat-no" title="statement not covered" > typeKey = item?.typeAnnotation?.typeKey;</span>
|
|
2430
2427
|
}
|
|
2431
2428
|
// 如果没有父节点就是Identifier
|
|
@@ -2492,7 +2489,7 @@ export function <span class="fstat-no" title="function not covered" >formatVaria
|
|
|
2492
2489
|
}
|
|
2493
2490
|
|
|
2494
2491
|
// 从logic获取节点的icon
|
|
2495
|
-
function <span class="fstat-no" title="function not covered" >getNodeiconFromLogic(
|
|
2492
|
+
function <span class="fstat-no" title="function not covered" >getNodeiconFromLogic(</span>completionProperty: CompletionProperty, node: SynatxNode): string {
|
|
2496
2493
|
const { name: propName } = <span class="cstat-no" title="statement not covered" >completionProperty;</span>
|
|
2497
2494
|
const { view } = <span class="cstat-no" title="statement not covered" >node as Param;</span>
|
|
2498
2495
|
const logic = (<span class="cstat-no" title="statement not covered" >node as Param).logic || (node as Param).OverriddenLogic || (node as Param).AuthLogic || (node as Param).AuthLogicForCallInterface;</span>
|
|
@@ -2501,7 +2498,7 @@ function <span class="fstat-no" title="function not covered" >getNodeiconFromLog
|
|
|
2501
2498
|
const callLogic = <span class="cstat-no" title="statement not covered" >node.getAncestor<CallLogic>('CallLogic');</span>
|
|
2502
2499
|
const originLogic = <span class="cstat-no" title="statement not covered" >callLogic?.getCallNode() as Logic;</span>
|
|
2503
2500
|
|
|
2504
|
-
<span class="cstat-no" title="statement not covered" > if (originLogic?.params.find(
|
|
2501
|
+
<span class="cstat-no" title="statement not covered" > if (originLogic?.params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === propName)</span>) {</span>
|
|
2505
2502
|
<span class="cstat-no" title="statement not covered" > return 'param';</span>
|
|
2506
2503
|
}
|
|
2507
2504
|
}
|
|
@@ -2510,7 +2507,7 @@ function <span class="fstat-no" title="function not covered" >getNodeiconFromLog
|
|
|
2510
2507
|
// 前端逻辑调用
|
|
2511
2508
|
const { params } = <span class="cstat-no" title="statement not covered" >view;</span>
|
|
2512
2509
|
|
|
2513
|
-
<span class="cstat-no" title="statement not covered" > if (params.find(
|
|
2510
|
+
<span class="cstat-no" title="statement not covered" > if (params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === propName)</span>) {</span>
|
|
2514
2511
|
<span class="cstat-no" title="statement not covered" > return 'param';</span>
|
|
2515
2512
|
}
|
|
2516
2513
|
}
|
|
@@ -2520,17 +2517,17 @@ function <span class="fstat-no" title="function not covered" >getNodeiconFromLog
|
|
|
2520
2517
|
|
|
2521
2518
|
<span class="cstat-no" title="statement not covered" > if (logic instanceof AuthLogicForCallInterface) {</span>
|
|
2522
2519
|
const { authParams } = <span class="cstat-no" title="statement not covered" >logic;</span>
|
|
2523
|
-
<span class="cstat-no" title="statement not covered" > if (authParams.find(
|
|
2524
|
-
<span class="cstat-no" title="statement not covered" > if (params.find(
|
|
2525
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2526
|
-
<span class="cstat-no" title="statement not covered" > if (params.find(
|
|
2520
|
+
<span class="cstat-no" title="statement not covered" > if (authParams.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === completionProperty.name)</span>) <span class="cstat-no" title="statement not covered" >return 'api-auth-params';</span></span>
|
|
2521
|
+
<span class="cstat-no" title="statement not covered" > if (params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === completionProperty.name)</span>) <span class="cstat-no" title="statement not covered" >return 'api-auth-params';</span></span>
|
|
2522
|
+
} else <span class="cstat-no" title="statement not covered" >if (logic instanceof AuthLogic) {</span>
|
|
2523
|
+
<span class="cstat-no" title="statement not covered" > if (params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === completionProperty.name)</span>) <span class="cstat-no" title="statement not covered" >return 'api-auth-params';</span></span>
|
|
2527
2524
|
} else {
|
|
2528
|
-
<span class="cstat-no" title="statement not covered" > if (params.find(
|
|
2525
|
+
<span class="cstat-no" title="statement not covered" > if (params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === completionProperty.name)</span>) <span class="cstat-no" title="statement not covered" >return 'param';</span></span>
|
|
2529
2526
|
}
|
|
2530
2527
|
|
|
2531
|
-
<span class="cstat-no" title="statement not covered" > if (params.find(
|
|
2528
|
+
<span class="cstat-no" title="statement not covered" > if (params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === propName)</span>) {</span>
|
|
2532
2529
|
<span class="cstat-no" title="statement not covered" > return 'param';</span>
|
|
2533
|
-
<span class="cstat-no" title="statement not covered" >
|
|
2530
|
+
} else <span class="cstat-no" title="statement not covered" >if (returns.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === propName)</span>) {</span>
|
|
2534
2531
|
<span class="cstat-no" title="statement not covered" > return 'return';</span>
|
|
2535
2532
|
} else {
|
|
2536
2533
|
<span class="cstat-no" title="statement not covered" > return 'variable';</span>
|
|
@@ -2542,7 +2539,7 @@ function <span class="fstat-no" title="function not covered" >getNodeiconFromLog
|
|
|
2542
2539
|
<span class="cstat-no" title="statement not covered" > if (bindAttr) {</span>
|
|
2543
2540
|
const interfaceInstance = <span class="cstat-no" title="statement not covered" >bindAttr.getAncestor<Interface>('Interface');</span>
|
|
2544
2541
|
|
|
2545
|
-
<span class="cstat-no" title="statement not covered" > if (interfaceInstance?.params.find(
|
|
2542
|
+
<span class="cstat-no" title="statement not covered" > if (interfaceInstance?.params.find(<span class="fstat-no" title="function not covered" >(i</span>tem) => <span class="cstat-no" title="statement not covered" >item.name === propName)</span>) {</span>
|
|
2546
2543
|
<span class="cstat-no" title="statement not covered" > return 'param';</span>
|
|
2547
2544
|
}
|
|
2548
2545
|
}
|
|
@@ -2559,15 +2556,15 @@ function <span class="fstat-no" title="function not covered" >getNodeiconFromLog
|
|
|
2559
2556
|
* 但是影响用户体验,需要先按照页面排序,其次按照logic进行排序
|
|
2560
2557
|
* 流程的韬哥自己解决了,所以先解决这两部分
|
|
2561
2558
|
*/
|
|
2562
|
-
function <span class="fstat-no" title="function not covered" >sortFirstVariableData(
|
|
2559
|
+
function <span class="fstat-no" title="function not covered" >sortFirstVariableData(</span>result: CompletionProperty[], node: BaseNode) {
|
|
2563
2560
|
const newResult: CompletionProperty[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
2564
2561
|
const logic = (<span class="cstat-no" title="statement not covered" >node as Param).logic;</span>
|
|
2565
2562
|
const view = (<span class="cstat-no" title="statement not covered" >node as Param).view;</span>
|
|
2566
2563
|
<span class="cstat-no" title="statement not covered" > if (view) {</span>
|
|
2567
2564
|
const { params, variables } = <span class="cstat-no" title="statement not covered" >view;</span>
|
|
2568
2565
|
const list = <span class="cstat-no" title="statement not covered" >[...params, ...variables];</span>
|
|
2569
|
-
<span class="cstat-no" title="statement not covered" > list.forEach(
|
|
2570
|
-
const findIndex = <span class="cstat-no" title="statement not covered" >result.findIndex(
|
|
2566
|
+
<span class="cstat-no" title="statement not covered" > list.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2567
|
+
const findIndex = <span class="cstat-no" title="statement not covered" >result.findIndex(<span class="fstat-no" title="function not covered" >(f</span>indItem) => <span class="cstat-no" title="statement not covered" >findItem.name === item.name)</span>;</span>
|
|
2571
2568
|
<span class="cstat-no" title="statement not covered" > if (findIndex !== -1) {</span>
|
|
2572
2569
|
<span class="cstat-no" title="statement not covered" > newResult.push(result[findIndex]);</span>
|
|
2573
2570
|
<span class="cstat-no" title="statement not covered" > result.splice(findIndex, 1);</span>
|
|
@@ -2577,8 +2574,8 @@ function <span class="fstat-no" title="function not covered" >sortFirstVariableD
|
|
|
2577
2574
|
<span class="cstat-no" title="statement not covered" > if (logic) {</span>
|
|
2578
2575
|
const { params, returns, variables } = <span class="cstat-no" title="statement not covered" >logic;</span>
|
|
2579
2576
|
const list = <span class="cstat-no" title="statement not covered" >[...params, ...returns, ...variables];</span>
|
|
2580
|
-
<span class="cstat-no" title="statement not covered" > list.forEach(
|
|
2581
|
-
const findIndex = <span class="cstat-no" title="statement not covered" >result.findIndex(
|
|
2577
|
+
<span class="cstat-no" title="statement not covered" > list.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
2578
|
+
const findIndex = <span class="cstat-no" title="statement not covered" >result.findIndex(<span class="fstat-no" title="function not covered" >(f</span>indItem) => <span class="cstat-no" title="statement not covered" >findItem.name === item.name)</span>;</span>
|
|
2582
2579
|
<span class="cstat-no" title="statement not covered" > if (findIndex !== -1) {</span>
|
|
2583
2580
|
<span class="cstat-no" title="statement not covered" > newResult.push(result[findIndex]);</span>
|
|
2584
2581
|
<span class="cstat-no" title="statement not covered" > result.splice(findIndex, 1);</span>
|
|
@@ -2588,8 +2585,8 @@ function <span class="fstat-no" title="function not covered" >sortFirstVariableD
|
|
|
2588
2585
|
<span class="cstat-no" title="statement not covered" > newResult.push(...result);</span>
|
|
2589
2586
|
<span class="cstat-no" title="statement not covered" > return newResult;</span>
|
|
2590
2587
|
}
|
|
2591
|
-
export function <span class="fstat-no" title="function not covered" >formatBackendVariables(
|
|
2592
|
-
const result = <span class="cstat-no" title="statement not covered" >variables.map(
|
|
2588
|
+
export function <span class="fstat-no" title="function not covered" >formatBackendVariables(</span>variables: Array<BackendVariable>) {
|
|
2589
|
+
const result = <span class="cstat-no" title="statement not covered" >variables.map(<span class="fstat-no" title="function not covered" >(i</span>temNode) => {</span>
|
|
2593
2590
|
const namespace = <span class="cstat-no" title="statement not covered" >itemNode.getNamespace();</span>
|
|
2594
2591
|
const newItem: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2595
2592
|
name: itemNode.name,
|
|
@@ -2602,7 +2599,7 @@ export function <span class="fstat-no" title="function not covered" >formatBacke
|
|
|
2602
2599
|
const noChildType = <span class="cstat-no" title="statement not covered" >isNoChildType(itemNode.typeAnnotation?.typeKey);</span>
|
|
2603
2600
|
|
|
2604
2601
|
<span class="cstat-no" title="statement not covered" > if (!noChildType) {</span>
|
|
2605
|
-
<span class="cstat-no" title="statement not covered" > nextFindTypeChild(itemNode
|
|
2602
|
+
<span class="cstat-no" title="statement not covered" > nextFindTypeChild(itemNode.typeAnnotation.typeKey, newItem, itemNode);</span>
|
|
2606
2603
|
}
|
|
2607
2604
|
const completionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(newItem);</span>
|
|
2608
2605
|
<span class="cstat-no" title="statement not covered" > completionProperty.icon = 'backendVariable';</span>
|
|
@@ -2610,8 +2607,8 @@ export function <span class="fstat-no" title="function not covered" >formatBacke
|
|
|
2610
2607
|
});
|
|
2611
2608
|
<span class="cstat-no" title="statement not covered" > return result;</span>
|
|
2612
2609
|
}
|
|
2613
|
-
export function <span class="fstat-no" title="function not covered" >formatFrontEndVariables(
|
|
2614
|
-
const result = <span class="cstat-no" title="statement not covered" >frontEndVariables.map(
|
|
2610
|
+
export function <span class="fstat-no" title="function not covered" >formatFrontEndVariables(</span>frontEndVariables: Array<Variable>) {
|
|
2611
|
+
const result = <span class="cstat-no" title="statement not covered" >frontEndVariables.map(<span class="fstat-no" title="function not covered" >(i</span>temNode) => {</span>
|
|
2615
2612
|
const namespace = <span class="cstat-no" title="statement not covered" >itemNode.getNamespace();</span>
|
|
2616
2613
|
const newItem: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
2617
2614
|
name: itemNode.name,
|
|
@@ -2633,9 +2630,9 @@ export function <span class="fstat-no" title="function not covered" >formatFront
|
|
|
2633
2630
|
<span class="cstat-no" title="statement not covered" > return result;</span>
|
|
2634
2631
|
}
|
|
2635
2632
|
|
|
2636
|
-
export function <span class="fstat-no" title="function not covered" >formatConfigProperties(
|
|
2633
|
+
export function <span class="fstat-no" title="function not covered" >formatConfigProperties(</span>configProperties: Array<ConfigProperty>, isView: Boolean) {
|
|
2637
2634
|
const result = <span class="cstat-no" title="statement not covered" >configProperties.reduce(<span class="fstat-no" title="function not covered" >(p</span>re: any, item) => {</span>
|
|
2638
|
-
const { isPrivate = <span class="branch-0 cbranch-no" title="branch not covered" >false
|
|
2635
|
+
const { isPrivate = <span class="branch-0 cbranch-no" title="branch not covered" >false </span>} = <span class="cstat-no" title="statement not covered" >item;</span>
|
|
2639
2636
|
|
|
2640
2637
|
<span class="cstat-no" title="statement not covered" > if (!isPrivate || !isView) {</span>
|
|
2641
2638
|
const namespace = <span class="cstat-no" title="statement not covered" >item.getNamespace();</span>
|
|
@@ -2677,7 +2674,7 @@ export function <span class="fstat-no" title="function not covered" >formatConfi
|
|
|
2677
2674
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2678
2675
|
Code coverage generated by
|
|
2679
2676
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2680
|
-
at 2023-
|
|
2677
|
+
at 2023-10-18T11:36:07.885Z
|
|
2681
2678
|
</div>
|
|
2682
2679
|
<script src="../../prettify.js"></script>
|
|
2683
2680
|
<script>
|