@artel/artc 0.6.25259 → 0.6.25261
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 +28 -20
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1266 -1217
- package/build/{chunk-HE4MTX63.js → chunk-66RH6JKB.js} +14377 -13458
- package/build/{chunk-VQI5PLBW.js → chunk-7OS2G5WZ.js} +1 -1
- package/build/{chunk-GVYF4DV5.js → chunk-UWQKBRAT.js} +11 -11
- package/build/types/analysis/AccessedFunction.d.ts +11 -11
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
- package/build/types/analysis/Analyzer.d.ts +184 -168
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
- package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
- package/build/types/analysis/AssignmentChecker.d.ts +4 -4
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
- package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
- package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
- package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
- package/build/types/analysis/DisplayableEntity.d.ts +30 -30
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ModifierValidator.d.ts +3 -3
- package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +13 -13
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
- package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
- package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
- package/build/types/analysis/SourceFileMembers.d.ts +6 -6
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
- package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/Tags.d.ts +8 -7
- package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
- package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
- package/build/types/analysis/TypeInferrer.d.ts +4 -4
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
- package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
- package/build/types/analysis/TypeNarrower.d.ts +7 -7
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
- package/build/types/analysis/Utils.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
- package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
- package/build/types/api/Api.d.ts +2 -2
- package/build/types/common/Cached.d.ts +3 -3
- package/build/types/common/CancellationToken.d.ts +2 -2
- package/build/types/common/Delayed.d.ts +2 -2
- package/build/types/common/Displayable.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/Interner.d.ts +1 -1
- package/build/types/common/Lazy.d.ts +3 -3
- package/build/types/common/Option.d.ts +2 -2
- package/build/types/common/PerformanceMeasurement.d.ts +2 -2
- package/build/types/common/Query.d.ts +15 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
- package/build/types/common/TreeQuery.d.ts +2 -5
- package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
- package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
- package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
- package/build/types/emitter/DebugStack.d.ts +2 -2
- package/build/types/emitter/Emitter.d.ts +5 -5
- package/build/types/emitter/EmitterContext.d.ts +21 -21
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/GeneralLowering.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +10 -10
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
- package/build/types/emitter/ir/Nodes.d.ts +28 -27
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/AliasTypeEntity.d.ts +15 -12
- package/build/types/entities/AliasedType.d.ts +2 -2
- package/build/types/entities/BaseAspectTypes.d.ts +31 -0
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +31 -0
- package/build/types/entities/ConstructorEntity.d.ts +51 -38
- package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
- package/build/types/entities/DestructorEntity.d.ts +21 -14
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
- package/build/types/entities/FunctionEntity.d.ts +86 -70
- package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
- package/build/types/entities/GetterEntity.d.ts +51 -30
- package/build/types/entities/IEntity.d.ts +12 -0
- package/build/types/entities/IndexerEntity.d.ts +24 -24
- package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
- package/build/types/entities/OperatorEntity.d.ts +23 -16
- package/build/types/entities/PackageAliasEntity.d.ts +15 -9
- package/build/types/entities/PackageEntity.d.ts +15 -10
- package/build/types/entities/PackageMembers.d.ts +5 -5
- package/build/types/entities/SetterEntity.d.ts +50 -29
- package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeEntityMembers.d.ts +11 -11
- package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
- package/build/types/entities/TypeParameterEntity.d.ts +28 -21
- package/build/types/entities/VariableEntity.d.ts +236 -179
- package/build/types/entities/VariantTypeEntity.d.ts +28 -22
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
- package/build/types/executor/NodeCompiler.d.ts +3 -3
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
- package/build/types/parser/Parser.d.ts +1 -1
- package/build/types/parser/TriviaInterner.d.ts +3 -3
- package/build/types/project/Compilation.d.ts +3 -3
- package/build/types/project/CompilationLoader.d.ts +5 -5
- package/build/types/project/FileSystemTree.d.ts +6 -6
- package/build/types/project/SourceFile.d.ts +2 -2
- package/build/types/project/SourcePackage.d.ts +1 -1
- package/build/types/project/TextFile.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
- package/build/types/services/AssignFieldService.d.ts +10 -0
- package/build/types/services/CodeActionsService.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/CustomCommand.d.ts +13 -7
- package/build/types/services/DefinitionService.d.ts +1 -1
- package/build/types/services/DisplayService.d.ts +76 -80
- package/build/types/services/DocumentHighlightsService.d.ts +1 -1
- package/build/types/services/HoverService.d.ts +3 -3
- package/build/types/services/LanguageServer.d.ts +32 -32
- package/build/types/services/NodeSemanticInfo.d.ts +9 -9
- package/build/types/services/ProjectItemsService.d.ts +1 -1
- package/build/types/services/RenameService.d.ts +1 -1
- package/build/types/services/SemanticTokensService.d.ts +1 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
- package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
- package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +22 -22
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +7 -7
- package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
- package/build/types/tree/BaseNode.d.ts +12 -3
- package/build/types/tree/NodeKind.d.ts +56 -57
- package/build/types/tree/Nodes.d.ts +18 -20
- package/build/types/tree/SyntaxToCode.d.ts +11 -11
- package/build/types/ts-interop/Entities.d.ts +326 -263
- package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
- package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
- package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
- package/build/types/types/AliasType.d.ts +6 -5
- package/build/types/types/FunctionType.d.ts +8 -7
- package/build/types/types/IntersectionType.d.ts +3 -2
- package/build/types/types/ParameterType.d.ts +5 -4
- package/build/types/types/StandardTypes.d.ts +21 -21
- package/build/types/types/StructuredType.d.ts +9 -10
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -0
- package/build/types/types/TypeMembers.d.ts +42 -42
- package/build/types/types/UnionType.d.ts +3 -2
- package/build/types/types/UnresolvedType.d.ts +3 -2
- package/build/types/types/VariantType.d.ts +5 -4
- package/package.json +1 -1
- package/build/types/entities/TypeMemberContainer.d.ts +0 -23
- package/build/types/services/AddPropertyAssignmentService.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class AssignmentEmitOptions {
|
|
2
|
-
private
|
|
2
|
+
private flags;
|
|
3
3
|
constructor(flags?: AssignmentEmitOptionsFlags);
|
|
4
4
|
constructor(incrementReferenceCountIfRequired: boolean, decrementReferenceCountIfRequired: boolean, performCopyIfRequired: boolean);
|
|
5
5
|
static default(): AssignmentEmitOptions;
|
|
@@ -21,7 +21,7 @@ declare enum AssignmentEmitOptionsFlags {
|
|
|
21
21
|
DecrementReferenceCountIfRequired = 4
|
|
22
22
|
}
|
|
23
23
|
export declare class DeclarationWithInitializerEmitOptions {
|
|
24
|
-
private
|
|
24
|
+
private flags;
|
|
25
25
|
constructor(flags?: DeclarationWithInitializerEmitOptionsFlags);
|
|
26
26
|
constructor(incrementReferenceCountIfRequired: boolean);
|
|
27
27
|
static default(): DeclarationWithInitializerEmitOptions;
|
|
@@ -35,7 +35,7 @@ declare enum DeclarationWithInitializerEmitOptionsFlags {
|
|
|
35
35
|
IncrementReferenceCountIfRequired = 1
|
|
36
36
|
}
|
|
37
37
|
export declare class FunctionAccessExpressionEmitOptions {
|
|
38
|
-
private
|
|
38
|
+
private flags;
|
|
39
39
|
constructor(flags?: FunctionAccessExpressionEmitOptionsFlags);
|
|
40
40
|
constructor(bindIfNotCallee: boolean, forceUseNonComputedName?: boolean);
|
|
41
41
|
static default(): FunctionAccessExpressionEmitOptions;
|
|
@@ -53,7 +53,7 @@ declare enum FunctionAccessExpressionEmitOptionsFlags {
|
|
|
53
53
|
ForceUseNonComputedName = 2
|
|
54
54
|
}
|
|
55
55
|
export declare class FieldAccessExpressionEmitOptions {
|
|
56
|
-
private
|
|
56
|
+
private flags;
|
|
57
57
|
constructor(flags?: FieldAccessExpressionEmitOptionsFlags);
|
|
58
58
|
constructor(forceUseNonComputedName: boolean);
|
|
59
59
|
static default(): FieldAccessExpressionEmitOptions;
|
|
@@ -67,7 +67,7 @@ declare enum FieldAccessExpressionEmitOptionsFlags {
|
|
|
67
67
|
ForceUseNonComputedName = 1
|
|
68
68
|
}
|
|
69
69
|
export declare class TextTemplateEmitOptions {
|
|
70
|
-
private
|
|
70
|
+
private flags;
|
|
71
71
|
constructor(flags?: TextTemplateEmitOptionsFlags);
|
|
72
72
|
constructor(createTextTemplateInstance: boolean);
|
|
73
73
|
static default(): TextTemplateEmitOptions;
|
|
@@ -81,7 +81,7 @@ declare enum TextTemplateEmitOptionsFlags {
|
|
|
81
81
|
CreateTextTemplateInstance = 1
|
|
82
82
|
}
|
|
83
83
|
export declare class CallExpressionEmitOptions {
|
|
84
|
-
private
|
|
84
|
+
private flags;
|
|
85
85
|
constructor(flags?: CallExpressionEmitOptionsFlags);
|
|
86
86
|
constructor(isAliasOrExtensionMethodCallLowered: boolean);
|
|
87
87
|
static default(): CallExpressionEmitOptions;
|
|
@@ -95,7 +95,7 @@ declare const enum CallExpressionEmitOptionsFlags {
|
|
|
95
95
|
AliasOrExtensionMethodCallLowered = 1
|
|
96
96
|
}
|
|
97
97
|
export declare class ConstructorCallExpressionEmitOptions {
|
|
98
|
-
private
|
|
98
|
+
private flags;
|
|
99
99
|
constructor(flags?: ConstructorCallExpressionEmitOptionsFlags);
|
|
100
100
|
constructor(isPlainObjectConstructorCallLowered: boolean);
|
|
101
101
|
static default(): ConstructorCallExpressionEmitOptions;
|
|
@@ -109,7 +109,7 @@ declare const enum ConstructorCallExpressionEmitOptionsFlags {
|
|
|
109
109
|
PlainObjectConstructorCallLowered = 1
|
|
110
110
|
}
|
|
111
111
|
export declare class MethodDeclarationEmitOptions {
|
|
112
|
-
private
|
|
112
|
+
private flags;
|
|
113
113
|
constructor(flags?: MethodDeclarationEmitOptionsFlags);
|
|
114
114
|
constructor();
|
|
115
115
|
static default(): MethodDeclarationEmitOptions;
|
|
@@ -119,7 +119,7 @@ declare const enum MethodDeclarationEmitOptionsFlags {
|
|
|
119
119
|
None = 0
|
|
120
120
|
}
|
|
121
121
|
export declare class FieldDeclarationEmitOptions {
|
|
122
|
-
private
|
|
122
|
+
private flags;
|
|
123
123
|
constructor(flags?: FieldDeclarationEmitOptionsFlags);
|
|
124
124
|
constructor();
|
|
125
125
|
static default(): FieldDeclarationEmitOptions;
|
|
@@ -129,7 +129,7 @@ declare const enum FieldDeclarationEmitOptionsFlags {
|
|
|
129
129
|
None = 0
|
|
130
130
|
}
|
|
131
131
|
export declare class FieldAccessorDeclarationEmitOptions {
|
|
132
|
-
private
|
|
132
|
+
private flags;
|
|
133
133
|
constructor(flags?: FieldAccessorDeclarationEmitOptionsFlags);
|
|
134
134
|
constructor(forceUseNonComputedName: boolean);
|
|
135
135
|
static default(): FieldAccessorDeclarationEmitOptions;
|
|
@@ -143,7 +143,7 @@ declare const enum FieldAccessorDeclarationEmitOptionsFlags {
|
|
|
143
143
|
ForceUseNonComputedName = 1
|
|
144
144
|
}
|
|
145
145
|
export declare class PackageVariableDeclarationEmitOptions {
|
|
146
|
-
private
|
|
146
|
+
private flags;
|
|
147
147
|
constructor(flags?: PackageVariableDeclarationEmitOptionsFlags);
|
|
148
148
|
constructor(shouldBePlacedBeforeOtherDeclarations: boolean, shouldNotMoveInitializerToConstructor: boolean);
|
|
149
149
|
static default(): PackageVariableDeclarationEmitOptions;
|
|
@@ -161,7 +161,7 @@ declare const enum PackageVariableDeclarationEmitOptionsFlags {
|
|
|
161
161
|
ShouldNotMoveInitializerToConstructor = 2
|
|
162
162
|
}
|
|
163
163
|
export declare class ErrorStatementEmitOptions {
|
|
164
|
-
private
|
|
164
|
+
private flags;
|
|
165
165
|
constructor(flags?: ErrorStatementEmitOptionsFlags);
|
|
166
166
|
constructor(wrapExpressionInError: boolean);
|
|
167
167
|
static default(): ErrorStatementEmitOptions;
|
|
@@ -175,7 +175,7 @@ declare const enum ErrorStatementEmitOptionsFlags {
|
|
|
175
175
|
WrapExpressionInError = 1
|
|
176
176
|
}
|
|
177
177
|
export declare class ForStatementEmitOptions {
|
|
178
|
-
private
|
|
178
|
+
private flags;
|
|
179
179
|
constructor(flags?: ForStatementEmitOptionsFlags);
|
|
180
180
|
constructor(addExplicitCallOfEnumeratorMethodIfRequired: boolean);
|
|
181
181
|
static default(): ForStatementEmitOptions;
|
|
@@ -188,4 +188,18 @@ declare const enum ForStatementEmitOptionsFlags {
|
|
|
188
188
|
None = 0,
|
|
189
189
|
AddExplicitCallOfEnumeratorMethodIfRequired = 1
|
|
190
190
|
}
|
|
191
|
+
export declare class FunctionLiteralEmitOptions {
|
|
192
|
+
private flags;
|
|
193
|
+
constructor(flags?: FunctionLiteralEmitOptionsFlags);
|
|
194
|
+
constructor(hasAttachedSyntaxNodePath: boolean);
|
|
195
|
+
static default(): FunctionLiteralEmitOptions;
|
|
196
|
+
get hasAttachedSyntaxNodePath(): boolean;
|
|
197
|
+
set hasAttachedSyntaxNodePath(value: boolean);
|
|
198
|
+
setHasAttachedSyntaxNodePath(value: boolean): this;
|
|
199
|
+
clone(): FunctionLiteralEmitOptions;
|
|
200
|
+
}
|
|
201
|
+
declare enum FunctionLiteralEmitOptionsFlags {
|
|
202
|
+
None = 0,
|
|
203
|
+
HasAttachedSyntaxNodePath = 1
|
|
204
|
+
}
|
|
191
205
|
export {};
|
|
@@ -2,7 +2,7 @@ import { AccessKind } from '../../common/index.js';
|
|
|
2
2
|
import { FunctionEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
|
|
3
3
|
import { AccessedFunction, AccessedVariable } from './AccessedEntities.js';
|
|
4
4
|
import { ComputedAccess } from './ComputedAccess.js';
|
|
5
|
-
import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, ForStatementEmitOptions, FunctionAccessExpressionEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateEmitOptions } from './EmitOptions.js';
|
|
5
|
+
import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, ForStatementEmitOptions, FunctionAccessExpressionEmitOptions, FunctionLiteralEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateEmitOptions } from './EmitOptions.js';
|
|
6
6
|
import { SourceLocation } from './SourceLocation.js';
|
|
7
7
|
import { Expression, LValueExpression, PackageMemberDeclaration, Statement, TypeMemberDeclaration } from './types.js';
|
|
8
8
|
export declare class Package {
|
|
@@ -17,13 +17,13 @@ export declare class Package {
|
|
|
17
17
|
}
|
|
18
18
|
export declare class PackageFunctionDeclaration {
|
|
19
19
|
modifiers: Modifiers;
|
|
20
|
-
|
|
20
|
+
parameters: readonly ParameterDeclaration[];
|
|
21
21
|
body: BlockStatement;
|
|
22
22
|
entity: FunctionEntity;
|
|
23
23
|
isGenerator: boolean;
|
|
24
24
|
sourceLocation: SourceLocation | undefined;
|
|
25
25
|
readonly kind = NodeKind.PackageFunctionDeclaration;
|
|
26
|
-
constructor(modifiers: Modifiers,
|
|
26
|
+
constructor(modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
|
|
27
27
|
clone(): PackageFunctionDeclaration;
|
|
28
28
|
}
|
|
29
29
|
export declare class PackageTypeDeclaration {
|
|
@@ -324,7 +324,7 @@ export declare class FinallyClause {
|
|
|
324
324
|
}
|
|
325
325
|
export declare class ForStatement {
|
|
326
326
|
label: string | undefined;
|
|
327
|
-
|
|
327
|
+
elementVariableEntity: VariableEntity;
|
|
328
328
|
indexVariableEntity: VariableEntity | undefined;
|
|
329
329
|
enumeratedExpression: Expression;
|
|
330
330
|
body: BlockStatement;
|
|
@@ -332,7 +332,7 @@ export declare class ForStatement {
|
|
|
332
332
|
sourceLocation: SourceLocation | undefined;
|
|
333
333
|
options: ForStatementEmitOptions;
|
|
334
334
|
readonly kind = NodeKind.ForStatement;
|
|
335
|
-
constructor(label: string | undefined,
|
|
335
|
+
constructor(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: ForStatementEmitOptions);
|
|
336
336
|
clone(): ForStatement;
|
|
337
337
|
}
|
|
338
338
|
export declare class IfStatement {
|
|
@@ -378,13 +378,13 @@ export declare class IsExpression {
|
|
|
378
378
|
clone(): IsExpression;
|
|
379
379
|
}
|
|
380
380
|
export declare class JsFunctionLiteral {
|
|
381
|
-
|
|
381
|
+
parameters: readonly ParameterDeclaration[];
|
|
382
382
|
body: BlockStatement;
|
|
383
383
|
isAsync: boolean;
|
|
384
384
|
isGenerator: boolean;
|
|
385
385
|
sourceLocation: SourceLocation | undefined;
|
|
386
386
|
readonly kind = NodeKind.JsFunctionLiteral;
|
|
387
|
-
constructor(
|
|
387
|
+
constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
|
|
388
388
|
clone(): JsFunctionLiteral;
|
|
389
389
|
}
|
|
390
390
|
export declare class JsIdentifierExpression {
|
|
@@ -469,11 +469,11 @@ export declare class ValueJsObjectLiteralProperty {
|
|
|
469
469
|
}
|
|
470
470
|
export declare class FunctionJsObjectLiteralProperty {
|
|
471
471
|
key: JsObjectLiteralPropertyKey;
|
|
472
|
-
|
|
472
|
+
parameters: readonly ParameterDeclaration[];
|
|
473
473
|
body: BlockStatement;
|
|
474
474
|
sourceLocation: SourceLocation | undefined;
|
|
475
475
|
readonly kind = NodeKind.FunctionJsObjectLiteralProperty;
|
|
476
|
-
constructor(key: JsObjectLiteralPropertyKey,
|
|
476
|
+
constructor(key: JsObjectLiteralPropertyKey, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
|
|
477
477
|
clone(): FunctionJsObjectLiteralProperty;
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
@@ -545,13 +545,14 @@ export declare class FunctionAccessExpression {
|
|
|
545
545
|
clone(): FunctionAccessExpression;
|
|
546
546
|
}
|
|
547
547
|
export declare class FunctionLiteral {
|
|
548
|
-
|
|
548
|
+
parameters: readonly ParameterDeclaration[];
|
|
549
549
|
body: BlockStatement;
|
|
550
550
|
isAsync: boolean;
|
|
551
551
|
returnType: Type;
|
|
552
552
|
sourceLocation: SourceLocation | undefined;
|
|
553
|
+
options: FunctionLiteralEmitOptions;
|
|
553
554
|
readonly kind = NodeKind.FunctionLiteral;
|
|
554
|
-
constructor(
|
|
555
|
+
constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: FunctionLiteralEmitOptions);
|
|
555
556
|
clone(): FunctionLiteral;
|
|
556
557
|
}
|
|
557
558
|
export declare class Modifiers {
|
|
@@ -575,14 +576,14 @@ export declare const enum ModifierFlag {
|
|
|
575
576
|
Async = 4
|
|
576
577
|
}
|
|
577
578
|
export declare class NestedFunctionDeclaration {
|
|
578
|
-
|
|
579
|
+
parameters: readonly ParameterDeclaration[];
|
|
579
580
|
body: BlockStatement;
|
|
580
581
|
entity: FunctionEntity;
|
|
581
582
|
isAsync: boolean;
|
|
582
583
|
isGenerator: boolean;
|
|
583
584
|
sourceLocation: SourceLocation | undefined;
|
|
584
585
|
readonly kind = NodeKind.NestedFunctionDeclaration;
|
|
585
|
-
constructor(
|
|
586
|
+
constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
|
|
586
587
|
clone(): NestedFunctionDeclaration;
|
|
587
588
|
}
|
|
588
589
|
export declare class NestedFunctionDeclarationStatement {
|
|
@@ -745,12 +746,12 @@ export declare class TypeAccessExpression {
|
|
|
745
746
|
}
|
|
746
747
|
export declare class ConstructorDeclaration {
|
|
747
748
|
decorators: readonly Decorator[];
|
|
748
|
-
|
|
749
|
+
parameters: readonly ParameterDeclaration[];
|
|
749
750
|
body: BlockStatement;
|
|
750
751
|
entity: FunctionEntity;
|
|
751
752
|
sourceLocation: SourceLocation | undefined;
|
|
752
753
|
readonly kind = NodeKind.ConstructorDeclaration;
|
|
753
|
-
constructor(decorators: readonly Decorator[],
|
|
754
|
+
constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
|
|
754
755
|
clone(): ConstructorDeclaration;
|
|
755
756
|
}
|
|
756
757
|
export declare class DereferencedVariableGetterDeclaration {
|
|
@@ -776,35 +777,35 @@ export declare class DereferencedVariableSetterDeclaration {
|
|
|
776
777
|
}
|
|
777
778
|
export declare class DestructorDeclaration {
|
|
778
779
|
decorators: readonly Decorator[];
|
|
779
|
-
|
|
780
|
+
parameters: readonly ParameterDeclaration[];
|
|
780
781
|
body: BlockStatement;
|
|
781
782
|
entity: FunctionEntity;
|
|
782
783
|
sourceLocation: SourceLocation | undefined;
|
|
783
784
|
readonly kind = NodeKind.DestructorDeclaration;
|
|
784
|
-
constructor(decorators: readonly Decorator[],
|
|
785
|
+
constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
|
|
785
786
|
clone(): DestructorDeclaration;
|
|
786
787
|
}
|
|
787
788
|
export declare class IndexedElementGetterDeclaration {
|
|
788
789
|
entity: FunctionEntity;
|
|
789
790
|
decorators: readonly Decorator[];
|
|
790
791
|
modifiers: Modifiers;
|
|
791
|
-
|
|
792
|
+
parameters: readonly ParameterDeclaration[];
|
|
792
793
|
body: BlockStatement;
|
|
793
794
|
sourceLocation: SourceLocation | undefined;
|
|
794
795
|
readonly kind = NodeKind.IndexedElementGetterDeclaration;
|
|
795
|
-
constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers,
|
|
796
|
+
constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
|
|
796
797
|
clone(): IndexedElementGetterDeclaration;
|
|
797
798
|
}
|
|
798
799
|
export declare class IndexedElementSetterDeclaration {
|
|
799
800
|
entity: FunctionEntity;
|
|
800
801
|
decorators: readonly Decorator[];
|
|
801
802
|
modifiers: Modifiers;
|
|
802
|
-
|
|
803
|
+
parameters: readonly ParameterDeclaration[];
|
|
803
804
|
body: BlockStatement;
|
|
804
805
|
valueLocalVariableEntity: VariableEntity;
|
|
805
806
|
sourceLocation: SourceLocation | undefined;
|
|
806
807
|
readonly kind = NodeKind.IndexedElementSetterDeclaration;
|
|
807
|
-
constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers,
|
|
808
|
+
constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
|
|
808
809
|
clone(): IndexedElementSetterDeclaration;
|
|
809
810
|
}
|
|
810
811
|
export declare class MethodAccessExpression {
|
|
@@ -822,7 +823,7 @@ export declare class MethodAccessExpression {
|
|
|
822
823
|
export declare class MethodDeclaration {
|
|
823
824
|
decorators: readonly Decorator[];
|
|
824
825
|
modifiers: Modifiers;
|
|
825
|
-
|
|
826
|
+
parameters: readonly ParameterDeclaration[];
|
|
826
827
|
body: BlockStatement;
|
|
827
828
|
entity: FunctionEntity;
|
|
828
829
|
isGenerator: boolean;
|
|
@@ -830,7 +831,7 @@ export declare class MethodDeclaration {
|
|
|
830
831
|
sourceLocation: SourceLocation | undefined;
|
|
831
832
|
options: MethodDeclarationEmitOptions;
|
|
832
833
|
readonly kind = NodeKind.MethodDeclaration;
|
|
833
|
-
constructor(decorators: readonly Decorator[], modifiers: Modifiers,
|
|
834
|
+
constructor(decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
|
|
834
835
|
clone(): MethodDeclaration;
|
|
835
836
|
}
|
|
836
837
|
export declare class FieldAccessExpression {
|
|
@@ -890,7 +891,7 @@ export declare class FieldSetterDeclaration {
|
|
|
890
891
|
constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
|
|
891
892
|
clone(): FieldSetterDeclaration;
|
|
892
893
|
}
|
|
893
|
-
export declare class
|
|
894
|
+
export declare class ParameterDeclaration {
|
|
894
895
|
entity: VariableEntity;
|
|
895
896
|
defaultValue: Expression | undefined;
|
|
896
897
|
/**
|
|
@@ -898,13 +899,13 @@ export declare class ValueParameterDeclaration {
|
|
|
898
899
|
*/
|
|
899
900
|
isRest: boolean;
|
|
900
901
|
sourceLocation: SourceLocation | undefined;
|
|
901
|
-
readonly kind = NodeKind.
|
|
902
|
+
readonly kind = NodeKind.ParameterDeclaration;
|
|
902
903
|
constructor(entity: VariableEntity, defaultValue: Expression | undefined,
|
|
903
904
|
/**
|
|
904
905
|
* ...param
|
|
905
906
|
*/
|
|
906
907
|
isRest: boolean, sourceLocation: SourceLocation | undefined);
|
|
907
|
-
clone():
|
|
908
|
+
clone(): ParameterDeclaration;
|
|
908
909
|
}
|
|
909
910
|
export declare class VariableAccessExpression {
|
|
910
911
|
variable: AccessedVariable;
|
|
@@ -1011,7 +1012,7 @@ export declare const enum NodeKind {
|
|
|
1011
1012
|
SwitchStatement = 58,
|
|
1012
1013
|
TernaryExpression = 59,
|
|
1013
1014
|
ThisExpression = 60,
|
|
1014
|
-
|
|
1015
|
+
ParameterDeclaration = 61,
|
|
1015
1016
|
VariantDeclaration = 62,
|
|
1016
1017
|
WhileStatement = 63,
|
|
1017
1018
|
YieldStatement = 64,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ir from './Nodes.js';
|
|
2
|
-
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.
|
|
3
|
-
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.
|
|
2
|
+
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
|
|
3
|
+
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
|
|
4
4
|
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
|
5
5
|
export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
|
|
6
6
|
export type TypeMemberDeclaration = ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Localization } from '../analysis/Localization.js';
|
|
2
1
|
import { Tag } from '../analysis/Tags.js';
|
|
2
|
+
import { Translation } from '../analysis/Translation.js';
|
|
3
3
|
import { Analyzer } from '../analysis/index.js';
|
|
4
|
-
import { Name } from '../common/index.js';
|
|
4
|
+
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
5
|
import { PackageAliasTypeDeclaration } from '../tree/index.js';
|
|
6
6
|
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
7
7
|
import { AliasedType, DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
|
@@ -21,7 +21,7 @@ export interface AliasTypeEntity extends ITypeEntity {
|
|
|
21
21
|
isHidden(): EntityHidingLevel | undefined;
|
|
22
22
|
getTags(): readonly Tag[];
|
|
23
23
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
24
|
-
|
|
24
|
+
getTranslation(): Translation | undefined;
|
|
25
25
|
getOriginalEntity(): AliasTypeEntity;
|
|
26
26
|
}
|
|
27
27
|
export type AliasTypeEntityDefinition = {
|
|
@@ -31,17 +31,18 @@ export type AliasTypeEntityDefinition = {
|
|
|
31
31
|
kind: DefinitionKind.TypeScript;
|
|
32
32
|
};
|
|
33
33
|
export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntity {
|
|
34
|
-
private readonly
|
|
35
|
-
private readonly
|
|
34
|
+
private readonly analyzer;
|
|
35
|
+
private readonly node;
|
|
36
36
|
readonly kind = EntityKind.Type;
|
|
37
37
|
readonly typeEntityKind = TypeEntityKind.Alias;
|
|
38
|
-
private readonly
|
|
39
|
-
private readonly
|
|
40
|
-
private readonly
|
|
41
|
-
private readonly
|
|
42
|
-
private
|
|
38
|
+
private readonly name;
|
|
39
|
+
private readonly aliasedType;
|
|
40
|
+
private readonly typeParameters;
|
|
41
|
+
private readonly members;
|
|
42
|
+
private readonly hiding;
|
|
43
|
+
private modifierFlags_;
|
|
43
44
|
private get modifierFlags();
|
|
44
|
-
constructor(
|
|
45
|
+
constructor(analyzer: Analyzer, node: PackageAliasTypeDeclaration);
|
|
45
46
|
getName(): Name;
|
|
46
47
|
getContainingPackage(): PackageEntity;
|
|
47
48
|
getAliasedType(): AliasedType;
|
|
@@ -53,6 +54,8 @@ export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntit
|
|
|
53
54
|
getTags(): readonly Tag[];
|
|
54
55
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
55
56
|
getContext(): EntityContext;
|
|
56
|
-
|
|
57
|
+
getTranslation(): Translation | undefined;
|
|
58
|
+
getLocale(): PackageLocale;
|
|
59
|
+
getDialect(): PackageDialect;
|
|
57
60
|
getOriginalEntity(): AliasTypeEntity;
|
|
58
61
|
}
|
|
@@ -36,8 +36,8 @@ export declare class OriginalAliasedType extends AliasedType {
|
|
|
36
36
|
* Правая часть тождественного типа, указанная пользователем.
|
|
37
37
|
*/
|
|
38
38
|
readonly declared: types.Type;
|
|
39
|
-
private readonly
|
|
40
|
-
private
|
|
39
|
+
private readonly analyzer;
|
|
40
|
+
private state;
|
|
41
41
|
/**
|
|
42
42
|
* Правая часть тождественного типа, указанная пользователем, либо тип `unresolved`,
|
|
43
43
|
* если указанный тип приводит к циклу.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as types from '../types/index.js';
|
|
2
|
+
import { CycleFreeBaseAspectTypesResolutionResult } from './StructuredTypeEntity.js';
|
|
3
|
+
/**
|
|
4
|
+
* Класс позволяет работать с базовыми аспектными типами, исключая циклы наследования.
|
|
5
|
+
*
|
|
6
|
+
* Пример цикла наследования:
|
|
7
|
+
* ```artel
|
|
8
|
+
* тип А = аспект Б { }
|
|
9
|
+
* тип Б = аспект А { }
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - `undefined`.
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class BaseAspectTypes {
|
|
15
|
+
/**
|
|
16
|
+
* Базовые аспектные типы, указанные пользователем.
|
|
17
|
+
*/
|
|
18
|
+
abstract readonly declared: readonly types.Type[];
|
|
19
|
+
/**
|
|
20
|
+
* Базовые аспектные типы, указанные пользователем, которые не приводят к циклу.
|
|
21
|
+
*/
|
|
22
|
+
abstract readonly cycleFree: readonly types.Type[];
|
|
23
|
+
/**
|
|
24
|
+
* Приводит ли хотя бы один базовый аспектный тип, указанный пользователем, к циклу?
|
|
25
|
+
*/
|
|
26
|
+
abstract readonly causesCycle: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
29
|
+
*/
|
|
30
|
+
abstract resolveBaseAspectTypes(circularityTrackingStack: boolean[]): CycleFreeBaseAspectTypesResolutionResult;
|
|
31
|
+
}
|
|
@@ -7,5 +7,5 @@ export declare abstract class BaseEntityHidingMatcher implements IEntityHidingMa
|
|
|
7
7
|
protected abstract sourceFile: SourceFile | undefined;
|
|
8
8
|
protected abstract package: PackageEntity;
|
|
9
9
|
matches(hiding: EntityHidingLevel | undefined): boolean;
|
|
10
|
-
private
|
|
10
|
+
private isDerivedFromOrEquals;
|
|
11
11
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as types from '../types/index.js';
|
|
2
|
+
import { CycleFreeBaseObjectTypeResolutionResult } from './StructuredTypeEntity.js';
|
|
3
|
+
/**
|
|
4
|
+
* Класс позволяет работать с базовым объектным типом, исключая циклы наследования.
|
|
5
|
+
*
|
|
6
|
+
* Пример цикла наследования:
|
|
7
|
+
* ```artel
|
|
8
|
+
* тип А = объект Б { }
|
|
9
|
+
* тип Б = объект А { }
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - `undefined`.
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class BaseObjectType {
|
|
15
|
+
/**
|
|
16
|
+
* Базовый объектный тип, указанный пользователем (либо базовый тип по умолчанию).
|
|
17
|
+
*/
|
|
18
|
+
abstract readonly declared: types.Type | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Базовый объектный тип, указанный пользователем, либо `undefined`, если указанный тип приводит к циклу.
|
|
21
|
+
*/
|
|
22
|
+
abstract readonly cycleFree: types.Type | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Приводит ли указанный базовый объектный тип к циклу?
|
|
25
|
+
*/
|
|
26
|
+
abstract readonly causesCycle: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
29
|
+
*/
|
|
30
|
+
abstract resolveBaseObjectType(circularityTrackingStack: boolean[]): CycleFreeBaseObjectTypeResolutionResult;
|
|
31
|
+
}
|