@lcap/nasl 2.20.0-beta.3 → 2.20.0
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/out/automate/engine/index.d.ts +1 -1
- package/out/automate/engine/index.js +2 -3
- package/out/automate/engine/index.js.map +1 -1
- package/out/automate/engine/uniqueName.d.ts +1 -1
- package/out/automate/engine/uniqueName.js +2 -2
- package/out/automate/engine/uniqueName.js.map +1 -1
- package/out/automate/engine/utils.js +4 -1
- package/out/automate/engine/utils.js.map +1 -1
- package/out/automate/template/myProcess.d.ts +1 -1
- package/out/automate/template/myProcess.js +2 -2
- package/out/automate/template/myProcess.js.map +1 -1
- package/out/bak/translator.js +14 -22
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.js +4 -1
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.d.ts +1 -0
- package/out/common/Command.js +5 -1
- package/out/common/Command.js.map +1 -1
- package/out/concepts/App__.d.ts +4 -0
- package/out/concepts/App__.js +30 -6
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Assignee__.js +4 -3
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +3 -3
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +7 -0
- package/out/concepts/BindAttribute__.js +270 -39
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +7 -0
- package/out/concepts/BindDirective__.js +215 -17
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +7 -0
- package/out/concepts/BindStyle__.js +194 -4
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/CallFunction__.js +22 -8
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.js +3 -2
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +3 -0
- package/out/concepts/CallLogic__.js +78 -89
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +20 -3
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +1 -0
- package/out/concepts/ConfigGroup__.js +13 -0
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +19 -0
- package/out/concepts/ConfigProperty__.js +61 -0
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +1 -0
- package/out/concepts/Configuration__.js +13 -0
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +1 -0
- package/out/concepts/Destination__.js +61 -7
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +9 -1
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +5 -5
- package/out/concepts/EnumItem__.js +6 -6
- package/out/concepts/Enum__.d.ts +20 -19
- package/out/concepts/Enum__.js +28 -1
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +1 -0
- package/out/concepts/ExternalDestination__.js +21 -3
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +2 -0
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +2 -1
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Identifier__.js +16 -5
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +9 -1
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/JSBlock__.js +5 -1
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +79 -79
- package/out/concepts/Logic__.js +16 -3
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/Match__.d.ts +0 -3
- package/out/concepts/Match__.js +11 -66
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +9 -0
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +16 -0
- package/out/concepts/Module__.js +43 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +2 -4
- package/out/concepts/NewComposite__.js +91 -126
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +1 -0
- package/out/concepts/NewList__.js +22 -2
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +1 -0
- package/out/concepts/NewMap__.js +43 -11
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +40 -12
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.js +10 -2
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +2 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js +1 -1
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js +1 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.js +1 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/Return__.js +10 -2
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js +14 -2
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +6 -6
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +9 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +6 -3
- package/out/concepts/TypeAnnotation__.js +67 -13
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +1 -0
- package/out/concepts/ValidationRule__.js +53 -0
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +9 -1
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.js +17 -1
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +1 -3
- package/out/concepts/View__.js +22 -11
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.collection.js +6 -1
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.configuration.js +3 -0
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.core.d.ts +2 -0
- package/out/concepts/basics/stdlib/nasl.core.js +34 -0
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +4 -2
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/types/index.d.ts +1 -0
- package/out/concepts/basics/types/index.js +3 -1
- package/out/concepts/basics/types/index.js.map +1 -1
- package/out/concepts/index__.d.ts +0 -1
- package/out/concepts/index__.js +0 -1
- package/out/concepts/index__.js.map +1 -1
- package/out/enums/KEYWORDS.js +8 -0
- package/out/enums/KEYWORDS.js.map +1 -1
- package/out/generator/genBundleFiles.js +24 -5
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.d.ts +2 -3
- package/out/generator/genReleaseBody.js +97 -23
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/permission.d.ts +2 -10
- package/out/generator/permission.js +26 -13
- package/out/generator/permission.js.map +1 -1
- package/out/server/entity2LogicNamespace.js +2 -20
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +16 -5
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +2 -1
- package/out/server/formatTsUtils.js +40 -10
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.d.ts +2 -2
- package/out/server/getLogics.js +3 -3
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.d.ts +1 -0
- package/out/server/getMemberIdentifier.js +27 -1
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/index.js +1 -0
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +7 -1
- package/out/server/naslServer.js +519 -46
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +109 -33
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.js +21 -1
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +1 -3
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +1 -3
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +2 -4
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +1 -1
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js +2 -2
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +7 -1
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js +1 -1
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +2 -2
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +2 -3
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/utils/traverse.js +8 -2
- package/out/utils/traverse.js.map +1 -1
- package/package.json +2 -2
- package/sandbox/stdlib/dist/nasl.logging.js +0 -0
- package/sandbox/stdlib/dist/nasl.util.js +0 -0
- package/sandbox/stdlib/nasl.collection.ts +1 -0
- package/sandbox/stdlib/nasl.core.ts +34 -0
- package/sandbox/stdlib/nasl.oql.ts +71 -15
- package/sandbox/stdlib/nasl.util.ts +9 -3
- package/src/automate/engine/dist/index.dev.js +517 -0
- package/src/automate/engine/index.js +2 -3
- package/src/automate/engine/uniqueName.js +2 -2
- package/src/automate/engine/utils.js +4 -2
- package/src/automate/template/myProcess.js +2 -2
- package/src/bak/translator.js +16 -25
- package/src/common/BaseNode.ts +3 -1
- package/src/common/Command.ts +4 -0
- package/src/common/dist/BaseNode.js +1101 -0
- package/src/concepts/App__.ts +36 -7
- package/src/concepts/Assignee__.ts +4 -3
- package/src/concepts/BatchAssignment__.ts +3 -3
- package/src/concepts/BindAttribute__.ts +299 -38
- package/src/concepts/BindDirective__.ts +204 -31
- package/src/concepts/BindStyle__.ts +187 -24
- package/src/concepts/CallFunction__.ts +55 -10
- package/src/concepts/CallInterface__.ts +3 -2
- package/src/concepts/CallLogic__.ts +110 -90
- package/src/concepts/CallQueryComponent__.ts +18 -3
- package/src/concepts/ConfigGroup__.ts +17 -4
- package/src/concepts/ConfigProperty__.ts +70 -4
- package/src/concepts/Configuration__.ts +14 -5
- package/src/concepts/DataSource__.ts +4 -1
- package/src/concepts/Destination__.ts +61 -7
- package/src/concepts/EntityProperty__.ts +7 -1
- package/src/concepts/EnumItem__.ts +6 -6
- package/src/concepts/Enum__.ts +22 -19
- package/src/concepts/ExternalDestination__.ts +28 -8
- package/src/concepts/ForEachStatement__.ts +2 -0
- package/src/concepts/Frontend__.ts +2 -1
- package/src/concepts/Identifier__.ts +16 -5
- package/src/concepts/InterfaceParam__.ts +7 -1
- package/src/concepts/JSBlock__.ts +3 -2
- package/src/concepts/Logic__.ts +95 -83
- package/src/concepts/Match__.ts +31 -67
- package/src/concepts/MemberExpression__.ts +6 -0
- package/src/concepts/Module__.ts +57 -0
- package/src/concepts/NewComposite__.ts +95 -140
- package/src/concepts/NewList__.ts +23 -2
- package/src/concepts/NewMap__.ts +48 -24
- package/src/concepts/OqlQueryComponent__.ts +40 -20
- package/src/concepts/Param__.ts +178 -176
- package/src/concepts/ProcessElement__.ts +2 -1
- package/src/concepts/ProcessOutcome__.ts +1 -1
- package/src/concepts/ProcessOutcomes__.ts +1 -1
- package/src/concepts/Process__.ts +1 -0
- package/src/concepts/Return__.ts +8 -2
- package/src/concepts/StringInterpolation__.ts +19 -7
- package/src/concepts/StringLiteral__.ts +7 -6
- package/src/concepts/StructureProperty__.ts +7 -1
- package/src/concepts/TypeAnnotation__.ts +101 -14
- package/src/concepts/ValidationRule__.ts +58 -9
- package/src/concepts/Variable__.ts +11 -1
- package/src/concepts/ViewElement__.ts +39 -2
- package/src/concepts/View__.ts +26 -14
- package/src/concepts/basics/stdlib/dist/nasl.util.js +1602 -0
- package/src/concepts/basics/stdlib/dist/reference2TypeAnnotationList.js +24 -0
- package/src/concepts/basics/stdlib/nasl.collection.ts +6 -1
- package/src/concepts/basics/stdlib/nasl.configuration.ts +3 -0
- package/src/concepts/basics/stdlib/nasl.core.ts +33 -2
- package/src/concepts/basics/stdlib/nasl.util.ts +4 -2
- package/src/concepts/basics/types/index.ts +1 -0
- package/src/concepts/dist/BindAttribute__.js +795 -0
- package/src/concepts/dist/BindEvent__.js +732 -0
- package/src/concepts/dist/CallFunction__.js +527 -0
- package/src/concepts/dist/CallLogic__.js +932 -0
- package/src/concepts/dist/Destination__.js +708 -0
- package/src/concepts/dist/ExternalDestination__.js +298 -0
- package/src/concepts/dist/Identifier__.js +311 -0
- package/src/concepts/dist/StringInterpolation__.js +231 -0
- package/src/concepts/dist/TypeAnnotation__.js +834 -0
- package/src/concepts/dist/ViewElement__.js +1692 -0
- package/src/concepts/dist/View__.js +1601 -0
- package/src/concepts/index__.ts +0 -1
- package/src/enums/KEYWORDS.ts +8 -0
- package/src/generator/dist/genBundleFiles.js +261 -0
- package/src/generator/dist/genMetaData.js +245 -0
- package/src/generator/dist/permission.js +405 -0
- package/src/generator/genBundleFiles.ts +24 -5
- package/src/generator/genReleaseBody.ts +75 -30
- package/src/generator/permission.ts +30 -14
- package/src/server/entity2LogicNamespace.ts +2 -20
- package/src/server/extendBaseNode.ts +15 -5
- package/src/server/formatTsUtils.ts +41 -10
- package/src/server/getLogics.ts +4 -4
- package/src/server/getMemberIdentifier.ts +27 -1
- package/src/server/index.ts +2 -0
- package/src/server/naslServer.ts +520 -48
- package/src/server/translator.ts +96 -34
- package/src/service/storage/dist/init.js +579 -0
- package/src/service/storage/init.ts +22 -2
- package/src/templator/dist/genEditTableBlock.js +204 -0
- package/src/templator/dist/genGridViewBlock.js +265 -0
- package/src/templator/dist/genListViewBlock.js +84 -0
- package/src/templator/dist/genTableBlock.js +209 -0
- package/src/templator/dist/utils.js +527 -0
- package/src/templator/genCreateBlock.ts +1 -3
- package/src/templator/genCurdEditMultipleKeyBlock.ts +1 -3
- package/src/templator/genCurdMultipleKeyBlock.ts +2 -4
- package/src/templator/genGetBlock.ts +1 -1
- package/src/templator/genGridViewBlock.ts +3 -4
- package/src/templator/genListViewBlock.ts +9 -3
- package/src/templator/genSelectBlock.ts +1 -1
- package/src/templator/genTableBlock.ts +3 -3
- package/src/templator/genUpdateBlock.ts +2 -3
- package/src/utils/traverse.ts +10 -2
- package/ts-worker/lib/tsserver.js +10 -2
- package/ts-worker/package.json +1 -0
- package/ts-worker/webpack.config.js +11 -2
- package/out/concepts/ConstructArgument__.d.ts +0 -40
- package/out/concepts/ConstructArgument__.js +0 -108
- package/out/concepts/ConstructArgument__.js.map +0 -1
- package/out/concepts/Construct__.d.ts +0 -189
- package/out/concepts/Construct__.js +0 -340
- package/out/concepts/Construct__.js.map +0 -1
- package/out/templator/sql-parser/index.d.ts +0 -1
- package/out/templator/sql-parser/index.js +0 -228
- package/out/templator/sql-parser/index.js.map +0 -1
- package/out/templator/sql-parser/parser.js +0 -26664
- package/out/templator/sql-parser/parser.js.map +0 -1
|
@@ -82,7 +82,7 @@ export function genLoadSelectLogic(entity: Entity, nameGroup: NameGroup, newLogi
|
|
|
82
82
|
export function genSelectBlock(entity: Entity, oldNode: ViewElement) {
|
|
83
83
|
const view = oldNode.view;
|
|
84
84
|
const dataSource = entity.parentNode as DataSource;
|
|
85
|
-
const module = dataSource.
|
|
85
|
+
const module = dataSource.app;
|
|
86
86
|
|
|
87
87
|
const viewElementMainView = view.getViewElementUniqueName('select');
|
|
88
88
|
const nameGroup = genUniqueQueryNameGroup(module, view, viewElementMainView, false);
|
|
@@ -28,7 +28,7 @@ export function genTableColumnTemplate(property: EntityProperty, currentName: st
|
|
|
28
28
|
const relationLowerEntityName = utils.firstLowerCase(property.relationEntity);
|
|
29
29
|
const relationEntity = dataSource?.findEntityByName(property.relationEntity);
|
|
30
30
|
const displayedProperty = getFirstDisplayedProperty(relationEntity);
|
|
31
|
-
valueExpression = `${currentName}.item.${relationLowerEntityName}.${displayedProperty?.name || property.relationProperty}`;
|
|
31
|
+
valueExpression = `${currentName}.item.${relationLowerEntityName}.${displayedProperty?.name || property.relationProperty}`;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const getText = (property: EntityProperty) => {
|
|
@@ -179,7 +179,7 @@ export function genTableRemoveLogic(entity: Entity, nameGroup: NameGroup) {
|
|
|
179
179
|
export function genTableBlock(entity: Entity, oldNode: ViewElement) {
|
|
180
180
|
const view = oldNode.view;
|
|
181
181
|
const dataSource = entity.parentNode as DataSource;
|
|
182
|
-
const module = dataSource.
|
|
182
|
+
const module = dataSource.app;
|
|
183
183
|
|
|
184
184
|
const viewElementMainView = view.getViewElementUniqueName('tableView');
|
|
185
185
|
const nameGroup = genUniqueQueryNameGroup(module, view, viewElementMainView);
|
|
@@ -228,7 +228,7 @@ export function genTableColumnBlock(property: EntityProperty, oldNode: ViewEleme
|
|
|
228
228
|
const view = oldNode.view;
|
|
229
229
|
const entity = property.entity;
|
|
230
230
|
const dataSource = entity.parentNode as DataSource;
|
|
231
|
-
const module = dataSource.
|
|
231
|
+
const module = dataSource.app;
|
|
232
232
|
|
|
233
233
|
const viewElementMainView = view.getViewElementUniqueName('tableView');
|
|
234
234
|
const nameGroup = genUniqueQueryNameGroup(module, view, viewElementMainView);
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
|
|
17
17
|
export function genUpdateFormTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroupMap: Map<string, NameGroup>) {
|
|
18
18
|
const dataSource = entity.parentNode as DataSource;
|
|
19
|
-
const module = dataSource.parentNode as App | Module | Namespace;
|
|
20
19
|
const properties = entity.properties.filter(filterProperty('inForm'));
|
|
21
20
|
|
|
22
21
|
return `<u-form ref="${nameGroup.viewElementMainView}">
|
|
@@ -96,7 +95,7 @@ export function genUpdateFormTemplate(entity: Entity, nameGroup: NameGroup, sele
|
|
|
96
95
|
|
|
97
96
|
export function genH5UpdateFormTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroupMap: Map<string, NameGroup>) {
|
|
98
97
|
const dataSource = entity.parentNode as DataSource;
|
|
99
|
-
const module = dataSource.
|
|
98
|
+
const module = dataSource.app;
|
|
100
99
|
const properties = entity.properties.filter(filterProperty('inForm'));
|
|
101
100
|
|
|
102
101
|
return `<van-form ref="${nameGroup.viewElementMainView}">
|
|
@@ -264,7 +263,7 @@ function genLoadLogic(getLogic: Logic, nameGroup: NameGroup) {
|
|
|
264
263
|
export function genUpdateBlock(entity: Entity, oldNode: ViewElement) {
|
|
265
264
|
const view = oldNode.view;
|
|
266
265
|
const dataSource = entity.parentNode as DataSource;
|
|
267
|
-
const module = dataSource.
|
|
266
|
+
const module = dataSource.app;
|
|
268
267
|
const ns = entity.ns;
|
|
269
268
|
const getLogic = ns?.logics?.find((logic) => logic.name === `get`);
|
|
270
269
|
const updateLogic = ns?.logics?.find((logic) => logic.name === `update`);
|
package/src/utils/traverse.ts
CHANGED
|
@@ -25,6 +25,14 @@ export interface TraverseOptions {
|
|
|
25
25
|
excludedKeySet?: Set<string>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
const EXCLUDE_RULES = [
|
|
29
|
+
/^__.*__$/,
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
function isExcludeProperty(propertyName: string) {
|
|
33
|
+
return EXCLUDE_RULES.some(r => r.test(propertyName));
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
function handleNext<T extends INode>(func: (next: INodeInfo<T>) => any, current: INodeInfo<T>, options?: TraverseOptions) {
|
|
29
37
|
if (options.mode === 'onlyChildren') {
|
|
30
38
|
const list = current.node && current.node.children;
|
|
@@ -51,7 +59,7 @@ function handleNext<T extends INode>(func: (next: INodeInfo<T>) => any, current:
|
|
|
51
59
|
}
|
|
52
60
|
} else if (options.mode === 'onlyArray') {
|
|
53
61
|
for (const key in current.node) {
|
|
54
|
-
if (!current.node.hasOwnProperty(key) || options.excludedKeySet.has(key))
|
|
62
|
+
if (!current.node.hasOwnProperty(key) || options.excludedKeySet.has(key) || isExcludeProperty(key))
|
|
55
63
|
continue;
|
|
56
64
|
const value = current.node[key];
|
|
57
65
|
if (!Array.isArray(value))
|
|
@@ -79,7 +87,7 @@ function handleNext<T extends INode>(func: (next: INodeInfo<T>) => any, current:
|
|
|
79
87
|
}
|
|
80
88
|
} else if (options.mode === 'anyObject') {
|
|
81
89
|
for (const key in current.node) {
|
|
82
|
-
if (!current.node.hasOwnProperty(key) || options.excludedKeySet.has(key))
|
|
90
|
+
if (!current.node.hasOwnProperty(key) || options.excludedKeySet.has(key) || isExcludeProperty(key))
|
|
83
91
|
continue;
|
|
84
92
|
const value = current.node[key];
|
|
85
93
|
if (Array.isArray(value)) {
|
|
@@ -171847,6 +171847,9 @@ var ts;
|
|
|
171847
171847
|
ProjectService.prototype.doEnsureDefaultProjectForFile = function (fileName) {
|
|
171848
171848
|
this.ensureProjectStructuresUptoDate();
|
|
171849
171849
|
var scriptInfo = this.getScriptInfoForNormalizedPath(fileName);
|
|
171850
|
+
if (!scriptInfo) {
|
|
171851
|
+
console.log(fileName);
|
|
171852
|
+
}
|
|
171850
171853
|
return scriptInfo ? scriptInfo.getDefaultProject() : (this.logErrorForScriptInfoNotFound(fileName), server.Errors.ThrowNoProject());
|
|
171851
171854
|
};
|
|
171852
171855
|
ProjectService.prototype.getScriptInfoEnsuringProjectsUptoDate = function (uncheckedFileName) {
|
|
@@ -176745,7 +176748,7 @@ var ts;
|
|
|
176745
176748
|
if (left) {
|
|
176746
176749
|
typeInfo.typeNamespace = analyzeTypeNameSpace(left);
|
|
176747
176750
|
}
|
|
176748
|
-
} else if(Array.isArray(types)) {
|
|
176751
|
+
} else if (Array.isArray(types)) {
|
|
176749
176752
|
typeInfo.typeName = 'Union';
|
|
176750
176753
|
} else {
|
|
176751
176754
|
typeInfo.typeKind = 'anonymousStructure';
|
|
@@ -176897,7 +176900,10 @@ var ts;
|
|
|
176897
176900
|
}
|
|
176898
176901
|
}
|
|
176899
176902
|
}
|
|
176900
|
-
} else if (
|
|
176903
|
+
} else if ([
|
|
176904
|
+
2048/* SymbolFlags.TypeLiteral */,
|
|
176905
|
+
4096 /* SymbolFlags.ObjectLiteral */
|
|
176906
|
+
].includes(flags)) {
|
|
176901
176907
|
if (objectFlags & 16 /* ObjectFlags.Anonymous */) {
|
|
176902
176908
|
const typeNode = typeChecker.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(typeFlags) | 70221824 /* NodeBuilderFlags.IgnoreErrors */ | 0);
|
|
176903
176909
|
const { members } = typeNode || {};
|
|
@@ -176981,6 +176987,8 @@ var ts;
|
|
|
176981
176987
|
206, /* SyntaxKind.PropertyAccessExpression */
|
|
176982
176988
|
208, /* SyntaxKind.CallExpression */
|
|
176983
176989
|
209, /* SyntaxKind.NewExpression */
|
|
176990
|
+
212, /* SyntaxKind.ParenthesizedExpression */
|
|
176991
|
+
213, /* SyntaxKind.FunctionExpression */
|
|
176984
176992
|
].includes(node.kind)) {
|
|
176985
176993
|
const result = ts.isCallLikeExpression(node);
|
|
176986
176994
|
if (result) {
|
package/ts-worker/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
// const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
3
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
4
|
+
const pkg = require('./package.json');
|
|
3
5
|
|
|
4
6
|
module.exports = {
|
|
5
7
|
//mode: 'development',
|
|
@@ -8,8 +10,8 @@ module.exports = {
|
|
|
8
10
|
bundle: './src/index.js',
|
|
9
11
|
},
|
|
10
12
|
output: {
|
|
11
|
-
path: path.resolve(__dirname, '../../../src/static/'),
|
|
12
|
-
filename:
|
|
13
|
+
path: path.resolve(__dirname, '../../../src/static/ts-worker'),
|
|
14
|
+
filename: `${pkg.version}.js`,
|
|
13
15
|
},
|
|
14
16
|
target: 'webworker',
|
|
15
17
|
resolve: {
|
|
@@ -104,4 +106,11 @@ module.exports = {
|
|
|
104
106
|
},
|
|
105
107
|
},
|
|
106
108
|
},
|
|
109
|
+
optimization: {
|
|
110
|
+
minimizer: [
|
|
111
|
+
new TerserPlugin({
|
|
112
|
+
extractComments: false,
|
|
113
|
+
}),
|
|
114
|
+
],
|
|
115
|
+
},
|
|
107
116
|
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { TranslatorState } from '../translator';
|
|
2
|
-
import { Params } from '../common/EventEmitter';
|
|
3
|
-
import BaseNode from '../common/BaseNode';
|
|
4
|
-
/**
|
|
5
|
-
* 构造属性
|
|
6
|
-
*/
|
|
7
|
-
export declare class ConstructArgument extends BaseNode {
|
|
8
|
-
/**
|
|
9
|
-
* 产品概念
|
|
10
|
-
*/
|
|
11
|
-
concept: 'ConstructArgument';
|
|
12
|
-
/**
|
|
13
|
-
* keyword
|
|
14
|
-
*/
|
|
15
|
-
keyword: string;
|
|
16
|
-
/**
|
|
17
|
-
* expressionIndex
|
|
18
|
-
*/
|
|
19
|
-
expressionIndex: number;
|
|
20
|
-
/**
|
|
21
|
-
* @param source 需要合并的部分参数
|
|
22
|
-
*/
|
|
23
|
-
constructor(source?: Partial<ConstructArgument>);
|
|
24
|
-
static from(source: any, parentNode?: any, parentKey?: string): ConstructArgument;
|
|
25
|
-
/**
|
|
26
|
-
* 从父级删除该节点
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
_delete(): Params;
|
|
30
|
-
/**
|
|
31
|
-
* 设置keyword
|
|
32
|
-
*/
|
|
33
|
-
setKeyword(keyword: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* 设置expressionIndex
|
|
36
|
-
*/
|
|
37
|
-
setExpressionIndex(expressionIndex: number): void;
|
|
38
|
-
toEmbeddedTS(state?: TranslatorState): string;
|
|
39
|
-
}
|
|
40
|
-
export default ConstructArgument;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
var ConstructArgument_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.ConstructArgument = void 0;
|
|
14
|
-
const translator_1 = require("../translator");
|
|
15
|
-
const decorators_1 = require("../decorators");
|
|
16
|
-
const BaseNode_1 = __importDefault(require("../common/BaseNode"));
|
|
17
|
-
const classMap_1 = __importDefault(require("../common/classMap"));
|
|
18
|
-
/**
|
|
19
|
-
* 构造属性
|
|
20
|
-
*/
|
|
21
|
-
let ConstructArgument = ConstructArgument_1 = class ConstructArgument extends BaseNode_1.default {
|
|
22
|
-
/**
|
|
23
|
-
* 产品概念
|
|
24
|
-
*/
|
|
25
|
-
concept = 'ConstructArgument';
|
|
26
|
-
/**
|
|
27
|
-
* keyword
|
|
28
|
-
*/
|
|
29
|
-
keyword = undefined;
|
|
30
|
-
/**
|
|
31
|
-
* expressionIndex
|
|
32
|
-
*/
|
|
33
|
-
expressionIndex = undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @param source 需要合并的部分参数
|
|
36
|
-
*/
|
|
37
|
-
constructor(source) {
|
|
38
|
-
source = Object.assign({}, ConstructArgument_1.getDefaultOptions(), source);
|
|
39
|
-
super(source);
|
|
40
|
-
super.subConstructor(source);
|
|
41
|
-
}
|
|
42
|
-
static from(source, parentNode, parentKey) {
|
|
43
|
-
return super.from(source, parentNode, parentKey);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* 从父级删除该节点
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
_delete() {
|
|
50
|
-
let params = null;
|
|
51
|
-
if (this.parentNode) {
|
|
52
|
-
params = this.parentNode?.__removeConstructArgument?.(this);
|
|
53
|
-
}
|
|
54
|
-
return params;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* 设置keyword
|
|
58
|
-
*/
|
|
59
|
-
setKeyword(keyword) {
|
|
60
|
-
const object = {
|
|
61
|
-
keyword,
|
|
62
|
-
};
|
|
63
|
-
this.update({
|
|
64
|
-
...object,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* 设置expressionIndex
|
|
69
|
-
*/
|
|
70
|
-
setExpressionIndex(expressionIndex) {
|
|
71
|
-
const object = {
|
|
72
|
-
expressionIndex,
|
|
73
|
-
};
|
|
74
|
-
this.update({
|
|
75
|
-
...object,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
//================================================================================
|
|
79
|
-
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
80
|
-
// 自动生成的代码已结束。下面可以手动编写。
|
|
81
|
-
//================================================================================
|
|
82
|
-
toEmbeddedTS(state) {
|
|
83
|
-
return '';
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, decorators_1.property)()
|
|
88
|
-
], ConstructArgument.prototype, "concept", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, decorators_1.property)()
|
|
91
|
-
], ConstructArgument.prototype, "keyword", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, decorators_1.property)()
|
|
94
|
-
], ConstructArgument.prototype, "expressionIndex", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, translator_1.withSourceMap)()
|
|
97
|
-
], ConstructArgument.prototype, "toEmbeddedTS", null);
|
|
98
|
-
ConstructArgument = ConstructArgument_1 = __decorate([
|
|
99
|
-
(0, decorators_1.concept)('构造属性')
|
|
100
|
-
], ConstructArgument);
|
|
101
|
-
exports.ConstructArgument = ConstructArgument;
|
|
102
|
-
classMap_1.default.ConstructArgument = ConstructArgument;
|
|
103
|
-
exports.default = ConstructArgument;
|
|
104
|
-
//================================================================================
|
|
105
|
-
// ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
|
|
106
|
-
// 自动生成的代码已结束。下面可以手动编写。
|
|
107
|
-
//================================================================================
|
|
108
|
-
//# sourceMappingURL=ConstructArgument__.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConstructArgument__.js","sourceRoot":"","sources":["../../src/concepts/ConstructArgument__.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8CAA2E;AAQ3E,8CAAkE;AAIlE,kEAA0C;AAC1C,kEAA0C;AAG1C;;GAEG;AAEH,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,kBAAQ;IAC3C;;OAEG;IAEH,OAAO,GAAwB,mBAAmB,CAAC;IAEnD;;OAEG;IAEH,OAAO,GAAW,SAAS,CAAC;IAE5B;;OAEG;IAEH,eAAe,GAAW,SAAS,CAAC;IAIpC;;OAEG;IACH,YAAY,MAAmC;QAC3C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,mBAAiB,CAAC,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;QAC1E,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,MAAW,EAAE,UAAgB,EAAE,SAAkB;QACzD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAsB,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACH,OAAO;QACH,IAAI,MAAM,GAAW,IAAI,CAAC;QAC1B,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,MAAM,GAAI,IAAI,CAAC,UAAkB,EAAE,yBAAyB,EAAE,CAAC,IAAI,CAAC,CAAC;SACxE;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD;;OAEG;IACH,UAAU,CAAC,OAAe;QACtB,MAAM,MAAM,GAAG;YACX,OAAO;SACV,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,kBAAkB,CAAC,eAAuB;QACtC,MAAM,MAAM,GAAG;YACX,eAAe;SAClB,CAAC;QACF,IAAI,CAAC,MAAM,CAAC;YACR,GAAG,MAAM;SACZ,CAAC,CAAC;IACP,CAAC;IAMD,kFAAkF;IAClF,gEAAgE;IAChE,uBAAuB;IACvB,kFAAkF;IAElF,YAAY,CAAC,KAAuB;QAChC,OAAO,EAAE,CAAC;IACd,CAAC;CAKJ,CAAA;AAhFG;IADC,IAAA,qBAAQ,GAAE;kDACwC;AAMnD;IADC,IAAA,qBAAQ,GAAE;kDACiB;AAM5B;IADC,IAAA,qBAAQ,GAAE;0DACyB;AA6DpC;IADC,IAAA,0BAAa,GAAE;qDAGf;AAhFQ,iBAAiB;IAD7B,IAAA,oBAAO,EAAC,MAAM,CAAC;GACH,iBAAiB,CAqF7B;AArFY,8CAAiB;AAuF9B,kBAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AAC/C,kBAAe,iBAAiB,CAAC;AACjC,kFAAkF;AAClF,gEAAgE;AAChE,uBAAuB;AACvB,kFAAkF"}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { TranslatorState } from '../translator';
|
|
2
|
-
import { Params } from '../common/EventEmitter';
|
|
3
|
-
import TypeAnnotation from './TypeAnnotation__';
|
|
4
|
-
import ConstructArgument from './ConstructArgument__';
|
|
5
|
-
import MemberExpression from './MemberExpression__';
|
|
6
|
-
import LogicItem from './LogicItem__';
|
|
7
|
-
/**
|
|
8
|
-
* 构造器
|
|
9
|
-
*/
|
|
10
|
-
export declare class Construct extends LogicItem {
|
|
11
|
-
/**
|
|
12
|
-
* 产品概念
|
|
13
|
-
*/
|
|
14
|
-
concept: 'Construct';
|
|
15
|
-
/**
|
|
16
|
-
* 类型参数
|
|
17
|
-
*/
|
|
18
|
-
typeArguments?: Array<TypeAnnotation>;
|
|
19
|
-
/**
|
|
20
|
-
* 构造属性
|
|
21
|
-
*/
|
|
22
|
-
arguments: Array<ConstructArgument>;
|
|
23
|
-
/**
|
|
24
|
-
* 右边项
|
|
25
|
-
*/
|
|
26
|
-
rightExpressions: Array<MemberExpression>;
|
|
27
|
-
/**
|
|
28
|
-
* @param source 需要合并的部分参数
|
|
29
|
-
*/
|
|
30
|
-
constructor(source?: Partial<Construct>);
|
|
31
|
-
static from(source: any, parentNode?: any, parentKey?: string): Construct;
|
|
32
|
-
/**
|
|
33
|
-
* 设置右边项
|
|
34
|
-
*/
|
|
35
|
-
setRightExpressions(rightExpressions: Array<MemberExpression>): void;
|
|
36
|
-
/**
|
|
37
|
-
* 插入类型标注
|
|
38
|
-
* @internal
|
|
39
|
-
* @param typeAnnotationOptions 类型标注参数
|
|
40
|
-
*/
|
|
41
|
-
_insertTypeAnnotationAt(typeAnnotationOptions: Partial<TypeAnnotation>, index: number): TypeAnnotation;
|
|
42
|
-
/**
|
|
43
|
-
* 插入类型标注
|
|
44
|
-
* @internal
|
|
45
|
-
* @param typeAnnotation 已有的类型标注实例
|
|
46
|
-
*/
|
|
47
|
-
_insertTypeAnnotationAt(typeAnnotation: TypeAnnotation, index: number): TypeAnnotation;
|
|
48
|
-
/**
|
|
49
|
-
* 插入类型标注
|
|
50
|
-
* @param typeAnnotationOptions 类型标注参数
|
|
51
|
-
*/
|
|
52
|
-
insertTypeAnnotationAt(typeAnnotationOptions: Partial<TypeAnnotation>, index: number): TypeAnnotation;
|
|
53
|
-
/**
|
|
54
|
-
* 插入类型标注
|
|
55
|
-
* @param typeAnnotation 已有的类型标注实例
|
|
56
|
-
*/
|
|
57
|
-
insertTypeAnnotationAt(typeAnnotation: TypeAnnotation, index: number): TypeAnnotation;
|
|
58
|
-
/**
|
|
59
|
-
* 添加类型标注
|
|
60
|
-
* @internal
|
|
61
|
-
* @param typeAnnotationOptions 类型标注参数
|
|
62
|
-
*/
|
|
63
|
-
_addTypeAnnotation(typeAnnotationOptions: Partial<TypeAnnotation>): TypeAnnotation;
|
|
64
|
-
/**
|
|
65
|
-
* 添加类型标注
|
|
66
|
-
* @internal
|
|
67
|
-
* @param typeAnnotation 已有的类型标注实例
|
|
68
|
-
*/
|
|
69
|
-
_addTypeAnnotation(typeAnnotation: TypeAnnotation): TypeAnnotation;
|
|
70
|
-
/**
|
|
71
|
-
* 添加类型标注
|
|
72
|
-
* @param typeAnnotationOptions 类型标注参数
|
|
73
|
-
*/
|
|
74
|
-
addTypeAnnotation(typeAnnotationOptions: Partial<TypeAnnotation>): TypeAnnotation;
|
|
75
|
-
/**
|
|
76
|
-
* 添加类型标注
|
|
77
|
-
* @param typeAnnotation 已有的类型标注实例
|
|
78
|
-
*/
|
|
79
|
-
addTypeAnnotation(typeAnnotation: TypeAnnotation): TypeAnnotation;
|
|
80
|
-
/**
|
|
81
|
-
* 插入构造属性
|
|
82
|
-
* @internal
|
|
83
|
-
* @param constructArgumentOptions 构造属性参数
|
|
84
|
-
*/
|
|
85
|
-
_insertConstructArgumentAt(constructArgumentOptions: Partial<ConstructArgument>, index: number): ConstructArgument;
|
|
86
|
-
/**
|
|
87
|
-
* 插入构造属性
|
|
88
|
-
* @internal
|
|
89
|
-
* @param constructArgument 已有的构造属性实例
|
|
90
|
-
*/
|
|
91
|
-
_insertConstructArgumentAt(constructArgument: ConstructArgument, index: number): ConstructArgument;
|
|
92
|
-
/**
|
|
93
|
-
* 插入构造属性
|
|
94
|
-
* @param constructArgumentOptions 构造属性参数
|
|
95
|
-
*/
|
|
96
|
-
insertConstructArgumentAt(constructArgumentOptions: Partial<ConstructArgument>, index: number): ConstructArgument;
|
|
97
|
-
/**
|
|
98
|
-
* 插入构造属性
|
|
99
|
-
* @param constructArgument 已有的构造属性实例
|
|
100
|
-
*/
|
|
101
|
-
insertConstructArgumentAt(constructArgument: ConstructArgument, index: number): ConstructArgument;
|
|
102
|
-
/**
|
|
103
|
-
* 添加构造属性
|
|
104
|
-
* @internal
|
|
105
|
-
* @param constructArgumentOptions 构造属性参数
|
|
106
|
-
*/
|
|
107
|
-
_addConstructArgument(constructArgumentOptions: Partial<ConstructArgument>): ConstructArgument;
|
|
108
|
-
/**
|
|
109
|
-
* 添加构造属性
|
|
110
|
-
* @internal
|
|
111
|
-
* @param constructArgument 已有的构造属性实例
|
|
112
|
-
*/
|
|
113
|
-
_addConstructArgument(constructArgument: ConstructArgument): ConstructArgument;
|
|
114
|
-
/**
|
|
115
|
-
* 添加构造属性
|
|
116
|
-
* @param constructArgumentOptions 构造属性参数
|
|
117
|
-
*/
|
|
118
|
-
addConstructArgument(constructArgumentOptions: Partial<ConstructArgument>): ConstructArgument;
|
|
119
|
-
/**
|
|
120
|
-
* 添加构造属性
|
|
121
|
-
* @param constructArgument 已有的构造属性实例
|
|
122
|
-
*/
|
|
123
|
-
addConstructArgument(constructArgument: ConstructArgument): ConstructArgument;
|
|
124
|
-
/**
|
|
125
|
-
* 插入成员表达式
|
|
126
|
-
* @internal
|
|
127
|
-
* @param memberExpressionOptions 成员表达式参数
|
|
128
|
-
*/
|
|
129
|
-
_insertMemberExpressionAt(memberExpressionOptions: Partial<MemberExpression>, index: number): MemberExpression;
|
|
130
|
-
/**
|
|
131
|
-
* 插入成员表达式
|
|
132
|
-
* @internal
|
|
133
|
-
* @param memberExpression 已有的成员表达式实例
|
|
134
|
-
*/
|
|
135
|
-
_insertMemberExpressionAt(memberExpression: MemberExpression, index: number): MemberExpression;
|
|
136
|
-
/**
|
|
137
|
-
* 插入成员表达式
|
|
138
|
-
* @param memberExpressionOptions 成员表达式参数
|
|
139
|
-
*/
|
|
140
|
-
insertMemberExpressionAt(memberExpressionOptions: Partial<MemberExpression>, index: number): MemberExpression;
|
|
141
|
-
/**
|
|
142
|
-
* 插入成员表达式
|
|
143
|
-
* @param memberExpression 已有的成员表达式实例
|
|
144
|
-
*/
|
|
145
|
-
insertMemberExpressionAt(memberExpression: MemberExpression, index: number): MemberExpression;
|
|
146
|
-
/**
|
|
147
|
-
* 添加成员表达式
|
|
148
|
-
* @internal
|
|
149
|
-
* @param memberExpressionOptions 成员表达式参数
|
|
150
|
-
*/
|
|
151
|
-
_addMemberExpression(memberExpressionOptions: Partial<MemberExpression>): MemberExpression;
|
|
152
|
-
/**
|
|
153
|
-
* 添加成员表达式
|
|
154
|
-
* @internal
|
|
155
|
-
* @param memberExpression 已有的成员表达式实例
|
|
156
|
-
*/
|
|
157
|
-
_addMemberExpression(memberExpression: MemberExpression): MemberExpression;
|
|
158
|
-
/**
|
|
159
|
-
* 添加成员表达式
|
|
160
|
-
* @param memberExpressionOptions 成员表达式参数
|
|
161
|
-
*/
|
|
162
|
-
addMemberExpression(memberExpressionOptions: Partial<MemberExpression>): MemberExpression;
|
|
163
|
-
/**
|
|
164
|
-
* 添加成员表达式
|
|
165
|
-
* @param memberExpression 已有的成员表达式实例
|
|
166
|
-
*/
|
|
167
|
-
addMemberExpression(memberExpression: MemberExpression): MemberExpression;
|
|
168
|
-
/**
|
|
169
|
-
* 删除类型标注
|
|
170
|
-
* @param typeAnnotation 已有的类型标注实例
|
|
171
|
-
*/
|
|
172
|
-
removeTypeAnnotation(typeAnnotation: TypeAnnotation): void;
|
|
173
|
-
__removeTypeAnnotation(typeAnnotation: TypeAnnotation): Params;
|
|
174
|
-
/**
|
|
175
|
-
* 删除构造属性
|
|
176
|
-
* @param constructArgument 已有的构造属性实例
|
|
177
|
-
*/
|
|
178
|
-
removeConstructArgument(constructArgument: ConstructArgument): void;
|
|
179
|
-
__removeConstructArgument(constructArgument: ConstructArgument): Params;
|
|
180
|
-
/**
|
|
181
|
-
* 删除成员表达式
|
|
182
|
-
* @param memberExpression 已有的成员表达式实例
|
|
183
|
-
*/
|
|
184
|
-
removeMemberExpression(memberExpression: MemberExpression): void;
|
|
185
|
-
__removeLogicItem(logicItem: LogicItem): Params;
|
|
186
|
-
toJS(state?: TranslatorState): string;
|
|
187
|
-
toEmbeddedTS(state?: TranslatorState): string;
|
|
188
|
-
}
|
|
189
|
-
export default Construct;
|