@artel/artc 0.6.25216 → 0.6.25218
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 +12 -50
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1056 -1060
- package/build/{chunk-6RYP5SET.js → chunk-FI6LW2RD.js} +5 -4
- package/build/{chunk-TJG64G2K.js → chunk-SK7ZBC3X.js} +16737 -15766
- package/build/{chunk-O7AXOZXA.js → chunk-TQDMVKTN.js} +13 -5
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
- package/build/types/analysis/Analyzer.d.ts +162 -200
- package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +6 -7
- package/build/types/analysis/{CallArgumentsToParametersMatcher.d.ts → ArgumentsToParametersMatcher.d.ts} +14 -14
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +1 -1
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +3 -0
- package/build/types/analysis/FindModifier.d.ts +2 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +12 -7
- package/build/types/analysis/LocalizationContext.d.ts +4 -5
- package/build/types/analysis/Lookup.d.ts +8 -7
- package/build/types/analysis/ModifierFlags.d.ts +16 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +4 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
- package/build/types/analysis/Scope.d.ts +21 -116
- package/build/types/analysis/SemanticContext.d.ts +16 -6
- package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +12 -89
- package/build/types/analysis/TagMeaning.d.ts +57 -9
- package/build/types/analysis/Tags.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
- package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
- package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
- package/build/types/analysis/index.d.ts +1 -1
- package/build/types/api/Api.d.ts +2 -6
- package/build/types/diagnostic/DiagnosticCode.d.ts +111 -103
- package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
- package/build/types/emitter/EmitterContext.d.ts +13 -1
- package/build/types/emitter/Entities.d.ts +58 -16
- package/build/types/emitter/EntityMap.d.ts +1 -3
- package/build/types/emitter/IrBuilder.d.ts +6 -2
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +20 -13
- package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
- package/build/types/emitter/ir/Nodes.d.ts +213 -185
- package/build/types/emitter/ir/index.d.ts +1 -2
- package/build/types/emitter/ir/types.d.ts +4 -3
- package/build/types/entities/AliasTypeEntity.d.ts +9 -5
- package/build/types/entities/ConstructorEntity.d.ts +2 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +9 -0
- package/build/types/entities/DestructorEntity.d.ts +2 -0
- package/build/types/entities/GetterEntity.d.ts +8 -0
- package/build/types/entities/IndexerEntity.d.ts +9 -0
- package/build/types/entities/MethodEntity.d.ts +9 -5
- package/build/types/entities/MethodTypeEntity.d.ts +18 -5
- package/build/types/entities/OperatorEntity.d.ts +5 -3
- package/build/types/entities/PackageEntity.d.ts +3 -3
- package/build/types/entities/PackageMembers.d.ts +4 -90
- package/build/types/entities/SetterEntity.d.ts +8 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +22 -9
- package/build/types/entities/TypeEntity.d.ts +15 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +2 -0
- package/build/types/entities/TypeParameterEntity.d.ts +12 -7
- package/build/types/entities/VariableEntity.d.ts +50 -41
- package/build/types/entities/VariantTypeEntity.d.ts +18 -11
- package/build/types/entities/index.d.ts +17 -25
- package/build/types/executor/Compiler.d.ts +1 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +8 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +1 -2
- package/build/types/parser/Scanner.d.ts +0 -6
- package/build/types/parser/UnescapeText.d.ts +1 -1
- package/build/types/project/FileSystemTree.d.ts +2 -2
- package/build/types/services/CompletionService.d.ts +4 -1
- package/build/types/services/DisplayService.d.ts +218 -163
- package/build/types/services/NodeSemanticInfo.d.ts +7 -5
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +8 -24
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +3 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +3 -3
- package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
- package/build/types/tree/KeywordKind.d.ts +37 -37
- package/build/types/tree/NodeKind.d.ts +37 -39
- package/build/types/tree/green/Nodes.d.ts +57 -80
- package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
- package/build/types/tree/red/Nodes.d.ts +65 -93
- package/build/types/ts-interop/Entities.d.ts +77 -34
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
- package/build/types/types/MethodType.d.ts +2 -2
- package/build/types/types/TypeMembers.d.ts +9 -0
- package/build/types/types/VariantType.d.ts +2 -2
- package/package.json +2 -2
- package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
- package/build/types/analysis/IndexedAccess.d.ts +0 -14
- package/build/types/analysis/VariableAccess.d.ts +0 -14
- package/build/types/analysis/VariantLookup.d.ts +0 -20
- package/build/types/emitter/ir/LoweringOptions.d.ts +0 -34
- package/build/types/emitter/ir/LoweringState.d.ts +0 -25
- package/build/types/entities/VariantEntity.d.ts +0 -31
- package/build/types/entities/Variants.d.ts +0 -10
@@ -4,10 +4,9 @@ import { Diagnostic, DiagnosticAcceptor, DiagnosticLocation } from '../diagnosti
|
|
4
4
|
import { DiagnosticCode } from '../diagnostic/DiagnosticCode.js';
|
5
5
|
import { DiagnosticFlags, DiagnosticKind } from '../diagnostic/DiagnosticData.js';
|
6
6
|
import { BinaryOperatorKind } from '../entities/OperatorKind.js';
|
7
|
-
import
|
7
|
+
import { OriginalPackageMembers } from '../entities/PackageMembers.js';
|
8
8
|
import { NamedTypeMemberEntity } from '../entities/TypeEntityMembers.js';
|
9
|
-
import * as
|
10
|
-
import { AliasTypeEntity, AnonymousMethodTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, GetterEntity, IEntityHidingMatcher, LocalVariableEntity, MethodEntity, MethodTypeEntity, NamedTypeEntity, NestedMethodEntity, OperatorEntity, PackageAliasEntity, PackageEntity, PackageMethodEntity, PackageMethodTypeEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, SetterEntity, SourceIndexerEntity, StructuredTypeEntity, TypeEntity, TypeExtensionEntity, TypeMemberEntityContainer, TypeMethodEntity, TypeParameterEntity, TypeVariableEntity, VariableEntity, VariantEntity, VariantTypeEntity } from '../entities/index.js';
|
9
|
+
import * as e from '../entities/index.js';
|
11
10
|
import { ReservedIdentifierKind } from '../parser/ReservedIdentifierDictionary.js';
|
12
11
|
import * as project from '../project/index.js';
|
13
12
|
import { PackageName, PlatformKind, SourcePackage } from '../project/index.js';
|
@@ -17,9 +16,9 @@ import * as types from '../types/index.js';
|
|
17
16
|
import { TypeFactory } from '../types/index.js';
|
18
17
|
import { AccessedMethod } from './AccessedMethod.js';
|
19
18
|
import { AnalyzedTranslationPackage } from './AnalyzedTranslationPackage.js';
|
19
|
+
import { ArgumentToParameterMatchResult, MatchResultValueParameter } from './ArgumentToParameterMatchResult.js';
|
20
20
|
import * as autotypeCallExpressionMeaning from './AutotypeCallExpressionMeaning.js';
|
21
21
|
import * as baseExpressionMeaning from './BaseExpressionMeaning.js';
|
22
|
-
import { CallArgumentToParameterMatchResult, MatchResultValueParameter } from './CallArgumentToParameterMatchResult.js';
|
23
22
|
import * as callExpressionMeaning from './CallExpressionMeaning.js';
|
24
23
|
import * as constructorOverloadResolver from './ConstructorOverloadResolver.js';
|
25
24
|
import { DeclarationsUsageCountResult } from './DeclarationsUsageCounter.js';
|
@@ -37,12 +36,13 @@ import * as operationOverloadResolver from './OperationOverloadResolver.js';
|
|
37
36
|
import * as propertyAccessExpressionResolution from './PropertyAccessExpressionMeaning.js';
|
38
37
|
import * as scope from './Scope.js';
|
39
38
|
import { SemanticContextBuilder } from './SemanticContextBuilder.js';
|
40
|
-
import
|
39
|
+
import { SourceFileMembers as ActualSourceFileMembers } from './SourceFileMembers.js';
|
41
40
|
import * as tagMeaning from './TagMeaning.js';
|
42
41
|
import * as tags from './Tags.js';
|
43
42
|
import { TargetTypeHint } from './TargetTypeHint.js';
|
44
43
|
import * as typeOverloadResolver from './TypeOverloadResolver.js';
|
45
44
|
import { WellKnownDeclarations } from './index.js';
|
45
|
+
import { ModifierFlags } from './ModifierFlags.js';
|
46
46
|
export declare class Analyzer {
|
47
47
|
static readonly enumeratorMethodName = "\u043F\u0435\u0440\u0435\u0431\u043E\u0440";
|
48
48
|
static readonly methodTypeInvokeMethodName = "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C";
|
@@ -50,7 +50,7 @@ export declare class Analyzer {
|
|
50
50
|
/**
|
51
51
|
* Пакет с именем 'Артель', содержащий стандартные типы.
|
52
52
|
*/
|
53
|
-
readonly systemPackage: PackageEntity;
|
53
|
+
readonly systemPackage: e.PackageEntity;
|
54
54
|
readonly wellKnownDeclarations: WellKnownDeclarations;
|
55
55
|
readonly standardTypes: types.StandardTypes;
|
56
56
|
readonly typeFactory: TypeFactory;
|
@@ -58,12 +58,10 @@ export declare class Analyzer {
|
|
58
58
|
readonly returnType: ReturnType;
|
59
59
|
readonly entity: Entity;
|
60
60
|
readonly resultLocalVariableEntity: ResultLocalVariableEntity;
|
61
|
-
readonly paramLocalVariableEntity: ParamLocalVariableEntity;
|
62
61
|
readonly valueLocalVariableEntity: ValueLocalVariableEntity;
|
63
|
-
readonly destructuredParameterLocalVariableEntities: DestructuredParameterLocalVariableEntities;
|
64
62
|
readonly scope: Scope;
|
65
63
|
readonly semanticContext: SemanticContextBuilder;
|
66
|
-
readonly
|
64
|
+
readonly argumentToParameterMatchResult: ArgumentToParameterMatchResult;
|
67
65
|
readonly defaultConstructors: DefaultConstructors;
|
68
66
|
readonly overriddenMember: OverriddenMember;
|
69
67
|
readonly tags: Tags;
|
@@ -77,11 +75,11 @@ export declare class Analyzer {
|
|
77
75
|
private readonly _propertyAccessExpressionResolutionResults;
|
78
76
|
private readonly _sourceFileMembers;
|
79
77
|
private readonly _callExpressionMeanings;
|
80
|
-
private readonly
|
78
|
+
private readonly _indexedAccessExpressionResolutionResults;
|
81
79
|
private readonly _dereferenceExpressionMeanings;
|
82
80
|
private readonly _autotypeCallExpressionMeanings;
|
83
81
|
private readonly _identifierExpressionResolutionResults;
|
84
|
-
private readonly
|
82
|
+
private readonly _tagResolutionResults;
|
85
83
|
private readonly _objectExpressionMeanings;
|
86
84
|
private readonly _baseExpressionMeanings;
|
87
85
|
private readonly _namedTypeSpecifierResolutionResults;
|
@@ -109,26 +107,25 @@ export declare class Analyzer {
|
|
109
107
|
isTypeAssignableTo(source: types.Type, target: types.Type): boolean;
|
110
108
|
checkStatementBlockInvokesAsyncMethods(node: tree.StatementBlock): boolean;
|
111
109
|
getSyntacticAccessKind(node: tree.Expression): SyntacticAccessKind;
|
112
|
-
getTypeMemberEntityContainer(node: tree.TypeMemberDeclaration): TypeMemberEntityContainer;
|
110
|
+
getTypeMemberEntityContainer(node: tree.TypeMemberDeclaration): e.TypeMemberEntityContainer;
|
113
111
|
getTargetTypeOfExpression(node: tree.Expression, hint?: TargetTypeHint): types.Type | undefined;
|
114
112
|
getUnambiguousTargetMethodType(targetType: types.Type | undefined): types.MethodType | undefined;
|
115
|
-
getUnambiguousTargetVariantType(targetType: types.Type | undefined): types.VariantType | undefined;
|
116
113
|
getUnambiguousTargetArrayType(targetType: types.Type | undefined): types.Type | undefined;
|
117
114
|
getEnumeratorElementType(node: tree.Node): types.Type | undefined;
|
118
|
-
resolveMethodOverloadByCallExpression<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates:
|
119
|
-
resolveMethodOverloadByTargetType<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates:
|
120
|
-
resolveConstructorOverload<TCandidate extends constructorOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends constructorOverloadResolver.IValueParameter>(candidates:
|
121
|
-
resolveTypeOverloadByArgumentCount<TCandidate extends typeOverloadResolver.ICandidate>(candidates:
|
115
|
+
resolveMethodOverloadByCallExpression<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates: readonly TCandidate[], node: tree.CallExpression): readonly TCandidate[];
|
116
|
+
resolveMethodOverloadByTargetType<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates: readonly TCandidate[], targetType: types.MethodType): readonly TCandidate[];
|
117
|
+
resolveConstructorOverload<TCandidate extends constructorOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends constructorOverloadResolver.IValueParameter>(candidates: readonly TCandidate[], args: readonly tree.Argument[]): readonly TCandidate[];
|
118
|
+
resolveTypeOverloadByArgumentCount<TCandidate extends typeOverloadResolver.ICandidate>(candidates: readonly TCandidate[], argumentCount: number): readonly TCandidate[];
|
122
119
|
resolvePropertyAccessExpression(node: tree.PropertyAccessExpression, targetTypeHint?: TargetTypeHint): propertyAccessExpressionResolution.ResolutionResult;
|
123
120
|
enumeratePackageImports(packageImportDirectives: Iterable<tree.PackageImportDirective>): Iterable<tree.PackageImport>;
|
124
|
-
getSourceFileMembers(node: tree.SourceFile):
|
121
|
+
getSourceFileMembers(node: tree.SourceFile): ActualSourceFileMembers;
|
125
122
|
getCallExpressionMeaning(node: tree.CallExpression): callExpressionMeaning.Meaning;
|
126
|
-
getRespectiveParameter(node: tree.
|
127
|
-
|
123
|
+
getRespectiveParameter(node: tree.Argument): MatchResultValueParameter | undefined;
|
124
|
+
resolveIndexedAccessExpression(node: tree.IndexedAccessExpression): indexedAccessExpressionMeaning.ResolutionResult;
|
128
125
|
getDereferenceExpressionMeaning(node: tree.DereferenceExpression): dereferenceExpressionMeaning.Meaning;
|
129
126
|
getAutotypeCallExpressionMeaning(node: tree.AutotypeCallExpression, targetTypeHint?: TargetTypeHint): autotypeCallExpressionMeaning.Meaning;
|
130
127
|
resolveIdentifierExpression(node: tree.IdentifierExpression, targetTypeHint?: TargetTypeHint): identifierExpressionResolution.ResolutionResult;
|
131
|
-
|
128
|
+
resolveTag(node: tree.Tag): tagMeaning.ResolutionResult;
|
132
129
|
getObjectExpressionMeaning(node: tree.ObjectExpression): objectExpressionMeaning.Meaning;
|
133
130
|
getBaseExpressionMeaning(node: tree.BaseExpression): baseExpressionMeaning.Meaning;
|
134
131
|
checkExpressionOptionalChaining(node: tree.Expression): boolean;
|
@@ -140,7 +137,7 @@ export declare class Analyzer {
|
|
140
137
|
createLocalizationContext(sourceFile: project.SourceFile): LocalizationContext;
|
141
138
|
typeIsValidBaseObjectType(type: types.Type): boolean;
|
142
139
|
typeIsValidBaseAspectType(type: types.Type): boolean;
|
143
|
-
getImplicitBaseTypeForStructuredType(entity: StructuredTypeEntity): types.StructuredType | undefined;
|
140
|
+
getImplicitBaseTypeForStructuredType(entity: e.StructuredTypeEntity): types.StructuredType | undefined;
|
144
141
|
getImplicitBaseTypeForVariantType(): types.StructuredType;
|
145
142
|
getImplicitBaseTypeForMethodType(): types.StructuredType;
|
146
143
|
resolveNamedTypeSpecifier(node: tree.NamedTypeSpecifier): NamedTypeSpecifierResolutionResult;
|
@@ -148,7 +145,7 @@ export declare class Analyzer {
|
|
148
145
|
type: types.Type | undefined;
|
149
146
|
} | undefined;
|
150
147
|
checkExpressionDenotesPackageAlias(expression: tree.Expression): {
|
151
|
-
packageAlias: PackageAliasEntity;
|
148
|
+
packageAlias: e.PackageAliasEntity;
|
152
149
|
} | undefined;
|
153
150
|
checkExpressionDenotesMethod(expression: tree.Expression): ExpressionDenotesMethodCheckResult | undefined;
|
154
151
|
checkExpressionDenotesOperator(expression: tree.Expression): ExpressionDenotesOperatorCheckResult | undefined;
|
@@ -157,15 +154,15 @@ export declare class Analyzer {
|
|
157
154
|
} | undefined;
|
158
155
|
checkMethodBodyUsesYieldStatement(node: tree.StatementBlock): boolean;
|
159
156
|
enumerateAspects(type: types.Type): Iterable<types.StructuredType>;
|
160
|
-
checkTypeIsBasedOnAspect(type: types.Type, aspectEntity: StructuredTypeEntity): boolean;
|
157
|
+
checkTypeIsBasedOnAspect(type: types.Type, aspectEntity: e.StructuredTypeEntity): boolean;
|
161
158
|
resolvePrefixUnaryExpressionUserDefinableOperator(node: tree.PrefixUnaryExpression): WithDiagnostics<FoundAnonymousDeclaration<types.Operator>>;
|
162
159
|
resolveBinaryExpressionUserDefinableOperator(node: tree.BinaryExpression, operatorKind: BinaryOperatorKind): WithDiagnostics<FoundAnonymousDeclaration<types.Operator>>;
|
163
160
|
resolveCompoundAssignmentStatementOperator(node: tree.AssignmentStatement, operatorKind: BinaryOperatorKind): WithDiagnostics<FoundAnonymousDeclaration<types.Operator>>;
|
164
161
|
classifyBinaryExpressionOperator(operator: tree.BinaryExpressionOperator): BinaryExpressionOperatorClassificationResult;
|
165
162
|
getBinaryOperatorKindIfCompoundAssignmentOperator(operator: tree.AssignmentStatementOperator): BinaryOperatorKind | undefined;
|
166
|
-
getPackageEntities(): readonly PackageEntity[];
|
167
|
-
getPackageEntity(name: PackageName): PackageEntity | undefined;
|
168
|
-
createMethodTypeInvokeMethod(entity: MethodTypeEntity): TypeMethodEntity;
|
163
|
+
getPackageEntities(): readonly e.PackageEntity[];
|
164
|
+
getPackageEntity(name: PackageName): e.PackageEntity | undefined;
|
165
|
+
createMethodTypeInvokeMethod(entity: e.MethodTypeEntity): e.TypeMethodEntity;
|
169
166
|
/**
|
170
167
|
* Преобразует тип таким образом, чтобы он не мог содержать значение `пусто`.
|
171
168
|
* После преобразования метод `canTypeBeNone` вернёт `true` для полученного типа.
|
@@ -203,34 +200,34 @@ export declare class Analyzer {
|
|
203
200
|
* - Т: Объект? -> нет, поскольку в качестве конкретного типа, заменяющего параметр, может быть использован тип, исключающий `пусто`.
|
204
201
|
*/
|
205
202
|
isNoneAssignableToType(type: types.Type): boolean;
|
206
|
-
isMethodValueParameterVariadic(entity: VariableEntity): boolean;
|
203
|
+
isMethodValueParameterVariadic(entity: e.VariableEntity): boolean;
|
207
204
|
getDefaultTypeParameterConstraint(): types.Type;
|
208
|
-
getOriginalSignatureTypeOfMethodEntity(entity: MethodEntity): types.MethodType;
|
209
|
-
getMethodBlockLiteralValueParameters(node: tree.MethodBlockLiteral): readonly VariableEntity[];
|
210
|
-
getExtendedType(node: tree.TypeExtensionDeclaration): WithDiagnostics<NamedTypeEntity>;
|
205
|
+
getOriginalSignatureTypeOfMethodEntity(entity: e.MethodEntity): types.MethodType;
|
206
|
+
getMethodBlockLiteralValueParameters(node: tree.MethodBlockLiteral): readonly e.VariableEntity[];
|
207
|
+
getExtendedType(node: tree.TypeExtensionDeclaration): WithDiagnostics<e.NamedTypeEntity>;
|
211
208
|
getAnalyzedTranslationPackageIfTargetResolved(package_: project.TranslationPackage): AnalyzedTranslationPackage | undefined;
|
212
|
-
getAnalyzedTranslationPackageForPackage(entity: PackageEntity, locale: PackageLocale): AnalyzedTranslationPackage | undefined;
|
209
|
+
getAnalyzedTranslationPackageForPackage(entity: e.PackageEntity, locale: PackageLocale): AnalyzedTranslationPackage | undefined;
|
213
210
|
enumerateAnalyzedTranslationPackages(): Iterable<AnalyzedTranslationPackage>;
|
214
211
|
getCommonObjectAndAspectTypesOfUnion(_unionType: types.UnionType): readonly types.StructuredType[];
|
215
|
-
getLinkedMultiPlatformPackagesByPlatform(entity: PackageEntity): ReadonlyMap<PlatformKind, LinkedMultiPlatformPackage> | undefined;
|
216
|
-
getLinkedMultiPlatformPackage(entity: PackageEntity, platform: PlatformKind): LinkedMultiPlatformPackage | undefined;
|
217
|
-
createPackageMembers(pkg: SourcePackage):
|
218
|
-
instantiateType(entity:
|
219
|
-
instantiateTypeByIdentitySubstitution(entity:
|
220
|
-
createPackageMemberHiding(node: tree.PackageMemberDeclaration):
|
221
|
-
createTypeMemberHiding(node: tree.TypeMemberDeclaration):
|
212
|
+
getLinkedMultiPlatformPackagesByPlatform(entity: e.PackageEntity): ReadonlyMap<PlatformKind, LinkedMultiPlatformPackage> | undefined;
|
213
|
+
getLinkedMultiPlatformPackage(entity: e.PackageEntity, platform: PlatformKind): LinkedMultiPlatformPackage | undefined;
|
214
|
+
createPackageMembers(pkg: SourcePackage): OriginalPackageMembers;
|
215
|
+
instantiateType(entity: e.TypeEntity, typeArguments?: readonly types.Type[]): types.Type;
|
216
|
+
instantiateTypeByIdentitySubstitution(entity: e.TypeEntity): types.Type;
|
217
|
+
createPackageMemberHiding(node: tree.PackageMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
218
|
+
createTypeMemberHiding(node: tree.TypeMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
222
219
|
getDeclarationsUsageCount(sourceFile: tree.SourceFile, cancellationToken: CancellationToken | undefined): Promise<DeclarationsUsageCountResult>;
|
223
220
|
isExpressionImplicitlyReturnedFromSubprogram(node: tree.ExpressionStatement): boolean;
|
224
|
-
createBackingPackageVariables(
|
225
|
-
createBackingTypeVariables(
|
221
|
+
createBackingPackageVariables(declaredMembers: readonly (e.NamedPackageMemberEntity | e.PackageAliasEntity)[], pkg: e.PackageEntity): e.PackageVariableEntity[];
|
222
|
+
createBackingTypeVariables(declaredMembers: readonly NamedTypeMemberEntity[], type: e.TypeEntity): e.TypeVariableEntity[];
|
226
223
|
createNodeDiagnostic(code: DiagnosticCode, node: tree.Node, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
|
227
224
|
createSourceFileRangeDiagnostic(code: DiagnosticCode, range: Range, nodeOrSourceFile: tree.Node | project.SourceFile, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
|
228
225
|
createDiagnostic(code: DiagnosticCode, location: DiagnosticLocation | undefined, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
|
229
226
|
createNodeDiagnosticLocation(node: tree.Node): DiagnosticLocation;
|
230
227
|
getDeclaredTypeMemberEntities(node: tree.TypeMemberDeclarationBlock): DeclaredTypeMemberEntities;
|
231
|
-
getRedefinableMethodOfOriginalTypeForRedefinableMethodOfAliasType(entity: TypeMethodEntity): TypeMethodEntity | undefined;
|
228
|
+
getRedefinableMethodOfOriginalTypeForRedefinableMethodOfAliasType(entity: e.TypeMethodEntity): e.TypeMethodEntity | undefined;
|
232
229
|
checkBodyOfRedefinableAliasTypeMethod(node: tree.TypeMethodDeclaration, diagnostics?: DiagnosticAcceptor): {
|
233
|
-
redefinableMethodOfOriginalType: TypeMethodEntity;
|
230
|
+
redefinableMethodOfOriginalType: e.TypeMethodEntity;
|
234
231
|
} | undefined;
|
235
232
|
private createTsInterop;
|
236
233
|
}
|
@@ -340,52 +337,50 @@ declare class Entity {
|
|
340
337
|
private readonly _destructorEntities;
|
341
338
|
private readonly _getterEntities;
|
342
339
|
private readonly _setterEntities;
|
343
|
-
private readonly _variantEntities;
|
344
340
|
private readonly _typeExtensionEntities;
|
345
341
|
private readonly _packageAliasEntities;
|
346
342
|
constructor(_analyzer: Analyzer);
|
347
|
-
ofPackage(pkg: SourcePackage): PackageEntity;
|
348
|
-
ofPackageVariableDeclaration(node: tree.PackageVariableDeclaration):
|
349
|
-
ofComputedPackageVariableDeclaration(node: PackageVariableAccessorDeclaration):
|
350
|
-
ofTypeVariableDeclaration(node: tree.TypeVariableDeclaration):
|
351
|
-
ofComputedTypeVariableDeclaration(node: TypeVariableAccessorDeclaration):
|
352
|
-
ofLocalVariableDeclaration(node: tree.LocalVariableDeclaration):
|
353
|
-
ofEnumerationVariableDeclaration(node: tree.EnumerationVariableDeclaration):
|
354
|
-
ofErrorVariableDeclaration(node: tree.ErrorVariableDeclaration):
|
355
|
-
ofParameterDeclaration(node: tree.ParameterDeclaration):
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
ofPackageImport(node: tree.PackageImport): PackageAliasEntity;
|
343
|
+
ofPackage(pkg: SourcePackage): e.PackageEntity;
|
344
|
+
ofPackageVariableDeclaration(node: tree.PackageVariableDeclaration): e.PackageVariableEntity;
|
345
|
+
ofComputedPackageVariableDeclaration(node: PackageVariableAccessorDeclaration): e.PackageVariableEntity;
|
346
|
+
ofTypeVariableDeclaration(node: tree.TypeVariableDeclaration): e.TypeVariableEntity;
|
347
|
+
ofComputedTypeVariableDeclaration(node: TypeVariableAccessorDeclaration): e.TypeVariableEntity;
|
348
|
+
ofLocalVariableDeclaration(node: tree.LocalVariableDeclaration): e.LocalVariableEntity;
|
349
|
+
ofEnumerationVariableDeclaration(node: tree.EnumerationVariableDeclaration): e.LocalVariableEntity;
|
350
|
+
ofErrorVariableDeclaration(node: tree.ErrorVariableDeclaration): e.LocalVariableEntity;
|
351
|
+
ofParameterDeclaration(node: tree.ParameterDeclaration): e.ParameterVariableEntity;
|
352
|
+
ofTypeParameterDeclaration(node: tree.TypeParameterDeclaration): e.TypeParameterEntity;
|
353
|
+
ofTypeIndexerDeclaration(node: TypeIndexedAccessorDeclaration): e.SourceIndexerEntity;
|
354
|
+
ofTypeDereferenceOperatorDeclaration(node: TypeDereferencedVariableAccessorDeclaration): e.DereferenceOperatorEntity;
|
355
|
+
ofPackageStructuredTypeDeclaration(node: tree.PackageStructuredTypeDeclaration): e.PackageStructuredTypeEntity;
|
356
|
+
ofAnonymousStructuredTypeDeclaration(node: tree.AnonymousStructuredTypeDeclaration): e.AnonymousStructuredTypeEntity;
|
357
|
+
ofStructuredTypeDeclaration(node: StructuredTypeDeclaration): e.StructuredTypeEntity;
|
358
|
+
ofPackageMethodTypeDeclaration(node: tree.PackageMethodTypeDeclaration): e.PackageMethodTypeEntity;
|
359
|
+
ofAnonymousMethodTypeDeclaration(node: tree.AnonymousMethodTypeDeclaration): e.AnonymousMethodTypeEntity;
|
360
|
+
ofMethodTypeDeclaration(node: MethodTypeDeclaration): e.MethodTypeEntity;
|
361
|
+
ofPackageVariantTypeDeclaration(node: tree.PackageVariantTypeDeclaration): e.PackageVariantTypeEntity;
|
362
|
+
ofAnonymousVariantTypeDeclaration(node: tree.AnonymousVariantTypeDeclaration): e.AnonymousVariantTypeEntity;
|
363
|
+
ofVariantTypeDeclaration(node: VariantTypeDeclaration): e.VariantTypeEntity;
|
364
|
+
ofPackageAliasTypeDeclaration(node: tree.PackageAliasTypeDeclaration): e.AliasTypeEntity;
|
365
|
+
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): e.PackageMethodEntity;
|
366
|
+
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): e.TypeMethodEntity;
|
367
|
+
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): e.NestedMethodEntity;
|
368
|
+
ofOperatorDeclaration(node: tree.OperatorDeclaration): e.OperatorEntity;
|
369
|
+
ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): e.GetterEntity;
|
370
|
+
ofTypeVariableGetterDeclaration(node: tree.TypeVariableGetterDeclaration): e.GetterEntity;
|
371
|
+
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): e.GetterEntity;
|
372
|
+
ofTypeDereferencedVariableGetterDeclaration(node: tree.TypeDereferencedVariableGetterDeclaration): e.GetterEntity;
|
373
|
+
ofGetterDeclaration(node: GetterDeclaration): e.GetterEntity;
|
374
|
+
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.SetterEntity;
|
375
|
+
ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): e.SetterEntity;
|
376
|
+
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): e.SetterEntity;
|
377
|
+
ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): e.SetterEntity;
|
378
|
+
ofSetterDeclaration(node: SetterDeclaration): e.SetterEntity;
|
379
|
+
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): e.ConstructorEntity;
|
380
|
+
ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): e.DestructorEntity;
|
381
|
+
ofVariantDeclaration(node: tree.VariantDeclaration): e.TypeVariableEntity;
|
382
|
+
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): e.TypeExtensionEntity;
|
383
|
+
ofPackageImport(node: tree.PackageImport): e.PackageAliasEntity;
|
389
384
|
private getContainingPackageLoadedFromDts;
|
390
385
|
private createComputedTypeVariableEntities;
|
391
386
|
private createTypeDereferenceOperatorEntities;
|
@@ -396,59 +391,26 @@ declare class ResultLocalVariableEntity {
|
|
396
391
|
private readonly _analyzer;
|
397
392
|
private readonly _entities;
|
398
393
|
constructor(_analyzer: Analyzer);
|
399
|
-
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): LocalVariableEntity;
|
400
|
-
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): LocalVariableEntity;
|
401
|
-
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): LocalVariableEntity;
|
402
|
-
ofMethodLiteral(node: tree.MethodLiteral): LocalVariableEntity;
|
403
|
-
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): LocalVariableEntity;
|
404
|
-
ofOperatorDeclaration(node: tree.OperatorDeclaration): LocalVariableEntity;
|
405
|
-
ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): LocalVariableEntity;
|
406
|
-
ofTypeVariableGetterDeclaration(node: tree.TypeVariableGetterDeclaration): LocalVariableEntity;
|
407
|
-
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): LocalVariableEntity;
|
408
|
-
ofTypeDereferencedVariableGetterDeclaration(node: tree.TypeDereferencedVariableGetterDeclaration): LocalVariableEntity;
|
394
|
+
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): e.LocalVariableEntity;
|
395
|
+
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): e.LocalVariableEntity;
|
396
|
+
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): e.LocalVariableEntity;
|
397
|
+
ofMethodLiteral(node: tree.MethodLiteral): e.LocalVariableEntity;
|
398
|
+
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): e.LocalVariableEntity;
|
399
|
+
ofOperatorDeclaration(node: tree.OperatorDeclaration): e.LocalVariableEntity;
|
400
|
+
ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): e.LocalVariableEntity;
|
401
|
+
ofTypeVariableGetterDeclaration(node: tree.TypeVariableGetterDeclaration): e.LocalVariableEntity;
|
402
|
+
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): e.LocalVariableEntity;
|
403
|
+
ofTypeDereferencedVariableGetterDeclaration(node: tree.TypeDereferencedVariableGetterDeclaration): e.LocalVariableEntity;
|
409
404
|
private createResultLocalVariableEntity;
|
410
405
|
}
|
411
|
-
declare class ParamLocalVariableEntity {
|
412
|
-
private readonly _analyzer;
|
413
|
-
private readonly _optionalEntities;
|
414
|
-
private readonly _entities;
|
415
|
-
constructor(_analyzer: Analyzer);
|
416
|
-
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): VariableEntity;
|
417
|
-
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): VariableEntity;
|
418
|
-
ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): VariableEntity;
|
419
|
-
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): VariableEntity;
|
420
|
-
ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): VariableEntity;
|
421
|
-
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): VariableEntity | undefined;
|
422
|
-
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): VariableEntity | undefined;
|
423
|
-
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): VariableEntity | undefined;
|
424
|
-
ofMethodLiteral(node: tree.MethodLiteral): VariableEntity | undefined;
|
425
|
-
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): VariableEntity | undefined;
|
426
|
-
ofOperatorDeclaration(node: tree.OperatorDeclaration): VariableEntity | undefined;
|
427
|
-
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): VariableEntity | undefined;
|
428
|
-
private createParamLocalVariableEntity;
|
429
|
-
private createAccessorParamLocalVariableEntity;
|
430
|
-
}
|
431
406
|
declare class ValueLocalVariableEntity {
|
432
407
|
private readonly _analyzer;
|
433
408
|
private readonly _entities;
|
434
409
|
constructor(_analyzer: Analyzer);
|
435
|
-
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): VariableEntity
|
436
|
-
ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): VariableEntity
|
437
|
-
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): VariableEntity
|
438
|
-
ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): VariableEntity
|
439
|
-
}
|
440
|
-
declare class DestructuredParameterLocalVariableEntities {
|
441
|
-
private readonly _analyzer;
|
442
|
-
private readonly _entities;
|
443
|
-
constructor(_analyzer: Analyzer);
|
444
|
-
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): readonly VariableEntity[];
|
445
|
-
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): readonly VariableEntity[];
|
446
|
-
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): readonly VariableEntity[];
|
447
|
-
ofOperatorDeclaration(node: tree.OperatorDeclaration): readonly VariableEntity[];
|
448
|
-
ofMethodLiteral(node: tree.MethodLiteral): readonly VariableEntity[];
|
449
|
-
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): readonly VariableEntity[];
|
450
|
-
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): readonly VariableEntity[];
|
451
|
-
private createVariableEntitiesBasedOnValueParameters;
|
410
|
+
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.VariableEntity;
|
411
|
+
ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): e.VariableEntity;
|
412
|
+
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): e.VariableEntity;
|
413
|
+
ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): e.VariableEntity;
|
452
414
|
}
|
453
415
|
declare class Scope {
|
454
416
|
private readonly _analyzer;
|
@@ -463,7 +425,7 @@ declare class Scope {
|
|
463
425
|
private readonly _methodLiteralScopes;
|
464
426
|
private readonly _statementBlockScopes;
|
465
427
|
private readonly _forEachStatementScopes;
|
466
|
-
private readonly
|
428
|
+
private readonly _catchClauseScopes;
|
467
429
|
private readonly _packageStructuredTypeDeclarationTypeParametersScopes;
|
468
430
|
private readonly _structuredTypeDeclarationBodyScopes;
|
469
431
|
private readonly _packageMethodTypeDeclarationTypeParametersScopes;
|
@@ -477,7 +439,6 @@ declare class Scope {
|
|
477
439
|
private readonly _structuredTypeDestructorDeclarationScopes;
|
478
440
|
private readonly _typeIndexedAccessorDeclarationParametersScopes;
|
479
441
|
private readonly _typeExtensionDeclarationScopes;
|
480
|
-
private readonly _setterParameterClauseScopes;
|
481
442
|
constructor(_analyzer: Analyzer);
|
482
443
|
ofSourceFile(node: tree.SourceFile): scope.IScope;
|
483
444
|
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): scope.IScope;
|
@@ -490,7 +451,7 @@ declare class Scope {
|
|
490
451
|
ofMethodLiteral(node: tree.MethodLiteral): scope.IScope;
|
491
452
|
ofStatementBlock(node: tree.StatementBlock): scope.IScope;
|
492
453
|
ofForStatement(node: tree.ForStatement): scope.IScope;
|
493
|
-
|
454
|
+
ofCatchClause(node: tree.CatchClause): scope.IScope;
|
494
455
|
ofPackageStructuredTypeDeclarationTypeParameters(node: tree.PackageStructuredTypeDeclaration): scope.IScope;
|
495
456
|
ofStructuredTypeDeclarationBody(node: tree.StructuredTypeDeclarationBody): scope.IScope;
|
496
457
|
ofPackageMethodTypeDeclarationTypeParameters(node: tree.PackageMethodTypeDeclaration): scope.IScope;
|
@@ -504,30 +465,38 @@ declare class Scope {
|
|
504
465
|
ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): scope.IScope;
|
505
466
|
ofTypeIndexedAccessorDeclarationParameters(node: TypeIndexedAccessorDeclaration): scope.IScope;
|
506
467
|
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): scope.IScope;
|
507
|
-
ofSetterParameterClause(node: tree.SetterParameterClause): scope.IScope;
|
508
468
|
}
|
509
469
|
declare class DefaultConstructors {
|
510
470
|
private readonly _analyzer;
|
511
471
|
private readonly _defaultConstructorEntities;
|
512
472
|
constructor(_analyzer: Analyzer);
|
513
|
-
ofStructuredType(type: StructuredTypeDeclaration): readonly ConstructorEntity[];
|
473
|
+
ofStructuredType(type: StructuredTypeDeclaration): readonly e.ConstructorEntity[];
|
514
474
|
private createDefaultConstructors;
|
515
475
|
private getPublicInstanceStoredVariables;
|
516
476
|
}
|
517
477
|
declare class OverriddenMember {
|
518
478
|
private readonly _analyzer;
|
519
479
|
constructor(_analyzer: Analyzer);
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
480
|
+
getOverriddenVariables(node: tree.TypeVariableDeclaration | TypeVariableAccessorDeclaration): types.Variable[];
|
481
|
+
getOverriddenMethods(node: tree.TypeMethodDeclaration): types.Method[];
|
482
|
+
getOverriddenOperators(node: tree.OperatorDeclaration): types.Operator[];
|
483
|
+
getOverriddenIndexers(node: TypeIndexedAccessorDeclaration): types.Indexer[];
|
484
|
+
getOverriddenDereferenceOperators(node: TypeDereferencedVariableAccessorDeclaration): types.DereferenceOperator[];
|
525
485
|
private findOverriddenVariableInType;
|
526
486
|
private findOverriddenMethodInType;
|
527
487
|
private findOverriddenOperatorInType;
|
488
|
+
private findOverriddenIndexerInType;
|
489
|
+
private findOverriddenDereferenceOperatorInType;
|
528
490
|
private checkVariableOverridesVariable;
|
529
491
|
private checkMethodOverridesMethod;
|
530
492
|
private checkOperatorOverridesOperator;
|
493
|
+
private checkIndexerOverridesIndexer;
|
494
|
+
private checkDereferenceOperatorOverridesDereferenceOperator;
|
495
|
+
private enumerateTypeMemberLookupsForOverriddenMember;
|
496
|
+
private enumerateTypesForOverriddenMemberLookup;
|
497
|
+
private entityCanOverride;
|
498
|
+
private entityCanBeOverridden;
|
499
|
+
private addTypeMemberIfUnique;
|
531
500
|
}
|
532
501
|
declare class Tags {
|
533
502
|
readonly _analyzer: Analyzer;
|
@@ -535,41 +504,40 @@ declare class Tags {
|
|
535
504
|
constructor(_analyzer: Analyzer);
|
536
505
|
ofTagList(tagList: tree.TagList): readonly tags.Tag[];
|
537
506
|
private createTags;
|
538
|
-
private
|
507
|
+
private argumentToTagArgument;
|
539
508
|
}
|
540
509
|
declare class LinkedEntity {
|
541
510
|
private readonly _analyzer;
|
542
511
|
constructor(_analyzer: Analyzer);
|
543
|
-
entityCanBeLinked(entity:
|
544
|
-
ofType(entity: TypeEntity, platform: PlatformKind): TypeEntity | undefined;
|
545
|
-
ofTypeWithMembers(entity:
|
546
|
-
ofParameterType(entity: TypeParameterEntity, platform: PlatformKind): TypeParameterEntity | undefined;
|
547
|
-
ofPackageVariable(entity: PackageVariableEntity, platform: PlatformKind): PackageVariableEntity | undefined;
|
548
|
-
ofPackageMethod(entity: PackageMethodEntity, platform: PlatformKind): PackageMethodEntity | undefined;
|
549
|
-
ofTypeVariable(entity:
|
550
|
-
ofTypeMethod(entity:
|
551
|
-
ofOperator(entity:
|
552
|
-
ofConstructor(entity:
|
553
|
-
ofIndexer(entity:
|
554
|
-
ofDereferenceOperator(entity:
|
555
|
-
|
556
|
-
|
557
|
-
ofSetter(entity: entities.SetterEntity, platform: PlatformKind): entities.SetterEntity | undefined;
|
512
|
+
entityCanBeLinked(entity: e.Entity): boolean;
|
513
|
+
ofType(entity: e.TypeEntity, platform: PlatformKind): e.TypeEntity | undefined;
|
514
|
+
ofTypeWithMembers(entity: e.TypeEntityWithMembers, platform: PlatformKind): e.TypeEntityWithMembers | undefined;
|
515
|
+
ofParameterType(entity: e.TypeParameterEntity, platform: PlatformKind): e.TypeParameterEntity | undefined;
|
516
|
+
ofPackageVariable(entity: e.PackageVariableEntity, platform: PlatformKind): e.PackageVariableEntity | undefined;
|
517
|
+
ofPackageMethod(entity: e.PackageMethodEntity, platform: PlatformKind): e.PackageMethodEntity | undefined;
|
518
|
+
ofTypeVariable(entity: e.TypeVariableEntity, platform: PlatformKind): e.TypeVariableEntity | undefined;
|
519
|
+
ofTypeMethod(entity: e.TypeMethodEntity, platform: PlatformKind): e.TypeMethodEntity | undefined;
|
520
|
+
ofOperator(entity: e.OperatorEntity, platform: PlatformKind): e.OperatorEntity | undefined;
|
521
|
+
ofConstructor(entity: e.ConstructorEntity, platform: PlatformKind): e.ConstructorEntity | undefined;
|
522
|
+
ofIndexer(entity: e.IndexerEntity, platform: PlatformKind): e.IndexerEntity | undefined;
|
523
|
+
ofDereferenceOperator(entity: e.DereferenceOperatorEntity, platform: PlatformKind): e.DereferenceOperatorEntity | undefined;
|
524
|
+
ofGetter(entity: e.GetterEntity, platform: PlatformKind): e.GetterEntity | undefined;
|
525
|
+
ofSetter(entity: e.SetterEntity, platform: PlatformKind): e.SetterEntity | undefined;
|
558
526
|
}
|
559
527
|
export declare class LinkedMultiPlatformPackage {
|
560
528
|
readonly analyzer: Analyzer;
|
561
|
-
readonly pkg: PackageEntity;
|
562
|
-
readonly implementationPackage: PackageEntity;
|
529
|
+
readonly pkg: e.PackageEntity;
|
530
|
+
readonly implementationPackage: e.PackageEntity;
|
563
531
|
readonly targetPlatform: PlatformKind;
|
564
532
|
private readonly _memberLookup;
|
565
533
|
private readonly _linkedTypesWithMembers;
|
566
534
|
private readonly _linkedParameterTypes;
|
567
535
|
private get memberLookup();
|
568
|
-
constructor(analyzer: Analyzer, pkg: PackageEntity, implementationPackage: PackageEntity, targetPlatform: PlatformKind);
|
569
|
-
getLinkedVariable(entity: PackageVariableEntity): PackageVariableEntity | undefined;
|
570
|
-
getLinkedMethod(entity: PackageMethodEntity): PackageMethodEntity | undefined;
|
571
|
-
getLinkedTypeWithMembers(entity:
|
572
|
-
getLinkedParameterType(entity: TypeParameterEntity): TypeParameterEntity | undefined;
|
536
|
+
constructor(analyzer: Analyzer, pkg: e.PackageEntity, implementationPackage: e.PackageEntity, targetPlatform: PlatformKind);
|
537
|
+
getLinkedVariable(entity: e.PackageVariableEntity): e.PackageVariableEntity | undefined;
|
538
|
+
getLinkedMethod(entity: e.PackageMethodEntity): e.PackageMethodEntity | undefined;
|
539
|
+
getLinkedTypeWithMembers(entity: e.TypeEntityWithMembers): LinkedTypeWithMembers | undefined;
|
540
|
+
getLinkedParameterType(entity: e.TypeParameterEntity): e.TypeParameterEntity | undefined;
|
573
541
|
/**
|
574
542
|
* Используется для сравнения типов при связывании объявления из многоплатформенного пакета с объявлением из
|
575
543
|
* реализационного пакета. В частности, при сравнении типов параметров для выбора правильной перегрузки
|
@@ -581,21 +549,18 @@ export declare class LinkedMultiPlatformPackage {
|
|
581
549
|
}
|
582
550
|
export declare class LinkedTypeWithMembers {
|
583
551
|
readonly analyzer: Analyzer;
|
584
|
-
readonly externalType:
|
585
|
-
readonly targetType:
|
552
|
+
readonly externalType: e.TypeEntityWithMembers;
|
553
|
+
readonly targetType: e.TypeEntityWithMembers;
|
586
554
|
readonly linkedPackage: LinkedMultiPlatformPackage;
|
587
555
|
private readonly _memberLookup;
|
588
|
-
private readonly _variantLookup;
|
589
556
|
private get memberLookup();
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
getLinkedDereferenceOperator(entity: entities.DereferenceOperatorEntity): entities.DereferenceOperatorEntity | undefined;
|
598
|
-
getLinkedVariant(entity: VariantEntity): VariantEntity | undefined;
|
557
|
+
constructor(analyzer: Analyzer, externalType: e.TypeEntityWithMembers, targetType: e.TypeEntityWithMembers, linkedPackage: LinkedMultiPlatformPackage);
|
558
|
+
getLinkedVariable(entity: e.TypeVariableEntity): e.TypeVariableEntity | undefined;
|
559
|
+
getLinkedMethod(entity: e.TypeMethodEntity): e.TypeMethodEntity | undefined;
|
560
|
+
getLinkedOperator(entity: e.OperatorEntity): e.OperatorEntity | undefined;
|
561
|
+
getLinkedConstructor(entity: e.ConstructorEntity): e.ConstructorEntity | undefined;
|
562
|
+
getLinkedIndexer(entity: e.IndexerEntity): e.IndexerEntity | undefined;
|
563
|
+
getLinkedDereferenceOperator(entity: e.DereferenceOperatorEntity): e.DereferenceOperatorEntity | undefined;
|
599
564
|
}
|
600
565
|
declare class OwningPlainObjectModificationCheck {
|
601
566
|
private _analyzer;
|
@@ -621,10 +586,10 @@ declare class PackageImports {
|
|
621
586
|
private getAutomaticallyImportedPackages;
|
622
587
|
}
|
623
588
|
export declare class AnalyzedPackageImport {
|
624
|
-
readonly entity: PackageEntity | undefined;
|
589
|
+
readonly entity: e.PackageEntity | undefined;
|
625
590
|
readonly translationPackage: AnalyzedTranslationPackage | undefined;
|
626
|
-
readonly isAliasedImport: PackageAliasEntity | undefined;
|
627
|
-
constructor(entity: PackageEntity | undefined, translationPackage: AnalyzedTranslationPackage | undefined, isAliasedImport: PackageAliasEntity | undefined);
|
591
|
+
readonly isAliasedImport: e.PackageAliasEntity | undefined;
|
592
|
+
constructor(entity: e.PackageEntity | undefined, translationPackage: AnalyzedTranslationPackage | undefined, isAliasedImport: e.PackageAliasEntity | undefined);
|
628
593
|
}
|
629
594
|
export declare class AnalyzedPackageImports {
|
630
595
|
readonly packageImportInfos: Map<tree.PackageImport, AnalyzedPackageImport>;
|
@@ -632,10 +597,10 @@ export declare class AnalyzedPackageImports {
|
|
632
597
|
constructor(packageImportInfos: Map<tree.PackageImport, AnalyzedPackageImport>, diagnostics: readonly Diagnostic[]);
|
633
598
|
}
|
634
599
|
export declare class PackageImportInfo {
|
635
|
-
readonly entity: PackageEntity;
|
600
|
+
readonly entity: e.PackageEntity;
|
636
601
|
readonly translationPackage: AnalyzedTranslationPackage | undefined;
|
637
|
-
readonly isAliasedImport: PackageAliasEntity | undefined;
|
638
|
-
constructor(entity: PackageEntity, translationPackage: AnalyzedTranslationPackage | undefined, isAliasedImport: PackageAliasEntity | undefined);
|
602
|
+
readonly isAliasedImport: e.PackageAliasEntity | undefined;
|
603
|
+
constructor(entity: e.PackageEntity, translationPackage: AnalyzedTranslationPackage | undefined, isAliasedImport: e.PackageAliasEntity | undefined);
|
639
604
|
}
|
640
605
|
export declare class ExpressionDenotesMethodCheckResult {
|
641
606
|
readonly candidates: readonly WithLocalization<AccessedMethod>[];
|
@@ -649,18 +614,15 @@ export declare class ExpressionDenotesOperatorCheckResult {
|
|
649
614
|
get singleSuitableOperator(): WithLocalization<types.Operator> | undefined;
|
650
615
|
constructor(candidates: readonly WithLocalization<types.Operator>[], suitableOperators: readonly WithLocalization<types.Operator>[]);
|
651
616
|
}
|
652
|
-
export declare class NonHiddenEntityHidingMatcher implements IEntityHidingMatcher {
|
653
|
-
matches(_hiding: entities.EntityHidingLevel): boolean;
|
654
|
-
}
|
655
617
|
type AvailablePackage = AvailablePackage.Original | AvailablePackage.Translated;
|
656
618
|
declare namespace AvailablePackage {
|
657
619
|
export class Original implements IAvailablePackage {
|
658
|
-
readonly value: PackageEntity;
|
620
|
+
readonly value: e.PackageEntity;
|
659
621
|
readonly kind = "original";
|
660
|
-
constructor(value: PackageEntity);
|
622
|
+
constructor(value: e.PackageEntity);
|
661
623
|
getImportName(): PackageName;
|
662
624
|
getLocale(): PackageLocale;
|
663
|
-
getEntity(): PackageEntity;
|
625
|
+
getEntity(): e.PackageEntity;
|
664
626
|
getTranslationPackage(): AnalyzedTranslationPackage | undefined;
|
665
627
|
}
|
666
628
|
export class Translated implements IAvailablePackage {
|
@@ -669,26 +631,26 @@ declare namespace AvailablePackage {
|
|
669
631
|
constructor(value: AnalyzedTranslationPackage);
|
670
632
|
getImportName(): PackageName;
|
671
633
|
getLocale(): PackageLocale;
|
672
|
-
getEntity(): PackageEntity;
|
634
|
+
getEntity(): e.PackageEntity;
|
673
635
|
getTranslationPackage(): AnalyzedTranslationPackage | undefined;
|
674
636
|
}
|
675
637
|
interface IAvailablePackage {
|
676
638
|
getImportName(): PackageName;
|
677
639
|
getLocale(): PackageLocale;
|
678
|
-
getEntity(): PackageEntity;
|
640
|
+
getEntity(): e.PackageEntity;
|
679
641
|
getTranslationPackage(): AnalyzedTranslationPackage | undefined;
|
680
642
|
}
|
681
643
|
export {};
|
682
644
|
}
|
683
645
|
export declare class DeclaredTypeMemberEntities {
|
684
|
-
readonly variables: readonly TypeVariableEntity[];
|
685
|
-
readonly methods: readonly TypeMethodEntity[];
|
686
|
-
readonly operators: readonly OperatorEntity[];
|
687
|
-
readonly constructors: readonly ConstructorEntity[];
|
688
|
-
readonly destructors: readonly DestructorEntity[];
|
689
|
-
readonly indexers: readonly SourceIndexerEntity[];
|
690
|
-
readonly dereferenceOperators: readonly DereferenceOperatorEntity[];
|
646
|
+
readonly variables: readonly e.TypeVariableEntity[];
|
647
|
+
readonly methods: readonly e.TypeMethodEntity[];
|
648
|
+
readonly operators: readonly e.OperatorEntity[];
|
649
|
+
readonly constructors: readonly e.ConstructorEntity[];
|
650
|
+
readonly destructors: readonly e.DestructorEntity[];
|
651
|
+
readonly indexers: readonly e.SourceIndexerEntity[];
|
652
|
+
readonly dereferenceOperators: readonly e.DereferenceOperatorEntity[];
|
691
653
|
get namedMembers(): NamedTypeMemberEntity[];
|
692
|
-
constructor(variables: readonly TypeVariableEntity[], methods: readonly TypeMethodEntity[], operators: readonly OperatorEntity[], constructors: readonly ConstructorEntity[], destructors: readonly DestructorEntity[], indexers: readonly SourceIndexerEntity[], dereferenceOperators: readonly DereferenceOperatorEntity[]);
|
654
|
+
constructor(variables: readonly e.TypeVariableEntity[], methods: readonly e.TypeMethodEntity[], operators: readonly e.OperatorEntity[], constructors: readonly e.ConstructorEntity[], destructors: readonly e.DestructorEntity[], indexers: readonly e.SourceIndexerEntity[], dereferenceOperators: readonly e.DereferenceOperatorEntity[]);
|
693
655
|
}
|
694
656
|
export {};
|