@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
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Name, PackageLocale, SearchName } from '../common/index.js';
|
2
|
-
import {
|
2
|
+
import { EntityHidingLevel, IEntityHidingMatcher, MethodEntity, NamedTypeEntity, OperatorKind, PackageAliasEntity, TypeEntity, TypeExtensionEntity, VariableEntity } from '../entities/index.js';
|
3
3
|
import * as tree from '../tree/index.js';
|
4
4
|
import * as types from '../types/index.js';
|
5
5
|
import { Analyzer } from './Analyzer.js';
|
@@ -8,105 +8,16 @@ import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
8
8
|
import { Lookup } from './Lookup.js';
|
9
9
|
import { TypeMemberLookup } from './TypeMemberLookup.js';
|
10
10
|
export interface IScope {
|
11
|
-
getTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
12
|
-
getTypesOrContainersWithTypesByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
13
|
-
getNamedDeclarations(hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<NamedDeclaration>[];
|
14
|
-
getNamedDeclarationsByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<NamedDeclaration>[];
|
15
|
-
getOperators(hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
16
|
-
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
17
|
-
getTypeExtensionsByType(typeEntity: TypeEntity, hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
18
|
-
}
|
19
|
-
export type TypeOrContainerWithTypes =
|
20
|
-
export
|
21
|
-
readonly value: TypeDeclaration;
|
22
|
-
readonly kind = "type";
|
23
|
-
constructor(value: TypeDeclaration);
|
24
|
-
getName(): Name;
|
25
|
-
isHidden(): EntityHidingLevel | undefined;
|
26
|
-
}
|
27
|
-
export declare class TypeOrContainerWithTypes_packageAlias implements ITypeOrContainerWithTypes {
|
28
|
-
readonly value: PackageAliasEntity;
|
29
|
-
readonly kind = "package-alias";
|
30
|
-
constructor(value: PackageAliasEntity);
|
31
|
-
getName(): Name;
|
32
|
-
isHidden(): EntityHidingLevel | undefined;
|
33
|
-
}
|
34
|
-
export declare class TypeOrContainerWithTypes_packageNameSegment implements ITypeOrContainerWithTypes {
|
35
|
-
readonly value: PackageNameTreeNode;
|
36
|
-
readonly kind = "package-name-segment";
|
37
|
-
constructor(value: PackageNameTreeNode);
|
38
|
-
getName(): Name;
|
39
|
-
isHidden(): EntityHidingLevel | undefined;
|
40
|
-
}
|
41
|
-
interface ITypeOrContainerWithTypes {
|
42
|
-
getName(): Name;
|
43
|
-
isHidden(): EntityHidingLevel | undefined;
|
44
|
-
}
|
45
|
-
export type TypeDeclaration = TypeDeclaration_structured | TypeDeclaration_variant | TypeDeclaration_method | TypeDeclaration_parameter | TypeDeclaration_alias;
|
46
|
-
export declare class TypeDeclaration_structured implements ITypeDeclaration {
|
47
|
-
readonly value: PackageStructuredTypeEntity;
|
48
|
-
readonly kind = "structured";
|
49
|
-
constructor(value: PackageStructuredTypeEntity);
|
50
|
-
getArity(): number;
|
51
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
52
|
-
getName(): Name;
|
53
|
-
getEntity(): NamedTypeEntity;
|
54
|
-
isHidden(): EntityHidingLevel | undefined;
|
55
|
-
instantiate(analyzer: Analyzer, typeArguments: readonly types.Type[]): types.Type;
|
56
|
-
}
|
57
|
-
export declare class TypeDeclaration_variant implements ITypeDeclaration {
|
58
|
-
readonly value: PackageVariantTypeEntity;
|
59
|
-
readonly kind = "variant";
|
60
|
-
constructor(value: PackageVariantTypeEntity);
|
61
|
-
getArity(): number;
|
62
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
63
|
-
getName(): Name;
|
64
|
-
getEntity(): NamedTypeEntity;
|
65
|
-
isHidden(): EntityHidingLevel | undefined;
|
66
|
-
instantiate(analyzer: Analyzer, typeArguments: readonly types.Type[]): types.Type;
|
67
|
-
}
|
68
|
-
export declare class TypeDeclaration_method implements ITypeDeclaration {
|
69
|
-
readonly value: PackageMethodTypeEntity;
|
70
|
-
readonly kind = "method";
|
71
|
-
constructor(value: PackageMethodTypeEntity);
|
72
|
-
getArity(): number;
|
73
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
74
|
-
getName(): Name;
|
75
|
-
getEntity(): NamedTypeEntity;
|
76
|
-
isHidden(): EntityHidingLevel | undefined;
|
77
|
-
instantiate(analyzer: Analyzer, typeArguments: readonly types.Type[]): types.Type;
|
78
|
-
}
|
79
|
-
export declare class TypeDeclaration_parameter implements ITypeDeclaration {
|
80
|
-
readonly value: TypeParameterEntity;
|
81
|
-
readonly kind = "parameter";
|
82
|
-
constructor(value: TypeParameterEntity);
|
83
|
-
getArity(): number;
|
84
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
85
|
-
getName(): Name;
|
86
|
-
getEntity(): NamedTypeEntity;
|
87
|
-
isHidden(): EntityHidingLevel | undefined;
|
88
|
-
instantiate(analyzer: Analyzer, _typeArguments: readonly types.Type[]): types.Type;
|
89
|
-
}
|
90
|
-
export declare class TypeDeclaration_alias implements ITypeDeclaration {
|
91
|
-
readonly value: AliasTypeEntity;
|
92
|
-
readonly kind = "alias";
|
93
|
-
constructor(value: AliasTypeEntity);
|
94
|
-
getArity(): number;
|
95
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
96
|
-
getName(): Name;
|
97
|
-
getEntity(): NamedTypeEntity;
|
98
|
-
isHidden(): EntityHidingLevel | undefined;
|
99
|
-
instantiate(analyzer: Analyzer, typeArguments: readonly types.Type[]): types.Type;
|
100
|
-
}
|
101
|
-
interface ITypeDeclaration {
|
102
|
-
getArity(): number;
|
103
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
104
|
-
getName(): Name;
|
105
|
-
getEntity(): NamedTypeEntity;
|
106
|
-
isHidden(): EntityHidingLevel | undefined;
|
107
|
-
instantiate(analyzer: Analyzer, typeArguments: readonly types.Type[]): types.Type;
|
108
|
-
}
|
109
|
-
export type NamedDeclaration = NamedDeclaration_method | NamedDeclaration_variable | NamedDeclaration_type | NamedDeclaration_variant | NamedDeclaration_packageAlias | NamedDeclaration_packageNameSegment;
|
11
|
+
getTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): readonly FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
12
|
+
getTypesOrContainersWithTypesByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): readonly FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
13
|
+
getNamedDeclarations(hidingMatcher?: IEntityHidingMatcher): readonly FoundNamedDeclaration<NamedDeclaration>[];
|
14
|
+
getNamedDeclarationsByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): readonly FoundNamedDeclaration<NamedDeclaration>[];
|
15
|
+
getOperators(hidingMatcher?: IEntityHidingMatcher): readonly FoundAnonymousDeclaration<types.Operator>[];
|
16
|
+
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher): readonly FoundAnonymousDeclaration<types.Operator>[];
|
17
|
+
getTypeExtensionsByType(typeEntity: TypeEntity, hidingMatcher?: IEntityHidingMatcher): readonly TypeExtensionEntity[];
|
18
|
+
}
|
19
|
+
export type TypeOrContainerWithTypes = NamedDeclaration_type | NamedDeclaration_packageAlias | NamedDeclaration_packageNameSegment;
|
20
|
+
export type NamedDeclaration = NamedDeclaration_method | NamedDeclaration_variable | NamedDeclaration_type | NamedDeclaration_packageAlias | NamedDeclaration_packageNameSegment;
|
110
21
|
export declare class NamedDeclaration_method implements INamedDeclaration {
|
111
22
|
readonly value: NamedDeclarationMethod;
|
112
23
|
readonly kind = "method";
|
@@ -193,16 +104,9 @@ interface INamedDeclarationVariable {
|
|
193
104
|
isHidden(): EntityHidingLevel | undefined;
|
194
105
|
}
|
195
106
|
export declare class NamedDeclaration_type implements INamedDeclaration {
|
196
|
-
readonly value:
|
107
|
+
readonly value: NamedTypeEntity;
|
197
108
|
readonly kind = "type";
|
198
|
-
constructor(value:
|
199
|
-
getName(): Name;
|
200
|
-
isHidden(): EntityHidingLevel | undefined;
|
201
|
-
}
|
202
|
-
export declare class NamedDeclaration_variant implements INamedDeclaration {
|
203
|
-
readonly value: VariantEntity;
|
204
|
-
readonly kind = "variant";
|
205
|
-
constructor(value: VariantEntity);
|
109
|
+
constructor(value: NamedTypeEntity);
|
206
110
|
getName(): Name;
|
207
111
|
isHidden(): EntityHidingLevel | undefined;
|
208
112
|
}
|
@@ -229,7 +133,9 @@ export declare class SourceFileScope implements IScope {
|
|
229
133
|
private readonly _containingPackageMemberLookup;
|
230
134
|
private readonly _importedPackageMemberLookups;
|
231
135
|
private readonly _packageNameSegments;
|
136
|
+
private readonly _packageNameSegmentsByKey;
|
232
137
|
private readonly _locale;
|
138
|
+
private get packageNameSegmentsByKey();
|
233
139
|
constructor(analyzer: Analyzer, node: tree.SourceFile);
|
234
140
|
getTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
235
141
|
getTypesOrContainersWithTypesByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
@@ -238,7 +144,6 @@ export declare class SourceFileScope implements IScope {
|
|
238
144
|
getOperators(_hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
239
145
|
getOperatorsByKind(_kind: OperatorKind, _hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
240
146
|
getTypeExtensionsByType(type: TypeEntity, hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
241
|
-
private convertPackageMembersTypeDeclaration;
|
242
147
|
private convertPackageMemberToNamedDeclaration;
|
243
148
|
private convertPackageAliasToTypeOrContainerWithTypes;
|
244
149
|
private convertPackageMemberToTypeOrContainerWithTypes;
|
@@ -247,15 +152,15 @@ export declare class SourceFileScope implements IScope {
|
|
247
152
|
private checkNamedDeclarationShadowing;
|
248
153
|
}
|
249
154
|
export declare class GenericScope implements IScope {
|
250
|
-
private readonly _typeOrContainerWithTypes;
|
251
155
|
private readonly _namedDeclarations;
|
156
|
+
private readonly _typeOrContainerWithTypes;
|
252
157
|
private readonly _typeExtensionEntities;
|
253
158
|
private readonly _locale;
|
254
159
|
private readonly _namedDeclarationsByName;
|
255
160
|
private readonly _typesOrContainerWithTypesByName;
|
256
161
|
private get namedDeclarationsByName();
|
257
162
|
private get typesOrContainerWithTypesByName();
|
258
|
-
constructor(
|
163
|
+
constructor(namedDeclarations: readonly NamedDeclaration[], typeExtensionEntities: readonly TypeExtensionEntity[], locale: PackageLocale);
|
259
164
|
getTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
260
165
|
getTypesOrContainersWithTypesByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
261
166
|
getNamedDeclarations(hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<NamedDeclaration>[];
|
@@ -284,7 +189,7 @@ export declare class ParameterDeclarationsScope implements IScope {
|
|
284
189
|
getTypeExtensionsByType(typeEntity: TypeEntity, hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
285
190
|
private checkHiding;
|
286
191
|
}
|
287
|
-
export declare class
|
192
|
+
export declare class TypeWithMembersBodyScope implements IScope {
|
288
193
|
private readonly _memberLookup;
|
289
194
|
private readonly _typeExtensionsLookup;
|
290
195
|
constructor(_memberLookup: TypeMemberLookup, _typeExtensionsLookup: Lookup);
|
@@ -292,8 +197,8 @@ export declare class StructuredTypeBodyScope implements IScope {
|
|
292
197
|
getTypesOrContainersWithTypesByName(_name: SearchName, _hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<TypeOrContainerWithTypes>[];
|
293
198
|
getNamedDeclarations(hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<NamedDeclaration>[];
|
294
199
|
getNamedDeclarationsByName(name: SearchName, hidingMatcher: IEntityHidingMatcher | undefined): FoundNamedDeclaration<NamedDeclaration>[];
|
295
|
-
getOperators(hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
296
|
-
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
200
|
+
getOperators(hidingMatcher?: IEntityHidingMatcher): readonly FoundAnonymousDeclaration<types.Operator>[];
|
201
|
+
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher): readonly FoundAnonymousDeclaration<types.Operator>[];
|
297
202
|
getTypeExtensionsByType(_typeEntity: TypeEntity, _hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
298
203
|
private convertNamedMember;
|
299
204
|
}
|
@@ -312,7 +217,7 @@ export declare class TypeExtensionBodyScope implements IScope {
|
|
312
217
|
getNamedDeclarations(hidingMatcher: IEntityHidingMatcher | undefined): FoundNamedDeclaration<NamedDeclaration>[];
|
313
218
|
getNamedDeclarationsByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher): FoundNamedDeclaration<NamedDeclaration>[];
|
314
219
|
getOperators(hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
315
|
-
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher): FoundAnonymousDeclaration<types.Operator>[];
|
220
|
+
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher): readonly FoundAnonymousDeclaration<types.Operator>[];
|
316
221
|
getTypeExtensionsByType(_typeEntity: TypeEntity, _hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
317
222
|
private convertNamedTypeExtensionMember;
|
318
223
|
private convertTypeExtensionOperator;
|
@@ -35,6 +35,8 @@ export declare namespace SubprogramInfo {
|
|
35
35
|
constructor(analyzer: Analyzer, node: MethodDeclaration);
|
36
36
|
getReturnType(): types.Type | undefined;
|
37
37
|
isGenerator(): boolean;
|
38
|
+
allowsAsyncCalls(): boolean;
|
39
|
+
private getEntity;
|
38
40
|
}
|
39
41
|
export class Operator implements ISubprogramInfo {
|
40
42
|
readonly kind = "operator";
|
@@ -43,6 +45,7 @@ export declare namespace SubprogramInfo {
|
|
43
45
|
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration);
|
44
46
|
getReturnType(): types.Type | undefined;
|
45
47
|
isGenerator(): boolean;
|
48
|
+
allowsAsyncCalls(): boolean;
|
46
49
|
}
|
47
50
|
export class Constructor implements ISubprogramInfo {
|
48
51
|
readonly kind = "constructor";
|
@@ -51,6 +54,7 @@ export declare namespace SubprogramInfo {
|
|
51
54
|
constructor(analyzer: Analyzer, node: tree.TypeConstructorDeclaration);
|
52
55
|
getReturnType(): types.Type | undefined;
|
53
56
|
isGenerator(): boolean;
|
57
|
+
allowsAsyncCalls(): boolean;
|
54
58
|
getEntity(): ConstructorEntity;
|
55
59
|
}
|
56
60
|
export class Destructor implements ISubprogramInfo {
|
@@ -60,6 +64,7 @@ export declare namespace SubprogramInfo {
|
|
60
64
|
constructor(analyzer: Analyzer, node: tree.TypeDestructorDeclaration);
|
61
65
|
getReturnType(): types.Type | undefined;
|
62
66
|
isGenerator(): boolean;
|
67
|
+
allowsAsyncCalls(): boolean;
|
63
68
|
}
|
64
69
|
export class Getter implements ISubprogramInfo {
|
65
70
|
readonly kind = "getter";
|
@@ -68,6 +73,7 @@ export declare namespace SubprogramInfo {
|
|
68
73
|
constructor(analyzer: Analyzer, node: GetterDeclaration);
|
69
74
|
getReturnType(): types.Type | undefined;
|
70
75
|
isGenerator(): boolean;
|
76
|
+
allowsAsyncCalls(): boolean;
|
71
77
|
}
|
72
78
|
export class Setter implements ISubprogramInfo {
|
73
79
|
readonly kind = "setter";
|
@@ -76,6 +82,7 @@ export declare namespace SubprogramInfo {
|
|
76
82
|
constructor(analyzer: Analyzer, node: SetterDeclaration);
|
77
83
|
getReturnType(): types.Type | undefined;
|
78
84
|
isGenerator(): boolean;
|
85
|
+
allowsAsyncCalls(): boolean;
|
79
86
|
}
|
80
87
|
export class PackageConstructor implements ISubprogramInfo {
|
81
88
|
readonly kind = "package-constructor";
|
@@ -84,6 +91,7 @@ export declare namespace SubprogramInfo {
|
|
84
91
|
constructor(analyzer: Analyzer, node: tree.PackageConstructorDeclaration);
|
85
92
|
getReturnType(): types.Type | undefined;
|
86
93
|
isGenerator(): boolean;
|
94
|
+
allowsAsyncCalls(): boolean;
|
87
95
|
getPackageEntity(): PackageEntity;
|
88
96
|
}
|
89
97
|
export class PackageEntryPoint implements ISubprogramInfo {
|
@@ -93,6 +101,7 @@ export declare namespace SubprogramInfo {
|
|
93
101
|
constructor(analyzer: Analyzer, node: tree.PackageEntryPointDeclaration);
|
94
102
|
getReturnType(): types.Type | undefined;
|
95
103
|
isGenerator(): boolean;
|
104
|
+
allowsAsyncCalls(): boolean;
|
96
105
|
getPackageEntity(): PackageEntity;
|
97
106
|
}
|
98
107
|
export class MethodLiteral implements ISubprogramInfo {
|
@@ -102,10 +111,13 @@ export declare namespace SubprogramInfo {
|
|
102
111
|
constructor(analyzer: Analyzer, node: RegularOrBlockMethodLiteral);
|
103
112
|
getReturnType(): types.Type | undefined;
|
104
113
|
isGenerator(): boolean;
|
114
|
+
allowsAsyncCalls(): boolean;
|
115
|
+
private getSignatureType;
|
105
116
|
}
|
106
117
|
interface ISubprogramInfo {
|
107
118
|
getReturnType(): types.Type | undefined;
|
108
119
|
isGenerator(): boolean;
|
120
|
+
allowsAsyncCalls(): boolean;
|
109
121
|
}
|
110
122
|
export {};
|
111
123
|
}
|
@@ -132,9 +144,9 @@ export declare namespace TypeOrTypeExtension {
|
|
132
144
|
export {};
|
133
145
|
}
|
134
146
|
export declare class RunStatementClausesInfo {
|
135
|
-
readonly
|
147
|
+
readonly hasCatchClause: boolean;
|
136
148
|
readonly hasFinallyClause: boolean;
|
137
|
-
constructor(
|
149
|
+
constructor(hasCatchClause: boolean, hasFinallyClause: boolean);
|
138
150
|
}
|
139
151
|
declare abstract class SemanticContextWithParent implements SemanticContext {
|
140
152
|
protected readonly _parentContext: SemanticContext;
|
@@ -295,10 +307,8 @@ export declare class GetterSemanticContext extends SemanticContextWithParent {
|
|
295
307
|
export declare class SetterSemanticContext extends SemanticContextWithParent {
|
296
308
|
private readonly _analyzer;
|
297
309
|
private readonly _node;
|
298
|
-
private readonly _scopeChain;
|
299
310
|
private readonly _subprogramInfo;
|
300
311
|
constructor(analyzer: Analyzer, node: SetterDeclaration, parentContext: SemanticContext);
|
301
|
-
getScopeChain(): ScopeChain;
|
302
312
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
303
313
|
}
|
304
314
|
export declare class StatementBlockSemanticContext extends SemanticContextWithParent {
|
@@ -327,11 +337,11 @@ export declare class ForStatementSemanticContext extends SemanticContextWithPare
|
|
327
337
|
constructor(analyzer: Analyzer, node: tree.ForStatement, parentContext: SemanticContext);
|
328
338
|
getScopeChain(): ScopeChain;
|
329
339
|
}
|
330
|
-
export declare class
|
340
|
+
export declare class CatchClauseSemanticContext extends SemanticContextWithParent {
|
331
341
|
private readonly _analyzer;
|
332
342
|
private readonly _node;
|
333
343
|
private readonly _scopeChain;
|
334
|
-
constructor(analyzer: Analyzer, node: tree.
|
344
|
+
constructor(analyzer: Analyzer, node: tree.CatchClause, parentContext: SemanticContext);
|
335
345
|
getScopeChain(): ScopeChain;
|
336
346
|
}
|
337
347
|
export {};
|
@@ -38,7 +38,7 @@ export declare class SemanticContextBuilder {
|
|
38
38
|
ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): SemanticContext;
|
39
39
|
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration, hint: 'body' | 'parameters'): SemanticContext;
|
40
40
|
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration, hint: 'body' | 'parameters'): SemanticContext;
|
41
|
-
|
41
|
+
ofCatchClause(node: tree.CatchClause): SemanticContext;
|
42
42
|
private containingInternal;
|
43
43
|
private ofChildOfMethodDeclaration;
|
44
44
|
private ofChildOfTypeDeclarationWithMemberBlock;
|
@@ -1,92 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { SearchName } from '../common/index.js';
|
2
|
+
import { PackageAliasEntity, PackageMethodEntity, PackageTypeEntity, PackageVariableEntity, TypeExtensionEntity } from '../entities/index.js';
|
3
3
|
export declare class SourceFileMembers {
|
4
|
-
private readonly
|
4
|
+
private readonly _namedMembers;
|
5
5
|
private readonly _typeExtensions;
|
6
6
|
private readonly _declarationsByName;
|
7
|
-
get declarationsByName(): ReadonlyMap<string, readonly
|
8
|
-
constructor(
|
9
|
-
getNamedDeclarations():
|
10
|
-
getNamedDeclarationsByName(name: SearchName):
|
11
|
-
getPackageAliases():
|
12
|
-
getPackageAliasesByName(name: SearchName):
|
13
|
-
getTypeExtensions():
|
14
|
-
|
15
|
-
|
16
|
-
export type NamedDeclaration = NamedDeclaration_type | NamedDeclaration_variable | NamedDeclaration_method | NamedDeclaration_packageAlias;
|
17
|
-
export declare class NamedDeclaration_type implements INamedDeclaration {
|
18
|
-
readonly value: TypeDeclaration;
|
19
|
-
readonly kind = "type";
|
20
|
-
constructor(value: TypeDeclaration);
|
21
|
-
getName(): Name;
|
22
|
-
isHidden(): EntityHidingLevel | undefined;
|
23
|
-
}
|
24
|
-
export declare class NamedDeclaration_variable implements INamedDeclaration {
|
25
|
-
readonly value: PackageVariableEntity;
|
26
|
-
readonly kind = "variable";
|
27
|
-
constructor(value: PackageVariableEntity);
|
28
|
-
getName(): Name;
|
29
|
-
isHidden(): EntityHidingLevel | undefined;
|
30
|
-
}
|
31
|
-
export declare class NamedDeclaration_method implements INamedDeclaration {
|
32
|
-
readonly value: PackageMethodEntity;
|
33
|
-
readonly kind = "method";
|
34
|
-
constructor(value: PackageMethodEntity);
|
35
|
-
getName(): Name;
|
36
|
-
isHidden(): EntityHidingLevel | undefined;
|
37
|
-
}
|
38
|
-
export declare class NamedDeclaration_packageAlias implements INamedDeclaration {
|
39
|
-
readonly value: PackageAliasEntity;
|
40
|
-
readonly kind = "package-alias";
|
41
|
-
constructor(value: PackageAliasEntity);
|
42
|
-
getName(): Name;
|
43
|
-
isHidden(): EntityHidingLevel | undefined;
|
44
|
-
}
|
45
|
-
interface INamedDeclaration {
|
46
|
-
getName(): Name;
|
47
|
-
isHidden(): EntityHidingLevel | undefined;
|
48
|
-
}
|
49
|
-
export type TypeDeclaration = TypeDeclaration_alias | TypeDeclaration_method | TypeDeclaration_structured | TypeDeclaration_variant;
|
50
|
-
export declare class TypeDeclaration_alias implements ITypeDeclaration {
|
51
|
-
readonly value: AliasTypeEntity;
|
52
|
-
readonly kind = "alias";
|
53
|
-
constructor(value: AliasTypeEntity);
|
54
|
-
getName(): Name;
|
55
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
56
|
-
getArity(): number;
|
57
|
-
isHidden(): EntityHidingLevel | undefined;
|
58
|
-
}
|
59
|
-
export declare class TypeDeclaration_method implements ITypeDeclaration {
|
60
|
-
readonly value: PackageMethodTypeEntity;
|
61
|
-
readonly kind = "method";
|
62
|
-
constructor(value: PackageMethodTypeEntity);
|
63
|
-
getName(): Name;
|
64
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
65
|
-
getArity(): number;
|
66
|
-
isHidden(): EntityHidingLevel | undefined;
|
67
|
-
}
|
68
|
-
export declare class TypeDeclaration_structured implements ITypeDeclaration {
|
69
|
-
readonly value: PackageStructuredTypeEntity;
|
70
|
-
readonly kind = "structured";
|
71
|
-
constructor(value: PackageStructuredTypeEntity);
|
72
|
-
getName(): Name;
|
73
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
74
|
-
getArity(): number;
|
75
|
-
isHidden(): EntityHidingLevel | undefined;
|
76
|
-
}
|
77
|
-
export declare class TypeDeclaration_variant implements ITypeDeclaration {
|
78
|
-
readonly value: PackageVariantTypeEntity;
|
79
|
-
readonly kind = "variant";
|
80
|
-
constructor(value: PackageVariantTypeEntity);
|
81
|
-
getName(): Name;
|
82
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
83
|
-
getArity(): number;
|
84
|
-
isHidden(): EntityHidingLevel | undefined;
|
85
|
-
}
|
86
|
-
interface ITypeDeclaration {
|
87
|
-
getName(): Name;
|
88
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
89
|
-
getArity(): number;
|
90
|
-
isHidden(): EntityHidingLevel | undefined;
|
91
|
-
}
|
92
|
-
export {};
|
7
|
+
get declarationsByName(): ReadonlyMap<string, readonly NamedSourceFileMemberEntity[]>;
|
8
|
+
constructor(namedMembers: readonly NamedSourceFileMemberEntity[], typeExtensions: readonly TypeExtensionEntity[]);
|
9
|
+
getNamedDeclarations(): readonly NamedSourceFileMemberEntity[];
|
10
|
+
getNamedDeclarationsByName(name: SearchName): readonly NamedSourceFileMemberEntity[];
|
11
|
+
getPackageAliases(): readonly PackageAliasEntity[];
|
12
|
+
getPackageAliasesByName(name: SearchName): readonly PackageAliasEntity[];
|
13
|
+
getTypeExtensions(): readonly TypeExtensionEntity[];
|
14
|
+
}
|
15
|
+
export type NamedSourceFileMemberEntity = PackageTypeEntity | PackageVariableEntity | PackageMethodEntity | PackageAliasEntity;
|
@@ -1,26 +1,74 @@
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
+
import { MethodEntity, NamedTypeEntity, PackageAliasEntity } from '../entities/index.js';
|
2
3
|
import { Tag } from '../tree/index.js';
|
3
4
|
import * as types from '../types/index.js';
|
4
|
-
import {
|
5
|
+
import { AccessedMethod } from './AccessedMethod.js';
|
6
|
+
import { FoundAnonymousDeclaration, FoundNamedDeclaration } from './FoundDeclaration.js';
|
7
|
+
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
5
8
|
import { Analyzer } from './index.js';
|
6
9
|
export declare class Resolver {
|
7
10
|
private readonly _analyzer;
|
8
11
|
private readonly _node;
|
12
|
+
private readonly _semanticContext;
|
13
|
+
private get semanticContext();
|
9
14
|
constructor(_analyzer: Analyzer, _node: Tag);
|
10
|
-
resolve():
|
15
|
+
resolve(): ResolutionResult;
|
16
|
+
private resolveNameInScope;
|
17
|
+
private resolveNameInPackage;
|
18
|
+
private resolveTypeOverload;
|
19
|
+
private resolveTagType;
|
20
|
+
private resolveTagMethod;
|
21
|
+
private createAccessedMethod;
|
22
|
+
private resolveMethodOverload;
|
11
23
|
}
|
12
|
-
export
|
13
|
-
|
14
|
-
readonly
|
24
|
+
export declare class ResolutionResult {
|
25
|
+
readonly meaning: Meaning;
|
26
|
+
readonly resolvedQualifiers: readonly ResolvedQualifier[];
|
27
|
+
readonly diagnostic?: Diagnostic | undefined;
|
28
|
+
constructor(meaning: Meaning, resolvedQualifiers: readonly ResolvedQualifier[], diagnostic?: Diagnostic | undefined);
|
29
|
+
}
|
30
|
+
export type Meaning = Meaning_tagType | Meaning_tagMethod | Meaning_unresolved;
|
31
|
+
declare class Meaning_tagType {
|
32
|
+
readonly type: types.Type;
|
15
33
|
readonly candidates: readonly FoundAnonymousDeclaration<types.Constructor>[];
|
16
34
|
readonly suitableConstructors: readonly FoundAnonymousDeclaration<types.Constructor>[];
|
17
|
-
readonly kind = "
|
35
|
+
readonly kind = "tag-type";
|
18
36
|
get singleSuitableConstructor(): FoundAnonymousDeclaration<types.Constructor> | undefined;
|
19
|
-
constructor(type: types.
|
37
|
+
constructor(type: types.Type, candidates: readonly FoundAnonymousDeclaration<types.Constructor>[], suitableConstructors: readonly FoundAnonymousDeclaration<types.Constructor>[]);
|
38
|
+
}
|
39
|
+
declare class Meaning_tagMethod {
|
40
|
+
readonly candidates: readonly FoundNamedDeclaration<AccessedMethod>[];
|
41
|
+
readonly suitableMethods: readonly FoundNamedDeclaration<AccessedMethod>[];
|
42
|
+
readonly kind = "tag-method";
|
43
|
+
get singleSuitableMethod(): FoundNamedDeclaration<AccessedMethod> | undefined;
|
44
|
+
constructor(candidates: readonly FoundNamedDeclaration<AccessedMethod>[], suitableMethods: readonly FoundNamedDeclaration<AccessedMethod>[]);
|
20
45
|
}
|
21
46
|
declare class Meaning_unresolved {
|
22
|
-
readonly diagnostics: readonly Diagnostic[];
|
23
47
|
readonly kind = "unresolved";
|
24
|
-
|
48
|
+
}
|
49
|
+
export type ResolvedQualifier = ResolvedQualifier_packageNameSegment | ResolvedQualifier_packageAlias | ResolvedQualifier_type | ResolvedQualifier_method;
|
50
|
+
export declare class ResolvedQualifier_packageNameSegment {
|
51
|
+
readonly packageTreeNode: PackageNameTreeNode;
|
52
|
+
readonly kind = "package-name-segment";
|
53
|
+
constructor(packageTreeNode: PackageNameTreeNode);
|
54
|
+
}
|
55
|
+
export declare class ResolvedQualifier_packageAlias {
|
56
|
+
readonly packageAlias: PackageAliasEntity;
|
57
|
+
readonly kind = "package-alias";
|
58
|
+
constructor(packageAlias: PackageAliasEntity);
|
59
|
+
}
|
60
|
+
export declare class ResolvedQualifier_type {
|
61
|
+
readonly candidates: readonly FoundNamedDeclaration<NamedTypeEntity>[];
|
62
|
+
readonly suitableTypes: readonly FoundNamedDeclaration<NamedTypeEntity>[];
|
63
|
+
readonly kind = "type";
|
64
|
+
get singleSuitableType(): FoundNamedDeclaration<NamedTypeEntity> | undefined;
|
65
|
+
constructor(candidates: readonly FoundNamedDeclaration<NamedTypeEntity>[], suitableTypes: readonly FoundNamedDeclaration<NamedTypeEntity>[]);
|
66
|
+
}
|
67
|
+
export declare class ResolvedQualifier_method {
|
68
|
+
readonly candidates: readonly FoundNamedDeclaration<MethodEntity>[];
|
69
|
+
readonly suitableMethods: readonly FoundNamedDeclaration<MethodEntity>[];
|
70
|
+
readonly kind = "method";
|
71
|
+
get singleSuitableMethod(): FoundNamedDeclaration<MethodEntity> | undefined;
|
72
|
+
constructor(candidates: readonly FoundNamedDeclaration<MethodEntity>[], suitableMethods: readonly FoundNamedDeclaration<MethodEntity>[]);
|
25
73
|
}
|
26
74
|
export {};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { VariableEntity } from '../entities/index.js';
|
2
2
|
import * as types from '../types/index.js';
|
3
3
|
export declare class Tag {
|
4
|
-
readonly type: types.
|
4
|
+
readonly type: types.Type;
|
5
5
|
readonly constructor_: types.Constructor;
|
6
6
|
readonly argumentByParameter: ReadonlyMap<VariableEntity, TagArgument>;
|
7
7
|
private readonly _argumentByName;
|
8
8
|
get argumentByName(): ReadonlyMap<string, TagArgument>;
|
9
|
-
constructor(type: types.
|
9
|
+
constructor(type: types.Type, constructor_: types.Constructor, argumentByParameter: ReadonlyMap<VariableEntity, TagArgument>);
|
10
10
|
}
|
11
11
|
export type TagArgument = TagArgument_string | TagArgument_numeric | TagArgument_boolean | TagArgument_invalid;
|
12
12
|
export declare class TagArgument_string {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PackageLocale,
|
1
|
+
import { PackageLocale, SearchName } from '../common/index.js';
|
2
2
|
import { IEntityHidingMatcher, OperatorKind, TypeEntity } from '../entities/index.js';
|
3
3
|
import * as types from '../types/index.js';
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
@@ -16,13 +16,13 @@ export declare class TypeMemberLookup {
|
|
16
16
|
get searchLocale(): PackageLocale;
|
17
17
|
constructor(_analyzer: Analyzer, _type: types.Type, _localizationContext: LocalizationContext | undefined);
|
18
18
|
static ofTypeEntity(analyzer: Analyzer, entity: TypeEntity, localizationContext: LocalizationContext | undefined): TypeMemberLookup;
|
19
|
-
getNamedMembers(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
20
|
-
getNamedMembersByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
21
|
-
getOperators(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
22
|
-
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
23
|
-
getConstructors(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
24
|
-
getIndexers(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
25
|
-
getDereferenceOperators(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup):
|
19
|
+
getNamedMembers(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundNamedDeclaration<types.NamedTypeMember>[];
|
20
|
+
getNamedMembersByName(name: SearchName, hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundNamedDeclaration<types.NamedTypeMember>[];
|
21
|
+
getOperators(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundAnonymousDeclaration<types.Operator>[];
|
22
|
+
getOperatorsByKind(kind: OperatorKind, hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundAnonymousDeclaration<types.Operator>[];
|
23
|
+
getConstructors(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundAnonymousDeclaration<types.Constructor>[];
|
24
|
+
getIndexers(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundAnonymousDeclaration<types.Indexer>[];
|
25
|
+
getDereferenceOperators(hidingMatcher?: IEntityHidingMatcher, typeExtensionsLookup?: Lookup): readonly FoundAnonymousDeclaration<types.DereferenceOperator>[];
|
26
26
|
private getLocaleOfTypeEntity;
|
27
27
|
}
|
28
28
|
export declare class BoundTypeMemberLookup {
|
@@ -31,11 +31,11 @@ export declare class BoundTypeMemberLookup {
|
|
31
31
|
private readonly _typeExtensionLookup;
|
32
32
|
constructor(analyzer: Analyzer, type: types.Type, localizationContext: LocalizationContext | undefined, hidingMatcher: IEntityHidingMatcher | undefined, typeExtensionLookup: Lookup | undefined);
|
33
33
|
static ofTypeEntity(analyzer: Analyzer, entity: TypeEntity, localizationContext: LocalizationContext | undefined, hidingMatcher: IEntityHidingMatcher | undefined, typeExtensionLookup: Lookup | undefined): BoundTypeMemberLookup;
|
34
|
-
getNamedMembers():
|
35
|
-
getNamedMembersByName(name: SearchName):
|
36
|
-
getOperators():
|
37
|
-
getOperatorsByKind(kind: OperatorKind):
|
38
|
-
getConstructors():
|
39
|
-
getIndexers():
|
40
|
-
getDereferenceOperators():
|
34
|
+
getNamedMembers(): readonly FoundNamedDeclaration<types.NamedTypeMember>[];
|
35
|
+
getNamedMembersByName(name: SearchName): readonly FoundNamedDeclaration<types.NamedTypeMember>[];
|
36
|
+
getOperators(): readonly FoundAnonymousDeclaration<types.Operator>[];
|
37
|
+
getOperatorsByKind(kind: OperatorKind): readonly FoundAnonymousDeclaration<types.Operator>[];
|
38
|
+
getConstructors(): readonly FoundAnonymousDeclaration<types.Constructor>[];
|
39
|
+
getIndexers(): readonly FoundAnonymousDeclaration<types.Indexer>[];
|
40
|
+
getDereferenceOperators(): readonly FoundAnonymousDeclaration<types.DereferenceOperator>[];
|
41
41
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare class Resolver<TCandidate extends ICandidate> {
|
2
|
-
resolveByArgumentCount(candidates:
|
2
|
+
resolveByArgumentCount(candidates: readonly TCandidate[], argumentCount: number): readonly TCandidate[];
|
3
3
|
}
|
4
4
|
export interface ICandidate {
|
5
5
|
getParameterCount(): number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './Analyzer.js';
|
2
|
-
export * from './
|
2
|
+
export * from './ArgumentsToParametersMatcher.js';
|
3
3
|
export * from './DeclarationsUsageCounter.js';
|
4
4
|
export * from './DiagnosticCollector.js';
|
5
5
|
export * from './FindModifier.js';
|
package/build/types/api/Api.d.ts
CHANGED
@@ -3,9 +3,8 @@ export * from '../analysis/AnalyzedTranslationPackage.js';
|
|
3
3
|
export * from '../analysis/Analyzer.js';
|
4
4
|
export type { Meaning as AutotypeCallExpressionMeaning } from '../analysis/AutotypeCallExpressionMeaning.js';
|
5
5
|
export type { Meaning as BaseExpressionMeaning } from '../analysis/BaseExpressionMeaning.js';
|
6
|
-
export { MatchResult, MatchResultValueParameter } from '../analysis/
|
6
|
+
export { MatchResult, MatchResultValueParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
7
7
|
export type { Meaning as CallExpressionMeaning } from '../analysis/CallExpressionMeaning.js';
|
8
|
-
export * as dereferencedVariableAccess from '../analysis/DereferencedVariableAccess.js';
|
9
8
|
export type { Meaning as DereferenceExpressionMeaning } from '../analysis/DereferenceExpressionMeaning.js';
|
10
9
|
export * from '../analysis/DiagnosticCollector.js';
|
11
10
|
export * from '../analysis/EntityLocalizationHelper.js';
|
@@ -13,7 +12,6 @@ export * from '../analysis/FindModifier.js';
|
|
13
12
|
export * from '../analysis/FoundDeclaration.js';
|
14
13
|
export type { Meaning as IdentifierExpressionMeaning, ResolutionResult as IdentifierExpressionResolutionResult } from '../analysis/IdentifierExpressionMeaning.js';
|
15
14
|
export * from '../analysis/ImportedPackageNameTree.js';
|
16
|
-
export * as indexedAccess from '../analysis/IndexedAccess.js';
|
17
15
|
export type { Meaning as IndexedAccessExpressionMeaning } from '../analysis/IndexedAccessExpressionMeaning.js';
|
18
16
|
export * from '../analysis/Localization.js';
|
19
17
|
export * from '../analysis/LocalizationContext.js';
|
@@ -22,7 +20,7 @@ export * from '../analysis/NodeTypeUtils.js';
|
|
22
20
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
23
21
|
export * from '../analysis/PackageMemberLookup.js';
|
24
22
|
export type { Meaning as PropertyAccessExpressionMeaning, ResolutionResult as PropertyAccessExpressionResolutionResult } from '../analysis/PropertyAccessExpressionMeaning.js';
|
25
|
-
export type { IScope, NamedDeclaration,
|
23
|
+
export type { IScope, NamedDeclaration, TypeOrContainerWithTypes } from '../analysis/Scope.js';
|
26
24
|
export * from '../analysis/SemanticContext.js';
|
27
25
|
export * from '../analysis/SourceFileMembers.js';
|
28
26
|
export * from '../analysis/SourcePackageDependencyGraph.js';
|
@@ -32,8 +30,6 @@ export * from '../analysis/Tags.js';
|
|
32
30
|
export * from '../analysis/TargetTypeHint.js';
|
33
31
|
export * from '../analysis/TypeMemberLookup.js';
|
34
32
|
export * from '../analysis/Utils.js';
|
35
|
-
export * as variableAccess from '../analysis/VariableAccess.js';
|
36
|
-
export * from '../analysis/VariantLookup.js';
|
37
33
|
export * from '../analysis/Visitor.js';
|
38
34
|
export * from '../analysis/WellKnownDeclarations.js';
|
39
35
|
export * from '../common/index.js';
|