@lcap/nasl 3.7.3-beta.1 → 3.8.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mocharc.js +0 -1
- package/out/automate/engine/utils.js +6 -1
- package/out/automate/engine/utils.js.map +1 -1
- package/out/bak/translator.js +37 -0
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/shared/utils.d.ts +1 -0
- package/out/breakpoint/shared/utils.js +1 -1
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/common/BaseNode.d.ts +11 -0
- package/out/common/BaseNode.js +101 -5
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/Annotatable__.d.ts +109 -0
- package/out/concepts/Annotatable__.js +161 -0
- package/out/concepts/Annotatable__.js.map +1 -0
- package/out/concepts/AnnotationProperty__.d.ts +48 -0
- package/out/concepts/AnnotationProperty__.js +74 -0
- package/out/concepts/AnnotationProperty__.js.map +1 -0
- package/out/concepts/Annotation__.d.ts +128 -0
- package/out/concepts/Annotation__.js +248 -0
- package/out/concepts/Annotation__.js.map +1 -0
- package/out/concepts/App__.d.ts +14 -26
- package/out/concepts/App__.js +50 -20
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/ApplyAnnotation__.d.ts +87 -0
- package/out/concepts/ApplyAnnotation__.js +140 -0
- package/out/concepts/ApplyAnnotation__.js.map +1 -0
- package/out/concepts/Argument__.d.ts +19 -0
- package/out/concepts/Argument__.js +126 -0
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AssigneeV2__.d.ts +169 -0
- package/out/concepts/AssigneeV2__.js +176 -1
- package/out/concepts/AssigneeV2__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.js +1 -1
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +1 -0
- package/out/concepts/BooleanLiteral__.js +9 -0
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +1 -1
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallFunction__.js +1 -1
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +15 -0
- package/out/concepts/CallLogic__.js +149 -17
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/ConnectorLogic__.js +1 -1
- package/out/concepts/ConnectorLogic__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +0 -2
- package/out/concepts/DatabaseTypeAnnotation__.js +0 -20
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/DepartmentManagerV2__.d.ts +29 -0
- package/out/concepts/DepartmentManagerV2__.js +56 -0
- package/out/concepts/DepartmentManagerV2__.js.map +1 -0
- package/out/concepts/DepartmentV2__.d.ts +33 -0
- package/out/concepts/DepartmentV2__.js +63 -0
- package/out/concepts/DepartmentV2__.js.map +1 -0
- package/out/concepts/DirectManagerV2__.d.ts +25 -0
- package/out/concepts/DirectManagerV2__.js +53 -0
- package/out/concepts/DirectManagerV2__.js.map +1 -0
- package/out/concepts/End__.js +9 -1
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +0 -2
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +2 -2
- package/out/concepts/Entity__.js +4 -7
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +1 -12
- package/out/concepts/EnumItem__.js +17 -49
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/EnumSelectSetter__.d.ts +4 -0
- package/out/concepts/EnumSelectSetter__.js +7 -0
- package/out/concepts/EnumSelectSetter__.js.map +1 -1
- package/out/concepts/Enum__.js +1 -4
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +1 -1
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +52 -48
- package/out/concepts/FrontendLibrary__.js +45 -36
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +4 -0
- package/out/concepts/FrontendType__.js +7 -0
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +2 -0
- package/out/concepts/Frontend__.js +21 -2
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/HistoryProcessV2__.js +4 -1
- package/out/concepts/HistoryProcessV2__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +0 -1
- package/out/concepts/I18nInfo__.js +0 -7
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +2 -0
- package/out/concepts/Identifier__.js +31 -0
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.js +2 -2
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Interface__.js +1 -4
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +16 -1
- package/out/concepts/Logic__.js +133 -15
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/ManagerV2__.d.ts +34 -0
- package/out/concepts/ManagerV2__.js +61 -0
- package/out/concepts/ManagerV2__.js.map +1 -0
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +7 -7
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +1 -0
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +88 -0
- package/out/concepts/Module__.js +85 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/OperatePermissionV2__.d.ts +1 -1
- package/out/concepts/OperatePermissionV2__.js.map +1 -1
- package/out/concepts/Param__.d.ts +4 -0
- package/out/concepts/Param__.js +13 -21
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.d.ts +6 -1
- package/out/concepts/ProcessElementV2__.js +20 -0
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +7 -0
- package/out/concepts/ProcessElement__.js +47 -0
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.d.ts +1 -34
- package/out/concepts/ProcessV2__.js +3 -70
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +2 -2
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +2 -2
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +0 -4
- package/out/concepts/StaticString__.js +0 -11
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +1 -0
- package/out/concepts/StructureProperty__.js +14 -5
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +4 -0
- package/out/concepts/Structure__.js +6 -9
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SubLogic__.d.ts +418 -0
- package/out/concepts/SubLogic__.js +992 -0
- package/out/concepts/SubLogic__.js.map +1 -0
- package/out/concepts/Theme__.d.ts +9 -0
- package/out/concepts/Theme__.js +10 -0
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +0 -1
- package/out/concepts/Transactional__.js +0 -7
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +18 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +1 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +6 -1
- package/out/concepts/ValidationRule__.js +6 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +8 -2
- package/out/concepts/ViewElement__.js +213 -32
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +10 -2
- package/out/concepts/View__.js +129 -17
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.d.ts +2 -0
- package/out/concepts/basics/stdlib/nasl.processV2.js +50 -4
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
- package/out/concepts/basics/types/index.d.ts +1 -1
- package/out/concepts/basics/types/index.js +2 -1
- package/out/concepts/basics/types/index.js.map +1 -1
- package/out/concepts/index__.d.ts +9 -0
- package/out/concepts/index__.js +9 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +409 -0
- package/out/concepts/utils/asserts.js +564 -14
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +33 -2
- package/out/generator/genBundleFiles.d.ts +13 -9
- package/out/generator/genBundleFiles.js +383 -63
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +2 -0
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/release-body/body.js +1 -0
- package/out/generator/release-body/body.js.map +1 -1
- package/out/generator/release-body/utils.d.ts +15 -7
- package/out/generator/release-body/utils.js +50 -7
- package/out/generator/release-body/utils.js.map +1 -1
- package/out/natural/genNaturalTS.js +2 -4
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/getContext/index.js +0 -2
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transformTSCode.d.ts +1 -1
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/extendBaseNode.js +9 -0
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/getLogics.js +10 -6
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.js +6 -0
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcessesV2.d.ts +3 -2
- package/out/server/getProcessesV2.js +15 -6
- package/out/server/getProcessesV2.js.map +1 -1
- package/out/server/naslServer.d.ts +5 -1
- package/out/server/naslServer.js +120 -30
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +4 -0
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.d.ts +2 -1
- package/out/service/storage/init.js +28 -71
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.d.ts +6 -2
- package/out/templator/genCreateBlock.js +25 -8
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.d.ts +22 -0
- package/out/templator/genCurdEditMultipleKeyBlock.js +60 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.d.ts +13 -3
- package/out/templator/genCurdMultipleKeyBlock.js +29 -23
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genGetBlock.d.ts +1 -1
- package/out/templator/genGetBlock.js +3 -2
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genListViewBlock.d.ts +1 -1
- package/out/templator/genListViewBlock.js +3 -2
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.d.ts +1 -1
- package/out/templator/genSelectBlock.js +3 -2
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.d.ts +9 -4
- package/out/templator/genTableBlock.js +31 -17
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.d.ts +2 -2
- package/out/templator/genUpdateBlock.js +11 -11
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/translator/types.d.ts +0 -4
- package/out/translator/utils.d.ts +0 -1
- package/out/translator/utils.js +1 -6
- package/out/translator/utils.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/env.d.ts +0 -4
- package/out/utils/env.js +3 -6
- package/out/utils/env.js.map +1 -1
- package/out/utils/index.d.ts +3 -2
- package/out/utils/index.js +18 -14
- package/out/utils/index.js.map +1 -1
- package/out/utils/time-slicing/controller.js.map +1 -1
- package/out/utils/types.d.ts +0 -17
- package/package.json +27 -20
- package/sandbox/stdlib/extension.component.ts +29 -0
- package/sandbox/stdlib/nasl.process.ts +17 -0
- package/sandbox/stdlib/nasl.processV2.ts +10 -5
- package/sandbox/stdlib/nasl.util.ts +3 -1
- package/src/automate/engine/utils.js +7 -2
- package/src/bak/translator.js +42 -1
- package/src/breakpoint/shared/utils.ts +2 -1
- package/src/common/BaseNode.ts +117 -5
- package/src/concepts/Annotatable__.ts +263 -0
- package/src/concepts/AnnotationProperty__.ts +102 -0
- package/src/concepts/Annotation__.ts +344 -0
- package/src/concepts/App__.ts +917 -26
- package/src/concepts/ApplyAnnotation__.ts +198 -0
- package/src/concepts/Argument__.ts +145 -1
- package/src/concepts/AssigneeV2__.ts +387 -1
- package/src/concepts/AuthLogicForCallInterface__.ts +1 -1
- package/src/concepts/AuthLogic__.ts +1 -1
- package/src/concepts/BooleanLiteral__.ts +9 -1
- package/src/concepts/BusinessLogic__.ts +1 -1
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/CallLogic__.ts +153 -16
- package/src/concepts/ConnectorLogic__.ts +1 -1
- package/src/concepts/DatabaseTypeAnnotation__.ts +0 -11
- package/src/concepts/DepartmentManagerV2__.ts +70 -0
- package/src/concepts/DepartmentV2__.ts +75 -0
- package/src/concepts/DirectManagerV2__.ts +65 -0
- package/src/concepts/End__.ts +10 -1
- package/src/concepts/EntityProperty__.ts +0 -5
- package/src/concepts/Entity__.ts +5 -9
- package/src/concepts/EnumItem__.ts +16 -65
- package/src/concepts/EnumSelectSetter__.ts +6 -0
- package/src/concepts/Enum__.ts +1 -6
- package/src/concepts/ForEachStatement__.ts +1 -1
- package/src/concepts/FrontendLibrary__.ts +88 -80
- package/src/concepts/FrontendType__.ts +6 -0
- package/src/concepts/Frontend__.ts +26 -3
- package/src/concepts/HistoryProcessV2__.ts +5 -0
- package/src/concepts/I18nInfo__.ts +0 -5
- package/src/concepts/Identifier__.ts +32 -0
- package/src/concepts/IfStatement__.ts +2 -2
- package/src/concepts/Interface__.ts +1 -6
- package/src/concepts/LogicItem__.ts +1 -0
- package/src/concepts/Logic__.ts +140 -17
- package/src/concepts/ManagerV2__.ts +78 -0
- package/src/concepts/MatchCase__.ts +9 -8
- package/src/concepts/MemberExpression__.ts +1 -0
- package/src/concepts/Module__.ts +194 -0
- package/src/concepts/OperatePermissionV2__.ts +1 -1
- package/src/concepts/Param__.ts +17 -20
- package/src/concepts/ProcessElementV2__.ts +23 -0
- package/src/concepts/ProcessElement__.ts +18 -0
- package/src/concepts/ProcessV2__.ts +4 -70
- package/src/concepts/QueryFromExpression__.ts +2 -2
- package/src/concepts/QueryJoinExpression__.ts +2 -2
- package/src/concepts/StaticString__.ts +0 -13
- package/src/concepts/StructureProperty__.ts +16 -7
- package/src/concepts/Structure__.ts +10 -11
- package/src/concepts/SubLogic__.ts +1516 -0
- package/src/concepts/Theme__.ts +9 -0
- package/src/concepts/Transactional__.ts +0 -5
- package/src/concepts/TriggerLauncher__.ts +1 -1
- package/src/concepts/TypeAnnotation__.ts +17 -0
- package/src/concepts/TypeParam__.ts +3 -0
- package/src/concepts/ValidationRule__.ts +6 -1
- package/src/concepts/ViewElement__.ts +224 -34
- package/src/concepts/View__.ts +135 -22
- package/src/concepts/basics/stdlib/nasl.processV2.ts +56 -3
- package/src/concepts/basics/types/index.ts +1 -1
- package/src/concepts/index__.ts +9 -0
- package/src/concepts/utils/asserts.ts +595 -0
- package/src/concepts/utils/types.ts +53 -0
- package/src/generator/genBundleFiles.ts +408 -68
- package/src/generator/genMetaData.ts +3 -0
- package/src/generator/release-body/body.ts +1 -0
- package/src/generator/release-body/utils.ts +159 -55
- package/src/natural/genNaturalTS.ts +3 -5
- package/src/natural/getContext/index.ts +0 -2
- package/src/natural/transformTS2UI.ts +5 -2
- package/src/natural/transformTSCode.ts +2 -2
- package/src/server/extendBaseNode.ts +11 -2
- package/src/server/getLogics.ts +9 -7
- package/src/server/getMemberIdentifier.ts +7 -0
- package/src/server/getProcessesV2.ts +16 -6
- package/src/server/naslServer.ts +133 -30
- package/src/server/translator.ts +4 -0
- package/src/service/storage/init.ts +52 -97
- package/src/templator/genCreateBlock.ts +35 -14
- package/src/templator/genCurdEditMultipleKeyBlock.ts +65 -1
- package/src/templator/genCurdMultipleKeyBlock.ts +42 -23
- package/src/templator/genGetBlock.ts +4 -3
- package/src/templator/genListViewBlock.ts +3 -3
- package/src/templator/genSelectBlock.ts +4 -2
- package/src/templator/genTableBlock.ts +32 -17
- package/src/templator/genUpdateBlock.ts +21 -18
- package/src/translator/types.ts +0 -4
- package/src/translator/utils.ts +0 -6
- package/src/utils/delay/index.ts +0 -0
- package/src/utils/env.ts +4 -5
- package/src/utils/index.ts +16 -4
- package/src/utils/time-slicing/controller.ts +1 -0
- package/src/utils/types.ts +0 -20
- package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +2 -1
- package/ts-worker/bundle.js +1 -1
- package/ts-worker/src/index.js +1 -0
- package/out/utils/language-cache/constant.d.ts +0 -18
- package/out/utils/language-cache/constant.js +0 -35
- package/out/utils/language-cache/constant.js.map +0 -1
- package/out/utils/language-cache/index.d.ts +0 -2
- package/out/utils/language-cache/index.js +0 -19
- package/out/utils/language-cache/index.js.map +0 -1
- package/out/utils/language-cache/nasl.d.ts +0 -10
- package/out/utils/language-cache/nasl.js +0 -98
- package/out/utils/language-cache/nasl.js.map +0 -1
- package/out/utils/language-cache/types.d.ts +0 -44
- package/out/utils/language-cache/types.js +0 -4
- package/out/utils/language-cache/types.js.map +0 -1
- package/src/utils/language-cache/constant.ts +0 -37
- package/src/utils/language-cache/index.ts +0 -2
- package/src/utils/language-cache/nasl.ts +0 -83
- package/src/utils/language-cache/types.ts +0 -48
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import type BaseNode from '../common/BaseNode';
|
|
2
|
+
import { TranslatorState, TranslatorGenerator } from '../translator';
|
|
3
|
+
import type ForEachStatement from './ForEachStatement__';
|
|
4
|
+
import type Assignment from './Assignment__';
|
|
5
|
+
import type BatchAssignment from './BatchAssignment__';
|
|
6
|
+
import type MatchCase from './MatchCase__';
|
|
7
|
+
import type AnonymousFunction from './AnonymousFunction__';
|
|
8
|
+
import type CallFunction from './CallFunction__';
|
|
9
|
+
import type Logic from './Logic__';
|
|
10
|
+
import { EventPayload } from '../common/EventEmitter';
|
|
11
|
+
import Param from './Param__';
|
|
12
|
+
import Return from './Return__';
|
|
13
|
+
import Variable from './Variable__';
|
|
14
|
+
import LogicItem from './LogicItem__';
|
|
15
|
+
/**
|
|
16
|
+
* 子逻辑
|
|
17
|
+
*/
|
|
18
|
+
export declare class SubLogic extends LogicItem {
|
|
19
|
+
/** 类名 */
|
|
20
|
+
static readonly ConceptName: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否为抽象类
|
|
23
|
+
* 抽象类不能产生 concept: string
|
|
24
|
+
*/
|
|
25
|
+
static isAbstract: boolean;
|
|
26
|
+
/** 继承链 */
|
|
27
|
+
static readonly inheritanceChain: string[];
|
|
28
|
+
/**
|
|
29
|
+
* 产品概念
|
|
30
|
+
*/
|
|
31
|
+
readonly concept: 'SubLogic';
|
|
32
|
+
/**
|
|
33
|
+
* 逻辑名称
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* 输入参数列表
|
|
38
|
+
*/
|
|
39
|
+
params: Array<Param>;
|
|
40
|
+
/**
|
|
41
|
+
* 输出参数列表
|
|
42
|
+
*/
|
|
43
|
+
returns: Array<Return>;
|
|
44
|
+
/**
|
|
45
|
+
* 变量列表
|
|
46
|
+
*/
|
|
47
|
+
variables: Array<Variable>;
|
|
48
|
+
/**
|
|
49
|
+
* 逻辑项列表
|
|
50
|
+
*/
|
|
51
|
+
body: Array<LogicItem>;
|
|
52
|
+
/**
|
|
53
|
+
* 逻辑项列表
|
|
54
|
+
*/
|
|
55
|
+
playground: Array<LogicItem>;
|
|
56
|
+
/**
|
|
57
|
+
* @param source 需要合并的部分参数
|
|
58
|
+
*/
|
|
59
|
+
constructor(source?: Partial<SubLogic>);
|
|
60
|
+
static from(source: any, parentNode?: any, parentKey?: string): SubLogic;
|
|
61
|
+
/**
|
|
62
|
+
* 设置逻辑名称
|
|
63
|
+
*/
|
|
64
|
+
setName(name: string): void;
|
|
65
|
+
getParamUniqueName(name?: string): string;
|
|
66
|
+
/**
|
|
67
|
+
* 插入输入参数
|
|
68
|
+
* @internal
|
|
69
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
70
|
+
*/
|
|
71
|
+
_insertParamAt(name: string, index: number): Param;
|
|
72
|
+
/**
|
|
73
|
+
* 插入输入参数
|
|
74
|
+
* @internal
|
|
75
|
+
* @param paramOptions 输入参数参数
|
|
76
|
+
*/
|
|
77
|
+
_insertParamAt(paramOptions: Partial<Param>, index: number): Param;
|
|
78
|
+
/**
|
|
79
|
+
* 插入输入参数
|
|
80
|
+
* @internal
|
|
81
|
+
* @param param 已有的输入参数实例
|
|
82
|
+
*/
|
|
83
|
+
_insertParamAt(param: Param, index: number): Param;
|
|
84
|
+
/**
|
|
85
|
+
* 插入输入参数
|
|
86
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
87
|
+
*/
|
|
88
|
+
insertParamAt(name: string, index: number): Param;
|
|
89
|
+
/**
|
|
90
|
+
* 插入输入参数
|
|
91
|
+
* @param paramOptions 输入参数参数
|
|
92
|
+
*/
|
|
93
|
+
insertParamAt(paramOptions: Partial<Param>, index: number): Param;
|
|
94
|
+
/**
|
|
95
|
+
* 插入输入参数
|
|
96
|
+
* @param param 已有的输入参数实例
|
|
97
|
+
*/
|
|
98
|
+
insertParamAt(param: Param, index: number): Param;
|
|
99
|
+
/**
|
|
100
|
+
* 添加输入参数
|
|
101
|
+
* @internal
|
|
102
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
103
|
+
*/
|
|
104
|
+
_addParam(name?: string): Param;
|
|
105
|
+
/**
|
|
106
|
+
* 添加输入参数
|
|
107
|
+
* @internal
|
|
108
|
+
* @param paramOptions 输入参数参数
|
|
109
|
+
*/
|
|
110
|
+
_addParam(paramOptions: Partial<Param>): Param;
|
|
111
|
+
/**
|
|
112
|
+
* 添加输入参数
|
|
113
|
+
* @internal
|
|
114
|
+
* @param param 已有的输入参数实例
|
|
115
|
+
*/
|
|
116
|
+
_addParam(param: Param): Param;
|
|
117
|
+
/**
|
|
118
|
+
* 添加输入参数
|
|
119
|
+
* @internal
|
|
120
|
+
* @param name 输入参数名称,如果不填会自动生成一个唯一名称
|
|
121
|
+
*/
|
|
122
|
+
addParam(name?: string): Param;
|
|
123
|
+
/**
|
|
124
|
+
* 添加输入参数
|
|
125
|
+
* @param paramOptions 输入参数参数
|
|
126
|
+
*/
|
|
127
|
+
addParam(paramOptions: Partial<Param>): Param;
|
|
128
|
+
/**
|
|
129
|
+
* 添加输入参数
|
|
130
|
+
* @param param 已有的输入参数实例
|
|
131
|
+
*/
|
|
132
|
+
addParam(param: Param): Param;
|
|
133
|
+
getReturnUniqueName(name?: string): string;
|
|
134
|
+
/**
|
|
135
|
+
* 插入输出参数
|
|
136
|
+
* @internal
|
|
137
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
138
|
+
*/
|
|
139
|
+
_insertReturnAt(name: string, index: number): Return;
|
|
140
|
+
/**
|
|
141
|
+
* 插入输出参数
|
|
142
|
+
* @internal
|
|
143
|
+
* @param retOptions 输出参数参数
|
|
144
|
+
*/
|
|
145
|
+
_insertReturnAt(retOptions: Partial<Return>, index: number): Return;
|
|
146
|
+
/**
|
|
147
|
+
* 插入输出参数
|
|
148
|
+
* @internal
|
|
149
|
+
* @param ret 已有的输出参数实例
|
|
150
|
+
*/
|
|
151
|
+
_insertReturnAt(ret: Return, index: number): Return;
|
|
152
|
+
/**
|
|
153
|
+
* 插入输出参数
|
|
154
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
155
|
+
*/
|
|
156
|
+
insertReturnAt(name: string, index: number): Return;
|
|
157
|
+
/**
|
|
158
|
+
* 插入输出参数
|
|
159
|
+
* @param retOptions 输出参数参数
|
|
160
|
+
*/
|
|
161
|
+
insertReturnAt(retOptions: Partial<Return>, index: number): Return;
|
|
162
|
+
/**
|
|
163
|
+
* 插入输出参数
|
|
164
|
+
* @param ret 已有的输出参数实例
|
|
165
|
+
*/
|
|
166
|
+
insertReturnAt(ret: Return, index: number): Return;
|
|
167
|
+
/**
|
|
168
|
+
* 添加输出参数
|
|
169
|
+
* @internal
|
|
170
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
171
|
+
*/
|
|
172
|
+
_addReturn(name?: string): Return;
|
|
173
|
+
/**
|
|
174
|
+
* 添加输出参数
|
|
175
|
+
* @internal
|
|
176
|
+
* @param retOptions 输出参数参数
|
|
177
|
+
*/
|
|
178
|
+
_addReturn(retOptions: Partial<Return>): Return;
|
|
179
|
+
/**
|
|
180
|
+
* 添加输出参数
|
|
181
|
+
* @internal
|
|
182
|
+
* @param ret 已有的输出参数实例
|
|
183
|
+
*/
|
|
184
|
+
_addReturn(ret: Return): Return;
|
|
185
|
+
/**
|
|
186
|
+
* 添加输出参数
|
|
187
|
+
* @internal
|
|
188
|
+
* @param name 输出参数名称,如果不填会自动生成一个唯一名称
|
|
189
|
+
*/
|
|
190
|
+
addReturn(name?: string): Return;
|
|
191
|
+
/**
|
|
192
|
+
* 添加输出参数
|
|
193
|
+
* @param retOptions 输出参数参数
|
|
194
|
+
*/
|
|
195
|
+
addReturn(retOptions: Partial<Return>): Return;
|
|
196
|
+
/**
|
|
197
|
+
* 添加输出参数
|
|
198
|
+
* @param ret 已有的输出参数实例
|
|
199
|
+
*/
|
|
200
|
+
addReturn(ret: Return): Return;
|
|
201
|
+
getVariableUniqueName(name?: string): string;
|
|
202
|
+
/**
|
|
203
|
+
* 插入变量
|
|
204
|
+
* @internal
|
|
205
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
206
|
+
*/
|
|
207
|
+
_insertVariableAt(name: string, index: number): Variable;
|
|
208
|
+
/**
|
|
209
|
+
* 插入变量
|
|
210
|
+
* @internal
|
|
211
|
+
* @param variableOptions 变量参数
|
|
212
|
+
*/
|
|
213
|
+
_insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
|
|
214
|
+
/**
|
|
215
|
+
* 插入变量
|
|
216
|
+
* @internal
|
|
217
|
+
* @param variable 已有的变量实例
|
|
218
|
+
*/
|
|
219
|
+
_insertVariableAt(variable: Variable, index: number): Variable;
|
|
220
|
+
/**
|
|
221
|
+
* 插入变量
|
|
222
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
223
|
+
*/
|
|
224
|
+
insertVariableAt(name: string, index: number): Variable;
|
|
225
|
+
/**
|
|
226
|
+
* 插入变量
|
|
227
|
+
* @param variableOptions 变量参数
|
|
228
|
+
*/
|
|
229
|
+
insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
|
|
230
|
+
/**
|
|
231
|
+
* 插入变量
|
|
232
|
+
* @param variable 已有的变量实例
|
|
233
|
+
*/
|
|
234
|
+
insertVariableAt(variable: Variable, index: number): Variable;
|
|
235
|
+
/**
|
|
236
|
+
* 添加变量
|
|
237
|
+
* @internal
|
|
238
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
239
|
+
*/
|
|
240
|
+
_addVariable(name?: string): Variable;
|
|
241
|
+
/**
|
|
242
|
+
* 添加变量
|
|
243
|
+
* @internal
|
|
244
|
+
* @param variableOptions 变量参数
|
|
245
|
+
*/
|
|
246
|
+
_addVariable(variableOptions: Partial<Variable>): Variable;
|
|
247
|
+
/**
|
|
248
|
+
* 添加变量
|
|
249
|
+
* @internal
|
|
250
|
+
* @param variable 已有的变量实例
|
|
251
|
+
*/
|
|
252
|
+
_addVariable(variable: Variable): Variable;
|
|
253
|
+
/**
|
|
254
|
+
* 添加变量
|
|
255
|
+
* @internal
|
|
256
|
+
* @param name 变量名称,如果不填会自动生成一个唯一名称
|
|
257
|
+
*/
|
|
258
|
+
addVariable(name?: string): Variable;
|
|
259
|
+
/**
|
|
260
|
+
* 添加变量
|
|
261
|
+
* @param variableOptions 变量参数
|
|
262
|
+
*/
|
|
263
|
+
addVariable(variableOptions: Partial<Variable>): Variable;
|
|
264
|
+
/**
|
|
265
|
+
* 添加变量
|
|
266
|
+
* @param variable 已有的变量实例
|
|
267
|
+
*/
|
|
268
|
+
addVariable(variable: Variable): Variable;
|
|
269
|
+
/**
|
|
270
|
+
* 插入逻辑项
|
|
271
|
+
* @internal
|
|
272
|
+
* @param logicItemOptions 逻辑项参数
|
|
273
|
+
*/
|
|
274
|
+
_insertItemInBodyAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
275
|
+
/**
|
|
276
|
+
* 插入逻辑项
|
|
277
|
+
* @internal
|
|
278
|
+
* @param logicItem 已有的逻辑项实例
|
|
279
|
+
*/
|
|
280
|
+
_insertItemInBodyAt(logicItem: LogicItem, index: number): LogicItem;
|
|
281
|
+
/**
|
|
282
|
+
* 插入逻辑项
|
|
283
|
+
* @param logicItemOptions 逻辑项参数
|
|
284
|
+
*/
|
|
285
|
+
insertItemInBodyAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
286
|
+
/**
|
|
287
|
+
* 插入逻辑项
|
|
288
|
+
* @param logicItem 已有的逻辑项实例
|
|
289
|
+
*/
|
|
290
|
+
insertItemInBodyAt(logicItem: LogicItem, index: number): LogicItem;
|
|
291
|
+
/**
|
|
292
|
+
* 添加逻辑项
|
|
293
|
+
* @internal
|
|
294
|
+
* @param logicItemOptions 逻辑项参数
|
|
295
|
+
*/
|
|
296
|
+
_addItemInBody(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
297
|
+
/**
|
|
298
|
+
* 添加逻辑项
|
|
299
|
+
* @internal
|
|
300
|
+
* @param logicItem 已有的逻辑项实例
|
|
301
|
+
*/
|
|
302
|
+
_addItemInBody(logicItem: LogicItem): LogicItem;
|
|
303
|
+
/**
|
|
304
|
+
* 添加逻辑项
|
|
305
|
+
* @param logicItemOptions 逻辑项参数
|
|
306
|
+
*/
|
|
307
|
+
addItemInBody(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
308
|
+
/**
|
|
309
|
+
* 添加逻辑项
|
|
310
|
+
* @param logicItem 已有的逻辑项实例
|
|
311
|
+
*/
|
|
312
|
+
addItemInBody(logicItem: LogicItem): LogicItem;
|
|
313
|
+
/**
|
|
314
|
+
* 插入逻辑项
|
|
315
|
+
* @internal
|
|
316
|
+
* @param logicItemOptions 逻辑项参数
|
|
317
|
+
*/
|
|
318
|
+
_insertItemInPlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
319
|
+
/**
|
|
320
|
+
* 插入逻辑项
|
|
321
|
+
* @internal
|
|
322
|
+
* @param logicItem 已有的逻辑项实例
|
|
323
|
+
*/
|
|
324
|
+
_insertItemInPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
325
|
+
/**
|
|
326
|
+
* 插入逻辑项
|
|
327
|
+
* @param logicItemOptions 逻辑项参数
|
|
328
|
+
*/
|
|
329
|
+
insertItemInPlaygroundAt(logicItemOptions: Partial<LogicItem>, index: number): LogicItem;
|
|
330
|
+
/**
|
|
331
|
+
* 插入逻辑项
|
|
332
|
+
* @param logicItem 已有的逻辑项实例
|
|
333
|
+
*/
|
|
334
|
+
insertItemInPlaygroundAt(logicItem: LogicItem, index: number): LogicItem;
|
|
335
|
+
/**
|
|
336
|
+
* 添加逻辑项
|
|
337
|
+
* @internal
|
|
338
|
+
* @param logicItemOptions 逻辑项参数
|
|
339
|
+
*/
|
|
340
|
+
_addItemInPlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
341
|
+
/**
|
|
342
|
+
* 添加逻辑项
|
|
343
|
+
* @internal
|
|
344
|
+
* @param logicItem 已有的逻辑项实例
|
|
345
|
+
*/
|
|
346
|
+
_addItemInPlayground(logicItem: LogicItem): LogicItem;
|
|
347
|
+
/**
|
|
348
|
+
* 添加逻辑项
|
|
349
|
+
* @param logicItemOptions 逻辑项参数
|
|
350
|
+
*/
|
|
351
|
+
addItemInPlayground(logicItemOptions: Partial<LogicItem>): LogicItem;
|
|
352
|
+
/**
|
|
353
|
+
* 添加逻辑项
|
|
354
|
+
* @param logicItem 已有的逻辑项实例
|
|
355
|
+
*/
|
|
356
|
+
addItemInPlayground(logicItem: LogicItem): LogicItem;
|
|
357
|
+
/**
|
|
358
|
+
* 删除输入参数
|
|
359
|
+
* @param name 输入参数名称
|
|
360
|
+
*/
|
|
361
|
+
removeParam(name: string): void;
|
|
362
|
+
/**
|
|
363
|
+
* 删除输入参数
|
|
364
|
+
* @param param 已有的输入参数实例
|
|
365
|
+
*/
|
|
366
|
+
removeParam(param: Param): void;
|
|
367
|
+
/**
|
|
368
|
+
* 删除输出参数
|
|
369
|
+
* @param name 输出参数名称
|
|
370
|
+
*/
|
|
371
|
+
removeReturn(name: string): void;
|
|
372
|
+
/**
|
|
373
|
+
* 删除输出参数
|
|
374
|
+
* @param ret 已有的输出参数实例
|
|
375
|
+
*/
|
|
376
|
+
removeReturn(ret: Return): void;
|
|
377
|
+
/**
|
|
378
|
+
* 删除变量
|
|
379
|
+
* @param name 变量名称
|
|
380
|
+
*/
|
|
381
|
+
removeVariable(name: string): void;
|
|
382
|
+
/**
|
|
383
|
+
* 删除变量
|
|
384
|
+
* @param variable 已有的变量实例
|
|
385
|
+
*/
|
|
386
|
+
removeVariable(variable: Variable): void;
|
|
387
|
+
/**
|
|
388
|
+
* 删除逻辑项
|
|
389
|
+
* @param logicItem 已有的逻辑项实例
|
|
390
|
+
*/
|
|
391
|
+
removeItemInBody(logicItem: LogicItem): void;
|
|
392
|
+
/**
|
|
393
|
+
* 删除逻辑项
|
|
394
|
+
* @param logicItem 已有的逻辑项实例
|
|
395
|
+
*/
|
|
396
|
+
removeItemInPlayground(logicItem: LogicItem): void;
|
|
397
|
+
completionChildren: Array<SubLogic>;
|
|
398
|
+
getVarExistingNames(excludedList?: Array<Param>): string[];
|
|
399
|
+
toJSContent(code: string, state?: TranslatorState): string;
|
|
400
|
+
toJS(state?: TranslatorState, type?: string): string;
|
|
401
|
+
static getDefaultOptions(): Partial<{
|
|
402
|
+
body: Array<any>;
|
|
403
|
+
params: Array<any>;
|
|
404
|
+
returns: Array<any>;
|
|
405
|
+
}>;
|
|
406
|
+
getRightCode(code: string, assignment: Assignment | BatchAssignment | CallFunction, rightNode: any): Generator<any, string, any>;
|
|
407
|
+
handleForEachCode(code: string, forEachStatement: ForEachStatement): Generator<any, string, any>;
|
|
408
|
+
handleCollectionCode(code: string, anonymousFunction: AnonymousFunction, callFunction: CallFunction): Generator<any, string, any>;
|
|
409
|
+
handleReplaceCode(code: string, variable: string, replaceCode: string): string;
|
|
410
|
+
handleMatchCaseCode(code: string, matchCase: MatchCase): Generator<any, string, any>;
|
|
411
|
+
toEmbeddedTS(state?: TranslatorState, prefix?: string, hideDefaultValue?: boolean): TranslatorGenerator;
|
|
412
|
+
saveStructureOfCallQueryComponents(root?: BaseNode | Logic): Promise<void>;
|
|
413
|
+
subLogics: SubLogic[];
|
|
414
|
+
getSubLogics(): void;
|
|
415
|
+
genActionListener($event: EventPayload): void;
|
|
416
|
+
get __name__(): string;
|
|
417
|
+
}
|
|
418
|
+
export default SubLogic;
|