@artel/artc 0.6.25244 → 0.6.25245
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 +30 -22
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +500 -916
- package/build/{chunk-C7RKXERX.js → chunk-FVBS6MPY.js} +1 -1
- package/build/{chunk-BAAUJYMH.js → chunk-T7WG4Z7I.js} +21018 -19022
- package/build/{chunk-V7EU2U6Y.js → chunk-TVZEHLXD.js} +2 -2
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +49 -80
- package/build/types/analysis/Analyzer.d.ts +59 -73
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +8 -10
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +6 -6
- package/build/types/analysis/CallExpressionMeaning.d.ts +7 -9
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +4 -7
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +1 -2
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +2 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +16 -17
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -7
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -5
- package/build/types/analysis/Localization.d.ts +19 -25
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +29 -31
- package/build/types/analysis/NamedTypeResolver.d.ts +6 -8
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -5
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +4 -9
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +2 -2
- package/build/types/analysis/SourceFileMembers.d.ts +3 -3
- package/build/types/analysis/TagMeaning.d.ts +18 -20
- package/build/types/analysis/Tags.d.ts +1 -1
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +23 -31
- package/build/types/analysis/TypeNarrower.d.ts +1 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +100 -31
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +11 -14
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +5 -6
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +5 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +11 -12
- package/build/types/api/Api.d.ts +0 -3
- package/build/types/common/Name.d.ts +9 -14
- package/build/types/common/TreeQuery.d.ts +2 -0
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +1 -1
- package/build/types/emitter/EntityMap.d.ts +1 -0
- package/build/types/entities/AliasTypeEntity.d.ts +9 -41
- package/build/types/entities/AliasedType.d.ts +62 -0
- package/build/types/entities/ConstructorEntity.d.ts +10 -2
- package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -0
- package/build/types/entities/DestructorEntity.d.ts +6 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +53 -0
- package/build/types/entities/FunctionEntity.d.ts +20 -0
- package/build/types/entities/FunctionTypeEntity.d.ts +15 -4
- package/build/types/entities/GetterEntity.d.ts +15 -2
- package/build/types/entities/IndexerEntity.d.ts +5 -0
- package/build/types/entities/OperatorEntity.d.ts +9 -3
- package/build/types/entities/PackageAliasEntity.d.ts +5 -0
- package/build/types/entities/PackageEntity.d.ts +8 -3
- package/build/types/entities/PackageMembers.d.ts +3 -2
- package/build/types/entities/SetterEntity.d.ts +15 -2
- package/build/types/entities/StructuredTypeEntity.d.ts +64 -15
- package/build/types/entities/TypeEntityMembers.d.ts +2 -5
- package/build/types/entities/TypeExtensionEntity.d.ts +9 -5
- package/build/types/entities/TypeMemberContainer.d.ts +2 -2
- package/build/types/entities/TypeParameterEntity.d.ts +26 -8
- package/build/types/entities/VariableEntity.d.ts +41 -1
- package/build/types/entities/VariantTypeEntity.d.ts +13 -4
- package/build/types/entities/index.d.ts +5 -4
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +54 -0
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +34 -0
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +24 -0
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +75 -0
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +83 -0
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +37 -0
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +35 -0
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +22 -0
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +107 -0
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +46 -0
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +97 -0
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +76 -0
- package/build/types/project/SourcePackage.d.ts +1 -0
- package/build/types/services/DefinitionService.d.ts +0 -1
- package/build/types/services/DisplayService.d.ts +39 -134
- package/build/types/services/NodeSemanticInfo.d.ts +7 -7
- package/build/types/services/ReferencesService.d.ts +5 -3
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -10
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -3
- package/build/types/services/source-generation/SourceGenerationService.d.ts +1 -2
- package/build/types/tree/green/Token.d.ts +6 -7
- package/build/types/ts-interop/Entities.d.ts +64 -13
- package/build/types/ts-interop/TsInteropContext.d.ts +17 -5
- package/build/types/ts-interop/TsPackageContents.d.ts +2 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +3 -3
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +4 -4
- package/build/types/types/StandardTypes.d.ts +3 -2
- package/build/types/types/Substitutions.d.ts +3 -0
- package/build/types/types/Type.d.ts +3 -0
- package/package.json +1 -1
- package/build/types/analysis/EntityLocalizationHelper.d.ts +0 -17
- package/build/types/analysis/FoundDeclaration.d.ts +0 -19
- package/build/types/analysis/LocalizationContext.d.ts +0 -15
- package/build/types/common/SearchName.d.ts +0 -14
- package/build/types/types/Internal.d.ts +0 -1
@@ -1,19 +1,18 @@
|
|
1
1
|
import { AccessedFunction } from '../analysis/AccessedFunction.js';
|
2
2
|
import { PackageNameTreeNode } from '../analysis/ImportedPackageNameTree.js';
|
3
|
-
import { Localization } from '../analysis/Localization.js';
|
4
|
-
import { LocalizationContext, NamedEntity } from '../analysis/LocalizationContext.js';
|
5
3
|
import { SubstitutedFunction } from '../analysis/SubstitutedFunction.js';
|
6
4
|
import { Analyzer } from '../analysis/index.js';
|
7
5
|
import { HelperPhraseKind } from '../common/HelperPhrases.js';
|
8
6
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
9
7
|
import * as e from '../entities/index.js';
|
8
|
+
import { NamedEntity } from '../entities/index.js';
|
10
9
|
import { KeywordKind } from '../tree/index.js';
|
11
10
|
import * as types from '../types/index.js';
|
12
11
|
export declare class DisplayService {
|
13
12
|
private readonly _analyzer;
|
14
|
-
private readonly
|
13
|
+
private readonly _locale;
|
15
14
|
private readonly _dialect?;
|
16
|
-
constructor(_analyzer: Analyzer | undefined,
|
15
|
+
constructor(_analyzer: Analyzer | undefined, _locale: PackageLocale, _dialect?: PackageDialect | undefined);
|
17
16
|
displayVariableDeclaration(variable: VariableDeclaration): string;
|
18
17
|
displayType(type: types.Type): string;
|
19
18
|
getFunctionTypeBodyDisplayParts(type: types.FunctionType): FunctionTypeBodyDisplayParts;
|
@@ -27,7 +26,7 @@ export declare class DisplayService {
|
|
27
26
|
getFunctionDeclarationDisplayParts(func: FunctionDeclaration): FunctionDeclarationDisplayParts;
|
28
27
|
displayOperatorDeclaration(operator: OperatorDeclaration): string;
|
29
28
|
getOperatorDeclarationDisplayParts(operator: OperatorDeclaration): OperatorDeclarationDisplayParts;
|
30
|
-
displayOperatorKind(kind: e.OperatorKind
|
29
|
+
displayOperatorKind(kind: e.OperatorKind): string;
|
31
30
|
displayConstructorDeclaration(constructor: ConstructorDeclaration): string;
|
32
31
|
getConstructorDeclarationDisplayParts(constructor: ConstructorDeclaration): ConstructorDeclarationDisplayParts;
|
33
32
|
displayDestructorDeclaration(constructor: DestructorDeclaration): string;
|
@@ -36,19 +35,19 @@ export declare class DisplayService {
|
|
36
35
|
displayDereferenceOperatorDeclaration(referenceOperator: DereferenceOperatorDeclaration): string;
|
37
36
|
getDereferenceOperatorDeclarationDisplayParts(dereferenceOperator: DereferenceOperatorDeclaration): DereferenceOperatorDeclarationDisplayParts;
|
38
37
|
displayTypeDeclaration(type: TypeDeclaration): string;
|
39
|
-
displayTypeDeclarationEntity(entity: e.TypeEntity
|
38
|
+
displayTypeDeclarationEntity(entity: e.TypeEntity): string;
|
40
39
|
getTypeDeclarationDisplayParts(type: TypeDeclaration): TypeDeclarationDisplayParts;
|
41
|
-
getTypeDeclarationEntityDisplayParts(entity: e.TypeEntity
|
40
|
+
getTypeDeclarationEntityDisplayParts(entity: e.TypeEntity): TypeDeclarationDisplayParts;
|
42
41
|
displayTypeParameterValue(value: TypeParameterValue): string;
|
43
42
|
displayGetterEntity(entity: e.GetterEntity): string;
|
44
43
|
displaySetterEntity(entity: e.SetterEntity): string;
|
45
44
|
displayTypeExtensionEntity(entity: e.TypeExtensionEntity): string;
|
46
|
-
displayEntity(entity: e.Entity
|
47
|
-
displayTypeEntity(entity: e.TypeEntity
|
48
|
-
displayTypeMember(member: types.TypeMember
|
45
|
+
displayEntity(entity: e.Entity): string;
|
46
|
+
displayTypeEntity(entity: e.TypeEntity): string;
|
47
|
+
displayTypeMember(member: types.TypeMember): string;
|
49
48
|
displayKeyword(kind: KeywordKind): string;
|
50
49
|
displayHelperPhrase(kind: HelperPhraseKind): string;
|
51
|
-
|
50
|
+
displayEntityNameText(entity: NamedEntity): string;
|
52
51
|
private displayTypeEntityAsUsage;
|
53
52
|
private displayStructuredTypeUsage;
|
54
53
|
private displayVariantTypeUsage;
|
@@ -61,7 +60,6 @@ export declare class DisplayService {
|
|
61
60
|
private displayTypeUsageInternal;
|
62
61
|
private displayUnionOrIntersectionTypeTypes;
|
63
62
|
private displayDeclarationContainer;
|
64
|
-
private getEntityName;
|
65
63
|
}
|
66
64
|
interface TypeDisplayOptions {
|
67
65
|
readonly unionAndAliasTypeDisplayKind: UnionAndAliasTypeDisplayKind;
|
@@ -76,31 +74,26 @@ declare const enum UnionAndAliasTypeDisplayKind {
|
|
76
74
|
export type VariableDeclaration = VariableDeclaration_entity | VariableDeclaration_typeMember;
|
77
75
|
export declare class VariableDeclaration_entity implements IVariableDeclaration {
|
78
76
|
readonly value: e.VariableEntity;
|
79
|
-
readonly localization: Localization;
|
80
77
|
readonly narrowedType?: types.Type | undefined;
|
81
78
|
readonly kind = "entity";
|
82
|
-
constructor(value: e.VariableEntity,
|
79
|
+
constructor(value: e.VariableEntity, narrowedType?: types.Type | undefined);
|
83
80
|
getEntity(): e.VariableEntity;
|
84
|
-
getLocalization(): Localization;
|
85
81
|
getType(): types.Type;
|
86
82
|
isOptionalParameter(): boolean;
|
87
83
|
getContainer(): DeclarationContainer | undefined;
|
88
84
|
}
|
89
85
|
export declare class VariableDeclaration_typeMember implements IVariableDeclaration {
|
90
86
|
readonly value: types.Field;
|
91
|
-
readonly localization: Localization;
|
92
87
|
readonly narrowedType?: types.Type | undefined;
|
93
88
|
readonly kind = "type-member";
|
94
|
-
constructor(value: types.Field,
|
89
|
+
constructor(value: types.Field, narrowedType?: types.Type | undefined);
|
95
90
|
getEntity(): e.VariableEntity;
|
96
|
-
getLocalization(): Localization;
|
97
91
|
getType(): types.Type;
|
98
92
|
isOptionalParameter(): boolean;
|
99
93
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
100
94
|
}
|
101
95
|
interface IVariableDeclaration {
|
102
96
|
getEntity(): e.VariableEntity;
|
103
|
-
getLocalization(): Localization;
|
104
97
|
getType(): types.Type;
|
105
98
|
isOptionalParameter(): boolean;
|
106
99
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
@@ -108,13 +101,9 @@ interface IVariableDeclaration {
|
|
108
101
|
export type FunctionDeclaration = FunctionDeclaration_entity | FunctionDeclaration_typeMember | FunctionDeclaration_substitutedFunction | FunctionDeclaration_accessedFunction;
|
109
102
|
export declare class FunctionDeclaration_entity implements IFunctionDeclaration {
|
110
103
|
readonly kind = "entity";
|
111
|
-
private readonly _typeParameterValues;
|
112
|
-
private readonly _valueParameters;
|
113
104
|
readonly func: e.FunctionEntity;
|
114
|
-
|
115
|
-
constructor(func: e.FunctionEntity, localization: Localization);
|
105
|
+
constructor(func: e.FunctionEntity);
|
116
106
|
getEntity(): e.FunctionEntity;
|
117
|
-
getLocalization(): Localization;
|
118
107
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
119
108
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
120
109
|
getReturnType(): types.Type;
|
@@ -123,13 +112,9 @@ export declare class FunctionDeclaration_entity implements IFunctionDeclaration
|
|
123
112
|
}
|
124
113
|
export declare class FunctionDeclaration_typeMember implements IFunctionDeclaration {
|
125
114
|
readonly kind = "type-member";
|
126
|
-
private readonly _typeParameterValues;
|
127
|
-
private readonly _valueParameters;
|
128
115
|
readonly func: types.Method;
|
129
|
-
|
130
|
-
constructor(func: types.Method, localization: Localization);
|
116
|
+
constructor(func: types.Method);
|
131
117
|
getEntity(): e.FunctionEntity;
|
132
|
-
getLocalization(): Localization;
|
133
118
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
134
119
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
135
120
|
getReturnType(): types.Type;
|
@@ -138,13 +123,9 @@ export declare class FunctionDeclaration_typeMember implements IFunctionDeclarat
|
|
138
123
|
}
|
139
124
|
export declare class FunctionDeclaration_substitutedFunction implements IFunctionDeclaration {
|
140
125
|
readonly func: SubstitutedFunction;
|
141
|
-
readonly localization: Localization;
|
142
126
|
readonly kind = "substituted-function";
|
143
|
-
|
144
|
-
private readonly _valueParameters;
|
145
|
-
constructor(func: SubstitutedFunction, localization: Localization);
|
127
|
+
constructor(func: SubstitutedFunction);
|
146
128
|
getEntity(): e.FunctionEntity;
|
147
|
-
getLocalization(): Localization;
|
148
129
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
149
130
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
150
131
|
getReturnType(): types.Type;
|
@@ -153,13 +134,9 @@ export declare class FunctionDeclaration_substitutedFunction implements IFunctio
|
|
153
134
|
}
|
154
135
|
export declare class FunctionDeclaration_accessedFunction implements IFunctionDeclaration {
|
155
136
|
readonly func: AccessedFunction;
|
156
|
-
readonly localization: Localization;
|
157
137
|
readonly kind = "accessed-function";
|
158
|
-
|
159
|
-
private readonly _valueParameters;
|
160
|
-
constructor(func: AccessedFunction, localization: Localization);
|
138
|
+
constructor(func: AccessedFunction);
|
161
139
|
getEntity(): e.FunctionEntity;
|
162
|
-
getLocalization(): Localization;
|
163
140
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
164
141
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
165
142
|
getReturnType(): types.Type;
|
@@ -168,7 +145,6 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
|
|
168
145
|
}
|
169
146
|
interface IFunctionDeclaration {
|
170
147
|
getEntity(): e.FunctionEntity;
|
171
|
-
getLocalization(): Localization;
|
172
148
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
173
149
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
174
150
|
getReturnType(): types.Type;
|
@@ -178,19 +154,15 @@ interface IFunctionDeclaration {
|
|
178
154
|
export type ConstructorDeclaration = ConstructorDeclaration_entity | ConstructorDeclaration_typeMember;
|
179
155
|
export declare class ConstructorDeclaration_entity implements IConstructorDeclaration {
|
180
156
|
readonly kind = "type-member";
|
181
|
-
private readonly _valueParameters;
|
182
157
|
readonly value: e.ConstructorEntity;
|
183
|
-
|
184
|
-
constructor(value: e.ConstructorEntity, localization: Localization);
|
158
|
+
constructor(value: e.ConstructorEntity);
|
185
159
|
getContainer(): TypeMemberDeclarationContainer;
|
186
160
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
187
161
|
}
|
188
162
|
export declare class ConstructorDeclaration_typeMember implements IConstructorDeclaration {
|
189
163
|
readonly value: types.Constructor;
|
190
|
-
readonly localization: Localization;
|
191
164
|
readonly kind = "type-member";
|
192
|
-
|
193
|
-
constructor(value: types.Constructor, localization: Localization);
|
165
|
+
constructor(value: types.Constructor);
|
194
166
|
getContainer(analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
|
195
167
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
196
168
|
}
|
@@ -201,18 +173,14 @@ interface IConstructorDeclaration {
|
|
201
173
|
export type DestructorDeclaration = DestructorDeclaration_entity | DestructorDeclaration_typeMember;
|
202
174
|
export declare class DestructorDeclaration_entity implements IDestructorDeclaration {
|
203
175
|
readonly kind = "entity";
|
204
|
-
private readonly _valueParameters;
|
205
176
|
readonly value: e.DestructorEntity;
|
206
|
-
|
207
|
-
constructor(value: e.DestructorEntity, localization: Localization);
|
177
|
+
constructor(value: e.DestructorEntity);
|
208
178
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
209
179
|
}
|
210
180
|
export declare class DestructorDeclaration_typeMember implements IDestructorDeclaration {
|
211
181
|
readonly value: types.Destructor;
|
212
|
-
readonly localization: Localization;
|
213
182
|
readonly kind = "type-member";
|
214
|
-
|
215
|
-
constructor(value: types.Destructor, localization: Localization);
|
183
|
+
constructor(value: types.Destructor);
|
216
184
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
217
185
|
}
|
218
186
|
interface IDestructorDeclaration {
|
@@ -240,20 +208,16 @@ interface IDereferenceOperatorDeclaration {
|
|
240
208
|
export type IndexerDeclaration = IndexerDeclaration_entity | IndexerDeclaration_typeMember;
|
241
209
|
export declare class IndexerDeclaration_entity implements IIndexerDeclaration {
|
242
210
|
readonly value: e.IndexerEntity;
|
243
|
-
readonly localization: Localization;
|
244
211
|
readonly kind = "entity";
|
245
|
-
|
246
|
-
constructor(value: e.IndexerEntity, localization: Localization);
|
212
|
+
constructor(value: e.IndexerEntity);
|
247
213
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
248
214
|
getType(): types.Type;
|
249
215
|
getContainer(): DeclarationContainer | undefined;
|
250
216
|
}
|
251
217
|
export declare class IndexerDeclaration_typeMember implements IIndexerDeclaration {
|
252
218
|
readonly value: types.Indexer;
|
253
|
-
readonly localization: Localization;
|
254
219
|
readonly kind = "type-member";
|
255
|
-
|
256
|
-
constructor(value: types.Indexer, localization: Localization);
|
220
|
+
constructor(value: types.Indexer);
|
257
221
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
258
222
|
getType(): types.Type;
|
259
223
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
@@ -266,34 +230,28 @@ interface IIndexerDeclaration {
|
|
266
230
|
export type ValueParameterDeclaration = ValueParameterDeclaration_entity | ValueParameterDeclaration_typeMember | ValueParameterDeclaration_substitutedFunction | ValueParameterDeclaration_matchResultValueParameter | ValueParameterDeclaration_universal;
|
267
231
|
export declare class ValueParameterDeclaration_entity implements IValueParameter {
|
268
232
|
readonly value: e.VariableEntity;
|
269
|
-
readonly localization: Localization;
|
270
233
|
readonly kind = "entity";
|
271
|
-
constructor(value: e.VariableEntity
|
234
|
+
constructor(value: e.VariableEntity);
|
272
235
|
getName(): string;
|
273
236
|
getEntity(): e.VariableEntity;
|
274
|
-
getLocalization(): Localization;
|
275
237
|
isOptional(): boolean;
|
276
238
|
getType(): types.Type;
|
277
239
|
}
|
278
240
|
export declare class ValueParameterDeclaration_typeMember implements IValueParameter {
|
279
241
|
readonly value: types.ValueParameter;
|
280
|
-
readonly localization: Localization;
|
281
242
|
readonly kind = "type-member";
|
282
|
-
constructor(value: types.ValueParameter
|
243
|
+
constructor(value: types.ValueParameter);
|
283
244
|
getName(): string;
|
284
245
|
getEntity(): e.VariableEntity;
|
285
|
-
getLocalization(): Localization;
|
286
246
|
isOptional(): boolean;
|
287
247
|
getType(): types.Type;
|
288
248
|
}
|
289
249
|
export declare class ValueParameterDeclaration_substitutedFunction implements IValueParameter {
|
290
250
|
readonly entity: e.VariableEntity;
|
291
251
|
readonly type: types.Type;
|
292
|
-
|
293
|
-
constructor(entity: e.VariableEntity, type: types.Type, localization: Localization);
|
252
|
+
constructor(entity: e.VariableEntity, type: types.Type);
|
294
253
|
getName(): string;
|
295
254
|
getEntity(): e.VariableEntity;
|
296
|
-
getLocalization(): Localization;
|
297
255
|
isOptional(): boolean;
|
298
256
|
getType(): types.Type;
|
299
257
|
}
|
@@ -302,42 +260,36 @@ export declare class ValueParameterDeclaration_matchResultValueParameter impleme
|
|
302
260
|
entity: e.VariableEntity;
|
303
261
|
type: types.Type;
|
304
262
|
};
|
305
|
-
readonly localization: Localization;
|
306
263
|
readonly kind = "type-member";
|
307
264
|
constructor(parameter: {
|
308
265
|
entity: e.VariableEntity;
|
309
266
|
type: types.Type;
|
310
|
-
}
|
267
|
+
});
|
311
268
|
getName(): string;
|
312
269
|
getEntity(): e.VariableEntity;
|
313
|
-
getLocalization(): Localization;
|
314
270
|
isOptional(): boolean;
|
315
271
|
getType(): types.Type;
|
316
272
|
}
|
317
273
|
export declare class ValueParameterDeclaration_universal implements IValueParameter {
|
318
274
|
readonly entity: e.VariableEntity;
|
319
275
|
readonly type: types.Type;
|
320
|
-
|
321
|
-
constructor(entity: e.VariableEntity, type: types.Type, localization: Localization);
|
276
|
+
constructor(entity: e.VariableEntity, type: types.Type);
|
322
277
|
getName(): string;
|
323
278
|
getEntity(): e.VariableEntity;
|
324
|
-
getLocalization(): Localization;
|
325
279
|
isOptional(): boolean;
|
326
280
|
getType(): types.Type;
|
327
281
|
}
|
328
282
|
interface IValueParameter {
|
329
283
|
getName(): string;
|
330
284
|
getEntity(): e.VariableEntity;
|
331
|
-
getLocalization(): Localization;
|
332
285
|
isOptional(): boolean;
|
333
286
|
getType(): types.Type;
|
334
287
|
}
|
335
288
|
export type TypeParameterValue = TypeParameterValue_typeParameter | TypeParameterValue_typeArgument;
|
336
289
|
export declare class TypeParameterValue_typeParameter {
|
337
290
|
readonly value: e.TypeParameterEntity;
|
338
|
-
readonly localization: Localization;
|
339
291
|
readonly kind = "type-parameter";
|
340
|
-
constructor(value: e.TypeParameterEntity
|
292
|
+
constructor(value: e.TypeParameterEntity);
|
341
293
|
}
|
342
294
|
export declare class TypeParameterValue_typeArgument {
|
343
295
|
readonly value: types.Type;
|
@@ -350,19 +302,15 @@ export declare class TypeDeclaration_structured implements ITypeDeclaration {
|
|
350
302
|
readonly kind = "structured";
|
351
303
|
constructor(value: TypeDeclarationStructured);
|
352
304
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
353
|
-
getLocalization(): Localization;
|
354
305
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
355
306
|
getContainer(): DeclarationContainer | undefined;
|
356
307
|
}
|
357
308
|
export type TypeDeclarationStructured = TypeDeclarationStructured_entity | TypeDeclarationStructured_type;
|
358
309
|
export declare class TypeDeclarationStructured_entity implements ITypeDeclarationStructured {
|
359
310
|
readonly entity: e.StructuredTypeEntity;
|
360
|
-
readonly localization: Localization;
|
361
311
|
readonly kind = "entity";
|
362
|
-
|
363
|
-
constructor(entity: e.StructuredTypeEntity, localization: Localization);
|
312
|
+
constructor(entity: e.StructuredTypeEntity);
|
364
313
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
365
|
-
getLocalization(): Localization;
|
366
314
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
367
315
|
isRefObject(): boolean;
|
368
316
|
isPlainObject(): boolean;
|
@@ -371,12 +319,9 @@ export declare class TypeDeclarationStructured_entity implements ITypeDeclaratio
|
|
371
319
|
}
|
372
320
|
export declare class TypeDeclarationStructured_type implements ITypeDeclarationStructured {
|
373
321
|
readonly type: types.StructuredType;
|
374
|
-
readonly localization: Localization;
|
375
322
|
readonly kind = "type";
|
376
|
-
|
377
|
-
constructor(type: types.StructuredType, localization: Localization);
|
323
|
+
constructor(type: types.StructuredType);
|
378
324
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
379
|
-
getLocalization(): Localization;
|
380
325
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
381
326
|
isRefObject(): boolean;
|
382
327
|
isPlainObject(): boolean;
|
@@ -385,7 +330,6 @@ export declare class TypeDeclarationStructured_type implements ITypeDeclarationS
|
|
385
330
|
}
|
386
331
|
interface ITypeDeclarationStructured {
|
387
332
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
388
|
-
getLocalization(): Localization;
|
389
333
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
390
334
|
isRefObject(): boolean;
|
391
335
|
isPlainObject(): boolean;
|
@@ -397,20 +341,15 @@ export declare class TypeDeclaration_function implements ITypeDeclaration {
|
|
397
341
|
readonly kind = "function";
|
398
342
|
constructor(value: TypeDeclarationFunction);
|
399
343
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
400
|
-
getLocalization(): Localization;
|
401
344
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
402
345
|
getContainer(): DeclarationContainer | undefined;
|
403
346
|
}
|
404
347
|
export type TypeDeclarationFunction = TypeDeclarationFunction_entity | TypeDeclarationFunction_type;
|
405
348
|
export declare class TypeDeclarationFunction_entity implements ITypeDeclarationFunction {
|
406
349
|
readonly entity: e.FunctionTypeEntity;
|
407
|
-
readonly localization: Localization;
|
408
350
|
readonly kind = "entity";
|
409
|
-
|
410
|
-
private readonly _valueParameters;
|
411
|
-
constructor(entity: e.FunctionTypeEntity, localization: Localization);
|
351
|
+
constructor(entity: e.FunctionTypeEntity);
|
412
352
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
413
|
-
getLocalization(): Localization;
|
414
353
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
415
354
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
416
355
|
getReturnType(): types.Type;
|
@@ -419,13 +358,9 @@ export declare class TypeDeclarationFunction_entity implements ITypeDeclarationF
|
|
419
358
|
}
|
420
359
|
export declare class TypeDeclarationFunction_type implements ITypeDeclarationFunction {
|
421
360
|
readonly type: types.FunctionType;
|
422
|
-
readonly localization: Localization;
|
423
361
|
readonly kind = "type";
|
424
|
-
|
425
|
-
private readonly _valueParameters;
|
426
|
-
constructor(type: types.FunctionType, localization: Localization);
|
362
|
+
constructor(type: types.FunctionType);
|
427
363
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
428
|
-
getLocalization(): Localization;
|
429
364
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
430
365
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
431
366
|
getReturnType(): types.Type;
|
@@ -434,7 +369,6 @@ export declare class TypeDeclarationFunction_type implements ITypeDeclarationFun
|
|
434
369
|
}
|
435
370
|
interface ITypeDeclarationFunction {
|
436
371
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
437
|
-
getLocalization(): Localization;
|
438
372
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
439
373
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
440
374
|
getReturnType(): types.Type;
|
@@ -446,36 +380,28 @@ export declare class TypeDeclaration_variant implements ITypeDeclaration {
|
|
446
380
|
readonly kind = "variant";
|
447
381
|
constructor(value: TypeDeclarationVariant);
|
448
382
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
449
|
-
getLocalization(): Localization;
|
450
383
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
451
384
|
getContainer(): DeclarationContainer | undefined;
|
452
385
|
}
|
453
386
|
export type TypeDeclarationVariant = TypeDeclarationVariant_entity | TypeDeclarationVariant_type;
|
454
387
|
export declare class TypeDeclarationVariant_entity implements ITypeDeclarationVariant {
|
455
388
|
readonly entity: e.VariantTypeEntity;
|
456
|
-
readonly localization: Localization;
|
457
389
|
readonly kind = "entity";
|
458
|
-
|
459
|
-
constructor(entity: e.VariantTypeEntity, localization: Localization);
|
390
|
+
constructor(entity: e.VariantTypeEntity);
|
460
391
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
461
|
-
getLocalization(): Localization;
|
462
392
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
463
393
|
getContainer(): DeclarationContainer | undefined;
|
464
394
|
}
|
465
395
|
export declare class TypeDeclarationVariant_type implements ITypeDeclarationVariant {
|
466
396
|
readonly type: types.VariantType;
|
467
|
-
readonly localization: Localization;
|
468
397
|
readonly kind = "type";
|
469
|
-
|
470
|
-
constructor(type: types.VariantType, localization: Localization);
|
398
|
+
constructor(type: types.VariantType);
|
471
399
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
472
|
-
getLocalization(): Localization;
|
473
400
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
474
401
|
getContainer(): DeclarationContainer | undefined;
|
475
402
|
}
|
476
403
|
interface ITypeDeclarationVariant {
|
477
404
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
478
|
-
getLocalization(): Localization;
|
479
405
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
480
406
|
getContainer(): DeclarationContainer | undefined;
|
481
407
|
}
|
@@ -484,64 +410,50 @@ export declare class TypeDeclaration_alias implements ITypeDeclaration {
|
|
484
410
|
readonly kind = "alias";
|
485
411
|
constructor(value: TypeDeclarationAlias);
|
486
412
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
487
|
-
getLocalization(): Localization;
|
488
413
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
489
414
|
getContainer(): DeclarationContainer | undefined;
|
490
415
|
}
|
491
416
|
export type TypeDeclarationAlias = TypeDeclarationAlias_entity | TypeDeclarationAlias_type;
|
492
417
|
export declare class TypeDeclarationAlias_entity implements ITypeDeclarationAlias {
|
493
418
|
readonly entity: e.AliasTypeEntity;
|
494
|
-
readonly localization: Localization;
|
495
419
|
readonly kind = "entity";
|
496
|
-
|
497
|
-
constructor(entity: e.AliasTypeEntity, localization: Localization);
|
420
|
+
constructor(entity: e.AliasTypeEntity);
|
498
421
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
499
|
-
getLocalization(): Localization;
|
500
422
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
501
423
|
getAliasedType(): types.Type;
|
502
424
|
getContainer(): DeclarationContainer | undefined;
|
503
425
|
}
|
504
426
|
export declare class TypeDeclarationAlias_type implements ITypeDeclarationAlias {
|
505
427
|
readonly type: types.AliasType;
|
506
|
-
readonly localization: Localization;
|
507
428
|
readonly kind = "type";
|
508
|
-
|
509
|
-
constructor(type: types.AliasType, localization: Localization);
|
429
|
+
constructor(type: types.AliasType);
|
510
430
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
511
|
-
getLocalization(): Localization;
|
512
431
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
513
432
|
getAliasedType(): types.Type;
|
514
433
|
getContainer(): DeclarationContainer | undefined;
|
515
434
|
}
|
516
435
|
interface ITypeDeclarationAlias {
|
517
436
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
518
|
-
getLocalization(): Localization;
|
519
437
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
520
438
|
getAliasedType(): types.Type;
|
521
439
|
getContainer(): DeclarationContainer | undefined;
|
522
440
|
}
|
523
441
|
export declare class TypeDeclaration_parameter implements ITypeDeclaration {
|
524
442
|
readonly entity: e.TypeParameterEntity;
|
525
|
-
readonly localization: Localization;
|
526
443
|
readonly kind = "parameter";
|
527
|
-
constructor(entity: e.TypeParameterEntity
|
444
|
+
constructor(entity: e.TypeParameterEntity);
|
528
445
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
529
|
-
getLocalization(): Localization;
|
530
446
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
531
447
|
getContainer(): DeclarationContainer | undefined;
|
532
448
|
}
|
533
449
|
export declare class TypeDeclaration_unresolved implements ITypeDeclaration {
|
534
|
-
readonly localization: Localization;
|
535
450
|
readonly kind = "unresolved";
|
536
|
-
constructor(localization: Localization);
|
537
451
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
538
|
-
getLocalization(): Localization;
|
539
452
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
540
453
|
getContainer(): DeclarationContainer | undefined;
|
541
454
|
}
|
542
455
|
interface ITypeDeclaration {
|
543
456
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
544
|
-
getLocalization(): Localization;
|
545
457
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
546
458
|
getContainer(): DeclarationContainer | undefined;
|
547
459
|
}
|
@@ -588,11 +500,8 @@ interface INamedType {
|
|
588
500
|
export type OperatorDeclaration = OperatorDeclaration_entity | OperatorDeclaration_typeMember;
|
589
501
|
export declare class OperatorDeclaration_entity implements IOperatorDeclaration {
|
590
502
|
readonly operator: e.OperatorEntity;
|
591
|
-
readonly localization: Localization;
|
592
503
|
readonly kind = "entity";
|
593
|
-
|
594
|
-
constructor(operator: e.OperatorEntity, localization: Localization);
|
595
|
-
getLocalization(): Localization;
|
504
|
+
constructor(operator: e.OperatorEntity);
|
596
505
|
getOperatorKind(): e.OperatorKind;
|
597
506
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
598
507
|
getReturnType(): types.Type;
|
@@ -600,18 +509,14 @@ export declare class OperatorDeclaration_entity implements IOperatorDeclaration
|
|
600
509
|
}
|
601
510
|
export declare class OperatorDeclaration_typeMember implements IOperatorDeclaration {
|
602
511
|
readonly operator: types.Operator;
|
603
|
-
readonly localization: Localization;
|
604
512
|
readonly kind = "type-member";
|
605
|
-
|
606
|
-
constructor(operator: types.Operator, localization: Localization);
|
607
|
-
getLocalization(): Localization;
|
513
|
+
constructor(operator: types.Operator);
|
608
514
|
getOperatorKind(): e.OperatorKind;
|
609
515
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
610
516
|
getReturnType(): types.Type;
|
611
517
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
612
518
|
}
|
613
519
|
interface IOperatorDeclaration {
|
614
|
-
getLocalization(): Localization;
|
615
520
|
getOperatorKind(): e.OperatorKind;
|
616
521
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
617
522
|
getReturnType(): types.Type;
|
@@ -2,7 +2,7 @@ import { AccessedFunction } from '../analysis/AccessedFunction.js';
|
|
2
2
|
import { MatchResultValueParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
3
3
|
import { PackageNameTreeNode } from '../analysis/ImportedPackageNameTree.js';
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
5
|
-
import { Translation
|
5
|
+
import { Translation } from '../analysis/Localization.js';
|
6
6
|
import { IndexedElementAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
|
7
7
|
import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
|
8
8
|
import { AliasTypeEntity, Entity, FunctionEntity, FunctionTypeEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
|
@@ -39,20 +39,20 @@ export type NodeSemanticInfoServiceOptions = {
|
|
39
39
|
readonly preferredTargetOfExplicitConstructorCall: 'type-declaration' | 'constructor-declaration';
|
40
40
|
readonly includeBetterReferenceTargets: boolean;
|
41
41
|
};
|
42
|
-
export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo |
|
42
|
+
export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo | DefaultSwitchMatchNodeSemanticInfo;
|
43
43
|
export declare class DefinitionNodeSemanticInfo {
|
44
44
|
readonly entity: Entity;
|
45
45
|
readonly kind = "definition";
|
46
46
|
constructor(entity: Entity);
|
47
47
|
}
|
48
48
|
export declare class ReferenceNodeSemanticInfo {
|
49
|
-
readonly targets: ReadonlyNonEmptyArray<
|
49
|
+
readonly targets: ReadonlyNonEmptyArray<ReferenceTarget>;
|
50
50
|
readonly isAmbiguous: boolean;
|
51
|
-
readonly betterTargets?: ReadonlyNonEmptyArray<
|
51
|
+
readonly betterTargets?: ReadonlyNonEmptyArray<ReferenceTarget> | undefined;
|
52
52
|
readonly kind = "reference";
|
53
|
-
get firstTarget():
|
54
|
-
get firstBetterTargetWithFallback():
|
55
|
-
constructor(targets: ReadonlyNonEmptyArray<
|
53
|
+
get firstTarget(): ReferenceTarget;
|
54
|
+
get firstBetterTargetWithFallback(): ReferenceTarget;
|
55
|
+
constructor(targets: ReadonlyNonEmptyArray<ReferenceTarget>, isAmbiguous: boolean, betterTargets?: ReadonlyNonEmptyArray<ReferenceTarget> | undefined);
|
56
56
|
}
|
57
57
|
export type ReferenceTarget = EntityReferenceTarget | FieldReferenceTarget | TypeValueParameterReferenceTarget | ConstructorReferenceTarget | OperatorReferenceTarget | DereferenceOperatorReferenceTarget | AccessedFunctionReferenceTarget | IndexerReferenceTarget | MatchResultValueParameterReferenceTarget | PackageReferenceTarget | PackageNameTreeNodeReferenceTarget | TypeContextReferenceTarget;
|
58
58
|
export declare class EntityReferenceTarget {
|
@@ -4,10 +4,11 @@ import { SourceFile } from '../project/index.js';
|
|
4
4
|
export declare class ReferencesService {
|
5
5
|
getReferencesInCompilation(analyzer: Analyzer, sourceFile: SourceFile, offset: number, options: ReferencesSearchOptions, cancellationToken: CancellationToken | undefined): Promise<Reference[]>;
|
6
6
|
getReferencesInFiles(analyzer: Analyzer, sourceFile: SourceFile, offset: number, sourceFiles: Iterable<SourceFile>, options: ReferencesSearchOptions, cancellationToken: CancellationToken | undefined): Promise<Reference[]>;
|
7
|
-
private
|
8
|
-
private
|
7
|
+
private getReferencedDefinitionInfosAtOffset;
|
8
|
+
private getDefinitionsFromNodeSemanticInfo;
|
9
9
|
private getReferenceRestrictions;
|
10
|
-
private
|
10
|
+
private ifReferenceToSomeOfDefinitionsThenKind;
|
11
|
+
private areEntitiesWithSameDefinition;
|
11
12
|
private isEntityWithRegularName;
|
12
13
|
}
|
13
14
|
export declare class Reference {
|
@@ -25,4 +26,5 @@ export type ReferencesSearchOptions = {
|
|
25
26
|
readonly onlyWithSameAlias: boolean;
|
26
27
|
readonly onlyNamed: boolean;
|
27
28
|
readonly allowAmbiguous: boolean;
|
29
|
+
readonly isForRename?: boolean;
|
28
30
|
};
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { AccessedFunction } from '../../analysis/AccessedFunction.js';
|
2
|
-
import { Localization, WithLocalization } from '../../analysis/Localization.js';
|
3
2
|
import { Analyzer } from '../../analysis/index.js';
|
4
3
|
import { Name } from '../../common/index.js';
|
5
4
|
import { ParameterVariableEntity } from '../../entities/index.js';
|
@@ -52,9 +51,9 @@ export declare class MatchedSignature {
|
|
52
51
|
export type Signature = AccessedFunctionSignature | FunctionTypeSignature | ConstructorSignature | IndexerSignature;
|
53
52
|
export declare class AccessedFunctionSignature implements ISignature {
|
54
53
|
readonly kind = "accessed-function";
|
55
|
-
readonly func:
|
54
|
+
readonly func: AccessedFunction;
|
56
55
|
private readonly _valueParameters;
|
57
|
-
constructor(func:
|
56
|
+
constructor(func: AccessedFunction);
|
58
57
|
getValueParameters(): readonly ValueParameter[];
|
59
58
|
}
|
60
59
|
export declare class FunctionTypeSignature implements ISignature {
|
@@ -66,16 +65,16 @@ export declare class FunctionTypeSignature implements ISignature {
|
|
66
65
|
}
|
67
66
|
export declare class ConstructorSignature implements ISignature {
|
68
67
|
readonly kind = "constructor";
|
69
|
-
readonly constructor_:
|
68
|
+
readonly constructor_: types.Constructor;
|
70
69
|
private readonly _valueParameters;
|
71
|
-
constructor(constructor_:
|
70
|
+
constructor(constructor_: types.Constructor);
|
72
71
|
getValueParameters(): readonly ValueParameter[];
|
73
72
|
}
|
74
73
|
export declare class IndexerSignature implements ISignature {
|
75
74
|
readonly kind = "indexer";
|
76
|
-
readonly indexer:
|
75
|
+
readonly indexer: types.Indexer;
|
77
76
|
private readonly _valueParameters;
|
78
|
-
constructor(indexer:
|
77
|
+
constructor(indexer: types.Indexer);
|
79
78
|
getValueParameters(): readonly ValueParameter[];
|
80
79
|
}
|
81
80
|
interface ISignature {
|
@@ -83,11 +82,9 @@ interface ISignature {
|
|
83
82
|
}
|
84
83
|
export type ValueParameter = UniversalValueParameter;
|
85
84
|
export declare class UniversalValueParameter implements IValueParameter {
|
86
|
-
readonly name: Name;
|
87
85
|
readonly type: types.Type;
|
88
86
|
readonly entity: ParameterVariableEntity;
|
89
|
-
|
90
|
-
constructor(name: Name, type: types.Type, entity: ParameterVariableEntity, localization: Localization);
|
87
|
+
constructor(type: types.Type, entity: ParameterVariableEntity);
|
91
88
|
getName(): Name;
|
92
89
|
getType(): types.Type;
|
93
90
|
}
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { Analyzer } from '../../analysis/Analyzer.js';
|
2
|
-
import { LocalizationContext } from '../../analysis/LocalizationContext.js';
|
3
2
|
import { PackageEntity } from '../../entities/PackageEntity.js';
|
4
3
|
import * as tree from '../../tree/green/index.js';
|
5
4
|
export declare class EntityToSyntax {
|
6
5
|
private readonly _analyzer;
|
7
6
|
private readonly _entity;
|
8
|
-
|
9
|
-
constructor(analyzer: Analyzer, entity: PackageEntity, localizationContext: LocalizationContext | undefined);
|
7
|
+
constructor(analyzer: Analyzer, entity: PackageEntity);
|
10
8
|
convert(): tree.SourceFile;
|
11
9
|
private convertPackage;
|
12
10
|
private convertNamedPackageMember;
|