@artel/artc 0.6.25206 → 0.6.25208
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/build/Cli.js +3 -3
- package/build/api/Api.js +32 -18
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +9964 -9262
- package/build/{chunk-LAJRVDPO.js → chunk-FABHNF5H.js} +8 -6
- package/build/{chunk-EDDZCW2I.js → chunk-LZ4IJBSA.js} +3 -4
- package/build/{chunk-AY3Z4HOX.js → chunk-PNUVVKWZ.js} +38838 -46249
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +10 -7
- package/build/types/analysis/Analyzer.d.ts +27 -10
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +6 -1
- package/build/types/analysis/DereferencedVariableAccess.d.ts +14 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +2 -5
- package/build/types/analysis/IndexedAccess.d.ts +14 -0
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +6 -3
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +2 -4
- package/build/types/analysis/SemanticContext.d.ts +4 -4
- package/build/types/analysis/VariableAccess.d.ts +6 -2
- package/build/types/analysis/index.d.ts +4 -2
- package/build/types/api/Api.d.ts +2 -2
- package/build/types/common/AccessKind.d.ts +2 -1
- package/build/types/common/Constants.d.ts +1 -1
- package/build/types/common/JavaScriptIdentifier.d.ts +6 -0
- package/build/types/common/Logger.d.ts +1 -0
- package/build/types/common/Name.d.ts +18 -21
- package/build/types/common/Query.d.ts +4 -0
- package/build/types/common/TreeQuery.d.ts +0 -2
- package/build/types/common/index.d.ts +2 -1
- package/build/types/emitter/Emitter.d.ts +50 -16
- package/build/types/emitter/EmitterContext.d.ts +42 -337
- package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +55 -17
- package/build/types/emitter/Entities.d.ts +144 -0
- package/build/types/emitter/EntityMap.d.ts +45 -0
- package/build/types/emitter/ExpressionTransformationResult.d.ts +1 -1
- package/build/types/emitter/GeneralLowering.d.ts +4 -68
- package/build/types/emitter/Internal.d.ts +0 -1
- package/build/types/emitter/IrBuilder.d.ts +27 -17
- package/build/types/emitter/IrToJs.d.ts +17 -11
- package/build/types/emitter/StatementTransformationResult.d.ts +5 -2
- package/build/types/emitter/Transformer.d.ts +21 -93
- package/build/types/emitter/ir/AccessedEntities.d.ts +5 -11
- package/build/types/emitter/ir/ComputedAccess.d.ts +19 -0
- package/build/types/emitter/ir/LoweringState.d.ts +25 -0
- package/build/types/emitter/ir/Nodes.d.ts +531 -1109
- package/build/types/emitter/ir/index.d.ts +3 -1
- package/build/types/emitter/ir/types.d.ts +6 -7
- package/build/types/entities/PackageMembers.d.ts +2 -2
- package/build/types/entities/TypeEntityMembers.d.ts +2 -2
- package/build/types/entities/Variants.d.ts +2 -2
- package/build/types/entities/index.d.ts +3 -1
- package/build/types/parser/Scanner.d.ts +1 -0
- package/build/types/project/CompilationLoader.d.ts +17 -22
- package/build/types/project/PackageContent.d.ts +16 -0
- package/build/types/project/PackageContentCreator.d.ts +3 -0
- package/build/types/project/SourceFile.d.ts +1 -1
- package/build/types/project/SourcePackage.d.ts +3 -3
- package/build/types/project/configuration/ConfigurationConverter.d.ts +2 -3
- package/build/types/project/configuration/ConfigurationTranslator.d.ts +23 -0
- package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +1 -27
- package/build/types/project/index.d.ts +3 -1
- package/build/types/services/AddPropertyAssignmentService.d.ts +2 -2
- package/build/types/services/CodeActionsService.d.ts +22 -0
- package/build/types/services/DefinitionService.d.ts +2 -2
- package/build/types/services/LanguageServer.d.ts +9 -2
- package/build/types/services/NodeSemanticInfo.d.ts +13 -7
- package/build/types/services/ReferencesService.d.ts +1 -3
- package/build/types/services/TranslationsGenerationService.d.ts +7 -0
- package/build/types/services/Types.d.ts +10 -0
- package/build/types/services/source-generation/SourceGenerationService.d.ts +6 -4
- package/build/types/services/workspace/CompilationController.d.ts +4 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +5 -2
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +1 -1
- package/build/types/services/workspace/Workspace.d.ts +5 -2
- package/build/types/services/workspace/WorkspaceFiles.d.ts +2 -2
- package/build/types/tree/KeywordKind.d.ts +47 -46
- package/build/types/tree/green/SyntaxToCode.d.ts +4 -3
- package/build/types/ts-interop/TsInteropContext.d.ts +2 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +3 -3
- package/build/types/ts-interop/Utils.d.ts +39 -33
- package/package.json +4 -5
- package/build/types/analysis/IndexerAccess.d.ts +0 -10
- package/build/types/emitter/EmitterPackage.d.ts +0 -60
- package/build/types/emitter/EntityNameProviders.d.ts +0 -33
- package/build/types/generated/BuiltInSystemPackages.d.ts +0 -3
- package/build/types/old/Executor.d.ts +0 -14
- package/build/types/old/JavaScriptEmittingVisitor.d.ts +0 -1
- package/build/types/old/NzonParser.d.ts +0 -1
- package/build/types/old/NzonScanner.d.ts +0 -1
- package/build/types/old/NzonSyntax.d.ts +0 -1
- package/build/types/old/RemoteWorkspaceFileSystem.d.ts +0 -1
- /package/build/types/{old/JavaScriptEmitter.d.ts → emitter/EmitterContextOld.d.ts} +0 -0
@@ -1,72 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { EmitterPackage } from './Emitter.js';
|
2
2
|
import { EmitterContext } from './EmitterContext.js';
|
3
|
-
import { RegisteredEntityNames } from './EntityNameProviders.js';
|
4
|
-
import { PackageMethodDeclaration, SourceFile } from './ir/index.js';
|
5
3
|
export declare class GeneralLowering {
|
6
4
|
private readonly _ectx;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
private readonly _extensionLikeMembersLowering;
|
11
|
-
private readonly _copyOnWriteLowering;
|
12
|
-
private readonly _modifyingMethodLowering;
|
13
|
-
private readonly _methodObjectLowering;
|
14
|
-
private readonly _textTemplateLowering;
|
15
|
-
private readonly _isExpressionLowering;
|
16
|
-
private readonly _enumerableLowering;
|
17
|
-
private readonly _overloadedConstructorsLowering;
|
18
|
-
private readonly _indexerSetAccessLowering;
|
19
|
-
private readonly _variableProxyLowering;
|
20
|
-
private readonly _packageEntryPointMethods;
|
21
|
-
private readonly _packageConstructorMethods;
|
22
|
-
private readonly _registeredEntityNames;
|
23
|
-
private readonly _lazyInlineJsMethod;
|
24
|
-
private get inlineJsMethod();
|
25
|
-
constructor(_ectx: EmitterContext, locale: PackageLocale);
|
26
|
-
lower(sourceFile: SourceFile): GeneralLoweringResult;
|
27
|
-
private excludeRedefinableMethodsFromAliasType;
|
28
|
-
private substituteBaseAliasType;
|
29
|
-
private lowerImplicitVariantAccessExpression;
|
30
|
-
private lowerImplicitConversionExpression;
|
31
|
-
private addRedefinableMethodsToPrototype;
|
32
|
-
private lowerMethodTypeInvokeMethodCall;
|
33
|
-
private lowerParamObjectMemberAccessExpression;
|
34
|
-
private removeObjectFromBaseTypes;
|
35
|
-
private removeUnnecessaryBaseConstructorCalls;
|
36
|
-
private registerUniqueRuntimeNamesForPackageMemberDeclarations;
|
37
|
-
private lowerAssignmentWithIntegerDivision;
|
38
|
-
private lowerBinaryExpressionWithIntegerDivision;
|
39
|
-
private moveInstanceFieldInitializationsToConstructor;
|
40
|
-
private extractStaticFieldInitializations;
|
41
|
-
private orderPackageMemberDeclarations;
|
42
|
-
private lowerInlineJsMethodCall;
|
43
|
-
private lowerBaseConstructorCall;
|
44
|
-
private lowerBlockStatementWithClauses;
|
45
|
-
private lowerRunStatementWithClauses;
|
46
|
-
private lowerNumericVariantVariants;
|
47
|
-
private lowerForStatementWithIndexVariable;
|
48
|
-
private lowerIndexerGetAccessExpression;
|
49
|
-
private lowerIndexerSetAccess;
|
50
|
-
private lowerJsIndexerGetAccessExpression;
|
51
|
-
private lowerJsIndexerSetAccess;
|
52
|
-
private lowerPackageVariableSetAccessExpression;
|
53
|
-
private lowerPackageVariableGetAccessExpression;
|
54
|
-
private lowerStructuredTypeIndexerDeclaration;
|
55
|
-
private lowerPackageEntryPointDeclaration;
|
56
|
-
private lowerPackageConstructorDeclaration;
|
57
|
-
private lowerComputedPackageVariableDeclaration;
|
58
|
-
private lowerPackageVariableGetterDeclaration;
|
59
|
-
private lowerPackageVariableSetterDeclaration;
|
60
|
-
private lowerSubprogramBody;
|
61
|
-
private lowerComputedTypeVariableDeclaration;
|
62
|
-
private registerRuntimeNamesForTypeMethods;
|
63
|
-
private registerRuntimeNamesForNestedMethodsOfBlockStatement;
|
64
|
-
private lowerTypeDereferenceOperatorDeclaration;
|
65
|
-
}
|
66
|
-
export declare class GeneralLoweringResult {
|
67
|
-
readonly sourceFile: SourceFile;
|
68
|
-
readonly registeredEntityNames: RegisteredEntityNames;
|
69
|
-
readonly packageEntryPointMethods: readonly PackageMethodDeclaration[];
|
70
|
-
readonly packageConstructorMethods: readonly PackageMethodDeclaration[];
|
71
|
-
constructor(sourceFile: SourceFile, registeredEntityNames: RegisteredEntityNames, packageEntryPointMethods: readonly PackageMethodDeclaration[], packageConstructorMethods: readonly PackageMethodDeclaration[]);
|
5
|
+
private readonly _packages;
|
6
|
+
constructor(ectx: EmitterContext, packages: readonly EmitterPackage[]);
|
7
|
+
lower(): void;
|
72
8
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
export * as blockStatementTransformationResult from './BlockStatementTransformationResult.js';
|
2
|
-
export * from './EmitterPackage.js';
|
3
2
|
export * as expressionTransformationResult from './ExpressionTransformationResult.js';
|
4
3
|
export * from './IrBuilder.js';
|
5
4
|
export * as packageMemberDeclarationTransformationResult from './PackageMemberDeclarationTransformationResult.js';
|
@@ -1,21 +1,25 @@
|
|
1
|
-
import { Analyzer } from '../analysis/index.js';
|
2
1
|
import { DeclarationsUsageCountResult } from '../analysis/DeclarationsUsageCounter.js';
|
2
|
+
import { Analyzer } from '../analysis/index.js';
|
3
3
|
import { SourceFile } from '../project/index.js';
|
4
|
+
import { EntityMap } from './EntityMap.js';
|
4
5
|
import * as ir from './ir/index.js';
|
5
6
|
export declare class IrBuilder {
|
6
7
|
private readonly _analyzer;
|
7
8
|
private readonly _sourceFile;
|
8
|
-
private readonly
|
9
|
+
private readonly _declarationsUsageCountResult;
|
10
|
+
private readonly _declarationsOfPackageSourceFilesUsageCountResults;
|
11
|
+
private readonly _entityMap;
|
9
12
|
private readonly _typesCreatedFromAnonymousTypes;
|
13
|
+
private readonly _textTemplateToTextMethod;
|
10
14
|
private _id;
|
11
15
|
private _currentLoopLabel;
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
private get textTemplateToTextMethod();
|
17
|
+
constructor(params: IrBuilderParams);
|
18
|
+
build(): ir.PackageMemberDeclaration[];
|
15
19
|
private buildPackageMemberDeclarationList;
|
16
20
|
private buildPackageConstructorDeclaration;
|
21
|
+
private buildBodyOfSubprogramWithResult;
|
17
22
|
private buildStatementBlock;
|
18
|
-
private buildRunStatementClause;
|
19
23
|
private buildStatement;
|
20
24
|
private buildAssignmentStatement;
|
21
25
|
private buildContinueLoopStatement;
|
@@ -25,7 +29,8 @@ export declare class IrBuilder {
|
|
25
29
|
private buildPackageStructuredTypeDeclaration;
|
26
30
|
private buildPackageAliasTypeDeclaration;
|
27
31
|
private buildPackageVariableDeclaration;
|
28
|
-
private
|
32
|
+
private buildPackageVariableGetterDeclaration;
|
33
|
+
private buildPackageVariableSetterDeclaration;
|
29
34
|
private buildBackingPackageVariable;
|
30
35
|
private buildPackageVariantTypeDeclaration;
|
31
36
|
private buildVariantDeclaration;
|
@@ -34,11 +39,14 @@ export declare class IrBuilder {
|
|
34
39
|
private buildTypeConstructorDeclaration;
|
35
40
|
private createDefaultStructuredTypeConstructor;
|
36
41
|
private buildTypeDestructorDeclaration;
|
37
|
-
private
|
38
|
-
private
|
42
|
+
private buildTypeIndexedGetterDeclaration;
|
43
|
+
private buildTypeIndexedSetterDeclaration;
|
44
|
+
private buildTypeDereferencedVariableGetterDeclaration;
|
45
|
+
private buildTypeDereferencedVariableSetterDeclaration;
|
39
46
|
private buildTypeMethodDeclaration;
|
40
47
|
private buildTypeVariableDeclaration;
|
41
|
-
private
|
48
|
+
private buildTypeVariableGetterDeclaration;
|
49
|
+
private buildTypeVariableSetterDeclaration;
|
42
50
|
private buildBackingTypeVariable;
|
43
51
|
private buildDisposeStatement;
|
44
52
|
private buildRunStatement;
|
@@ -51,16 +59,15 @@ export declare class IrBuilder {
|
|
51
59
|
private buildNestedMethodDeclarationStatement;
|
52
60
|
private buildParameterList;
|
53
61
|
private buildLocalVariableDeclarationStatement;
|
54
|
-
private buildUnobservableStatement;
|
55
62
|
private buildLoopStatement;
|
56
63
|
private buildReturnStatement;
|
57
64
|
private buildSwitchStatement;
|
58
65
|
private isDefaultSwitchStatementCaseClause;
|
59
|
-
private buildTransactionalStatement;
|
60
66
|
private buildWhileStatement;
|
61
67
|
private buildYieldStatement;
|
62
68
|
private buildExpression;
|
63
|
-
private
|
69
|
+
private applyImplicitConversionIfRequired;
|
70
|
+
private convertTextTemplateToText;
|
64
71
|
private expressionCanBeImplicitlyConverted;
|
65
72
|
private buildArrayLiteral;
|
66
73
|
private buildAssertionExpression;
|
@@ -72,12 +79,13 @@ export declare class IrBuilder {
|
|
72
79
|
private buildAutotypeCallExpression;
|
73
80
|
private buildIndexedAccessExpression;
|
74
81
|
private buildIsExpression;
|
75
|
-
private buildUnobservableExpression;
|
76
82
|
private buildNotExpression;
|
77
83
|
private buildMethodLiteral;
|
78
84
|
private buildParenthesizedExpression;
|
79
85
|
private buildPrefixUnaryExpression;
|
80
86
|
private buildPropertyAccessExpression;
|
87
|
+
private convertIndexedAccess;
|
88
|
+
private convertDereferencedVariableAccess;
|
81
89
|
private buildReferenceExpression;
|
82
90
|
private buildWhenTernaryExpression;
|
83
91
|
private buildTextTemplateLiteral;
|
@@ -85,11 +93,11 @@ export declare class IrBuilder {
|
|
85
93
|
private buildKeywordExpression;
|
86
94
|
private buildObjectExpression;
|
87
95
|
private buildBaseExpression;
|
88
|
-
private buildTransactionalExpression;
|
89
96
|
private buildDereferenceExpression;
|
90
97
|
private buildGenericSpecializationExpression;
|
91
98
|
private buildDefaultMatchExpression;
|
92
99
|
private buildIdentifierExpression;
|
100
|
+
private createExplicitReceiver;
|
93
101
|
private getEntityFromType;
|
94
102
|
private buildCallArgumentList;
|
95
103
|
private buildAndSaveTypeIfIsAnonymousTypeSpecifier;
|
@@ -98,11 +106,13 @@ export declare class IrBuilder {
|
|
98
106
|
private buildAnonymousVariantTypeDeclaration;
|
99
107
|
private getUnderlyingTypeKind;
|
100
108
|
private expressionIsCallee;
|
101
|
-
private preserveVariableOrUndefinedIfUnused;
|
102
109
|
private generateLoopLabel;
|
103
110
|
private getSourceLocation;
|
104
111
|
}
|
105
|
-
export interface
|
112
|
+
export interface IrBuilderParams {
|
113
|
+
analyzer: Analyzer;
|
114
|
+
sourceFile: SourceFile;
|
106
115
|
declarationsUsageCountResult: DeclarationsUsageCountResult;
|
107
116
|
declarationsOfPackageSourceFilesUsageCountResults: readonly DeclarationsUsageCountResult[];
|
117
|
+
entityMap: EntityMap;
|
108
118
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import * as js from '@babel/types';
|
2
2
|
import { DebugStack } from './DebugStack.js';
|
3
|
-
import {
|
3
|
+
import { Entity } from './Entities.js';
|
4
4
|
import * as ir from './ir/index.js';
|
5
|
-
export interface
|
5
|
+
export interface IrToJsOptions {
|
6
6
|
/**
|
7
7
|
* static: import { MyType } from 'my-lib'
|
8
8
|
*
|
9
9
|
* dynamic: const { MyType } = await import('my-lib')
|
10
10
|
*/
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
importMode?: ImportEmitMode;
|
12
|
+
entityNameOverrides?: ReadonlyMap<Entity, string>;
|
13
|
+
attachSourceLocation?: boolean;
|
14
14
|
}
|
15
15
|
export type ImportEmitMode = ImportEmitMode.Static | ImportEmitMode.Dynamic;
|
16
16
|
export declare namespace ImportEmitMode {
|
@@ -24,12 +24,14 @@ export declare namespace ImportEmitMode {
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
export declare class IrToJs {
|
27
|
-
private readonly _config;
|
28
27
|
static readonly customImportFunctionName = "_artelImport";
|
29
28
|
protected readonly _debugStack: DebugStack;
|
30
|
-
|
31
|
-
|
32
|
-
private
|
29
|
+
private _importMode;
|
30
|
+
private _entityNameOverrides;
|
31
|
+
private _attachSourceLocation;
|
32
|
+
constructor(options?: IrToJsOptions);
|
33
|
+
convert(pkg: ir.Package): js.File;
|
34
|
+
private convertPackage;
|
33
35
|
private convertPackageMemberDeclaration;
|
34
36
|
private convertEsModuleImportDirectiveStatement;
|
35
37
|
private convertCjsModuleImportDirectiveStatement;
|
@@ -42,7 +44,6 @@ export declare class IrToJs {
|
|
42
44
|
private convertPackageMethodDeclaration;
|
43
45
|
private convertValueParameters;
|
44
46
|
private convertPackageTypeDeclaration;
|
45
|
-
private convertPropertyDeclaration;
|
46
47
|
private convertPackageVariableDeclaration;
|
47
48
|
private convertPackageVariantTypeDeclaration;
|
48
49
|
private convertNumericVariants;
|
@@ -54,6 +55,7 @@ export declare class IrToJs {
|
|
54
55
|
private convertCallExpression;
|
55
56
|
private convertCharLiteral;
|
56
57
|
private convertNoneLiteral;
|
58
|
+
private convertIndexedAccessExpression;
|
57
59
|
private convertHelperMethodCallExpression;
|
58
60
|
private convertNotExpression;
|
59
61
|
private convertIntegerLiteral;
|
@@ -76,13 +78,14 @@ export declare class IrToJs {
|
|
76
78
|
private convertVariableAccessExpression;
|
77
79
|
private convertMethodAccessExpression;
|
78
80
|
private convertVariantAccessExpression;
|
79
|
-
private
|
81
|
+
private convertTypeVariableAccessExpression;
|
80
82
|
private convertTypeMethodAccessExpression;
|
81
83
|
private convertConstructorCallExpression;
|
82
84
|
private convertCallArguments;
|
83
85
|
private convertInlineJsExpression;
|
84
86
|
private convertAssignmentExpression;
|
85
87
|
private convertCommaExpression;
|
88
|
+
private convertBaseConstructorCallExpression;
|
86
89
|
private convertJsIndexedAccessExpression;
|
87
90
|
private convertJsObjectLiteral;
|
88
91
|
private convertJsPropertyAccessExpression;
|
@@ -108,6 +111,9 @@ export declare class IrToJs {
|
|
108
111
|
private convertTypeConstructorDeclaration;
|
109
112
|
private convertTypeMethodDeclaration;
|
110
113
|
private convertTypeVariableDeclaration;
|
114
|
+
private convertTypeVariableGetterDeclaration;
|
115
|
+
private convertTypeVariableSetterDeclaration;
|
111
116
|
private addNodeLocation;
|
117
|
+
private getEntityName;
|
112
118
|
private convertArrayWithErrorBoundary;
|
113
119
|
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { VariableEntity } from '
|
1
|
+
import { VariableEntity } from './Entities.js';
|
2
2
|
import { Statement } from './ir/index.js';
|
3
3
|
export declare const enum Kind {
|
4
4
|
Preserve = 0,
|
5
5
|
Replace = 1,
|
6
|
-
|
6
|
+
Remove = 2
|
7
7
|
}
|
8
8
|
export type Type = {
|
9
9
|
kind: Kind.Preserve;
|
@@ -11,6 +11,9 @@ export type Type = {
|
|
11
11
|
kind: Kind.Replace;
|
12
12
|
statement: Statement;
|
13
13
|
hoistedLocalVariables?: readonly VariableEntity[];
|
14
|
+
} | {
|
15
|
+
kind: Kind.Remove;
|
14
16
|
};
|
15
17
|
export declare function preserve(): Type;
|
16
18
|
export declare function replace(statement: Statement, hoistedLocalVariables?: readonly VariableEntity[]): Type;
|
19
|
+
export declare function remove(): Type;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { DereferenceOperatorEntity, IndexerEntity, VariableEntity } from '../entities/index.js';
|
2
1
|
import { DebugStack } from './DebugStack.js';
|
3
2
|
import { blockStatementTransformationResult, expressionTransformationResult, packageMemberDeclarationTransformationResult, simpleTransformationResult, statementTransformationResult, typeAccessExpressionTransformationResult, typeMemberDeclarationTransformationResult } from './Internal.js';
|
4
3
|
import { TransformationContinuationAction } from './TransformationContinuationAction.js';
|
@@ -7,17 +6,17 @@ export declare class Transformer {
|
|
7
6
|
readonly config: TransformationConfig;
|
8
7
|
protected readonly _debugStack: DebugStack;
|
9
8
|
private _hoistedLocalVariables;
|
10
|
-
private
|
11
|
-
get
|
9
|
+
private _transformedDeclaration;
|
10
|
+
get transformedDeclaration(): ir.Declaration | undefined;
|
12
11
|
constructor(config: TransformationConfig);
|
13
|
-
transform(
|
12
|
+
transform(pkg: ir.Package): void;
|
14
13
|
transformPackageMemberDeclaration(declaration: ir.PackageMemberDeclaration): readonly ir.PackageMemberDeclaration[];
|
15
|
-
transformPackageConstructorDeclarationChildren(declaration: ir.PackageConstructorDeclaration): void;
|
16
14
|
transformBlockStatement(statement: ir.BlockStatement): ir.BlockStatement;
|
17
15
|
transformStatement(statement: ir.Statement): readonly ir.Statement[];
|
18
16
|
transformAssignmentStatementChildren(statement: ir.AssignmentStatement): void;
|
19
17
|
transformBlockStatementChildren(statement: ir.BlockStatement): void;
|
20
|
-
|
18
|
+
transformOnErrorClause(node: ir.OnErrorClause): ir.OnErrorClause;
|
19
|
+
transformFinallyClause(node: ir.FinallyClause): ir.FinallyClause;
|
21
20
|
transformBreakLoopStatementChildren(_statement: ir.BreakLoopStatement): void;
|
22
21
|
transformContinueLoopStatementChildren(_statement: ir.ContinueLoopStatement): void;
|
23
22
|
transformDisposeStatementChildren(statement: ir.DisposeStatement): void;
|
@@ -36,41 +35,34 @@ export declare class Transformer {
|
|
36
35
|
};
|
37
36
|
transformLocalVariableDeclarationStatementChildren(statement: ir.LocalVariableDeclarationStatement): void;
|
38
37
|
transformLocalVariableDeclaration(declaration: ir.LocalVariableDeclaration): ir.LocalVariableDeclaration;
|
39
|
-
transformUnobservableStatementChildren(statement: ir.UnobservableStatement): void;
|
40
38
|
transformLoopStatementChildren(statement: ir.LoopStatement): void;
|
41
39
|
transformReturnStatementChildren(statement: ir.ReturnStatement): void;
|
42
40
|
transformSwitchStatementChildren(statement: ir.SwitchStatement): void;
|
43
41
|
transformCaseClause(caseClause: ir.CaseClause): ir.CaseClause;
|
44
|
-
transformTransactionalStatementChildren(statement: ir.TransactionalStatement): void;
|
45
42
|
transformWhileStatementChildren(statement: ir.WhileStatement): void;
|
46
43
|
transformYieldStatementChildren(statement: ir.YieldStatement): void;
|
47
44
|
transformTryCatchFinallyStatementChildren(statement: ir.TryCatchFinallyStatement): void;
|
48
45
|
transformEsModuleImportDirectiveStatementChildren(_statement: ir.EsModuleImportDirectiveStatement): void;
|
49
46
|
transformCjsModuleImportDirectiveStatementChildren(_statement: ir.CjsModuleImportDirectiveStatement): void;
|
50
47
|
transformJsNamespaceDestructuringStatementChildren(_statement: ir.JsNamespaceDestructuringStatement): void;
|
51
|
-
transformPackageEntryPointDeclarationChildren(declaration: ir.PackageEntryPointDeclaration): void;
|
52
48
|
transformPackageMethodDeclarationChildren(declaration: ir.PackageMethodDeclaration): void;
|
53
49
|
transformPackageTypeDeclarationChildren(declaration: ir.PackageTypeDeclaration): void;
|
54
50
|
transformTypeMemberDeclaration(declaration: ir.TypeMemberDeclaration): readonly ir.TypeMemberDeclaration[];
|
55
|
-
transformPropertyDeclarationChildren(declaration: ir.PropertyDeclaration): void;
|
56
51
|
transformTypeConstructorDeclarationChildren(declaration: ir.TypeConstructorDeclaration): void;
|
57
52
|
transformTypeDestructorDeclarationChildren(declaration: ir.TypeDestructorDeclaration): void;
|
58
|
-
transformTypeIndexerDeclarationChildren(declaration: ir.TypeIndexerDeclaration): void;
|
59
|
-
transformTypeDereferenceOperatorDeclarationChildren(declaration: ir.TypeDereferenceOperatorDeclaration): void;
|
60
|
-
transformTypeIndexedGetterDeclaration(declaration: ir.TypeIndexedGetterDeclaration, indexer: IndexerEntity): ir.TypeIndexedGetterDeclaration;
|
61
|
-
transformTypeIndexedSetterDeclaration(declaration: ir.TypeIndexedSetterDeclaration, indexer: IndexerEntity): ir.TypeIndexedSetterDeclaration;
|
62
|
-
transformTypeDereferencedVariableGetterDeclaration(declaration: ir.TypeDereferencedVariableGetterDeclaration, indexer: DereferenceOperatorEntity): ir.TypeDereferencedVariableGetterDeclaration;
|
63
|
-
transformTypeDereferencedVariableSetterDeclaration(declaration: ir.TypeDereferencedVariableSetterDeclaration, indexer: DereferenceOperatorEntity): ir.TypeDereferencedVariableSetterDeclaration;
|
64
53
|
transformTypeMethodDeclarationChildren(declaration: ir.TypeMethodDeclaration): void;
|
65
54
|
transformTypeVariableDeclarationChildren(declaration: ir.TypeVariableDeclaration): void;
|
66
|
-
|
67
|
-
|
55
|
+
transformTypeIndexedGetterDeclarationChildren(declaration: ir.TypeIndexedGetterDeclaration): void;
|
56
|
+
transformTypeIndexedSetterDeclarationChildren(declaration: ir.TypeIndexedSetterDeclaration): void;
|
57
|
+
transformTypeVariableGetterDeclarationChildren(declaration: ir.TypeVariableGetterDeclaration): void;
|
58
|
+
transformTypeVariableSetterDeclarationChildren(declaration: ir.TypeVariableSetterDeclaration): void;
|
59
|
+
transformTypeDereferencedVariableGetterDeclarationChildren(declaration: ir.TypeDereferencedVariableGetterDeclaration): void;
|
60
|
+
transformTypeDereferencedVariableSetterDeclarationChildren(declaration: ir.TypeDereferencedVariableSetterDeclaration): void;
|
68
61
|
transformPackageVariableDeclarationChildren(declaration: ir.PackageVariableDeclaration): void;
|
69
|
-
transformPackageVariableGetterDeclaration(declaration: ir.PackageVariableGetterDeclaration): ir.PackageVariableGetterDeclaration;
|
70
|
-
transformPackageVariableSetterDeclaration(declaration: ir.PackageVariableSetterDeclaration): ir.PackageVariableSetterDeclaration;
|
71
62
|
transformPackageVariantTypeDeclarationChildren(declaration: ir.PackageVariantTypeDeclaration): void;
|
72
63
|
transformVariantDeclaration(declaration: ir.VariantDeclaration): ir.VariantDeclaration;
|
73
|
-
|
64
|
+
transformPackageVariableGetterDeclarationChildren(declaration: ir.PackageVariableGetterDeclaration): void;
|
65
|
+
transformPackageVariableSetterDeclarationChildren(declaration: ir.PackageVariableSetterDeclaration): void;
|
74
66
|
transformExpression(expression: ir.Expression): ir.Expression;
|
75
67
|
transformAsExpressionChildren(expression: ir.AsExpression): void;
|
76
68
|
transformAssertionExpressionChildren(expression: ir.AssertionExpression): void;
|
@@ -85,7 +77,6 @@ export declare class Transformer {
|
|
85
77
|
transformIntegerLiteralChildren(_expression: ir.IntegerLiteral): void;
|
86
78
|
transformHelperMethodCallExpressionChildren(expression: ir.HelperMethodCallExpression): void;
|
87
79
|
transformIsExpressionChildren(expression: ir.IsExpression): void;
|
88
|
-
transformUnobservableExpressionChildren(expression: ir.UnobservableExpression): void;
|
89
80
|
transformNotExpressionChildren(expression: ir.NotExpression): void;
|
90
81
|
transformNumericLiteralChildren(_expression: ir.NumericLiteral): void;
|
91
82
|
transformMethodLiteralChildren(expression: ir.MethodLiteral): void;
|
@@ -97,12 +88,10 @@ export declare class Transformer {
|
|
97
88
|
transformTernaryExpressionChildren(expression: ir.TernaryExpression): void;
|
98
89
|
transformThisExpressionChildren(_expression: ir.ThisExpression): void;
|
99
90
|
transformBaseExpressionChildren(_expression: ir.BaseExpression): void;
|
100
|
-
transformTransactionalExpressionChildren(expression: ir.TransactionalExpression): void;
|
101
91
|
transformArrayLiteralChildren(expression: ir.ArrayLiteral): void;
|
102
92
|
transformTypeAccessExpressionChildren(_expression: ir.TypeAccessExpression): void;
|
103
93
|
transformVariableAccessExpressionChildren(_expression: ir.VariableAccessExpression): void;
|
104
94
|
transformMethodAccessExpressionChildren(_expression: ir.MethodAccessExpression): void;
|
105
|
-
transformImplicitVariantAccessExpressionChildren(_expression: ir.ImplicitVariantAccessExpression): void;
|
106
95
|
transformVariantAccessExpressionChildren(expression: ir.VariantAccessExpression): void;
|
107
96
|
transformTypeAccessExpression(expression: ir.TypeAccessExpression): ir.TypeAccessExpression;
|
108
97
|
transformInstanceVariableAccessExpressionChildren(expression: ir.TypeVariableAccessExpression): void;
|
@@ -117,7 +106,6 @@ export declare class Transformer {
|
|
117
106
|
transformJsObjectLiteralChildren(expression: ir.JsObjectLiteral): void;
|
118
107
|
transformJsPropertyAccessExpressionChildren(expression: ir.JsPropertyAccessExpression): void;
|
119
108
|
transformJsFunctionLiteralChildren(expression: ir.JsFunctionLiteral): void;
|
120
|
-
transformImplicitConversionExpressionChildren(expression: ir.ImplicitConversionExpression): void;
|
121
109
|
transformJsTypeOfExpressionChildren(expression: ir.JsTypeOfExpression): void;
|
122
110
|
transformJsInstanceOfExpressionChildren(expression: ir.JsInstanceOfExpression): void;
|
123
111
|
transformJsIdentifierExpressionChildren(_expression: ir.JsIdentifierExpression): void;
|
@@ -125,7 +113,6 @@ export declare class Transformer {
|
|
125
113
|
transformJsObjectLiteralProperty(property: ir.JsObjectLiteralProperty): ir.JsObjectLiteralProperty;
|
126
114
|
private transformArrayWithErrorBoundary;
|
127
115
|
private createLocalVariableDeclarations;
|
128
|
-
private withTransformingContainer;
|
129
116
|
}
|
130
117
|
interface TransformationConfig {
|
131
118
|
transformAssertionExpression?(expression: ir.AssertionExpression): expressionTransformationResult.Type;
|
@@ -135,7 +122,6 @@ interface TransformationConfig {
|
|
135
122
|
transformCallExpression?(expression: ir.CallExpression): expressionTransformationResult.Type;
|
136
123
|
transformIndexedAccessExpression?(expression: ir.IndexedAccessExpression): expressionTransformationResult.Type;
|
137
124
|
transformIsExpression?(expression: ir.IsExpression): expressionTransformationResult.Type;
|
138
|
-
transformUnobservableExpression?(expression: ir.UnobservableExpression): expressionTransformationResult.Type;
|
139
125
|
transformNotExpression?(expression: ir.NotExpression): expressionTransformationResult.Type;
|
140
126
|
transformMethodLiteral?(expression: ir.MethodLiteral): expressionTransformationResult.Type;
|
141
127
|
transformPrefixUnaryExpression?(expression: ir.PrefixUnaryExpression): expressionTransformationResult.Type;
|
@@ -145,12 +131,10 @@ interface TransformationConfig {
|
|
145
131
|
transformTypeAccessExpression?(expression: ir.TypeAccessExpression): typeAccessExpressionTransformationResult.TypeAccessExpressionTransformationResult;
|
146
132
|
transformVariableAccessExpression?(expression: ir.VariableAccessExpression): expressionTransformationResult.Type;
|
147
133
|
transformMethodAccessExpression?(expression: ir.MethodAccessExpression): expressionTransformationResult.Type;
|
148
|
-
transformImplicitVariantAccessExpression?(expression: ir.ImplicitVariantAccessExpression): expressionTransformationResult.Type;
|
149
134
|
transformVariantAccessExpression?(expression: ir.VariantAccessExpression): expressionTransformationResult.Type;
|
150
135
|
transformTypeVariableAccessExpression?(expression: ir.TypeVariableAccessExpression): expressionTransformationResult.Type;
|
151
136
|
transformTypeMethodAccessExpression?(expression: ir.TypeMethodAccessExpression): expressionTransformationResult.Type;
|
152
137
|
transformTextTemplateLiteral?(expression: ir.TextTemplateLiteral): expressionTransformationResult.Type;
|
153
|
-
transformTransactionalExpression?(expression: ir.TransactionalExpression): expressionTransformationResult.Type;
|
154
138
|
transformCharLiteral?(expression: ir.CharLiteral): expressionTransformationResult.Type;
|
155
139
|
transformTextLiteral?(expression: ir.TextLiteral): expressionTransformationResult.Type;
|
156
140
|
transformBooleanLiteral?(expression: ir.BooleanLiteral): expressionTransformationResult.Type;
|
@@ -171,7 +155,6 @@ interface TransformationConfig {
|
|
171
155
|
transformJsObjectLiteral?(expression: ir.JsObjectLiteral): expressionTransformationResult.Type;
|
172
156
|
transformJsPropertyAccessExpression?(expression: ir.JsPropertyAccessExpression): expressionTransformationResult.Type;
|
173
157
|
transformJsFunctionLiteral?(expression: ir.JsFunctionLiteral): expressionTransformationResult.Type;
|
174
|
-
transformImplicitConversionExpression?(expression: ir.ImplicitConversionExpression): expressionTransformationResult.Type;
|
175
158
|
transformJsTypeOfExpression?(expression: ir.JsTypeOfExpression): expressionTransformationResult.Type;
|
176
159
|
transformJsInstanceOfExpression?(expression: ir.JsInstanceOfExpression): expressionTransformationResult.Type;
|
177
160
|
transformJsIdentifierExpression?(expression: ir.JsIdentifierExpression): expressionTransformationResult.Type;
|
@@ -188,11 +171,9 @@ interface TransformationConfig {
|
|
188
171
|
transformIfStatement?(statement: ir.IfStatement): statementTransformationResult.Type;
|
189
172
|
transformNestedMethodDeclarationStatement?(statement: ir.NestedMethodDeclarationStatement): statementTransformationResult.Type;
|
190
173
|
transformLocalVariableDeclarationStatement?(statement: ir.LocalVariableDeclarationStatement): statementTransformationResult.Type;
|
191
|
-
transformUnobservableStatement?(statement: ir.UnobservableStatement): statementTransformationResult.Type;
|
192
174
|
transformLoopStatement?(statement: ir.LoopStatement): statementTransformationResult.Type;
|
193
175
|
transformReturnStatement?(statement: ir.ReturnStatement): statementTransformationResult.Type;
|
194
176
|
transformSwitchStatement?(statement: ir.SwitchStatement): statementTransformationResult.Type;
|
195
|
-
transformTransactionalStatement?(statement: ir.TransactionalStatement): statementTransformationResult.Type;
|
196
177
|
transformWhileStatement?(statement: ir.WhileStatement): statementTransformationResult.Type;
|
197
178
|
transformYieldStatement?(statement: ir.YieldStatement): statementTransformationResult.Type;
|
198
179
|
transformAssignmentStatement?(statement: ir.AssignmentStatement): statementTransformationResult.Type;
|
@@ -200,83 +181,30 @@ interface TransformationConfig {
|
|
200
181
|
transformEsModuleImportDirectiveStatement?(statement: ir.EsModuleImportDirectiveStatement): statementTransformationResult.Type;
|
201
182
|
transformCjsModuleImportDirectiveStatement?(statement: ir.CjsModuleImportDirectiveStatement): statementTransformationResult.Type;
|
202
183
|
transformJsNamespaceDestructuringStatement?(statement: ir.JsNamespaceDestructuringStatement): statementTransformationResult.Type;
|
203
|
-
transformPackageConstructorDeclaration?(declaration: ir.PackageConstructorDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
204
|
-
transformPackageEntryPointDeclaration?(declaration: ir.PackageEntryPointDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
205
184
|
transformPackageMethodDeclaration?(declaration: ir.PackageMethodDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
206
185
|
transformPackageTypeDeclaration?(declaration: ir.PackageTypeDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
207
186
|
transformPackageVariableDeclaration?(declaration: ir.PackageVariableDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
208
|
-
transformPackageVariableGetterDeclaration?(declaration: ir.PackageVariableGetterDeclaration):
|
209
|
-
transformPackageVariableSetterDeclaration?(declaration: ir.PackageVariableSetterDeclaration):
|
187
|
+
transformPackageVariableGetterDeclaration?(declaration: ir.PackageVariableGetterDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
188
|
+
transformPackageVariableSetterDeclaration?(declaration: ir.PackageVariableSetterDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
210
189
|
transformPackageVariantTypeDeclaration?(declaration: ir.PackageVariantTypeDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
211
|
-
transformTypeExtensionDeclaration?(declaration: ir.TypeExtensionDeclaration): packageMemberDeclarationTransformationResult.PackageMemberDeclarationTransformationResult;
|
212
190
|
transformTypeVariableDeclaration?(declaration: ir.TypeVariableDeclaration): typeMemberDeclarationTransformationResult.Type;
|
213
191
|
transformTypeMethodDeclaration?(declaration: ir.TypeMethodDeclaration): typeMemberDeclarationTransformationResult.Type;
|
214
192
|
transformTypeConstructorDeclaration?(declaration: ir.TypeConstructorDeclaration): typeMemberDeclarationTransformationResult.Type;
|
215
193
|
transformTypeDestructorDeclaration?(declaration: ir.TypeDestructorDeclaration): typeMemberDeclarationTransformationResult.Type;
|
216
|
-
|
217
|
-
|
218
|
-
|
194
|
+
transformTypeIndexedGetterDeclaration?(declaration: ir.TypeIndexedGetterDeclaration): typeMemberDeclarationTransformationResult.Type;
|
195
|
+
transformTypeIndexedSetterDeclaration?(declaration: ir.TypeIndexedSetterDeclaration): typeMemberDeclarationTransformationResult.Type;
|
196
|
+
transformTypeDereferencedVariableGetterDeclaration?(declaration: ir.TypeDereferencedVariableGetterDeclaration): typeMemberDeclarationTransformationResult.Type;
|
197
|
+
transformTypeDereferencedVariableSetterDeclaration?(declaration: ir.TypeDereferencedVariableSetterDeclaration): typeMemberDeclarationTransformationResult.Type;
|
198
|
+
transformTypeVariableGetterDeclaration?(declaration: ir.TypeVariableGetterDeclaration): typeMemberDeclarationTransformationResult.Type;
|
199
|
+
transformTypeVariableSetterDeclaration?(declaration: ir.TypeVariableSetterDeclaration): typeMemberDeclarationTransformationResult.Type;
|
219
200
|
transformNestedMethodDeclaration?(declaration: ir.NestedMethodDeclaration): simpleTransformationResult.Type<ir.NestedMethodDeclaration>;
|
220
201
|
transformLocalVariableDeclaration?(declaration: ir.LocalVariableDeclaration): simpleTransformationResult.Type<ir.LocalVariableDeclaration>;
|
221
202
|
transformValueParameterDeclaration?(declaration: ir.ValueParameterDeclaration): simpleTransformationResult.Type<ir.ValueParameterDeclaration>;
|
222
203
|
transformCaseClause?(declaration: ir.CaseClause): simpleTransformationResult.Type<ir.CaseClause>;
|
223
|
-
transformTypeIndexedGetterDeclaration?(declaration: ir.TypeIndexedGetterDeclaration): simpleTransformationResult.Type<ir.TypeIndexedGetterDeclaration>;
|
224
|
-
transformTypeIndexedSetterDeclaration?(declaration: ir.TypeIndexedSetterDeclaration): simpleTransformationResult.Type<ir.TypeIndexedSetterDeclaration>;
|
225
|
-
transformTypeDereferencedVariableGetterDeclaration?(declaration: ir.TypeDereferencedVariableGetterDeclaration): simpleTransformationResult.Type<ir.TypeDereferencedVariableGetterDeclaration>;
|
226
|
-
transformTypeDereferencedVariableSetterDeclaration?(declaration: ir.TypeDereferencedVariableSetterDeclaration): simpleTransformationResult.Type<ir.TypeDereferencedVariableSetterDeclaration>;
|
227
|
-
transformTypeVariableGetterDeclaration?(declaration: ir.TypeVariableGetterDeclaration): simpleTransformationResult.Type<ir.TypeVariableGetterDeclaration>;
|
228
|
-
transformTypeVariableSetterDeclaration?(declaration: ir.TypeVariableSetterDeclaration): simpleTransformationResult.Type<ir.TypeVariableSetterDeclaration>;
|
229
204
|
transformVariantDeclaration?(declaration: ir.VariantDeclaration): simpleTransformationResult.Type<ir.VariantDeclaration>;
|
230
205
|
transformCallArguments?(declaration: ir.CallArguments): simpleTransformationResult.Type<ir.CallArguments>;
|
231
206
|
transformOnErrorClause?(clause: ir.OnErrorClause): simpleTransformationResult.Type<ir.OnErrorClause>;
|
232
207
|
transformFinallyClause?(clause: ir.FinallyClause): simpleTransformationResult.Type<ir.FinallyClause>;
|
233
208
|
transformJsObjectLiteralProperty?(clause: ir.JsObjectLiteralProperty): simpleTransformationResult.Type<ir.JsObjectLiteralProperty>;
|
234
209
|
}
|
235
|
-
export type TransformingContainer = TransformingContainer_typeMethod | TransformingContainer_typeConstructor | TransformingContainer_typeIndexedGetter | TransformingContainer_typeIndexedSetter | TransformingContainer_typeDereferencedVariableGetter | TransformingContainer_typeDereferencedVariableSetter | TransformingContainer_typeVariableGetter | TransformingContainer_typeVariableSetter;
|
236
|
-
export declare class TransformingContainer_typeMethod {
|
237
|
-
readonly declaration: ir.TypeMethodDeclaration;
|
238
|
-
readonly kind = "type-method";
|
239
|
-
constructor(declaration: ir.TypeMethodDeclaration);
|
240
|
-
}
|
241
|
-
export declare class TransformingContainer_typeConstructor {
|
242
|
-
readonly declaration: ir.TypeConstructorDeclaration;
|
243
|
-
readonly kind = "type-constructor";
|
244
|
-
constructor(declaration: ir.TypeConstructorDeclaration);
|
245
|
-
}
|
246
|
-
export declare class TransformingContainer_typeIndexedGetter {
|
247
|
-
readonly declaration: ir.TypeIndexedGetterDeclaration;
|
248
|
-
readonly indexer: IndexerEntity;
|
249
|
-
readonly kind = "type-indexed-getter";
|
250
|
-
constructor(declaration: ir.TypeIndexedGetterDeclaration, indexer: IndexerEntity);
|
251
|
-
}
|
252
|
-
export declare class TransformingContainer_typeIndexedSetter {
|
253
|
-
readonly declaration: ir.TypeIndexedSetterDeclaration;
|
254
|
-
readonly indexer: IndexerEntity;
|
255
|
-
readonly kind = "type-indexed-setter";
|
256
|
-
constructor(declaration: ir.TypeIndexedSetterDeclaration, indexer: IndexerEntity);
|
257
|
-
}
|
258
|
-
export declare class TransformingContainer_typeDereferencedVariableGetter {
|
259
|
-
readonly declaration: ir.TypeDereferencedVariableGetterDeclaration;
|
260
|
-
readonly operator: DereferenceOperatorEntity;
|
261
|
-
readonly kind = "type-dereferenced-variable-getter";
|
262
|
-
constructor(declaration: ir.TypeDereferencedVariableGetterDeclaration, operator: DereferenceOperatorEntity);
|
263
|
-
}
|
264
|
-
export declare class TransformingContainer_typeDereferencedVariableSetter {
|
265
|
-
readonly declaration: ir.TypeDereferencedVariableSetterDeclaration;
|
266
|
-
readonly operator: DereferenceOperatorEntity;
|
267
|
-
readonly kind = "type-dereferenced-variable-setter";
|
268
|
-
constructor(declaration: ir.TypeDereferencedVariableSetterDeclaration, operator: DereferenceOperatorEntity);
|
269
|
-
}
|
270
|
-
export declare class TransformingContainer_typeVariableGetter {
|
271
|
-
readonly declaration: ir.TypeVariableGetterDeclaration;
|
272
|
-
readonly variable: VariableEntity;
|
273
|
-
readonly kind = "type-variable-getter";
|
274
|
-
constructor(declaration: ir.TypeVariableGetterDeclaration, variable: VariableEntity);
|
275
|
-
}
|
276
|
-
export declare class TransformingContainer_typeVariableSetter {
|
277
|
-
readonly declaration: ir.TypeVariableSetterDeclaration;
|
278
|
-
readonly variable: VariableEntity;
|
279
|
-
readonly kind = "type-variable-setter";
|
280
|
-
constructor(declaration: ir.TypeVariableSetterDeclaration, variable: VariableEntity);
|
281
|
-
}
|
282
210
|
export {};
|
@@ -1,19 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import * as types from '../../types/index.js';
|
1
|
+
import { MethodEntity, Type, VariableEntity } from '../Entities.js';
|
3
2
|
export declare class AccessedVariable {
|
4
3
|
readonly entity: VariableEntity;
|
5
|
-
readonly type:
|
6
|
-
constructor(entity: VariableEntity, type:
|
4
|
+
readonly type: Type;
|
5
|
+
constructor(entity: VariableEntity, type: Type);
|
7
6
|
static fromEntity(entity: VariableEntity): AccessedVariable;
|
8
7
|
}
|
9
8
|
export declare class AccessedMethod {
|
10
9
|
readonly entity: MethodEntity;
|
11
|
-
readonly returnType:
|
12
|
-
constructor(entity: MethodEntity, returnType:
|
10
|
+
readonly returnType: Type;
|
11
|
+
constructor(entity: MethodEntity, returnType: Type);
|
13
12
|
static fromEntity(entity: MethodEntity): AccessedMethod;
|
14
13
|
}
|
15
|
-
export declare class AccessedIndexer {
|
16
|
-
readonly entity: IndexerEntity;
|
17
|
-
readonly type: types.Type;
|
18
|
-
constructor(entity: IndexerEntity, type: types.Type);
|
19
|
-
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { AccessKind } from '../../common/index.js';
|
2
|
+
import { AccessedMethod } from './AccessedEntities.js';
|
3
|
+
export type ComputedAccess = {
|
4
|
+
kind: AccessKind.Get;
|
5
|
+
getAccessor: AccessedMethod;
|
6
|
+
} | {
|
7
|
+
kind: AccessKind.Set;
|
8
|
+
setAccessor: AccessedMethod;
|
9
|
+
} | {
|
10
|
+
kind: AccessKind.GetSet;
|
11
|
+
getAccessor: AccessedMethod;
|
12
|
+
setAccessor: AccessedMethod;
|
13
|
+
};
|
14
|
+
export declare function isGetOrGetSet(access: ComputedAccess): access is AccessByKind<AccessKind.Get | AccessKind.GetSet>;
|
15
|
+
export declare function isSetOrGetSet(access: ComputedAccess): access is AccessByKind<AccessKind.Set | AccessKind.GetSet>;
|
16
|
+
type AccessByKind<TKind extends AccessKind, TAccess extends ComputedAccess = ComputedAccess> = TAccess extends {
|
17
|
+
kind: TKind;
|
18
|
+
} ? TAccess : never;
|
19
|
+
export {};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
export declare class CallExpressionLoweringState {
|
2
|
+
private flags;
|
3
|
+
constructor(flags?: MethodCallExpressionLoweringFlags);
|
4
|
+
get isAliasOrExtensionMethodCallLowered(): boolean;
|
5
|
+
set isAliasOrExtensionMethodCallLowered(value: boolean);
|
6
|
+
setIsAliasOrExtensionMethodCallLowered(value: boolean): this;
|
7
|
+
clone(): CallExpressionLoweringState;
|
8
|
+
}
|
9
|
+
declare const enum MethodCallExpressionLoweringFlags {
|
10
|
+
None = 0,
|
11
|
+
AliasOrExtensionMethodCallLowered = 1
|
12
|
+
}
|
13
|
+
export declare class ConstructorCallExpressionLoweringState {
|
14
|
+
private flags;
|
15
|
+
constructor(flags?: ConstructorCallExpressionLoweringFlags);
|
16
|
+
get isPlainObjectConstructorCallLowered(): boolean;
|
17
|
+
set isPlainObjectConstructorCallLowered(value: boolean);
|
18
|
+
setIsPlainObjectConstructorCallLowered(value: boolean): this;
|
19
|
+
clone(): ConstructorCallExpressionLoweringState;
|
20
|
+
}
|
21
|
+
declare const enum ConstructorCallExpressionLoweringFlags {
|
22
|
+
None = 0,
|
23
|
+
PlainObjectConstructorCallLowered = 1
|
24
|
+
}
|
25
|
+
export {};
|