@lcap/nasl 3.4.0-beta.8 → 3.4.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +1 -0
- package/.nyc_output/processinfo/d58d92d8-c0d6-479b-9f82-1f4da8e73ff3.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +461 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/coverage/src/automate/engine/index.html +116 -0
- package/coverage/src/automate/engine/utils.js.html +1414 -0
- package/coverage/src/bak/index.html +116 -0
- package/coverage/src/bak/translator.js.html +622 -0
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +175 -0
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +169 -0
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1246 -0
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +145 -0
- package/coverage/src/breakpoint/generator/index.html +176 -0
- package/coverage/src/breakpoint/generator/index.ts.html +508 -0
- package/coverage/src/breakpoint/index.html +116 -0
- package/coverage/src/breakpoint/index.ts.html +94 -0
- package/coverage/src/breakpoint/shared/constants.ts.html +436 -0
- package/coverage/src/breakpoint/shared/index.html +176 -0
- package/coverage/src/breakpoint/shared/index.ts.html +94 -0
- package/coverage/src/breakpoint/shared/operations.ts.html +160 -0
- package/coverage/src/breakpoint/shared/socket.ts.html +1297 -0
- package/coverage/src/breakpoint/shared/utils.ts.html +1087 -0
- package/coverage/src/breakpoint/store/core.ts.html +1600 -0
- package/coverage/src/breakpoint/store/dock.ts.html +733 -0
- package/coverage/src/breakpoint/store/index.html +146 -0
- package/coverage/src/breakpoint/store/index.ts.html +91 -0
- package/coverage/src/common/BaseNode.ts.html +3874 -0
- package/coverage/src/common/Command.ts.html +310 -0
- package/coverage/src/common/EventEmitter.ts.html +370 -0
- package/coverage/src/common/Messager.ts.html +820 -0
- package/coverage/src/common/asyncFuncMap.ts.html +127 -0
- package/coverage/src/common/index.html +191 -0
- package/coverage/src/common/index.ts.html +94 -0
- package/coverage/src/concepts/Abort__.ts.html +328 -0
- package/coverage/src/concepts/Anchor__.ts.html +646 -0
- package/coverage/src/concepts/AnonymousFunction__.ts.html +2029 -0
- package/coverage/src/concepts/App__.ts.html +13252 -0
- package/coverage/src/concepts/Argument__.ts.html +964 -0
- package/coverage/src/concepts/Assignee__.ts.html +2236 -0
- package/coverage/src/concepts/AssignmentLine__.ts.html +409 -0
- package/coverage/src/concepts/Assignment__.ts.html +1123 -0
- package/coverage/src/concepts/Attribute__.ts.html +733 -0
- package/coverage/src/concepts/AuthInterface__.ts.html +367 -0
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +1984 -0
- package/coverage/src/concepts/AuthLogic__.ts.html +781 -0
- package/coverage/src/concepts/BackendVariable__.ts.html +1483 -0
- package/coverage/src/concepts/Backend__.ts.html +1165 -0
- package/coverage/src/concepts/BatchAssignment__.ts.html +3301 -0
- package/coverage/src/concepts/BinaryExpression__.ts.html +1441 -0
- package/coverage/src/concepts/BindAttribute__.ts.html +3835 -0
- package/coverage/src/concepts/BindDirective__.ts.html +1921 -0
- package/coverage/src/concepts/BindEvent__.ts.html +3406 -0
- package/coverage/src/concepts/BindStyle__.ts.html +1612 -0
- package/coverage/src/concepts/BooleanLiteral__.ts.html +418 -0
- package/coverage/src/concepts/CallAuthInterface__.ts.html +1615 -0
- package/coverage/src/concepts/CallConnector__.ts.html +922 -0
- package/coverage/src/concepts/CallFunction__.ts.html +2122 -0
- package/coverage/src/concepts/CallInterface__.ts.html +2719 -0
- package/coverage/src/concepts/CallLogic__.ts.html +4807 -0
- package/coverage/src/concepts/CallQueryComponent__.ts.html +5308 -0
- package/coverage/src/concepts/Comment__.ts.html +394 -0
- package/coverage/src/concepts/CompletionProperty__.ts.html +925 -0
- package/coverage/src/concepts/ConfigGroup__.ts.html +1105 -0
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +424 -0
- package/coverage/src/concepts/ConfigProperty__.ts.html +1348 -0
- package/coverage/src/concepts/Configuration__.ts.html +1027 -0
- package/coverage/src/concepts/Connection__.ts.html +1360 -0
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +595 -0
- package/coverage/src/concepts/Connector__.ts.html +4255 -0
- package/coverage/src/concepts/Constant__.ts.html +913 -0
- package/coverage/src/concepts/DataSource__.ts.html +1771 -0
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +331 -0
- package/coverage/src/concepts/Destination__.ts.html +2731 -0
- package/coverage/src/concepts/End__.ts.html +433 -0
- package/coverage/src/concepts/EntityIndex__.ts.html +787 -0
- package/coverage/src/concepts/EntityProperty__.ts.html +2668 -0
- package/coverage/src/concepts/Entity__.ts.html +2950 -0
- package/coverage/src/concepts/EnumItem__.ts.html +550 -0
- package/coverage/src/concepts/Enum__.ts.html +1231 -0
- package/coverage/src/concepts/Event__.ts.html +1084 -0
- package/coverage/src/concepts/ExternalDestination__.ts.html +1033 -0
- package/coverage/src/concepts/ForEachStatement__.ts.html +1957 -0
- package/coverage/src/concepts/FrontendLibrary__.ts.html +1711 -0
- package/coverage/src/concepts/FrontendVariable__.ts.html +292 -0
- package/coverage/src/concepts/Frontend__.ts.html +3961 -0
- package/coverage/src/concepts/Function__.ts.html +3598 -0
- package/coverage/src/concepts/Identifier__.ts.html +1057 -0
- package/coverage/src/concepts/IfStatement__.ts.html +1594 -0
- package/coverage/src/concepts/Integration__.ts.html +1228 -0
- package/coverage/src/concepts/InterfaceParam__.ts.html +1087 -0
- package/coverage/src/concepts/Interface__.ts.html +3394 -0
- package/coverage/src/concepts/JSBlock__.ts.html +421 -0
- package/coverage/src/concepts/JavaLogic__.ts.html +460 -0
- package/coverage/src/concepts/LogicItem__.ts.html +1171 -0
- package/coverage/src/concepts/Logic__.ts.html +7408 -0
- package/coverage/src/concepts/MatchCase__.ts.html +2929 -0
- package/coverage/src/concepts/Match__.ts.html +2455 -0
- package/coverage/src/concepts/MemberExpression__.ts.html +1726 -0
- package/coverage/src/concepts/MicroApp__.ts.html +436 -0
- package/coverage/src/concepts/Module__.ts.html +9220 -0
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +1045 -0
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +1018 -0
- package/coverage/src/concepts/Namespace__.ts.html +7942 -0
- package/coverage/src/concepts/NewComposite__.ts.html +4729 -0
- package/coverage/src/concepts/NewList__.ts.html +1618 -0
- package/coverage/src/concepts/NewMap__.ts.html +2326 -0
- package/coverage/src/concepts/New__.ts.html +289 -0
- package/coverage/src/concepts/NullLiteral__.ts.html +349 -0
- package/coverage/src/concepts/NumericLiteral__.ts.html +676 -0
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +1141 -0
- package/coverage/src/concepts/OverriddenLogic__.ts.html +6817 -0
- package/coverage/src/concepts/Param__.ts.html +1726 -0
- package/coverage/src/concepts/Point__.ts.html +331 -0
- package/coverage/src/concepts/ProcessComponent__.ts.html +1666 -0
- package/coverage/src/concepts/ProcessElement__.ts.html +5884 -0
- package/coverage/src/concepts/ProcessOutcome__.ts.html +352 -0
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +343 -0
- package/coverage/src/concepts/Process__.ts.html +4768 -0
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +568 -0
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +583 -0
- package/coverage/src/concepts/QueryFromExpression__.ts.html +910 -0
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +559 -0
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +1567 -0
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +637 -0
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +679 -0
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +1714 -0
- package/coverage/src/concepts/Rect__.ts.html +373 -0
- package/coverage/src/concepts/Return__.ts.html +1312 -0
- package/coverage/src/concepts/Role__.ts.html +601 -0
- package/coverage/src/concepts/SelectMembers__.ts.html +1246 -0
- package/coverage/src/concepts/Slot__.ts.html +628 -0
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +982 -0
- package/coverage/src/concepts/Start__.ts.html +304 -0
- package/coverage/src/concepts/StringInterpolation__.ts.html +1129 -0
- package/coverage/src/concepts/StringLiteral__.ts.html +505 -0
- package/coverage/src/concepts/StructureProperty__.ts.html +1132 -0
- package/coverage/src/concepts/Structure__.ts.html +2092 -0
- package/coverage/src/concepts/SwitchCase__.ts.html +1174 -0
- package/coverage/src/concepts/SwitchStatement__.ts.html +877 -0
- package/coverage/src/concepts/Theme__.ts.html +358 -0
- package/coverage/src/concepts/Transactional__.ts.html +628 -0
- package/coverage/src/concepts/TriggerEvent__.ts.html +1012 -0
- package/coverage/src/concepts/TriggerLauncher__.ts.html +775 -0
- package/coverage/src/concepts/TypeAnnotation__.ts.html +3718 -0
- package/coverage/src/concepts/TypeParam__.ts.html +319 -0
- package/coverage/src/concepts/UnaryExpression__.ts.html +697 -0
- package/coverage/src/concepts/Unparsed__.ts.html +394 -0
- package/coverage/src/concepts/UseComponent__.ts.html +331 -0
- package/coverage/src/concepts/ValidationRule__.ts.html +1840 -0
- package/coverage/src/concepts/Variable__.ts.html +1489 -0
- package/coverage/src/concepts/ViewBlock__.ts.html +352 -0
- package/coverage/src/concepts/ViewComponent__.ts.html +4180 -0
- package/coverage/src/concepts/ViewElement__.ts.html +8803 -0
- package/coverage/src/concepts/View__.ts.html +8620 -0
- package/coverage/src/concepts/WhileStatement__.ts.html +1063 -0
- package/coverage/src/concepts/basics/stdlib/index.html +356 -0
- package/coverage/src/concepts/basics/stdlib/index.ts.html +208 -0
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +565 -0
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +517 -0
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +226 -0
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +172 -0
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +214 -0
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +145 -0
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +589 -0
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +214 -0
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +229 -0
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +268 -0
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1999 -0
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +3259 -0
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +6844 -0
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1768 -0
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +163 -0
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +664 -0
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +121 -0
- package/coverage/src/concepts/basics/types/index.html +131 -0
- package/coverage/src/concepts/basics/types/index.ts.html +160 -0
- package/coverage/src/concepts/index.html +1961 -0
- package/coverage/src/concepts/index.ts.html +103 -0
- package/coverage/src/concepts/index__.ts.html +451 -0
- package/coverage/src/config.ts.html +325 -0
- package/coverage/src/decorators/index.html +131 -0
- package/coverage/src/decorators/index.ts.html +574 -0
- package/coverage/src/decorators/promise.ts.html +169 -0
- package/coverage/src/eventBus.ts.html +100 -0
- package/coverage/src/generator/compileComponent.ts.html +142 -0
- package/coverage/src/generator/genBundleFiles.ts.html +1828 -0
- package/coverage/src/generator/genHash.ts.html +124 -0
- package/coverage/src/generator/genMetaData.ts.html +1042 -0
- package/coverage/src/generator/genReleaseBody.ts.html +1282 -0
- package/coverage/src/generator/icestark.ts.html +220 -0
- package/coverage/src/generator/index.html +266 -0
- package/coverage/src/generator/index.ts.html +106 -0
- package/coverage/src/generator/microApp.ts.html +172 -0
- package/coverage/src/generator/permission.ts.html +1036 -0
- package/coverage/src/generator/qiankun.ts.html +232 -0
- package/coverage/src/generator/styleReplacer.ts.html +199 -0
- package/coverage/src/index.html +146 -0
- package/coverage/src/index.ts.html +121 -0
- package/coverage/src/manager/diagnostic.ts.html +442 -0
- package/coverage/src/manager/index.html +131 -0
- package/coverage/src/manager/stepRecorder.ts.html +457 -0
- package/coverage/src/natural/genNaturalTS.ts.html +355 -0
- package/coverage/src/natural/index.html +161 -0
- package/coverage/src/natural/index.ts.html +91 -0
- package/coverage/src/natural/naslStdlibMap.ts.html +157 -0
- package/coverage/src/natural/transformTSCode.ts.html +2647 -0
- package/coverage/src/sentry/index.html +116 -0
- package/coverage/src/sentry/index.ts.html +676 -0
- package/coverage/src/server/createUiTs.ts.html +910 -0
- package/coverage/src/server/entity2LogicNamespace.ts.html +1294 -0
- package/coverage/src/server/event.js.html +526 -0
- package/coverage/src/server/extendBaseNode.ts.html +1762 -0
- package/coverage/src/server/formatTsUtils.ts.html +2689 -0
- package/coverage/src/server/getConnector.ts.html +316 -0
- package/coverage/src/server/getExtensionModules.ts.html +178 -0
- package/coverage/src/server/getFunctions.ts.html +133 -0
- package/coverage/src/server/getInterfaces.ts.html +229 -0
- package/coverage/src/server/getLogging.ts.html +100 -0
- package/coverage/src/server/getLogics.ts.html +1363 -0
- package/coverage/src/server/getMemberIdentifier.ts.html +1561 -0
- package/coverage/src/server/getProcessComponents.ts.html +112 -0
- package/coverage/src/server/getProcesses.ts.html +2023 -0
- package/coverage/src/server/getValidates.ts.html +115 -0
- package/coverage/src/server/index.html +401 -0
- package/coverage/src/server/index.ts.html +229 -0
- package/coverage/src/server/naslServer.ts.html +14401 -0
- package/coverage/src/server/naslStdlibMap.ts.html +241 -0
- package/coverage/src/server/process2LogicNamespace.ts.html +454 -0
- package/coverage/src/server/translator.ts.html +2566 -0
- package/coverage/src/service/creator/add.configs.js.html +379 -0
- package/coverage/src/service/creator/errHandles.js.html +322 -0
- package/coverage/src/service/creator/index.html +146 -0
- package/coverage/src/service/creator/index.js.html +352 -0
- package/coverage/src/service/datasource/api.js.html +118 -0
- package/coverage/src/service/datasource/index.html +131 -0
- package/coverage/src/service/datasource/index.js.html +103 -0
- package/coverage/src/service/logic/api.js.html +109 -0
- package/coverage/src/service/logic/index.html +131 -0
- package/coverage/src/service/logic/index.js.html +103 -0
- package/coverage/src/service/storage/api.js.html +202 -0
- package/coverage/src/service/storage/index.html +206 -0
- package/coverage/src/service/storage/index.ts.html +103 -0
- package/coverage/src/service/storage/init.ts.html +2761 -0
- package/coverage/src/service/storage/jsoner.ts.html +502 -0
- package/coverage/src/service/storage/map.ts.html +256 -0
- package/coverage/src/service/storage/service.ts.html +331 -0
- package/coverage/src/service/storage/storagePoint.ts.html +304 -0
- package/coverage/src/templator/genCallComponentLogic.ts.html +163 -0
- package/coverage/src/templator/genCreateBlock.ts.html +1093 -0
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +1609 -0
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +2254 -0
- package/coverage/src/templator/genEditTableBlock.ts.html +955 -0
- package/coverage/src/templator/genEnumSelectBlock.ts.html +178 -0
- package/coverage/src/templator/genGetBlock.ts.html +451 -0
- package/coverage/src/templator/genGridViewBlock.ts.html +1114 -0
- package/coverage/src/templator/genListViewBlock.ts.html +475 -0
- package/coverage/src/templator/genQueryComponent.ts.html +1207 -0
- package/coverage/src/templator/genSelectBlock.ts.html +1243 -0
- package/coverage/src/templator/genTableBlock.ts.html +910 -0
- package/coverage/src/templator/genUpdateBlock.ts.html +1192 -0
- package/coverage/src/templator/index.html +326 -0
- package/coverage/src/templator/index.ts.html +154 -0
- package/coverage/src/templator/utils.ts.html +1861 -0
- package/coverage/src/translator/constant.ts.html +106 -0
- package/coverage/src/translator/index.html +146 -0
- package/coverage/src/translator/index.ts.html +94 -0
- package/coverage/src/translator/utils.ts.html +436 -0
- package/coverage/src/utils/cookie.ts.html +265 -0
- package/coverage/src/utils/env.ts.html +91 -0
- package/coverage/src/utils/index.html +236 -0
- package/coverage/src/utils/index.ts.html +655 -0
- package/coverage/src/utils/logger.ts.html +145 -0
- package/coverage/src/utils/sortTsString.ts.html +187 -0
- package/coverage/src/utils/string.ts.html +400 -0
- package/coverage/src/utils/time-slicing.ts.html +418 -0
- package/coverage/src/utils/traverse.ts.html +568 -0
- package/coverage/src/utils/window.ts.html +112 -0
- package/out/automate/engine/utils.d.ts +1 -1
- package/out/automate/engine/utils.js +1 -5
- package/out/automate/engine/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +2 -0
- package/out/common/BaseNode.js +24 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/BackendVariable__.js +10 -2
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +2 -0
- package/out/concepts/BinaryExpression__.js +4 -0
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +3 -0
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +2 -0
- package/out/concepts/CallFunction__.js +14 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +2 -0
- package/out/concepts/CallInterface__.js +5 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +3 -2
- package/out/concepts/CallLogic__.js +33 -48
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +1 -1
- package/out/concepts/Destination__.js +2 -2
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/Logic__.js +21 -5
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -1
- package/out/concepts/MemberExpression__.js +3 -3
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +2 -0
- package/out/concepts/NewComposite__.js +4 -0
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +2 -0
- package/out/concepts/NewList__.js +4 -0
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +2 -0
- package/out/concepts/NewMap__.js +4 -0
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/Param__.js +11 -3
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +9 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/Return__.js +10 -2
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Variable__.js +10 -2
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +1 -0
- package/out/concepts/ViewElement__.js +8 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +1 -1
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/utils/quick-info.d.ts +13 -0
- package/out/concepts/utils/quick-info.js +51 -0
- package/out/concepts/utils/quick-info.js.map +1 -0
- package/out/generator/genBundleFiles.d.ts +1 -0
- package/out/generator/genBundleFiles.js +4 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/server/getProcesses.js +3 -3
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/naslServer.js +11 -50
- package/out/server/naslServer.js.map +1 -1
- package/out/translator/utils.d.ts +2 -2
- package/out/utils/i18nInfo.js +7 -2
- package/out/utils/i18nInfo.js.map +1 -1
- package/package.json +1 -1
- package/src/automate/engine/utils.js +1 -5
- package/src/common/BaseNode.ts +23 -2
- package/src/concepts/BackendVariable__.ts +10 -2
- package/src/concepts/BinaryExpression__.ts +5 -1
- package/src/concepts/BindAttribute__.ts +2 -0
- package/src/concepts/CallFunction__.ts +15 -2
- package/src/concepts/CallInterface__.ts +6 -1
- package/src/concepts/CallLogic__.ts +36 -52
- package/src/concepts/Destination__.ts +2 -2
- package/src/concepts/Logic__.ts +35 -22
- package/src/concepts/MemberExpression__.ts +3 -3
- package/src/concepts/NewComposite__.ts +5 -5
- package/src/concepts/NewList__.ts +6 -2
- package/src/concepts/NewMap__.ts +6 -3
- package/src/concepts/Param__.ts +11 -3
- package/src/concepts/ProcessElement__.ts +8 -1
- package/src/concepts/Return__.ts +10 -2
- package/src/concepts/Variable__.ts +10 -2
- package/src/concepts/ViewElement__.ts +11 -2
- package/src/concepts/View__.ts +1 -1
- package/src/concepts/utils/quick-info.ts +64 -0
- package/src/generator/genBundleFiles.ts +8 -3
- package/src/server/getProcesses.ts +3 -3
- package/src/server/naslServer.ts +10 -47
- package/src/translator/utils.ts +2 -2
- package/src/utils/i18nInfo.ts +7 -2
- package/test/concepts/binary-expression/__snapshots__/getQuickInfoOffset.spec.ts.snap +25 -0
- package/test/concepts/binary-expression/getQuickInfoOffset.spec.ts +19 -0
- package/test/concepts/call-function/__snapshots__/getQuickInfoOffset.spec.ts.snap +41 -0
- package/test/concepts/call-function/getQuickInfoOffset.spec.ts +19 -0
- package/test/concepts/call-interface/__snapshots__/getQuickInfoOffset.spec.ts.snap +86 -0
- package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
- package/test/concepts/call-interface/getQuickInfoOffset.spec.ts +19 -0
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +2 -7
- package/test/concepts/new-composite/__snapshots__/getQuickInfoOffset.spec.ts.snap +104 -0
- package/test/concepts/new-composite/__snapshots__/toEmbeddedTS.spec.ts.snap +97 -0
- package/test/concepts/new-composite/__snapshots__/toJS.spec.ts.snap +43 -0
- package/test/concepts/new-composite/constant.ts +5 -0
- package/test/concepts/new-composite/fixtures/nested-transform.json +241 -0
- package/test/concepts/new-composite/fixtures/nested.json +146 -0
- package/test/concepts/new-composite/fixtures/normal.json +63 -0
- package/test/concepts/new-composite/getQuickInfoOffset.spec.ts +19 -0
- package/test/concepts/new-composite/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/new-composite/toJS.spec.ts +14 -0
- package/test/concepts/new-list/__snapshots__/getQuickInfoOffset.spec.ts.snap +165 -0
- package/test/concepts/new-list/__snapshots__/toEmbeddedTS.spec.ts.snap +207 -0
- package/test/concepts/new-list/__snapshots__/toJS.spec.ts.snap +63 -0
- package/test/concepts/new-list/constant.ts +5 -0
- package/test/concepts/new-list/fixtures/nested-map.json +117 -0
- package/test/concepts/new-list/fixtures/nested-tranform.json +140 -0
- package/test/concepts/new-list/fixtures/nested.json +107 -0
- package/test/concepts/new-list/fixtures/normal.json +95 -0
- package/test/concepts/new-list/getQuickInfoOffset.spec.ts +19 -0
- package/test/concepts/new-list/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/new-list/toJS.spec.ts +14 -0
- package/test/concepts/new-map/__snapshots__/getQuickInfoOffset.spec.ts.snap +115 -0
- package/test/concepts/new-map/__snapshots__/toEmbeddedTS.spec.ts.snap +192 -0
- package/test/concepts/new-map/__snapshots__/toJS.spec.ts.snap +54 -0
- package/test/concepts/new-map/constant.ts +5 -0
- package/test/concepts/new-map/fixtures/nested-transform.json +169 -0
- package/test/concepts/new-map/fixtures/nested.json +141 -0
- package/test/concepts/new-map/fixtures/normal.json +101 -0
- package/test/concepts/new-map/getQuickInfoOffset.spec.ts +19 -0
- package/test/concepts/new-map/toEmbeddedTS.spec.ts +15 -0
- package/test/concepts/new-map/toJS.spec.ts +14 -0
- package/test/concepts/utils.ts +17 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`new-composite:getQuickInfoOffset nested 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"code": "(() => {
|
|
6
|
+
(() => {
|
|
7
|
+
new nasl.core.Boolean(true);
|
|
8
|
+
let temp0__ = new nasl.core.Boolean(true);
|
|
9
|
+
function __newComposite() {
|
|
10
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
11
|
+
return {
|
|
12
|
+
property1,
|
|
13
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
return __newComposite();
|
|
17
|
+
})();
|
|
18
|
+
let temp0__ = (() => {
|
|
19
|
+
new nasl.core.Boolean(true);
|
|
20
|
+
let temp0__ = new nasl.core.Boolean(true);
|
|
21
|
+
function __newComposite() {
|
|
22
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
23
|
+
return {
|
|
24
|
+
property1,
|
|
25
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return __newComposite();
|
|
29
|
+
})();
|
|
30
|
+
function __newComposite() {
|
|
31
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
32
|
+
return {
|
|
33
|
+
property1,
|
|
34
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return __newComposite();
|
|
38
|
+
})()",
|
|
39
|
+
"line": 33,
|
|
40
|
+
"offset": 12,
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
exports[`new-composite:getQuickInfoOffset nested-transform 1`] = `
|
|
45
|
+
Object {
|
|
46
|
+
"code": "(() => {
|
|
47
|
+
nasl.util.ListTransform(variable1, (item) => {
|
|
48
|
+
return (() => {
|
|
49
|
+
item;
|
|
50
|
+
let temp0__ = item;
|
|
51
|
+
function __newComposite() {
|
|
52
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
53
|
+
return {
|
|
54
|
+
property1,
|
|
55
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return __newComposite();
|
|
59
|
+
})();});
|
|
60
|
+
let temp0__ = nasl.util.ListTransform(variable1, (item) => {
|
|
61
|
+
return (() => {
|
|
62
|
+
item;
|
|
63
|
+
let temp0__ = item;
|
|
64
|
+
function __newComposite() {
|
|
65
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
66
|
+
return {
|
|
67
|
+
property1,
|
|
68
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
return __newComposite();
|
|
72
|
+
})();});
|
|
73
|
+
function __newComposite() {
|
|
74
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
75
|
+
return {
|
|
76
|
+
property1,
|
|
77
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
return __newComposite();
|
|
81
|
+
})()",
|
|
82
|
+
"line": 35,
|
|
83
|
+
"offset": 12,
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
|
|
87
|
+
exports[`new-composite:getQuickInfoOffset normal 1`] = `
|
|
88
|
+
Object {
|
|
89
|
+
"code": "(() => {
|
|
90
|
+
new nasl.core.String('StringLiteral');
|
|
91
|
+
let temp0__ = new nasl.core.String('StringLiteral');
|
|
92
|
+
function __newComposite() {
|
|
93
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
94
|
+
return {
|
|
95
|
+
property1,
|
|
96
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return __newComposite();
|
|
100
|
+
})()",
|
|
101
|
+
"line": 11,
|
|
102
|
+
"offset": 12,
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`new-composite:toEmbeddedTS nested 1`] = `
|
|
4
|
+
"(() => {
|
|
5
|
+
(() => {
|
|
6
|
+
new nasl.core.Boolean(true);
|
|
7
|
+
let temp0__ = new nasl.core.Boolean(true);
|
|
8
|
+
function __newComposite() {
|
|
9
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
10
|
+
return {
|
|
11
|
+
property1,
|
|
12
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
return __newComposite();
|
|
16
|
+
})();
|
|
17
|
+
let temp0__ = (() => {
|
|
18
|
+
new nasl.core.Boolean(true);
|
|
19
|
+
let temp0__ = new nasl.core.Boolean(true);
|
|
20
|
+
function __newComposite() {
|
|
21
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
22
|
+
return {
|
|
23
|
+
property1,
|
|
24
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return __newComposite();
|
|
28
|
+
})();
|
|
29
|
+
function __newComposite() {
|
|
30
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
31
|
+
return {
|
|
32
|
+
property1,
|
|
33
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return __newComposite();
|
|
37
|
+
})();
|
|
38
|
+
"
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`new-composite:toEmbeddedTS nested-transform 1`] = `
|
|
42
|
+
"(() => {
|
|
43
|
+
nasl.util.ListTransform(variable1, (item) => {
|
|
44
|
+
return (() => {
|
|
45
|
+
item;
|
|
46
|
+
let temp0__ = item;
|
|
47
|
+
function __newComposite() {
|
|
48
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
49
|
+
return {
|
|
50
|
+
property1,
|
|
51
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return __newComposite();
|
|
55
|
+
})();
|
|
56
|
+
});
|
|
57
|
+
let temp0__ = nasl.util.ListTransform(variable1, (item) => {
|
|
58
|
+
return (() => {
|
|
59
|
+
item;
|
|
60
|
+
let temp0__ = item;
|
|
61
|
+
function __newComposite() {
|
|
62
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
63
|
+
return {
|
|
64
|
+
property1,
|
|
65
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return __newComposite();
|
|
69
|
+
})();
|
|
70
|
+
});
|
|
71
|
+
function __newComposite() {
|
|
72
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
73
|
+
return {
|
|
74
|
+
property1,
|
|
75
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
return __newComposite();
|
|
79
|
+
})();
|
|
80
|
+
"
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
exports[`new-composite:toEmbeddedTS normal 1`] = `
|
|
84
|
+
"(() => {
|
|
85
|
+
new nasl.core.String(\\"StringLiteral\\");
|
|
86
|
+
let temp0__ = new nasl.core.String(\\"StringLiteral\\");
|
|
87
|
+
function __newComposite() {
|
|
88
|
+
let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
|
|
89
|
+
return {
|
|
90
|
+
property1,
|
|
91
|
+
__name: \\"AStructure_AAAAAAAA\\" as const,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
return __newComposite();
|
|
95
|
+
})();
|
|
96
|
+
"
|
|
97
|
+
`;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`new-composite:toJS nested 1`] = `
|
|
4
|
+
"await(async () => {
|
|
5
|
+
const obj = {};
|
|
6
|
+
obj.property1 = null;
|
|
7
|
+
obj.property1 = await (async () => {
|
|
8
|
+
const obj = {};
|
|
9
|
+
obj.property1 = null;
|
|
10
|
+
obj.property1 = true;
|
|
11
|
+
return obj;
|
|
12
|
+
})();
|
|
13
|
+
return obj;
|
|
14
|
+
})();
|
|
15
|
+
"
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
exports[`new-composite:toJS nested-transform 1`] = `
|
|
19
|
+
"await(async () => {
|
|
20
|
+
const obj = {};
|
|
21
|
+
obj.property1 = null;
|
|
22
|
+
obj.property1 = this.$utils[\\"ListTransform\\"](variable1, (item) =>
|
|
23
|
+
await(async () => {
|
|
24
|
+
const obj = {};
|
|
25
|
+
obj.property1 = null;
|
|
26
|
+
obj.property1 = item;
|
|
27
|
+
return obj;
|
|
28
|
+
})()
|
|
29
|
+
);
|
|
30
|
+
return obj;
|
|
31
|
+
})();
|
|
32
|
+
"
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
exports[`new-composite:toJS normal 1`] = `
|
|
36
|
+
"await(async () => {
|
|
37
|
+
const obj = {};
|
|
38
|
+
obj.property1 = null;
|
|
39
|
+
obj.property1 = \`test\`;
|
|
40
|
+
return obj;
|
|
41
|
+
})();
|
|
42
|
+
"
|
|
43
|
+
`;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"concept": "Logic",
|
|
3
|
+
"name": "logic4",
|
|
4
|
+
"typeParams": null,
|
|
5
|
+
"params": [],
|
|
6
|
+
"returns": [
|
|
7
|
+
{
|
|
8
|
+
"concept": "Return",
|
|
9
|
+
"name": "result"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"variables": [
|
|
13
|
+
{
|
|
14
|
+
"concept": "Variable",
|
|
15
|
+
"changedTime": 1702381136886,
|
|
16
|
+
"name": "variable1",
|
|
17
|
+
"typeAnnotation": {
|
|
18
|
+
"concept": "TypeAnnotation",
|
|
19
|
+
"changedTime": null,
|
|
20
|
+
"branchName": null,
|
|
21
|
+
"workingCopy": null,
|
|
22
|
+
"branch": null,
|
|
23
|
+
"name": "",
|
|
24
|
+
"typeKind": "generic",
|
|
25
|
+
"typeNamespace": "nasl.collection",
|
|
26
|
+
"typeName": "List",
|
|
27
|
+
"typeArguments": [
|
|
28
|
+
{
|
|
29
|
+
"concept": "TypeAnnotation",
|
|
30
|
+
"changedTime": null,
|
|
31
|
+
"branchName": null,
|
|
32
|
+
"workingCopy": null,
|
|
33
|
+
"branch": null,
|
|
34
|
+
"name": "T",
|
|
35
|
+
"typeKind": "primitive",
|
|
36
|
+
"typeNamespace": "nasl.core",
|
|
37
|
+
"typeName": "String",
|
|
38
|
+
"typeArguments": null,
|
|
39
|
+
"returnType": null,
|
|
40
|
+
"inferred": null,
|
|
41
|
+
"properties": null,
|
|
42
|
+
"ruleMap": null
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"returnType": null,
|
|
46
|
+
"inferred": null,
|
|
47
|
+
"properties": null,
|
|
48
|
+
"ruleMap": null
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"body": [
|
|
53
|
+
{
|
|
54
|
+
"concept": "Start",
|
|
55
|
+
"name": "",
|
|
56
|
+
"label": "开始",
|
|
57
|
+
"folded": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"concept": "Assignment",
|
|
61
|
+
"changedTime": 1702381212461,
|
|
62
|
+
"name": "",
|
|
63
|
+
"label": "赋值",
|
|
64
|
+
"folded": false,
|
|
65
|
+
"left": {
|
|
66
|
+
"concept": "Identifier",
|
|
67
|
+
"name": "result",
|
|
68
|
+
"folded": false
|
|
69
|
+
},
|
|
70
|
+
"right": {
|
|
71
|
+
"__$Selected": true,
|
|
72
|
+
"concept": "NewComposite",
|
|
73
|
+
"typeAnnotation": {
|
|
74
|
+
"concept": "TypeAnnotation",
|
|
75
|
+
"name": "",
|
|
76
|
+
"typeKind": "anonymousStructure",
|
|
77
|
+
"typeArguments": null,
|
|
78
|
+
"returnType": null,
|
|
79
|
+
"properties": [
|
|
80
|
+
{
|
|
81
|
+
"concept": "StructureProperty",
|
|
82
|
+
"name": "property1",
|
|
83
|
+
"typeAnnotation": null,
|
|
84
|
+
"isLeaf": true
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"properties": [
|
|
89
|
+
{
|
|
90
|
+
"concept": "Identifier",
|
|
91
|
+
"name": "property1",
|
|
92
|
+
"folded": false
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"rights": [
|
|
96
|
+
{
|
|
97
|
+
"concept": "SelectMembers",
|
|
98
|
+
"changedTime": 1702381243045,
|
|
99
|
+
"name": "",
|
|
100
|
+
"hideMembers": false,
|
|
101
|
+
"expression": {
|
|
102
|
+
"concept": "CallFunction",
|
|
103
|
+
"changedTime": 1702381246577,
|
|
104
|
+
"name": "",
|
|
105
|
+
"label": "内置函数",
|
|
106
|
+
"folded": false,
|
|
107
|
+
"calleeNamespace": "nasl.util",
|
|
108
|
+
"calleeName": "ListTransform",
|
|
109
|
+
"typeArguments": [],
|
|
110
|
+
"arguments": [
|
|
111
|
+
{
|
|
112
|
+
"concept": "Argument",
|
|
113
|
+
"changedTime": 1702381256850,
|
|
114
|
+
"name": "",
|
|
115
|
+
"folded": false,
|
|
116
|
+
"keyword": "list",
|
|
117
|
+
"expression": {
|
|
118
|
+
"concept": "Identifier",
|
|
119
|
+
"name": "variable1",
|
|
120
|
+
"folded": false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"concept": "Argument",
|
|
125
|
+
"changedTime": 1702381246585,
|
|
126
|
+
"name": "",
|
|
127
|
+
"folded": false,
|
|
128
|
+
"keyword": "by",
|
|
129
|
+
"expression": {
|
|
130
|
+
"concept": "AnonymousFunction",
|
|
131
|
+
"changedTime": 1702381265999,
|
|
132
|
+
"name": "",
|
|
133
|
+
"folded": false,
|
|
134
|
+
"params": [
|
|
135
|
+
{
|
|
136
|
+
"concept": "Param",
|
|
137
|
+
"name": "item",
|
|
138
|
+
"typeAnnotation": null,
|
|
139
|
+
"required": true,
|
|
140
|
+
"defaultValue": "",
|
|
141
|
+
"defaultExpression": null,
|
|
142
|
+
"options": null,
|
|
143
|
+
"useComponent": null,
|
|
144
|
+
"cascader": false
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"body": {
|
|
148
|
+
"concept": "NewComposite",
|
|
149
|
+
"changedTime": 1702381283175,
|
|
150
|
+
"name": "",
|
|
151
|
+
"folded": false,
|
|
152
|
+
"typeAnnotation": {
|
|
153
|
+
"concept": "TypeAnnotation",
|
|
154
|
+
"name": "",
|
|
155
|
+
"typeKind": "anonymousStructure",
|
|
156
|
+
"typeArguments": null,
|
|
157
|
+
"returnType": null,
|
|
158
|
+
"properties": [
|
|
159
|
+
{
|
|
160
|
+
"concept": "StructureProperty",
|
|
161
|
+
"name": "property1",
|
|
162
|
+
"typeAnnotation": null,
|
|
163
|
+
"isLeaf": true
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"properties": [
|
|
168
|
+
{
|
|
169
|
+
"concept": "Identifier",
|
|
170
|
+
"name": "property1",
|
|
171
|
+
"folded": false
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"rights": [
|
|
175
|
+
{
|
|
176
|
+
"concept": "SelectMembers",
|
|
177
|
+
"changedTime": null,
|
|
178
|
+
"branchName": null,
|
|
179
|
+
"workingCopy": null,
|
|
180
|
+
"branch": null,
|
|
181
|
+
"name": "",
|
|
182
|
+
"hideMembers": false,
|
|
183
|
+
"expression": {
|
|
184
|
+
"concept": "Identifier",
|
|
185
|
+
"name": "item",
|
|
186
|
+
"folded": false
|
|
187
|
+
},
|
|
188
|
+
"members": []
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"assignmentLines": [
|
|
192
|
+
{
|
|
193
|
+
"concept": "AssignmentLine",
|
|
194
|
+
"name": "",
|
|
195
|
+
"leftIndex": [
|
|
196
|
+
0,
|
|
197
|
+
0
|
|
198
|
+
],
|
|
199
|
+
"rightIndex": [
|
|
200
|
+
0
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"hideProperties": false,
|
|
205
|
+
"hideDefaults": false,
|
|
206
|
+
"autoConnection": true
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"members": []
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"assignmentLines": [
|
|
216
|
+
{
|
|
217
|
+
"concept": "AssignmentLine",
|
|
218
|
+
"name": "",
|
|
219
|
+
"leftIndex": [
|
|
220
|
+
0,
|
|
221
|
+
0
|
|
222
|
+
],
|
|
223
|
+
"rightIndex": [
|
|
224
|
+
0
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"hideProperties": false,
|
|
229
|
+
"hideDefaults": false,
|
|
230
|
+
"autoConnection": true
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"concept": "End",
|
|
235
|
+
"name": "",
|
|
236
|
+
"label": "结束",
|
|
237
|
+
"folded": false
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"playground": []
|
|
241
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"concept": "Logic",
|
|
3
|
+
"name": "logic5",
|
|
4
|
+
"typeParams": null,
|
|
5
|
+
"params": [],
|
|
6
|
+
"returns": [
|
|
7
|
+
{
|
|
8
|
+
"concept": "Return",
|
|
9
|
+
"name": "result"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"variables": [],
|
|
13
|
+
"body": [
|
|
14
|
+
{
|
|
15
|
+
"concept": "Start",
|
|
16
|
+
"name": "",
|
|
17
|
+
"label": "开始",
|
|
18
|
+
"folded": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"concept": "Assignment",
|
|
22
|
+
"label": "赋值",
|
|
23
|
+
"left": {
|
|
24
|
+
"concept": "Identifier",
|
|
25
|
+
"name": "result",
|
|
26
|
+
"folded": false
|
|
27
|
+
},
|
|
28
|
+
"right": {
|
|
29
|
+
"__$Selected": true,
|
|
30
|
+
"concept": "NewComposite",
|
|
31
|
+
"typeAnnotation": {
|
|
32
|
+
"concept": "TypeAnnotation",
|
|
33
|
+
"name": "",
|
|
34
|
+
"typeKind": "anonymousStructure",
|
|
35
|
+
"typeArguments": null,
|
|
36
|
+
"returnType": null,
|
|
37
|
+
"properties": [
|
|
38
|
+
{
|
|
39
|
+
"concept": "StructureProperty",
|
|
40
|
+
"name": "property1",
|
|
41
|
+
"typeAnnotation": null,
|
|
42
|
+
"isLeaf": true
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"properties": [
|
|
47
|
+
{
|
|
48
|
+
"concept": "Identifier",
|
|
49
|
+
"name": "property1",
|
|
50
|
+
"folded": false
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"rights": [
|
|
54
|
+
{
|
|
55
|
+
"concept": "SelectMembers",
|
|
56
|
+
"name": "",
|
|
57
|
+
"hideMembers": false,
|
|
58
|
+
"expression": {
|
|
59
|
+
"concept": "NewComposite",
|
|
60
|
+
"name": "",
|
|
61
|
+
"folded": false,
|
|
62
|
+
"offsetX": 146.5863997976507,
|
|
63
|
+
"offsetY": 608.2258032257503,
|
|
64
|
+
"typeAnnotation": {
|
|
65
|
+
"concept": "TypeAnnotation",
|
|
66
|
+
"name": "",
|
|
67
|
+
"typeKind": "anonymousStructure",
|
|
68
|
+
"typeArguments": null,
|
|
69
|
+
"returnType": null,
|
|
70
|
+
"properties": [
|
|
71
|
+
{
|
|
72
|
+
"concept": "StructureProperty",
|
|
73
|
+
"name": "property1",
|
|
74
|
+
"typeAnnotation": null,
|
|
75
|
+
"isLeaf": true
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"properties": [
|
|
80
|
+
{
|
|
81
|
+
"concept": "Identifier",
|
|
82
|
+
"name": "property1",
|
|
83
|
+
"folded": false
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"rights": [
|
|
87
|
+
{
|
|
88
|
+
"concept": "SelectMembers",
|
|
89
|
+
"name": "",
|
|
90
|
+
"hideMembers": false,
|
|
91
|
+
"expression": {
|
|
92
|
+
"concept": "BooleanLiteral",
|
|
93
|
+
"name": "",
|
|
94
|
+
"folded": false,
|
|
95
|
+
"value": "true"
|
|
96
|
+
},
|
|
97
|
+
"members": []
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"assignmentLines": [
|
|
101
|
+
{
|
|
102
|
+
"concept": "AssignmentLine",
|
|
103
|
+
"name": "",
|
|
104
|
+
"leftIndex": [
|
|
105
|
+
0,
|
|
106
|
+
0
|
|
107
|
+
],
|
|
108
|
+
"rightIndex": [
|
|
109
|
+
0
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"hideProperties": false,
|
|
114
|
+
"hideDefaults": false,
|
|
115
|
+
"autoConnection": true
|
|
116
|
+
},
|
|
117
|
+
"members": []
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"assignmentLines": [
|
|
121
|
+
{
|
|
122
|
+
"concept": "AssignmentLine",
|
|
123
|
+
"name": "",
|
|
124
|
+
"leftIndex": [
|
|
125
|
+
0,
|
|
126
|
+
0
|
|
127
|
+
],
|
|
128
|
+
"rightIndex": [
|
|
129
|
+
0
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"hideProperties": false,
|
|
134
|
+
"hideDefaults": false,
|
|
135
|
+
"autoConnection": true
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"concept": "End",
|
|
140
|
+
"name": "",
|
|
141
|
+
"label": "结束",
|
|
142
|
+
"folded": false
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"playground": []
|
|
146
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"concept": "Assignment",
|
|
3
|
+
"name": "",
|
|
4
|
+
"label": "赋值",
|
|
5
|
+
"left": {
|
|
6
|
+
"concept": "Identifier",
|
|
7
|
+
"name": "result"
|
|
8
|
+
},
|
|
9
|
+
"right": {
|
|
10
|
+
"__$Selected": true,
|
|
11
|
+
"concept": "NewComposite",
|
|
12
|
+
"name": "",
|
|
13
|
+
"typeAnnotation": {
|
|
14
|
+
"concept": "TypeAnnotation",
|
|
15
|
+
"name": "",
|
|
16
|
+
"typeKind": "anonymousStructure",
|
|
17
|
+
"typeArguments": null,
|
|
18
|
+
"returnType": null,
|
|
19
|
+
"properties": [
|
|
20
|
+
{
|
|
21
|
+
"concept": "StructureProperty",
|
|
22
|
+
"name": "property1",
|
|
23
|
+
"typeAnnotation": null,
|
|
24
|
+
"isLeaf": true
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"properties": [
|
|
29
|
+
{
|
|
30
|
+
"concept": "Identifier",
|
|
31
|
+
"name": "property1"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"rights": [
|
|
35
|
+
{
|
|
36
|
+
"concept": "SelectMembers",
|
|
37
|
+
"name": "",
|
|
38
|
+
"hideMembers": false,
|
|
39
|
+
"expression": {
|
|
40
|
+
"concept": "StringLiteral",
|
|
41
|
+
"value": "test"
|
|
42
|
+
},
|
|
43
|
+
"members": []
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"assignmentLines": [
|
|
47
|
+
{
|
|
48
|
+
"concept": "AssignmentLine",
|
|
49
|
+
"name": "",
|
|
50
|
+
"leftIndex": [
|
|
51
|
+
0,
|
|
52
|
+
0
|
|
53
|
+
],
|
|
54
|
+
"rightIndex": [
|
|
55
|
+
0
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"hideProperties": false,
|
|
60
|
+
"hideDefaults": false,
|
|
61
|
+
"autoConnection": true
|
|
62
|
+
}
|
|
63
|
+
}
|