@lcap/nasl 3.7.0-beta.4 → 3.7.0-beta.6
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/dist/README.md +97 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +397 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +91 -0
- package/dist/src/automate/engine/index.d.ts +4 -0
- package/dist/src/automate/engine/operators.d.ts +26 -0
- package/dist/src/automate/engine/uniqueName.d.ts +12 -0
- package/dist/src/automate/engine/utils.d.ts +25 -0
- package/dist/src/automate/engine/viewCache.d.ts +19 -0
- package/dist/src/automate/template/myProcess.d.ts +10 -0
- package/dist/src/automate/upgrader/2.12.d.ts +7 -0
- package/dist/src/automate/upgrader/2.14-components.d.ts +1115 -0
- package/dist/src/automate/upgrader/2.14.d.ts +10 -0
- package/dist/src/automate/upgrader/2.14.old.d.ts +1 -0
- package/dist/src/automate/upgrader/2.16.d.ts +10 -0
- package/dist/src/automate/upgrader/2.17.d.ts +21 -0
- package/dist/src/automate/upgrader/2.18.d.ts +10 -0
- package/dist/src/automate/upgrader/2.20.d.ts +17 -0
- package/dist/src/bak/translator.d.ts +1 -0
- package/dist/src/breakpoint/generator/AfterStartNode.d.ts +7 -0
- package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +7 -0
- package/dist/src/breakpoint/generator/BreakpointNode.d.ts +20 -0
- package/dist/src/breakpoint/generator/CallbackNode.d.ts +4 -0
- package/dist/src/breakpoint/generator/FragmentNode.d.ts +4 -0
- package/dist/src/breakpoint/generator/index.d.ts +4 -0
- package/dist/src/breakpoint/index.d.ts +3 -0
- package/dist/src/breakpoint/shared/constants.d.ts +37 -0
- package/dist/src/breakpoint/shared/index.d.ts +3 -0
- package/dist/src/breakpoint/shared/operations.d.ts +10 -0
- package/dist/src/breakpoint/shared/socket.d.ts +48 -0
- package/dist/src/breakpoint/shared/utils.d.ts +27 -0
- package/dist/src/breakpoint/store/core.d.ts +80 -0
- package/dist/src/breakpoint/store/dock.d.ts +1 -0
- package/dist/src/breakpoint/store/index.d.ts +2 -0
- package/dist/src/common/BaseNode.d.ts +384 -0
- package/dist/src/common/Command.d.ts +21 -0
- package/dist/src/common/ComponentAPI.d.ts +112 -0
- package/dist/src/common/EventEmitter.d.ts +61 -0
- package/dist/src/common/Messager.d.ts +91 -0
- package/dist/src/common/asyncFuncMap.d.ts +2 -0
- package/dist/src/common/index.d.ts +4 -0
- package/dist/src/common/utils.d.ts +2 -0
- package/dist/src/concepts/Abort__.d.ts +31 -0
- package/dist/src/concepts/AbstractInterface__.d.ts +25 -0
- package/dist/src/concepts/Anchor__.d.ts +42 -0
- package/dist/src/concepts/AnonymousFunction__.d.ts +144 -0
- package/dist/src/concepts/App__.d.ts +1711 -0
- package/dist/src/concepts/Argument__.d.ts +64 -0
- package/dist/src/concepts/Assignee__.d.ts +294 -0
- package/dist/src/concepts/AssignmentLine__.d.ts +43 -0
- package/dist/src/concepts/Assignment__.d.ts +57 -0
- package/dist/src/concepts/Attribute__.d.ts +75 -0
- package/dist/src/concepts/AuthInterface__.d.ts +38 -0
- package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +145 -0
- package/dist/src/concepts/AuthLogic__.d.ts +69 -0
- package/dist/src/concepts/BackendVariable__.d.ts +118 -0
- package/dist/src/concepts/Backend__.d.ts +127 -0
- package/dist/src/concepts/BaseSetter__.d.ts +25 -0
- package/dist/src/concepts/BatchAssignment__.d.ts +244 -0
- package/dist/src/concepts/BinaryExpression__.d.ts +61 -0
- package/dist/src/concepts/BindAttribute__.d.ts +284 -0
- package/dist/src/concepts/BindDirective__.d.ts +156 -0
- package/dist/src/concepts/BindEvent__.d.ts +246 -0
- package/dist/src/concepts/BindStyle__.d.ts +127 -0
- package/dist/src/concepts/Block__.d.ts +88 -0
- package/dist/src/concepts/BooleanLiteral__.d.ts +44 -0
- package/dist/src/concepts/BusinessComponent__.d.ts +640 -0
- package/dist/src/concepts/BusinessLogic__.d.ts +44 -0
- package/dist/src/concepts/CallAuthInterface__.d.ts +132 -0
- package/dist/src/concepts/CallConnector__.d.ts +55 -0
- package/dist/src/concepts/CallEvent__.d.ts +100 -0
- package/dist/src/concepts/CallFunction__.d.ts +171 -0
- package/dist/src/concepts/CallInterface__.d.ts +143 -0
- package/dist/src/concepts/CallLogic__.d.ts +224 -0
- package/dist/src/concepts/CallQueryComponent__.d.ts +383 -0
- package/dist/src/concepts/CapsulesSetter__.d.ts +109 -0
- package/dist/src/concepts/Comment__.d.ts +41 -0
- package/dist/src/concepts/CompletionProperty__.d.ts +87 -0
- package/dist/src/concepts/ConfigGroup__.d.ts +121 -0
- package/dist/src/concepts/ConfigPropertyValue__.d.ts +42 -0
- package/dist/src/concepts/ConfigProperty__.d.ts +147 -0
- package/dist/src/concepts/Configuration__.d.ts +120 -0
- package/dist/src/concepts/Connection__.d.ts +159 -0
- package/dist/src/concepts/ConnectorLogic__.d.ts +33 -0
- package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +44 -0
- package/dist/src/concepts/ConnectorTrigger__.d.ts +76 -0
- package/dist/src/concepts/Connector__.d.ts +532 -0
- package/dist/src/concepts/Constant__.d.ts +94 -0
- package/dist/src/concepts/CountersignPolicy__.d.ts +29 -0
- package/dist/src/concepts/DataSource__.d.ts +163 -0
- package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +35 -0
- package/dist/src/concepts/DefaultValue__.d.ts +94 -0
- package/dist/src/concepts/Destination__.d.ts +150 -0
- package/dist/src/concepts/End__.d.ts +30 -0
- package/dist/src/concepts/EntityIndex__.d.ts +93 -0
- package/dist/src/concepts/EntityProperty__.d.ts +255 -0
- package/dist/src/concepts/Entity__.d.ts +332 -0
- package/dist/src/concepts/EnumItem__.d.ts +83 -0
- package/dist/src/concepts/EnumSelectSetter__.d.ts +109 -0
- package/dist/src/concepts/Enum__.d.ts +133 -0
- package/dist/src/concepts/EventDeclaration__.d.ts +41 -0
- package/dist/src/concepts/Event__.d.ts +149 -0
- package/dist/src/concepts/ExternalDestination__.d.ts +63 -0
- package/dist/src/concepts/ForEachStatement__.d.ts +126 -0
- package/dist/src/concepts/FrontendLibrary__.d.ts +208 -0
- package/dist/src/concepts/FrontendType__.d.ts +304 -0
- package/dist/src/concepts/FrontendVariable__.d.ts +41 -0
- package/dist/src/concepts/Frontend__.d.ts +389 -0
- package/dist/src/concepts/Function__.d.ts +399 -0
- package/dist/src/concepts/I18nInfo__.d.ts +47 -0
- package/dist/src/concepts/IconSetter__.d.ts +29 -0
- package/dist/src/concepts/Identifier__.d.ts +66 -0
- package/dist/src/concepts/IfStatement__.d.ts +155 -0
- package/dist/src/concepts/ImageSetter__.d.ts +25 -0
- package/dist/src/concepts/ImportedInterface__.d.ts +29 -0
- package/dist/src/concepts/InputSetter__.d.ts +29 -0
- package/dist/src/concepts/Integration__.d.ts +127 -0
- package/dist/src/concepts/InterfaceParam__.d.ts +119 -0
- package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +34 -0
- package/dist/src/concepts/Interface__.d.ts +323 -0
- package/dist/src/concepts/JSBlock__.d.ts +38 -0
- package/dist/src/concepts/JavaLogic__.d.ts +50 -0
- package/dist/src/concepts/LogicDeclaration__.d.ts +289 -0
- package/dist/src/concepts/LogicItem__.d.ts +171 -0
- package/dist/src/concepts/Logic__.d.ts +632 -0
- package/dist/src/concepts/MatchCase__.d.ts +264 -0
- package/dist/src/concepts/Match__.d.ts +122 -0
- package/dist/src/concepts/MemberExpression__.d.ts +64 -0
- package/dist/src/concepts/MetadataType__.d.ts +220 -0
- package/dist/src/concepts/MicroApp__.d.ts +53 -0
- package/dist/src/concepts/Module__.d.ts +1142 -0
- package/dist/src/concepts/MsgTriggerEvent__.d.ts +138 -0
- package/dist/src/concepts/MsgTriggerLauncher__.d.ts +119 -0
- package/dist/src/concepts/MultiApprovalPolicy__.d.ts +25 -0
- package/dist/src/concepts/Namespace__.d.ts +1060 -0
- package/dist/src/concepts/NewComposite__.d.ts +346 -0
- package/dist/src/concepts/NewList__.d.ts +135 -0
- package/dist/src/concepts/NewMap__.d.ts +226 -0
- package/dist/src/concepts/New__.d.ts +30 -0
- package/dist/src/concepts/NullLiteral__.d.ts +36 -0
- package/dist/src/concepts/NumberInputSetter__.d.ts +45 -0
- package/dist/src/concepts/NumericLiteral__.d.ts +53 -0
- package/dist/src/concepts/OqlQueryComponent__.d.ts +67 -0
- package/dist/src/concepts/OverriddenLogic__.d.ts +615 -0
- package/dist/src/concepts/Paginate__.d.ts +59 -0
- package/dist/src/concepts/ParamWithGroup__.d.ts +44 -0
- package/dist/src/concepts/Param__.d.ts +140 -0
- package/dist/src/concepts/Point__.d.ts +33 -0
- package/dist/src/concepts/ProcessComponent__.d.ts +214 -0
- package/dist/src/concepts/ProcessElement__.d.ts +620 -0
- package/dist/src/concepts/ProcessOutcome__.d.ts +35 -0
- package/dist/src/concepts/ProcessOutcomes__.d.ts +35 -0
- package/dist/src/concepts/Process__.d.ts +605 -0
- package/dist/src/concepts/PropDeclaration__.d.ts +99 -0
- package/dist/src/concepts/PropertySelectSetter__.d.ts +25 -0
- package/dist/src/concepts/QueryAggregateExpression__.d.ts +50 -0
- package/dist/src/concepts/QueryFieldExpression__.d.ts +66 -0
- package/dist/src/concepts/QueryFromExpression__.d.ts +107 -0
- package/dist/src/concepts/QueryGroupByExpression__.d.ts +46 -0
- package/dist/src/concepts/QueryJoinExpression__.d.ts +194 -0
- package/dist/src/concepts/QueryLimitExpression__.d.ts +46 -0
- package/dist/src/concepts/QueryOrderByExpression__.d.ts +57 -0
- package/dist/src/concepts/QuerySelectExpression__.d.ts +213 -0
- package/dist/src/concepts/Rect__.d.ts +41 -0
- package/dist/src/concepts/Return__.d.ts +120 -0
- package/dist/src/concepts/Role__.d.ts +58 -0
- package/dist/src/concepts/SelectMembers__.d.ts +134 -0
- package/dist/src/concepts/SequentialPolicy__.d.ts +25 -0
- package/dist/src/concepts/SetterOption__.d.ts +49 -0
- package/dist/src/concepts/SlotDeclaration__.d.ts +213 -0
- package/dist/src/concepts/Slot__.d.ts +53 -0
- package/dist/src/concepts/SqlQueryComponent__.d.ts +63 -0
- package/dist/src/concepts/Start__.d.ts +30 -0
- package/dist/src/concepts/StaticString__.d.ts +49 -0
- package/dist/src/concepts/StringInterpolation__.d.ts +122 -0
- package/dist/src/concepts/StringLiteral__.d.ts +51 -0
- package/dist/src/concepts/StructureProperty__.d.ts +119 -0
- package/dist/src/concepts/Structure__.d.ts +243 -0
- package/dist/src/concepts/SwitchCase__.d.ts +91 -0
- package/dist/src/concepts/SwitchSetter__.d.ts +25 -0
- package/dist/src/concepts/SwitchStatement__.d.ts +90 -0
- package/dist/src/concepts/ThemeVariable__.d.ts +29 -0
- package/dist/src/concepts/Theme__.d.ts +39 -0
- package/dist/src/concepts/Transactional__.d.ts +85 -0
- package/dist/src/concepts/TriggerEvent__.d.ts +42 -0
- package/dist/src/concepts/TriggerLauncher__.d.ts +76 -0
- package/dist/src/concepts/TypeAnnotation__.d.ts +303 -0
- package/dist/src/concepts/TypeParam__.d.ts +34 -0
- package/dist/src/concepts/UnaryExpression__.d.ts +45 -0
- package/dist/src/concepts/Unparsed__.d.ts +41 -0
- package/dist/src/concepts/UseComponent__.d.ts +33 -0
- package/dist/src/concepts/ValidationRule__.d.ts +133 -0
- package/dist/src/concepts/Variable__.d.ts +137 -0
- package/dist/src/concepts/ViewBlockWithImage__.d.ts +33 -0
- package/dist/src/concepts/ViewBlock__.d.ts +37 -0
- package/dist/src/concepts/ViewComponentDeclaration__.d.ts +721 -0
- package/dist/src/concepts/ViewElement__.d.ts +652 -0
- package/dist/src/concepts/View__.d.ts +728 -0
- package/dist/src/concepts/WhileStatement__.d.ts +94 -0
- package/dist/src/concepts/basics/constants.d.ts +1 -0
- package/dist/src/concepts/basics/stdlib/index.d.ts +16 -0
- package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +7 -0
- package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +9 -0
- package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +6 -0
- package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +5 -0
- package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +4 -0
- package/dist/src/concepts/basics/stdlib/timeZone.d.ts +5 -0
- package/dist/src/concepts/basics/types/coreTypeList.d.ts +2 -0
- package/dist/src/concepts/basics/types/index.d.ts +17 -0
- package/dist/src/concepts/index.d.ts +7 -0
- package/dist/src/concepts/index__.d.ts +156 -0
- package/dist/src/concepts/utils/asserts.d.ts +7825 -0
- package/dist/src/concepts/utils/quick-info.d.ts +13 -0
- package/dist/src/concepts/utils/types.d.ts +510 -0
- package/dist/src/config.d.ts +52 -0
- package/dist/src/decorators/index.d.ts +67 -0
- package/dist/src/decorators/promise.d.ts +7 -0
- package/dist/src/enums/KEYWORDS.d.ts +6 -0
- package/dist/src/enums/LEVEL_NAME_MAP.d.ts +26 -0
- package/dist/src/eventBus.d.ts +3 -0
- package/dist/src/generator/compileComponent.d.ts +11 -0
- package/dist/src/generator/genBundleFiles.d.ts +37 -0
- package/dist/src/generator/genHash.d.ts +7 -0
- package/dist/src/generator/genMetaData.d.ts +31 -0
- package/dist/src/generator/icestark.d.ts +2 -0
- package/dist/src/generator/index.d.ts +7 -0
- package/dist/src/generator/microApp.d.ts +2 -0
- package/dist/src/generator/permission.d.ts +14 -0
- package/dist/src/generator/qiankun.d.ts +2 -0
- package/dist/src/generator/release-body/body.d.ts +42 -0
- package/dist/src/generator/release-body/data.d.ts +45 -0
- package/dist/src/generator/release-body/index.d.ts +2 -0
- package/dist/src/generator/release-body/internal.d.ts +622 -0
- package/dist/src/generator/release-body/types.d.ts +57 -0
- package/dist/src/generator/release-body/utils.d.ts +418 -0
- package/dist/src/generator/release-body/validation.d.ts +3 -0
- package/dist/src/generator/styleReplacer.d.ts +3 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/manager/diagnostic.d.ts +39 -0
- package/dist/src/manager/stepRecorder.d.ts +20 -0
- package/dist/src/natural/componentData.d.ts +31 -0
- package/dist/src/natural/genNaturalTS.d.ts +241 -0
- package/dist/src/natural/index.d.ts +6 -0
- package/dist/src/natural/naslStdlibMap.d.ts +1 -0
- package/dist/src/natural/prompt/analyzeClaims.d.ts +1 -0
- package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +1 -0
- package/dist/src/natural/prompt/analyzeTasks.d.ts +1 -0
- package/dist/src/natural/prompt/executeClaims.d.ts +1 -0
- package/dist/src/natural/transformTSCode.d.ts +7 -0
- package/dist/src/sentry/index.d.ts +34 -0
- package/dist/src/server/createUiTs.d.ts +17 -0
- package/dist/src/server/entity2LogicNamespace.d.ts +10 -0
- package/dist/src/server/event.d.ts +30 -0
- package/dist/src/server/extendBaseNode.d.ts +1 -0
- package/dist/src/server/formatTsUtils.d.ts +36 -0
- package/dist/src/server/getConnector.d.ts +15 -0
- package/dist/src/server/getExtensionModules.d.ts +3 -0
- package/dist/src/server/getFunctions.d.ts +3 -0
- package/dist/src/server/getInterfaces.d.ts +2 -0
- package/dist/src/server/getLogging.d.ts +1 -0
- package/dist/src/server/getLogics.d.ts +5 -0
- package/dist/src/server/getMemberIdentifier.d.ts +17 -0
- package/dist/src/server/getProcessComponents.d.ts +2 -0
- package/dist/src/server/getProcesses.d.ts +33 -0
- package/dist/src/server/getScope.d.ts +13 -0
- package/dist/src/server/getValidates.d.ts +3 -0
- package/dist/src/server/index.d.ts +5 -0
- package/dist/src/server/naslServer.d.ts +391 -0
- package/dist/src/server/naslStdlibMap.d.ts +2 -0
- package/dist/src/server/process2LogicNamespace.d.ts +26 -0
- package/dist/src/server/translator.d.ts +26 -0
- package/dist/src/service/creator/add.configs.d.ts +1 -0
- package/dist/src/service/creator/errHandles.d.ts +18 -0
- package/dist/src/service/creator/index.d.ts +1 -0
- package/dist/src/service/datasource/api.d.ts +12 -0
- package/dist/src/service/datasource/index.d.ts +2 -0
- package/dist/src/service/logic/api.d.ts +9 -0
- package/dist/src/service/logic/checktypeSocket.d.ts +5 -0
- package/dist/src/service/logic/index.d.ts +2 -0
- package/dist/src/service/storage/api.d.ts +54 -0
- package/dist/src/service/storage/index.d.ts +2 -0
- package/dist/src/service/storage/init.d.ts +105 -0
- package/dist/src/service/storage/jsoner.d.ts +36 -0
- package/dist/src/service/storage/map.d.ts +4 -0
- package/dist/src/service/storage/service.d.ts +25 -0
- package/dist/src/service/storage/storagePoint.d.ts +17 -0
- package/dist/src/service/video/BaseService.d.ts +7 -0
- package/dist/src/service/video/MainCallbackService.d.ts +12 -0
- package/dist/src/service/video/VideoTranscribe.d.ts +15 -0
- package/dist/src/service/video/publishService.d.ts +1 -0
- package/dist/src/templator/genCallComponentLogic.d.ts +17 -0
- package/dist/src/templator/genCreateBlock.d.ts +10 -0
- package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +8 -0
- package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +61 -0
- package/dist/src/templator/genEditTableBlock.d.ts +51 -0
- package/dist/src/templator/genEnumSelectBlock.d.ts +10 -0
- package/dist/src/templator/genGetBlock.d.ts +6 -0
- package/dist/src/templator/genGridViewBlock.d.ts +55 -0
- package/dist/src/templator/genListViewBlock.d.ts +19 -0
- package/dist/src/templator/genQueryComponent.d.ts +34 -0
- package/dist/src/templator/genSelectBlock.d.ts +45 -0
- package/dist/src/templator/genTableBlock.d.ts +55 -0
- package/dist/src/templator/genUpdateBlock.d.ts +6 -0
- package/dist/src/templator/index.d.ts +19 -0
- package/dist/src/templator/utils.d.ts +683 -0
- package/dist/src/translator/constant.d.ts +6 -0
- package/dist/src/translator/index.d.ts +3 -0
- package/dist/src/translator/types.d.ts +85 -0
- package/dist/src/translator/utils.d.ts +47 -0
- package/dist/src/utils/cookie.d.ts +9 -0
- package/dist/src/utils/create.d.ts +2 -0
- package/dist/src/utils/env.d.ts +2 -0
- package/dist/src/utils/file.d.ts +33 -0
- package/dist/src/utils/i18nInfo.d.ts +5 -0
- package/dist/src/utils/index.d.ts +72 -0
- package/dist/src/utils/logger.d.ts +8 -0
- package/dist/src/utils/sortTsString.d.ts +1 -0
- package/dist/src/utils/string.d.ts +64 -0
- package/dist/src/utils/time-slicing/constant.d.ts +35 -0
- package/dist/src/utils/time-slicing/controller.d.ts +53 -0
- package/dist/src/utils/time-slicing/index.d.ts +5 -0
- package/dist/src/utils/time-slicing/page-state.d.ts +2 -0
- package/dist/src/utils/time-slicing/performance.d.ts +11 -0
- package/dist/src/utils/time-slicing/runner.d.ts +12 -0
- package/dist/src/utils/time-slicing/tool.d.ts +24 -0
- package/dist/src/utils/time-slicing/utils.d.ts +62 -0
- package/dist/src/utils/time-slicing/wrapper.d.ts +18 -0
- package/dist/src/utils/traverse.d.ts +36 -0
- package/dist/src/utils/types.d.ts +13 -0
- package/dist/src/utils/window.d.ts +7 -0
- package/dist/test/concepts/anonymous-function/constant.d.ts +2 -0
- package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/assignment/constant.d.ts +2 -0
- package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/assignment/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/assignment/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/batch-assignment/constant.d.ts +2 -0
- package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/constant.d.ts +2 -0
- package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/binary-expression/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/boolean-literal/constant.d.ts +2 -0
- package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/call-function/constant.d.ts +2 -0
- package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/call-function/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/call-interface/constant.d.ts +2 -0
- package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/call-interface/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/constant.d.ts +2 -0
- package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toUI.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +1 -0
- package/dist/test/concepts/data-source/constant.d.ts +2 -0
- package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +1 -0
- package/dist/test/concepts/entity/constant.d.ts +2 -0
- package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +1 -0
- package/dist/test/concepts/identifier/constant.d.ts +2 -0
- package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/identifier/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/identifier/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/match/constant.d.ts +2 -0
- package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/match/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/member-expression/constant.d.ts +2 -0
- package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/member-expression/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/member-expression/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/new-composite/constant.d.ts +2 -0
- package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/new-composite/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/new-list/constant.d.ts +2 -0
- package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/new-list/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/new-map/constant.d.ts +2 -0
- package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +1 -0
- package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/new-map/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/null-literal/constant.d.ts +2 -0
- package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/null-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/null-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/numeric-literal/constant.d.ts +2 -0
- package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/string-literal/constant.d.ts +2 -0
- package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/string-literal/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/string-literal/toVue.spec.d.ts +1 -0
- package/dist/test/concepts/utils.d.ts +13 -0
- package/dist/test/concepts/validation-rule/constant.d.ts +2 -0
- package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/validation-rule/toJS.spec.d.ts +1 -0
- package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +1 -0
- package/dist/test/concepts/view-element/constant.d.ts +2 -0
- package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +1 -0
- package/dist/test/concepts/view-element/toVue.spec.d.ts +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/time-slicing/runner.spec.d.ts +1 -0
- package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +1 -0
- package/dist/test/time-slicing/utils.d.ts +1 -0
- package/dist/test/time-slicing/wrapper.spec.d.ts +1 -0
- package/out/automate/engine/utils.js +1 -1
- package/out/automate/engine/utils.js.map +1 -1
- package/out/bak/translator.js +12 -12
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.js +3 -3
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/App__.d.ts +6 -2
- package/out/concepts/App__.js +32 -16
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +5 -0
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +1 -0
- package/out/concepts/AuthLogicForCallInterface__.js +15 -4
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +1 -0
- package/out/concepts/CallAuthInterface__.js +14 -1
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +9 -1
- package/out/concepts/CallInterface__.js +105 -16
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +12 -6
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +2 -1
- package/out/concepts/ConnectorLogic__.d.ts +33 -0
- package/out/concepts/ConnectorLogic__.js +69 -0
- package/out/concepts/ConnectorLogic__.js.map +1 -0
- package/out/concepts/ConnectorTriggerLauncher__.d.ts +44 -0
- package/out/concepts/ConnectorTriggerLauncher__.js +99 -0
- package/out/concepts/ConnectorTriggerLauncher__.js.map +1 -0
- package/out/concepts/ConnectorTrigger__.d.ts +5 -4
- package/out/concepts/ConnectorTrigger__.js +39 -4
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +1 -0
- package/out/concepts/Connector__.js +5 -0
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/End__.js +1 -0
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/Frontend__.js +1 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Integration__.d.ts +1 -0
- package/out/concepts/Integration__.js +4 -0
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceTriggerEvent__.d.ts +34 -0
- package/out/concepts/InterfaceTriggerEvent__.js +72 -0
- package/out/concepts/InterfaceTriggerEvent__.js.map +1 -0
- package/out/concepts/Interface__.d.ts +3 -3
- package/out/concepts/Interface__.js +7 -6
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +5 -0
- package/out/concepts/LogicItem__.js +7 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +1 -1
- package/out/concepts/Logic__.js +4 -4
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Module__.js +1 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +3 -10
- package/out/concepts/MsgTriggerLauncher__.js +6 -19
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +2 -1
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.js +3 -1
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Structure__.js +4 -4
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +2 -2
- package/out/concepts/TriggerEvent__.js +1 -1
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +1 -1
- package/out/concepts/TriggerLauncher__.js +18 -1
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +1 -0
- package/out/concepts/ViewElement__.js +7 -0
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +3 -2
- package/out/concepts/View__.js +11 -18
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.js +42 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.configuration.js +8 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -1
- package/out/concepts/index__.d.ts +3 -0
- package/out/concepts/index__.js +3 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +145 -17
- package/out/concepts/utils/asserts.js +212 -39
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +15 -4
- package/out/generator/genBundleFiles.js +15 -2
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +1 -0
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/permission.js +1 -0
- package/out/generator/permission.js.map +1 -1
- package/out/generator/release-body/body.d.ts +1 -0
- package/out/generator/release-body/body.js +8 -6
- package/out/generator/release-body/body.js.map +1 -1
- package/out/generator/release-body/data.d.ts +1 -0
- package/out/generator/release-body/data.js +11 -8
- package/out/generator/release-body/data.js.map +1 -1
- package/out/generator/release-body/internal.d.ts +1 -0
- package/out/generator/release-body/internal.js.map +1 -1
- package/out/generator/release-body/types.d.ts +3 -1
- package/out/manager/diagnostic.d.ts +6 -2
- package/out/manager/diagnostic.js +28 -23
- package/out/manager/diagnostic.js.map +1 -1
- package/out/natural/genNaturalTS.d.ts +8 -8
- package/out/natural/genNaturalTS.js +41 -41
- package/out/natural/prompt/analyzeClaims.js +4 -3
- package/out/natural/prompt/analyzeClaims.js.map +1 -1
- package/out/natural/prompt/analyzeFormatOutput.js +1 -1
- package/out/natural/prompt/analyzeTasks.js +2 -2
- package/out/natural/transformTSCode.js +31 -3
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/extendBaseNode.js +36 -3
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +1 -1
- package/out/server/formatTsUtils.js +7 -3
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getConnector.d.ts +4 -4
- package/out/server/getConnector.js +3 -3
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getExtensionModules.d.ts +1 -1
- package/out/server/getLogics.js +20 -6
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.d.ts +5 -4
- package/out/server/naslServer.js +94 -61
- package/out/server/naslServer.js.map +1 -1
- package/out/service/storage/init.js +1 -1
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +2 -2
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +2 -3
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +5 -4
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/utils/delay/index.d.ts +0 -0
- package/out/utils/delay/index.js +1 -0
- package/out/utils/delay/index.js.map +1 -0
- package/out/utils/delay.d.ts +9 -0
- package/out/utils/delay.js +41 -0
- package/out/utils/delay.js.map +1 -0
- package/out/utils/env.d.ts +4 -0
- package/out/utils/env.js +6 -1
- package/out/utils/env.js.map +1 -1
- package/out/utils/index.d.ts +5 -0
- package/out/utils/index.js +36 -1
- package/out/utils/index.js.map +1 -1
- package/out/utils/time-slicing/controller.js +4 -2
- package/out/utils/time-slicing/controller.js.map +1 -1
- package/out/utils/time-slicing/page-state.d.ts +1 -1
- package/out/utils/time-slicing/page-state.js +3 -9
- package/out/utils/time-slicing/page-state.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.browser.ts +5 -0
- package/sandbox-natural/stdlib/nasl.core.ts +0 -2
- package/src/automate/engine/utils.js +1 -1
- package/src/bak/translator.js +13 -13
- package/src/common/BaseNode.ts +3 -3
- package/src/concepts/App__.ts +34 -18
- package/src/concepts/Argument__.ts +6 -0
- package/src/concepts/AuthLogicForCallInterface__.ts +15 -4
- package/src/concepts/CallAuthInterface__.ts +18 -1
- package/src/concepts/CallInterface__.ts +121 -16
- package/src/concepts/CallLogic__.ts +14 -7
- package/src/concepts/Connection__.ts +1 -1
- package/src/concepts/ConnectorLogic__.ts +84 -0
- package/src/concepts/ConnectorTriggerLauncher__.ts +117 -0
- package/src/concepts/ConnectorTrigger__.ts +38 -5
- package/src/concepts/Connector__.ts +6 -0
- package/src/concepts/End__.ts +1 -0
- package/src/concepts/Frontend__.ts +1 -0
- package/src/concepts/Integration__.ts +6 -0
- package/src/concepts/InterfaceTriggerEvent__.ts +88 -0
- package/src/concepts/Interface__.ts +9 -8
- package/src/concepts/LogicItem__.ts +8 -1
- package/src/concepts/Logic__.ts +6 -5
- package/src/concepts/MatchCase__.ts +1 -0
- package/src/concepts/Module__.ts +2 -1
- package/src/concepts/MsgTriggerLauncher__.ts +7 -23
- package/src/concepts/OqlQueryComponent__.ts +18 -17
- package/src/concepts/Param__.ts +3 -1
- package/src/concepts/Structure__.ts +4 -4
- package/src/concepts/TriggerEvent__.ts +3 -3
- package/src/concepts/TriggerLauncher__.ts +19 -2
- package/src/concepts/ViewElement__.ts +11 -1
- package/src/concepts/View__.ts +12 -20
- package/src/concepts/basics/stdlib/nasl.browser.ts +42 -0
- package/src/concepts/basics/stdlib/nasl.configuration.ts +8 -0
- package/src/concepts/index__.ts +3 -0
- package/src/concepts/utils/asserts.ts +212 -24
- package/src/concepts/utils/types.ts +25 -6
- package/src/generator/genBundleFiles.ts +14 -4
- package/src/generator/genMetaData.ts +1 -0
- package/src/generator/permission.ts +1 -0
- package/src/generator/release-body/body.ts +10 -7
- package/src/generator/release-body/data.ts +11 -8
- package/src/generator/release-body/internal.ts +1 -0
- package/src/generator/release-body/types.ts +3 -1
- package/src/manager/diagnostic.ts +35 -31
- package/src/natural/genNaturalTS.ts +41 -41
- package/src/natural/prompt/analyzeClaims.ts +4 -3
- package/src/natural/prompt/analyzeFormatOutput.ts +1 -1
- package/src/natural/prompt/analyzeTasks.ts +2 -2
- package/src/natural/transformTSCode.ts +32 -4
- package/src/server/extendBaseNode.ts +35 -4
- package/src/server/formatTsUtils.ts +6 -3
- package/src/server/getConnector.ts +7 -7
- package/src/server/getLogics.ts +21 -6
- package/src/server/naslServer.ts +107 -64
- package/src/service/storage/init.ts +1 -1
- package/src/templator/genCreateBlock.ts +2 -2
- package/src/templator/genCurdEditMultipleKeyBlock.ts +1 -1
- package/src/templator/genCurdMultipleKeyBlock.ts +2 -3
- package/src/templator/genUpdateBlock.ts +5 -4
- package/src/utils/delay/index.ts +0 -0
- package/src/utils/delay.ts +41 -0
- package/src/utils/env.ts +7 -0
- package/src/utils/index.ts +36 -1
- package/src/utils/time-slicing/controller.ts +5 -3
- package/src/utils/time-slicing/page-state.ts +1 -9
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +2 -2
- package/ts-worker/src/index.js +4 -3
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
3
|
+
import Module from './Module__';
|
|
4
|
+
import BaseNode from '../common/BaseNode';
|
|
5
|
+
import TypeParam from './TypeParam__';
|
|
6
|
+
import Param from './Param__';
|
|
7
|
+
import Return from './Return__';
|
|
8
|
+
import Variable from './Variable__';
|
|
9
|
+
import LogicItem from './LogicItem__';
|
|
10
|
+
/**
|
|
11
|
+
* 函数
|
|
12
|
+
*/
|
|
13
|
+
export declare class Function extends BaseNode {
|
|
14
|
+
/** 类名 */
|
|
15
|
+
static readonly ConceptName: string;
|
|
16
|
+
/**
|
|
17
|
+
* 是否为抽象类
|
|
18
|
+
* 抽象类不能产生 concept: string
|
|
19
|
+
*/
|
|
20
|
+
static isAbstract: boolean;
|
|
21
|
+
/** 继承链 */
|
|
22
|
+
static readonly inheritanceChain: string[];
|
|
23
|
+
/**
|
|
24
|
+
* 产品概念
|
|
25
|
+
*/
|
|
26
|
+
readonly concept: 'Function';
|
|
27
|
+
/**
|
|
28
|
+
* 函数名称
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* 函数描述
|
|
33
|
+
*/
|
|
34
|
+
description: string;
|
|
35
|
+
/**
|
|
36
|
+
* 类型参数列表
|
|
37
|
+
*/
|
|
38
|
+
typeParams: Array<TypeParam>;
|
|
39
|
+
/**
|
|
40
|
+
* 输入参数列表
|
|
41
|
+
*/
|
|
42
|
+
params: Array<Param>;
|
|
43
|
+
/**
|
|
44
|
+
* 输出参数列表
|
|
45
|
+
*/
|
|
46
|
+
returns: Array<Return>;
|
|
47
|
+
/**
|
|
48
|
+
* 变量列表
|
|
49
|
+
*/
|
|
50
|
+
variables: Array<Variable>;
|
|
51
|
+
/**
|
|
52
|
+
* 逻辑项
|
|
53
|
+
*/
|
|
54
|
+
returnExpression: LogicItem;
|
|
55
|
+
/**
|
|
56
|
+
* @param source 需要合并的部分参数
|
|
57
|
+
*/
|
|
58
|
+
constructor(source?: Partial<Function>);
|
|
59
|
+
static from(source: any, parentNode?: any, parentKey?: string): Function;
|
|
60
|
+
/**
|
|
61
|
+
* 设置函数名称
|
|
62
|
+
*/
|
|
63
|
+
setName(name: string): void;
|
|
64
|
+
/**
|
|
65
|
+
* 设置函数描述
|
|
66
|
+
*/
|
|
67
|
+
setDescription(description: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* 设置逻辑项
|
|
70
|
+
*/
|
|
71
|
+
setReturnExpression(returnExpression: LogicItem): void;
|
|
72
|
+
getTypeParamExistingNames(excludedList?: Array<TypeParam>): string[];
|
|
73
|
+
getTypeParamUniqueName(name?: string): string;
|
|
74
|
+
/**
|
|
75
|
+
* 插入类型参数
|
|
76
|
+
* @internal
|
|
77
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
78
|
+
*/
|
|
79
|
+
_insertTypeParamAt(name: string, index: number): TypeParam;
|
|
80
|
+
/**
|
|
81
|
+
* 插入类型参数
|
|
82
|
+
* @internal
|
|
83
|
+
* @param typeParamOptions 类型参数参数
|
|
84
|
+
*/
|
|
85
|
+
_insertTypeParamAt(typeParamOptions: Partial<TypeParam>, index: number): TypeParam;
|
|
86
|
+
/**
|
|
87
|
+
* 插入类型参数
|
|
88
|
+
* @internal
|
|
89
|
+
* @param typeParam 已有的类型参数实例
|
|
90
|
+
*/
|
|
91
|
+
_insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
|
|
92
|
+
/**
|
|
93
|
+
* 插入类型参数
|
|
94
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
95
|
+
*/
|
|
96
|
+
insertTypeParamAt(name: string, index: number): TypeParam;
|
|
97
|
+
/**
|
|
98
|
+
* 插入类型参数
|
|
99
|
+
* @param typeParamOptions 类型参数参数
|
|
100
|
+
*/
|
|
101
|
+
insertTypeParamAt(typeParamOptions: Partial<TypeParam>, index: number): TypeParam;
|
|
102
|
+
/**
|
|
103
|
+
* 插入类型参数
|
|
104
|
+
* @param typeParam 已有的类型参数实例
|
|
105
|
+
*/
|
|
106
|
+
insertTypeParamAt(typeParam: TypeParam, index: number): TypeParam;
|
|
107
|
+
/**
|
|
108
|
+
* 添加类型参数
|
|
109
|
+
* @internal
|
|
110
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
111
|
+
*/
|
|
112
|
+
_addTypeParam(name?: string): TypeParam;
|
|
113
|
+
/**
|
|
114
|
+
* 添加类型参数
|
|
115
|
+
* @internal
|
|
116
|
+
* @param typeParamOptions 类型参数参数
|
|
117
|
+
*/
|
|
118
|
+
_addTypeParam(typeParamOptions: Partial<TypeParam>): TypeParam;
|
|
119
|
+
/**
|
|
120
|
+
* 添加类型参数
|
|
121
|
+
* @internal
|
|
122
|
+
* @param typeParam 已有的类型参数实例
|
|
123
|
+
*/
|
|
124
|
+
_addTypeParam(typeParam: TypeParam): TypeParam;
|
|
125
|
+
/**
|
|
126
|
+
* 添加类型参数
|
|
127
|
+
* @internal
|
|
128
|
+
* @param name 类型参数名称,如果不填会自动生成一个唯一名称
|
|
129
|
+
*/
|
|
130
|
+
addTypeParam(name?: string): TypeParam;
|
|
131
|
+
/**
|
|
132
|
+
* 添加类型参数
|
|
133
|
+
* @param typeParamOptions 类型参数参数
|
|
134
|
+
*/
|
|
135
|
+
addTypeParam(typeParamOptions: Partial<TypeParam>): TypeParam;
|
|
136
|
+
/**
|
|
137
|
+
* 添加类型参数
|
|
138
|
+
* @param typeParam 已有的类型参数实例
|
|
139
|
+
*/
|
|
140
|
+
addTypeParam(typeParam: TypeParam): TypeParam;
|
|
141
|
+
getParamUniqueName(name?: string): string;
|
|
142
|
+
/**
|
|
143
|
+
* 插入输入参数
|
|
144
|
+
* @internal
|
|
145
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
146
|
+
*/
|
|
147
|
+
_insertParamAt(name: string, index: number): Param;
|
|
148
|
+
/**
|
|
149
|
+
* 插入输入参数
|
|
150
|
+
* @internal
|
|
151
|
+
* @param paramOptions 输入参数参数
|
|
152
|
+
*/
|
|
153
|
+
_insertParamAt(paramOptions: Partial<Param>, index: number): Param;
|
|
154
|
+
/**
|
|
155
|
+
* 插入输入参数
|
|
156
|
+
* @internal
|
|
157
|
+
* @param param 已有的输入参数实例
|
|
158
|
+
*/
|
|
159
|
+
_insertParamAt(param: Param, index: number): Param;
|
|
160
|
+
/**
|
|
161
|
+
* 插入输入参数
|
|
162
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
163
|
+
*/
|
|
164
|
+
insertParamAt(name: string, index: number): Param;
|
|
165
|
+
/**
|
|
166
|
+
* 插入输入参数
|
|
167
|
+
* @param paramOptions 输入参数参数
|
|
168
|
+
*/
|
|
169
|
+
insertParamAt(paramOptions: Partial<Param>, index: number): Param;
|
|
170
|
+
/**
|
|
171
|
+
* 插入输入参数
|
|
172
|
+
* @param param 已有的输入参数实例
|
|
173
|
+
*/
|
|
174
|
+
insertParamAt(param: Param, index: number): Param;
|
|
175
|
+
/**
|
|
176
|
+
* 添加输入参数
|
|
177
|
+
* @internal
|
|
178
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
179
|
+
*/
|
|
180
|
+
_addParam(name?: string): Param;
|
|
181
|
+
/**
|
|
182
|
+
* 添加输入参数
|
|
183
|
+
* @internal
|
|
184
|
+
* @param paramOptions 输入参数参数
|
|
185
|
+
*/
|
|
186
|
+
_addParam(paramOptions: Partial<Param>): Param;
|
|
187
|
+
/**
|
|
188
|
+
* 添加输入参数
|
|
189
|
+
* @internal
|
|
190
|
+
* @param param 已有的输入参数实例
|
|
191
|
+
*/
|
|
192
|
+
_addParam(param: Param): Param;
|
|
193
|
+
/**
|
|
194
|
+
* 添加输入参数
|
|
195
|
+
* @internal
|
|
196
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
197
|
+
*/
|
|
198
|
+
addParam(name?: string): Param;
|
|
199
|
+
/**
|
|
200
|
+
* 添加输入参数
|
|
201
|
+
* @param paramOptions 输入参数参数
|
|
202
|
+
*/
|
|
203
|
+
addParam(paramOptions: Partial<Param>): Param;
|
|
204
|
+
/**
|
|
205
|
+
* 添加输入参数
|
|
206
|
+
* @param param 已有的输入参数实例
|
|
207
|
+
*/
|
|
208
|
+
addParam(param: Param): Param;
|
|
209
|
+
getReturnUniqueName(name?: string): string;
|
|
210
|
+
/**
|
|
211
|
+
* 插入输出参数
|
|
212
|
+
* @internal
|
|
213
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
214
|
+
*/
|
|
215
|
+
_insertReturnAt(name: string, index: number): Return;
|
|
216
|
+
/**
|
|
217
|
+
* 插入输出参数
|
|
218
|
+
* @internal
|
|
219
|
+
* @param retOptions 输出参数参数
|
|
220
|
+
*/
|
|
221
|
+
_insertReturnAt(retOptions: Partial<Return>, index: number): Return;
|
|
222
|
+
/**
|
|
223
|
+
* 插入输出参数
|
|
224
|
+
* @internal
|
|
225
|
+
* @param ret 已有的输出参数实例
|
|
226
|
+
*/
|
|
227
|
+
_insertReturnAt(ret: Return, index: number): Return;
|
|
228
|
+
/**
|
|
229
|
+
* 插入输出参数
|
|
230
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
231
|
+
*/
|
|
232
|
+
insertReturnAt(name: string, index: number): Return;
|
|
233
|
+
/**
|
|
234
|
+
* 插入输出参数
|
|
235
|
+
* @param retOptions 输出参数参数
|
|
236
|
+
*/
|
|
237
|
+
insertReturnAt(retOptions: Partial<Return>, index: number): Return;
|
|
238
|
+
/**
|
|
239
|
+
* 插入输出参数
|
|
240
|
+
* @param ret 已有的输出参数实例
|
|
241
|
+
*/
|
|
242
|
+
insertReturnAt(ret: Return, index: number): Return;
|
|
243
|
+
/**
|
|
244
|
+
* 添加输出参数
|
|
245
|
+
* @internal
|
|
246
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
247
|
+
*/
|
|
248
|
+
_addReturn(name?: string): Return;
|
|
249
|
+
/**
|
|
250
|
+
* 添加输出参数
|
|
251
|
+
* @internal
|
|
252
|
+
* @param retOptions 输出参数参数
|
|
253
|
+
*/
|
|
254
|
+
_addReturn(retOptions: Partial<Return>): Return;
|
|
255
|
+
/**
|
|
256
|
+
* 添加输出参数
|
|
257
|
+
* @internal
|
|
258
|
+
* @param ret 已有的输出参数实例
|
|
259
|
+
*/
|
|
260
|
+
_addReturn(ret: Return): Return;
|
|
261
|
+
/**
|
|
262
|
+
* 添加输出参数
|
|
263
|
+
* @internal
|
|
264
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
265
|
+
*/
|
|
266
|
+
addReturn(name?: string): Return;
|
|
267
|
+
/**
|
|
268
|
+
* 添加输出参数
|
|
269
|
+
* @param retOptions 输出参数参数
|
|
270
|
+
*/
|
|
271
|
+
addReturn(retOptions: Partial<Return>): Return;
|
|
272
|
+
/**
|
|
273
|
+
* 添加输出参数
|
|
274
|
+
* @param ret 已有的输出参数实例
|
|
275
|
+
*/
|
|
276
|
+
addReturn(ret: Return): Return;
|
|
277
|
+
getVariableUniqueName(name?: string): string;
|
|
278
|
+
/**
|
|
279
|
+
* 插入变量
|
|
280
|
+
* @internal
|
|
281
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
282
|
+
*/
|
|
283
|
+
_insertVariableAt(name: string, index: number): Variable;
|
|
284
|
+
/**
|
|
285
|
+
* 插入变量
|
|
286
|
+
* @internal
|
|
287
|
+
* @param variableOptions 变量参数
|
|
288
|
+
*/
|
|
289
|
+
_insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
|
|
290
|
+
/**
|
|
291
|
+
* 插入变量
|
|
292
|
+
* @internal
|
|
293
|
+
* @param variable 已有的变量实例
|
|
294
|
+
*/
|
|
295
|
+
_insertVariableAt(variable: Variable, index: number): Variable;
|
|
296
|
+
/**
|
|
297
|
+
* 插入变量
|
|
298
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
299
|
+
*/
|
|
300
|
+
insertVariableAt(name: string, index: number): Variable;
|
|
301
|
+
/**
|
|
302
|
+
* 插入变量
|
|
303
|
+
* @param variableOptions 变量参数
|
|
304
|
+
*/
|
|
305
|
+
insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
|
|
306
|
+
/**
|
|
307
|
+
* 插入变量
|
|
308
|
+
* @param variable 已有的变量实例
|
|
309
|
+
*/
|
|
310
|
+
insertVariableAt(variable: Variable, index: number): Variable;
|
|
311
|
+
/**
|
|
312
|
+
* 添加变量
|
|
313
|
+
* @internal
|
|
314
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
315
|
+
*/
|
|
316
|
+
_addVariable(name?: string): Variable;
|
|
317
|
+
/**
|
|
318
|
+
* 添加变量
|
|
319
|
+
* @internal
|
|
320
|
+
* @param variableOptions 变量参数
|
|
321
|
+
*/
|
|
322
|
+
_addVariable(variableOptions: Partial<Variable>): Variable;
|
|
323
|
+
/**
|
|
324
|
+
* 添加变量
|
|
325
|
+
* @internal
|
|
326
|
+
* @param variable 已有的变量实例
|
|
327
|
+
*/
|
|
328
|
+
_addVariable(variable: Variable): Variable;
|
|
329
|
+
/**
|
|
330
|
+
* 添加变量
|
|
331
|
+
* @internal
|
|
332
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
333
|
+
*/
|
|
334
|
+
addVariable(name?: string): Variable;
|
|
335
|
+
/**
|
|
336
|
+
* 添加变量
|
|
337
|
+
* @param variableOptions 变量参数
|
|
338
|
+
*/
|
|
339
|
+
addVariable(variableOptions: Partial<Variable>): Variable;
|
|
340
|
+
/**
|
|
341
|
+
* 添加变量
|
|
342
|
+
* @param variable 已有的变量实例
|
|
343
|
+
*/
|
|
344
|
+
addVariable(variable: Variable): Variable;
|
|
345
|
+
/**
|
|
346
|
+
* 删除类型参数
|
|
347
|
+
* @param name 类型参数名称
|
|
348
|
+
*/
|
|
349
|
+
removeTypeParam(name: string): void;
|
|
350
|
+
/**
|
|
351
|
+
* 删除类型参数
|
|
352
|
+
* @param typeParam 已有的类型参数实例
|
|
353
|
+
*/
|
|
354
|
+
removeTypeParam(typeParam: TypeParam): void;
|
|
355
|
+
/**
|
|
356
|
+
* 删除输入参数
|
|
357
|
+
* @param name 输入参数名称
|
|
358
|
+
*/
|
|
359
|
+
removeParam(name: string): void;
|
|
360
|
+
/**
|
|
361
|
+
* 删除输入参数
|
|
362
|
+
* @param param 已有的输入参数实例
|
|
363
|
+
*/
|
|
364
|
+
removeParam(param: Param): void;
|
|
365
|
+
/**
|
|
366
|
+
* 删除输出参数
|
|
367
|
+
* @param name 输出参数名称
|
|
368
|
+
*/
|
|
369
|
+
removeReturn(name: string): void;
|
|
370
|
+
/**
|
|
371
|
+
* 删除输出参数
|
|
372
|
+
* @param ret 已有的输出参数实例
|
|
373
|
+
*/
|
|
374
|
+
removeReturn(ret: Return): void;
|
|
375
|
+
/**
|
|
376
|
+
* 删除变量
|
|
377
|
+
* @param name 变量名称
|
|
378
|
+
*/
|
|
379
|
+
removeVariable(name: string): void;
|
|
380
|
+
/**
|
|
381
|
+
* 删除变量
|
|
382
|
+
* @param variable 已有的变量实例
|
|
383
|
+
*/
|
|
384
|
+
removeVariable(variable: Variable): void;
|
|
385
|
+
/**
|
|
386
|
+
* 祖先 Module
|
|
387
|
+
*/
|
|
388
|
+
get module(): Module;
|
|
389
|
+
toJS(state?: TranslatorState): String;
|
|
390
|
+
getVarExistingNames(excludedList?: Array<Param | Return | Variable>): string[];
|
|
391
|
+
getNamespace(): string;
|
|
392
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
393
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
394
|
+
toVue(options?: ElementToVueOptions): string;
|
|
395
|
+
toUI(state?: TranslatorState, hideDetails?: boolean): string;
|
|
396
|
+
toEmbeddedTSDefinition(state?: TranslatorState): TranslatorGenerator;
|
|
397
|
+
get calleeKey(): string;
|
|
398
|
+
}
|
|
399
|
+
export default Function;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import BaseNode from '../common/BaseNode';
|
|
2
|
+
/**
|
|
3
|
+
* 国际化信息
|
|
4
|
+
*/
|
|
5
|
+
export declare class I18nInfo extends BaseNode {
|
|
6
|
+
/** 类名 */
|
|
7
|
+
static readonly ConceptName: string;
|
|
8
|
+
/**
|
|
9
|
+
* 是否为抽象类
|
|
10
|
+
* 抽象类不能产生 concept: string
|
|
11
|
+
*/
|
|
12
|
+
static isAbstract: boolean;
|
|
13
|
+
/** 继承链 */
|
|
14
|
+
static readonly inheritanceChain: string[];
|
|
15
|
+
/**
|
|
16
|
+
* 产品概念
|
|
17
|
+
*/
|
|
18
|
+
readonly concept: 'I18nInfo';
|
|
19
|
+
/**
|
|
20
|
+
* 是否开启
|
|
21
|
+
*/
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* locale
|
|
25
|
+
*/
|
|
26
|
+
locale: string;
|
|
27
|
+
/**
|
|
28
|
+
* 国际化配置列表
|
|
29
|
+
*/
|
|
30
|
+
messageMap: Map<String, Map<String, String>>;
|
|
31
|
+
/**
|
|
32
|
+
* @param source 需要合并的部分参数
|
|
33
|
+
*/
|
|
34
|
+
constructor(source?: Partial<I18nInfo>);
|
|
35
|
+
static from(source: any, parentNode?: any, parentKey?: string): I18nInfo;
|
|
36
|
+
/**
|
|
37
|
+
* 设置是否开启
|
|
38
|
+
*/
|
|
39
|
+
setEnabled(enabled: boolean): void;
|
|
40
|
+
/**
|
|
41
|
+
* 设置locale
|
|
42
|
+
*/
|
|
43
|
+
setLocale(locale: string): void;
|
|
44
|
+
toNaturalTS(state?: import("../translator").TranslatorState): string;
|
|
45
|
+
get messagesLanguageList(): string[];
|
|
46
|
+
}
|
|
47
|
+
export default I18nInfo;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import BaseSetter from './BaseSetter__';
|
|
2
|
+
/**
|
|
3
|
+
* 图标设置器
|
|
4
|
+
*/
|
|
5
|
+
export declare class IconSetter extends BaseSetter {
|
|
6
|
+
/** 类名 */
|
|
7
|
+
static readonly ConceptName: string;
|
|
8
|
+
/**
|
|
9
|
+
* 是否为抽象类
|
|
10
|
+
* 抽象类不能产生 concept: string
|
|
11
|
+
*/
|
|
12
|
+
static isAbstract: boolean;
|
|
13
|
+
/** 继承链 */
|
|
14
|
+
static readonly inheritanceChain: string[];
|
|
15
|
+
/**
|
|
16
|
+
* 产品概念
|
|
17
|
+
*/
|
|
18
|
+
readonly concept: 'IconSetter';
|
|
19
|
+
/**
|
|
20
|
+
* 图标标题
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @param source 需要合并的部分参数
|
|
25
|
+
*/
|
|
26
|
+
constructor(source?: Partial<IconSetter>);
|
|
27
|
+
static from(source: any, parentNode?: any, parentKey?: string): IconSetter;
|
|
28
|
+
}
|
|
29
|
+
export default IconSetter;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import { TypeAnnotation } from '..';
|
|
3
|
+
import { ElementToVueOptions } from './ViewElement__';
|
|
4
|
+
import type View from './View__';
|
|
5
|
+
import BusinessComponent from './BusinessComponent__';
|
|
6
|
+
import LogicItem from './LogicItem__';
|
|
7
|
+
/**
|
|
8
|
+
* 标识符
|
|
9
|
+
*/
|
|
10
|
+
export declare class Identifier extends LogicItem {
|
|
11
|
+
/** 类名 */
|
|
12
|
+
static readonly ConceptName: string;
|
|
13
|
+
/**
|
|
14
|
+
* 是否为抽象类
|
|
15
|
+
* 抽象类不能产生 concept: string
|
|
16
|
+
*/
|
|
17
|
+
static isAbstract: boolean;
|
|
18
|
+
/** 继承链 */
|
|
19
|
+
static readonly inheritanceChain: string[];
|
|
20
|
+
/**
|
|
21
|
+
* 产品概念
|
|
22
|
+
*/
|
|
23
|
+
readonly concept: 'Identifier';
|
|
24
|
+
/**
|
|
25
|
+
* 命名空间
|
|
26
|
+
*/
|
|
27
|
+
namespace: string;
|
|
28
|
+
/**
|
|
29
|
+
* 标识符名称
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* @param source 需要合并的部分参数
|
|
34
|
+
*/
|
|
35
|
+
constructor(source?: Partial<Identifier>);
|
|
36
|
+
static from(source: any, parentNode?: any, parentKey?: string): Identifier;
|
|
37
|
+
typeAnnotation: TypeAnnotation;
|
|
38
|
+
globalDataMap: {
|
|
39
|
+
[name: string]: boolean;
|
|
40
|
+
};
|
|
41
|
+
isEnum(): boolean;
|
|
42
|
+
get isFrontendVariables(): boolean;
|
|
43
|
+
toVue(options?: ElementToVueOptions): string;
|
|
44
|
+
toUI(state?: TranslatorState, hideDetails?: boolean): string;
|
|
45
|
+
get jsName(): string;
|
|
46
|
+
toJS(state?: TranslatorState): string;
|
|
47
|
+
get likeComponent(): View | BusinessComponent;
|
|
48
|
+
isViewOrGlobalDataVariable(): boolean;
|
|
49
|
+
toBrief(): string;
|
|
50
|
+
get businessComponent(): BusinessComponent;
|
|
51
|
+
toEmbeddedTS(state?: TranslatorState, options?: any): TranslatorGenerator;
|
|
52
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
53
|
+
toTextualNASL(state?: TranslatorState): string;
|
|
54
|
+
getValue(): any;
|
|
55
|
+
get completeName(): string;
|
|
56
|
+
/**
|
|
57
|
+
* 设置函数名称
|
|
58
|
+
*/
|
|
59
|
+
setNamespace(namespace: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* 设置函数名称
|
|
62
|
+
*/
|
|
63
|
+
setName(name: string): void;
|
|
64
|
+
setNameAndNamespace(name: string, namespace: string): void;
|
|
65
|
+
}
|
|
66
|
+
export default Identifier;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
2
|
+
import LogicItem from './LogicItem__';
|
|
3
|
+
/**
|
|
4
|
+
* 条件分支
|
|
5
|
+
*/
|
|
6
|
+
export declare class IfStatement extends LogicItem {
|
|
7
|
+
/** 类名 */
|
|
8
|
+
static readonly ConceptName: string;
|
|
9
|
+
/**
|
|
10
|
+
* 是否为抽象类
|
|
11
|
+
* 抽象类不能产生 concept: string
|
|
12
|
+
*/
|
|
13
|
+
static isAbstract: boolean;
|
|
14
|
+
/** 继承链 */
|
|
15
|
+
static readonly inheritanceChain: string[];
|
|
16
|
+
/**
|
|
17
|
+
* 产品概念
|
|
18
|
+
*/
|
|
19
|
+
readonly concept: 'IfStatement';
|
|
20
|
+
/**
|
|
21
|
+
* 条件表达式
|
|
22
|
+
*/
|
|
23
|
+
test: LogicItem;
|
|
24
|
+
/**
|
|
25
|
+
* then
|
|
26
|
+
*/
|
|
27
|
+
consequent: Array<LogicItem>;
|
|
28
|
+
/**
|
|
29
|
+
* else
|
|
30
|
+
*/
|
|
31
|
+
alternate: Array<LogicItem>;
|
|
32
|
+
/**
|
|
33
|
+
* @param source 需要合并的部分参数
|
|
34
|
+
*/
|
|
35
|
+
constructor(source?: Partial<IfStatement>);
|
|
36
|
+
static from(source: any, parentNode?: any, parentKey?: string): IfStatement;
|
|
37
|
+
/**
|
|
38
|
+
* 设置条件表达式
|
|
39
|
+
*/
|
|
40
|
+
setTest(test: LogicItem): void;
|
|
41
|
+
/**
|
|
42
|
+
* 设置then
|
|
43
|
+
*/
|
|
44
|
+
setConsequent(consequent: Array<LogicItem>): void;
|
|
45
|
+
/**
|
|
46
|
+
* 设置else
|
|
47
|
+
*/
|
|
48
|
+
setAlternate(alternate: Array<LogicItem>): void;
|
|
49
|
+
/**
|
|
50
|
+
* 插入逻辑项
|
|
51
|
+
* @internal
|
|
52
|
+
* @param logicItemOptions 逻辑项参数
|
|
53
|
+
*/
|
|
54
|
+
_insertItemInConsequentAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
55
|
+
/**
|
|
56
|
+
* 插入逻辑项
|
|
57
|
+
* @internal
|
|
58
|
+
* @param logicItem 已有的逻辑项实例
|
|
59
|
+
*/
|
|
60
|
+
_insertItemInConsequentAt(logicItem: LogicItem, index: number): LogicItem;
|
|
61
|
+
/**
|
|
62
|
+
* 插入逻辑项
|
|
63
|
+
* @param logicItemOptions 逻辑项参数
|
|
64
|
+
*/
|
|
65
|
+
insertItemInConsequentAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
66
|
+
/**
|
|
67
|
+
* 插入逻辑项
|
|
68
|
+
* @param logicItem 已有的逻辑项实例
|
|
69
|
+
*/
|
|
70
|
+
insertItemInConsequentAt(logicItem: LogicItem, index: number): LogicItem;
|
|
71
|
+
/**
|
|
72
|
+
* 添加逻辑项
|
|
73
|
+
* @internal
|
|
74
|
+
* @param logicItemOptions 逻辑项参数
|
|
75
|
+
*/
|
|
76
|
+
_addItemInConsequent(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
77
|
+
/**
|
|
78
|
+
* 添加逻辑项
|
|
79
|
+
* @internal
|
|
80
|
+
* @param logicItem 已有的逻辑项实例
|
|
81
|
+
*/
|
|
82
|
+
_addItemInConsequent(logicItem: LogicItem): LogicItem;
|
|
83
|
+
/**
|
|
84
|
+
* 添加逻辑项
|
|
85
|
+
* @param logicItemOptions 逻辑项参数
|
|
86
|
+
*/
|
|
87
|
+
addItemInConsequent(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
88
|
+
/**
|
|
89
|
+
* 添加逻辑项
|
|
90
|
+
* @param logicItem 已有的逻辑项实例
|
|
91
|
+
*/
|
|
92
|
+
addItemInConsequent(logicItem: LogicItem): LogicItem;
|
|
93
|
+
/**
|
|
94
|
+
* 插入逻辑项
|
|
95
|
+
* @internal
|
|
96
|
+
* @param logicItemOptions 逻辑项参数
|
|
97
|
+
*/
|
|
98
|
+
_insertItemInAlternateAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
99
|
+
/**
|
|
100
|
+
* 插入逻辑项
|
|
101
|
+
* @internal
|
|
102
|
+
* @param logicItem 已有的逻辑项实例
|
|
103
|
+
*/
|
|
104
|
+
_insertItemInAlternateAt(logicItem: LogicItem, index: number): LogicItem;
|
|
105
|
+
/**
|
|
106
|
+
* 插入逻辑项
|
|
107
|
+
* @param logicItemOptions 逻辑项参数
|
|
108
|
+
*/
|
|
109
|
+
insertItemInAlternateAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
110
|
+
/**
|
|
111
|
+
* 插入逻辑项
|
|
112
|
+
* @param logicItem 已有的逻辑项实例
|
|
113
|
+
*/
|
|
114
|
+
insertItemInAlternateAt(logicItem: LogicItem, index: number): LogicItem;
|
|
115
|
+
/**
|
|
116
|
+
* 添加逻辑项
|
|
117
|
+
* @internal
|
|
118
|
+
* @param logicItemOptions 逻辑项参数
|
|
119
|
+
*/
|
|
120
|
+
_addItemInAlternate(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
121
|
+
/**
|
|
122
|
+
* 添加逻辑项
|
|
123
|
+
* @internal
|
|
124
|
+
* @param logicItem 已有的逻辑项实例
|
|
125
|
+
*/
|
|
126
|
+
_addItemInAlternate(logicItem: LogicItem): LogicItem;
|
|
127
|
+
/**
|
|
128
|
+
* 添加逻辑项
|
|
129
|
+
* @param logicItemOptions 逻辑项参数
|
|
130
|
+
*/
|
|
131
|
+
addItemInAlternate(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
132
|
+
/**
|
|
133
|
+
* 添加逻辑项
|
|
134
|
+
* @param logicItem 已有的逻辑项实例
|
|
135
|
+
*/
|
|
136
|
+
addItemInAlternate(logicItem: LogicItem): LogicItem;
|
|
137
|
+
/**
|
|
138
|
+
* 删除逻辑项
|
|
139
|
+
* @param logicItem 已有的逻辑项实例
|
|
140
|
+
*/
|
|
141
|
+
removeItemInConsequent(logicItem: LogicItem): void;
|
|
142
|
+
/**
|
|
143
|
+
* 删除逻辑项
|
|
144
|
+
* @param logicItem 已有的逻辑项实例
|
|
145
|
+
*/
|
|
146
|
+
removeItemInAlternate(logicItem: LogicItem): void;
|
|
147
|
+
static getDefaultOptions(): {
|
|
148
|
+
label: string;
|
|
149
|
+
};
|
|
150
|
+
toJS(state?: TranslatorState): string;
|
|
151
|
+
toEmbeddedTS(state?: TranslatorState): TranslatorGenerator;
|
|
152
|
+
toNaturalTS(state?: TranslatorState): string;
|
|
153
|
+
toTextualNASL(state?: TranslatorState): string;
|
|
154
|
+
}
|
|
155
|
+
export default IfStatement;
|