@artel/artc 0.6.25215 → 0.6.25217
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 +23 -9
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +381 -339
- package/build/{chunk-TT3Q66WU.js → chunk-CMPXXHBQ.js} +3 -3
- package/build/{chunk-GEFYL4SZ.js → chunk-HN3XZZQX.js} +3 -3
- package/build/{chunk-DZ66PBHU.js → chunk-TXAEJ2GI.js} +3397 -2484
- package/build/types/analysis/Analyzer.d.ts +163 -159
- package/build/types/analysis/CallArgumentToParameterMatchResult.d.ts +3 -4
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +12 -7
- package/build/types/analysis/SourceFileMembers.d.ts +11 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +107 -103
- package/build/types/emitter/EmitterContext.d.ts +9 -0
- package/build/types/emitter/Entities.d.ts +8 -2
- package/build/types/emitter/IrToJs.d.ts +0 -1
- package/build/types/emitter/Transformer.d.ts +2 -3
- package/build/types/emitter/ir/LoweringOptions.d.ts +3 -1
- package/build/types/emitter/ir/LoweringState.d.ts +24 -0
- package/build/types/emitter/ir/Nodes.d.ts +74 -85
- package/build/types/emitter/ir/types.d.ts +3 -2
- package/build/types/entities/AliasTypeEntity.d.ts +1 -1
- package/build/types/entities/DereferenceOperatorEntity.d.ts +7 -0
- package/build/types/entities/IndexerEntity.d.ts +7 -0
- package/build/types/entities/MethodTypeEntity.d.ts +9 -1
- package/build/types/entities/StructuredTypeEntity.d.ts +11 -3
- package/build/types/entities/TypeParameterEntity.d.ts +1 -1
- package/build/types/entities/VariantTypeEntity.d.ts +9 -1
- package/build/types/parser/Scanner.d.ts +0 -6
- package/build/types/parser/UnescapeText.d.ts +1 -1
- package/build/types/services/DisplayService.d.ts +201 -162
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +1 -3
- package/build/types/services/workspace/CompilationController.d.ts +23 -1
- package/build/types/services/workspace/Workspace.d.ts +1 -0
- package/build/types/tree/NodeKind.d.ts +85 -86
- package/build/types/tree/green/Nodes.d.ts +4 -13
- package/build/types/tree/red/Nodes.d.ts +5 -19
- package/build/types/ts-interop/Entities.d.ts +28 -8
- package/build/types/types/MethodType.d.ts +2 -2
- package/build/types/types/VariantType.d.ts +2 -2
- package/package.json +1 -1
@@ -4,7 +4,7 @@ import { SubstitutedMethod } from '../analysis/SubstitutedMethod.js';
|
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
5
5
|
import { HelperPhraseKind } from '../common/HelperPhrases.js';
|
6
6
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
7
|
-
import
|
7
|
+
import * as e from '../entities/index.js';
|
8
8
|
import { KeywordKind } from '../tree/index.js';
|
9
9
|
import * as types from '../types/index.js';
|
10
10
|
export declare class DisplayService {
|
@@ -16,16 +16,16 @@ export declare class DisplayService {
|
|
16
16
|
displayType(type: types.Type): string;
|
17
17
|
getMethodTypeBodyDisplayParts(type: types.MethodType): MethodTypeBodyDisplayParts;
|
18
18
|
getNamedTypeDisplayParts(type: NamedType): NamedTypeDisplayParts;
|
19
|
-
displayVariantEntity(entity: VariantEntity, localization: Localization): string;
|
20
|
-
displayPackageAliasEntity(entity: PackageAliasEntity): string;
|
21
|
-
displayPackage(package_: PackageEntity): string;
|
19
|
+
displayVariantEntity(entity: e.VariantEntity, localization: Localization): string;
|
20
|
+
displayPackageAliasEntity(entity: e.PackageAliasEntity): string;
|
21
|
+
displayPackage(package_: e.PackageEntity): string;
|
22
22
|
displayValueParameterDeclaration(parameter: ValueParameterDeclaration, typeDisplayOptions?: TypeDisplayOptions): string;
|
23
23
|
getValueParameterDeclarationDisplayParts(parameter: ValueParameterDeclaration, typeDisplayOptions?: TypeDisplayOptions): ValueParameterDeclarationDisplayParts;
|
24
24
|
displayMethodDeclaration(method: MethodDeclaration): string;
|
25
25
|
getMethodDeclarationDisplayParts(method: MethodDeclaration): MethodDeclarationDisplayParts;
|
26
26
|
displayOperatorDeclaration(operator: OperatorDeclaration): string;
|
27
27
|
getOperatorDeclarationDisplayParts(operator: OperatorDeclaration): OperatorDeclarationDisplayParts;
|
28
|
-
displayOperatorKind(kind: OperatorKind, locale: PackageLocale): string;
|
28
|
+
displayOperatorKind(kind: e.OperatorKind, locale: PackageLocale): string;
|
29
29
|
displayConstructorDeclaration(constructor: ConstructorDeclaration): string;
|
30
30
|
getConstructorDeclarationDisplayParts(constructor: ConstructorDeclaration): ConstructorDeclarationDisplayParts;
|
31
31
|
displayDestructorDeclaration(constructor: DestructorDeclaration): string;
|
@@ -34,14 +34,14 @@ export declare class DisplayService {
|
|
34
34
|
displayDereferenceOperatorDeclaration(referenceOperator: DereferenceOperatorDeclaration): string;
|
35
35
|
getDereferenceOperatorDeclarationDisplayParts(dereferenceOperator: DereferenceOperatorDeclaration): DereferenceOperatorDeclarationDisplayParts;
|
36
36
|
displayTypeDeclaration(type: TypeDeclaration): string;
|
37
|
-
displayTypeDeclarationEntity(entity: TypeEntity, localization: Localization): string;
|
37
|
+
displayTypeDeclarationEntity(entity: e.TypeEntity, localization: Localization): string;
|
38
38
|
getTypeDeclarationDisplayParts(type: TypeDeclaration): TypeDeclarationDisplayParts;
|
39
|
-
getTypeDeclarationEntityDisplayParts(entity: TypeEntity, localization: Localization): TypeDeclarationDisplayParts;
|
39
|
+
getTypeDeclarationEntityDisplayParts(entity: e.TypeEntity, localization: Localization): TypeDeclarationDisplayParts;
|
40
40
|
displayTypeParameterValue(value: TypeParameterValue): string;
|
41
|
-
displayGetterEntity(entity: GetterEntity): string;
|
42
|
-
displaySetterEntity(entity: SetterEntity): string;
|
43
|
-
displayTypeExtensionEntity(entity: TypeExtensionEntity): string;
|
44
|
-
displayEntity(entity: Entity, localization?: Localization): string;
|
41
|
+
displayGetterEntity(entity: e.GetterEntity): string;
|
42
|
+
displaySetterEntity(entity: e.SetterEntity): string;
|
43
|
+
displayTypeExtensionEntity(entity: e.TypeExtensionEntity): string;
|
44
|
+
displayEntity(entity: e.Entity, localization?: Localization): string;
|
45
45
|
displayKeyword(kind: KeywordKind): string;
|
46
46
|
displayHelperPhrase(kind: HelperPhraseKind): string;
|
47
47
|
displayEntityName(entity: NamedEntity, localization: Localization | undefined): string;
|
@@ -56,12 +56,13 @@ export declare class DisplayService {
|
|
56
56
|
private displayTypeInternal;
|
57
57
|
private displayTypeUsageInternal;
|
58
58
|
private displayUnionTypeTypes;
|
59
|
-
private
|
59
|
+
private displayDeclarationContainer;
|
60
60
|
private getEntityName;
|
61
61
|
}
|
62
62
|
interface TypeDisplayOptions {
|
63
63
|
readonly unionAndAliasTypeDisplayKind: UnionAndAliasTypeDisplayKind;
|
64
64
|
readonly displayFullVersionOfNamedMethodType: boolean;
|
65
|
+
readonly displayContainer: boolean;
|
65
66
|
}
|
66
67
|
declare const enum UnionAndAliasTypeDisplayKind {
|
67
68
|
Full = 0,
|
@@ -70,49 +71,49 @@ declare const enum UnionAndAliasTypeDisplayKind {
|
|
70
71
|
}
|
71
72
|
export type VariableDeclaration = VariableDeclaration_entity | VariableDeclaration_typeMember;
|
72
73
|
export declare class VariableDeclaration_entity implements IVariableDeclaration {
|
73
|
-
readonly value: VariableEntity;
|
74
|
+
readonly value: e.VariableEntity;
|
74
75
|
readonly localization: Localization;
|
75
76
|
readonly kind = "entity";
|
76
|
-
constructor(value: VariableEntity, localization: Localization);
|
77
|
-
getEntity(): VariableEntity;
|
77
|
+
constructor(value: e.VariableEntity, localization: Localization);
|
78
|
+
getEntity(): e.VariableEntity;
|
78
79
|
getLocalization(): Localization;
|
79
80
|
getType(): types.Type;
|
80
81
|
isOptionalParameter(): boolean;
|
81
|
-
|
82
|
+
getContainer(): DeclarationContainer | undefined;
|
82
83
|
}
|
83
84
|
export declare class VariableDeclaration_typeMember implements IVariableDeclaration {
|
84
85
|
readonly value: types.Variable;
|
85
86
|
readonly localization: Localization;
|
86
87
|
readonly kind = "type-member";
|
87
88
|
constructor(value: types.Variable, localization: Localization);
|
88
|
-
getEntity(): VariableEntity;
|
89
|
+
getEntity(): e.VariableEntity;
|
89
90
|
getLocalization(): Localization;
|
90
91
|
getType(): types.Type;
|
91
92
|
isOptionalParameter(): boolean;
|
92
|
-
|
93
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
93
94
|
}
|
94
95
|
interface IVariableDeclaration {
|
95
|
-
getEntity(): VariableEntity;
|
96
|
+
getEntity(): e.VariableEntity;
|
96
97
|
getLocalization(): Localization;
|
97
98
|
getType(): types.Type;
|
98
99
|
isOptionalParameter(): boolean;
|
99
|
-
|
100
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
100
101
|
}
|
101
102
|
export type MethodDeclaration = MethodDeclaration_entity | MethodDeclaration_typeMember | MethodDeclaration_substitutedMethod;
|
102
103
|
export declare class MethodDeclaration_entity implements IMethodDeclaration {
|
103
104
|
readonly kind = "entity";
|
104
105
|
private readonly _typeParameterValues;
|
105
106
|
private readonly _valueParameters;
|
106
|
-
readonly method: MethodEntity;
|
107
|
+
readonly method: e.MethodEntity;
|
107
108
|
readonly localization: Localization;
|
108
|
-
constructor(method: MethodEntity, localization: Localization);
|
109
|
-
getEntity(): MethodEntity;
|
109
|
+
constructor(method: e.MethodEntity, localization: Localization);
|
110
|
+
getEntity(): e.MethodEntity;
|
110
111
|
getLocalization(): Localization;
|
111
112
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
112
113
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
113
114
|
getReturnType(): types.Type;
|
114
115
|
isAsync(): boolean;
|
115
|
-
|
116
|
+
getContainer(): DeclarationContainer | undefined;
|
116
117
|
}
|
117
118
|
export declare class MethodDeclaration_typeMember implements IMethodDeclaration {
|
118
119
|
readonly kind = "type-member";
|
@@ -121,13 +122,13 @@ export declare class MethodDeclaration_typeMember implements IMethodDeclaration
|
|
121
122
|
readonly method: types.Method;
|
122
123
|
readonly localization: Localization;
|
123
124
|
constructor(method: types.Method, localization: Localization);
|
124
|
-
getEntity(): MethodEntity;
|
125
|
+
getEntity(): e.MethodEntity;
|
125
126
|
getLocalization(): Localization;
|
126
127
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
127
128
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
128
129
|
getReturnType(): types.Type;
|
129
130
|
isAsync(): boolean;
|
130
|
-
|
131
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
131
132
|
}
|
132
133
|
export declare class MethodDeclaration_substitutedMethod implements IMethodDeclaration {
|
133
134
|
readonly method: SubstitutedMethod;
|
@@ -136,31 +137,31 @@ export declare class MethodDeclaration_substitutedMethod implements IMethodDecla
|
|
136
137
|
private readonly _typeParameterValues;
|
137
138
|
private readonly _valueParameters;
|
138
139
|
constructor(method: SubstitutedMethod, localization: Localization);
|
139
|
-
getEntity(): MethodEntity;
|
140
|
+
getEntity(): e.MethodEntity;
|
140
141
|
getLocalization(): Localization;
|
141
142
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
142
143
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
143
144
|
getReturnType(): types.Type;
|
144
145
|
isAsync(): boolean;
|
145
|
-
|
146
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
146
147
|
}
|
147
148
|
interface IMethodDeclaration {
|
148
|
-
getEntity(): MethodEntity;
|
149
|
+
getEntity(): e.MethodEntity;
|
149
150
|
getLocalization(): Localization;
|
150
151
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
151
152
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
152
153
|
getReturnType(): types.Type;
|
153
154
|
isAsync(): boolean;
|
154
|
-
|
155
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
155
156
|
}
|
156
157
|
export type ConstructorDeclaration = ConstructorDeclaration_entity | ConstructorDeclaration_typeMember;
|
157
158
|
export declare class ConstructorDeclaration_entity implements IConstructorDeclaration {
|
158
159
|
readonly kind = "type-member";
|
159
160
|
private readonly _valueParameters;
|
160
|
-
readonly value: ConstructorEntity;
|
161
|
+
readonly value: e.ConstructorEntity;
|
161
162
|
readonly localization: Localization;
|
162
|
-
constructor(value: ConstructorEntity, localization: Localization);
|
163
|
-
|
163
|
+
constructor(value: e.ConstructorEntity, localization: Localization);
|
164
|
+
getContainer(): TypeMemberDeclarationContainer;
|
164
165
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
165
166
|
}
|
166
167
|
export declare class ConstructorDeclaration_typeMember implements IConstructorDeclaration {
|
@@ -169,31 +170,20 @@ export declare class ConstructorDeclaration_typeMember implements IConstructorDe
|
|
169
170
|
readonly kind = "type-member";
|
170
171
|
private readonly _valueParameters;
|
171
172
|
constructor(value: types.Constructor, localization: Localization);
|
172
|
-
|
173
|
+
getContainer(analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
|
173
174
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
174
175
|
}
|
175
176
|
interface IConstructorDeclaration {
|
176
|
-
|
177
|
+
getContainer(analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
|
177
178
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
178
179
|
}
|
179
|
-
type TypeContainingConstructorDeclaration = TypeContainingConstructorDeclaration_entity | TypeContainingConstructorDeclaration_type;
|
180
|
-
declare class TypeContainingConstructorDeclaration_entity {
|
181
|
-
readonly value: TypeEntity;
|
182
|
-
readonly kind = "entity";
|
183
|
-
constructor(value: TypeEntity);
|
184
|
-
}
|
185
|
-
declare class TypeContainingConstructorDeclaration_type {
|
186
|
-
readonly value: types.Type;
|
187
|
-
readonly kind = "type";
|
188
|
-
constructor(value: types.Type);
|
189
|
-
}
|
190
180
|
export type DestructorDeclaration = DestructorDeclaration_entity | DestructorDeclaration_typeMember;
|
191
181
|
export declare class DestructorDeclaration_entity implements IDestructorDeclaration {
|
192
182
|
readonly kind = "entity";
|
193
183
|
private readonly _valueParameters;
|
194
|
-
readonly value: DestructorEntity;
|
184
|
+
readonly value: e.DestructorEntity;
|
195
185
|
readonly localization: Localization;
|
196
|
-
constructor(value: DestructorEntity, localization: Localization);
|
186
|
+
constructor(value: e.DestructorEntity, localization: Localization);
|
197
187
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
198
188
|
}
|
199
189
|
export declare class DestructorDeclaration_typeMember implements IDestructorDeclaration {
|
@@ -209,33 +199,33 @@ interface IDestructorDeclaration {
|
|
209
199
|
}
|
210
200
|
export type DereferenceOperatorDeclaration = DereferenceOperatorDeclaration_entity | DereferenceOperatorDeclaration_typeMember;
|
211
201
|
export declare class DereferenceOperatorDeclaration_entity implements IDereferenceOperatorDeclaration {
|
212
|
-
readonly value: DereferenceOperatorEntity;
|
202
|
+
readonly value: e.DereferenceOperatorEntity;
|
213
203
|
readonly kind = "entity";
|
214
|
-
constructor(value: DereferenceOperatorEntity);
|
204
|
+
constructor(value: e.DereferenceOperatorEntity);
|
215
205
|
getType(): types.Type;
|
216
|
-
|
206
|
+
getContainer(): DeclarationContainer | undefined;
|
217
207
|
}
|
218
208
|
export declare class DereferenceOperatorDeclaration_typeMember implements IDereferenceOperatorDeclaration {
|
219
209
|
readonly value: types.DereferenceOperator;
|
220
210
|
readonly kind = "type-member";
|
221
211
|
constructor(value: types.DereferenceOperator);
|
222
212
|
getType(): types.Type;
|
223
|
-
|
213
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
224
214
|
}
|
225
215
|
interface IDereferenceOperatorDeclaration {
|
226
216
|
getType(): types.Type;
|
227
|
-
|
217
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
228
218
|
}
|
229
219
|
export type IndexerDeclaration = IndexerDeclaration_entity | IndexerDeclaration_typeMember;
|
230
220
|
export declare class IndexerDeclaration_entity implements IIndexerDeclaration {
|
231
|
-
readonly value: IndexerEntity;
|
221
|
+
readonly value: e.IndexerEntity;
|
232
222
|
readonly localization: Localization;
|
233
223
|
readonly kind = "entity";
|
234
224
|
private readonly _valueParameters;
|
235
|
-
constructor(value: IndexerEntity, localization: Localization);
|
225
|
+
constructor(value: e.IndexerEntity, localization: Localization);
|
236
226
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
237
227
|
getType(): types.Type;
|
238
|
-
|
228
|
+
getContainer(): DeclarationContainer | undefined;
|
239
229
|
}
|
240
230
|
export declare class IndexerDeclaration_typeMember implements IIndexerDeclaration {
|
241
231
|
readonly value: types.Indexer;
|
@@ -245,21 +235,21 @@ export declare class IndexerDeclaration_typeMember implements IIndexerDeclaratio
|
|
245
235
|
constructor(value: types.Indexer, localization: Localization);
|
246
236
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
247
237
|
getType(): types.Type;
|
248
|
-
|
238
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
249
239
|
}
|
250
240
|
interface IIndexerDeclaration {
|
251
241
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
252
242
|
getType(): types.Type;
|
253
|
-
|
243
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
254
244
|
}
|
255
245
|
export type ValueParameterDeclaration = ValueParameterDeclaration_entity | ValueParameterDeclaration_typeMember | ValueParameterDeclaration_substitutedMethod | ValueParameterDeclaration_matchResultValueParameter | ValueParameterDeclaration_universal;
|
256
246
|
export declare class ValueParameterDeclaration_entity implements IValueParameter {
|
257
|
-
readonly value: VariableEntity;
|
247
|
+
readonly value: e.VariableEntity;
|
258
248
|
readonly localization: Localization;
|
259
249
|
readonly kind = "entity";
|
260
|
-
constructor(value: VariableEntity, localization: Localization);
|
250
|
+
constructor(value: e.VariableEntity, localization: Localization);
|
261
251
|
getName(): string;
|
262
|
-
getEntity(): VariableEntity;
|
252
|
+
getEntity(): e.VariableEntity;
|
263
253
|
getLocalization(): Localization;
|
264
254
|
isOptional(): boolean;
|
265
255
|
getType(): types.Type;
|
@@ -270,63 +260,63 @@ export declare class ValueParameterDeclaration_typeMember implements IValueParam
|
|
270
260
|
readonly kind = "type-member";
|
271
261
|
constructor(value: types.ValueParameter, localization: Localization);
|
272
262
|
getName(): string;
|
273
|
-
getEntity(): VariableEntity;
|
263
|
+
getEntity(): e.VariableEntity;
|
274
264
|
getLocalization(): Localization;
|
275
265
|
isOptional(): boolean;
|
276
266
|
getType(): types.Type;
|
277
267
|
}
|
278
268
|
export declare class ValueParameterDeclaration_substitutedMethod implements IValueParameter {
|
279
|
-
readonly entity: VariableEntity;
|
269
|
+
readonly entity: e.VariableEntity;
|
280
270
|
readonly type: types.Type;
|
281
271
|
readonly localization: Localization;
|
282
|
-
constructor(entity: VariableEntity, type: types.Type, localization: Localization);
|
272
|
+
constructor(entity: e.VariableEntity, type: types.Type, localization: Localization);
|
283
273
|
getName(): string;
|
284
|
-
getEntity(): VariableEntity;
|
274
|
+
getEntity(): e.VariableEntity;
|
285
275
|
getLocalization(): Localization;
|
286
276
|
isOptional(): boolean;
|
287
277
|
getType(): types.Type;
|
288
278
|
}
|
289
279
|
export declare class ValueParameterDeclaration_matchResultValueParameter implements IValueParameter {
|
290
280
|
readonly parameter: {
|
291
|
-
entity: VariableEntity;
|
281
|
+
entity: e.VariableEntity;
|
292
282
|
type: types.Type;
|
293
283
|
};
|
294
284
|
readonly localization: Localization;
|
295
285
|
readonly kind = "type-member";
|
296
286
|
constructor(parameter: {
|
297
|
-
entity: VariableEntity;
|
287
|
+
entity: e.VariableEntity;
|
298
288
|
type: types.Type;
|
299
289
|
}, localization: Localization);
|
300
290
|
getName(): string;
|
301
|
-
getEntity(): VariableEntity;
|
291
|
+
getEntity(): e.VariableEntity;
|
302
292
|
getLocalization(): Localization;
|
303
293
|
isOptional(): boolean;
|
304
294
|
getType(): types.Type;
|
305
295
|
}
|
306
296
|
export declare class ValueParameterDeclaration_universal implements IValueParameter {
|
307
|
-
readonly entity: VariableEntity;
|
297
|
+
readonly entity: e.VariableEntity;
|
308
298
|
readonly type: types.Type;
|
309
299
|
readonly localization: Localization;
|
310
|
-
constructor(entity: VariableEntity, type: types.Type, localization: Localization);
|
300
|
+
constructor(entity: e.VariableEntity, type: types.Type, localization: Localization);
|
311
301
|
getName(): string;
|
312
|
-
getEntity(): VariableEntity;
|
302
|
+
getEntity(): e.VariableEntity;
|
313
303
|
getLocalization(): Localization;
|
314
304
|
isOptional(): boolean;
|
315
305
|
getType(): types.Type;
|
316
306
|
}
|
317
307
|
interface IValueParameter {
|
318
308
|
getName(): string;
|
319
|
-
getEntity(): VariableEntity;
|
309
|
+
getEntity(): e.VariableEntity;
|
320
310
|
getLocalization(): Localization;
|
321
311
|
isOptional(): boolean;
|
322
312
|
getType(): types.Type;
|
323
313
|
}
|
324
314
|
export type TypeParameterValue = TypeParameterValue_typeParameter | TypeParameterValue_typeArgument;
|
325
315
|
export declare class TypeParameterValue_typeParameter {
|
326
|
-
readonly value: TypeParameterEntity;
|
316
|
+
readonly value: e.TypeParameterEntity;
|
327
317
|
readonly localization: Localization;
|
328
318
|
readonly kind = "type-parameter";
|
329
|
-
constructor(value: TypeParameterEntity, localization: Localization);
|
319
|
+
constructor(value: e.TypeParameterEntity, localization: Localization);
|
330
320
|
}
|
331
321
|
export declare class TypeParameterValue_typeArgument {
|
332
322
|
readonly value: types.Type;
|
@@ -338,23 +328,25 @@ export declare class TypeDeclaration_structured implements ITypeDeclaration {
|
|
338
328
|
readonly value: TypeDeclarationStructured;
|
339
329
|
readonly kind = "structured";
|
340
330
|
constructor(value: TypeDeclarationStructured);
|
341
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
331
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
342
332
|
getLocalization(): Localization;
|
343
333
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
334
|
+
getContainer(): DeclarationContainer | undefined;
|
344
335
|
}
|
345
336
|
export type TypeDeclarationStructured = TypeDeclarationStructured_entity | TypeDeclarationStructured_type;
|
346
337
|
export declare class TypeDeclarationStructured_entity implements ITypeDeclarationStructured {
|
347
|
-
readonly entity: StructuredTypeEntity;
|
338
|
+
readonly entity: e.StructuredTypeEntity;
|
348
339
|
readonly localization: Localization;
|
349
340
|
readonly kind = "entity";
|
350
341
|
private readonly _typeParameterValues;
|
351
|
-
constructor(entity: StructuredTypeEntity, localization: Localization);
|
352
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
342
|
+
constructor(entity: e.StructuredTypeEntity, localization: Localization);
|
343
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
353
344
|
getLocalization(): Localization;
|
354
345
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
355
346
|
isRefObject(): boolean;
|
356
347
|
isPlainObject(): boolean;
|
357
348
|
isAspect(): boolean;
|
349
|
+
getContainer(): DeclarationContainer | undefined;
|
358
350
|
}
|
359
351
|
export declare class TypeDeclarationStructured_type implements ITypeDeclarationStructured {
|
360
352
|
readonly type: types.StructuredType;
|
@@ -362,43 +354,47 @@ export declare class TypeDeclarationStructured_type implements ITypeDeclarationS
|
|
362
354
|
readonly kind = "type";
|
363
355
|
private readonly _typeParameterValues;
|
364
356
|
constructor(type: types.StructuredType, localization: Localization);
|
365
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
357
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
366
358
|
getLocalization(): Localization;
|
367
359
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
368
360
|
isRefObject(): boolean;
|
369
361
|
isPlainObject(): boolean;
|
370
362
|
isAspect(): boolean;
|
363
|
+
getContainer(): DeclarationContainer | undefined;
|
371
364
|
}
|
372
365
|
interface ITypeDeclarationStructured {
|
373
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
366
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
374
367
|
getLocalization(): Localization;
|
375
368
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
376
369
|
isRefObject(): boolean;
|
377
370
|
isPlainObject(): boolean;
|
378
371
|
isAspect(): boolean;
|
372
|
+
getContainer(): DeclarationContainer | undefined;
|
379
373
|
}
|
380
374
|
export declare class TypeDeclaration_method implements ITypeDeclaration {
|
381
375
|
readonly value: TypeDeclarationMethod;
|
382
376
|
readonly kind = "method";
|
383
377
|
constructor(value: TypeDeclarationMethod);
|
384
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
378
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
385
379
|
getLocalization(): Localization;
|
386
380
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
381
|
+
getContainer(): DeclarationContainer | undefined;
|
387
382
|
}
|
388
383
|
export type TypeDeclarationMethod = TypeDeclarationMethod_entity | TypeDeclarationMethod_type;
|
389
384
|
export declare class TypeDeclarationMethod_entity implements ITypeDeclarationMethod {
|
390
|
-
readonly entity: MethodTypeEntity;
|
385
|
+
readonly entity: e.MethodTypeEntity;
|
391
386
|
readonly localization: Localization;
|
392
387
|
readonly kind = "entity";
|
393
388
|
private readonly _typeParameterValues;
|
394
389
|
private readonly _valueParameters;
|
395
|
-
constructor(entity: MethodTypeEntity, localization: Localization);
|
396
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
390
|
+
constructor(entity: e.MethodTypeEntity, localization: Localization);
|
391
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
397
392
|
getLocalization(): Localization;
|
398
393
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
399
394
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
400
395
|
getReturnType(): types.Type;
|
401
396
|
isAsync(): boolean;
|
397
|
+
getContainer(): DeclarationContainer | undefined;
|
402
398
|
}
|
403
399
|
export declare class TypeDeclarationMethod_type implements ITypeDeclarationMethod {
|
404
400
|
readonly type: types.MethodType;
|
@@ -407,39 +403,43 @@ export declare class TypeDeclarationMethod_type implements ITypeDeclarationMetho
|
|
407
403
|
private readonly _typeParameterValues;
|
408
404
|
private readonly _valueParameters;
|
409
405
|
constructor(type: types.MethodType, localization: Localization);
|
410
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
406
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
411
407
|
getLocalization(): Localization;
|
412
408
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
413
409
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
414
410
|
getReturnType(): types.Type;
|
415
411
|
isAsync(): boolean;
|
412
|
+
getContainer(): DeclarationContainer | undefined;
|
416
413
|
}
|
417
414
|
interface ITypeDeclarationMethod {
|
418
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
415
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
419
416
|
getLocalization(): Localization;
|
420
417
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
421
418
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
422
419
|
getReturnType(): types.Type;
|
423
420
|
isAsync(): boolean;
|
421
|
+
getContainer(): DeclarationContainer | undefined;
|
424
422
|
}
|
425
423
|
export declare class TypeDeclaration_variant implements ITypeDeclaration {
|
426
424
|
readonly value: TypeDeclarationVariant;
|
427
425
|
readonly kind = "variant";
|
428
426
|
constructor(value: TypeDeclarationVariant);
|
429
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
427
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
430
428
|
getLocalization(): Localization;
|
431
429
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
430
|
+
getContainer(): DeclarationContainer | undefined;
|
432
431
|
}
|
433
432
|
export type TypeDeclarationVariant = TypeDeclarationVariant_entity | TypeDeclarationVariant_type;
|
434
433
|
export declare class TypeDeclarationVariant_entity implements ITypeDeclarationVariant {
|
435
|
-
readonly entity: VariantTypeEntity;
|
434
|
+
readonly entity: e.VariantTypeEntity;
|
436
435
|
readonly localization: Localization;
|
437
436
|
readonly kind = "entity";
|
438
437
|
private readonly _typeParameterValues;
|
439
|
-
constructor(entity: VariantTypeEntity, localization: Localization);
|
440
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
438
|
+
constructor(entity: e.VariantTypeEntity, localization: Localization);
|
439
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
441
440
|
getLocalization(): Localization;
|
442
441
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
442
|
+
getContainer(): DeclarationContainer | undefined;
|
443
443
|
}
|
444
444
|
export declare class TypeDeclarationVariant_type implements ITypeDeclarationVariant {
|
445
445
|
readonly type: types.VariantType;
|
@@ -447,34 +447,38 @@ export declare class TypeDeclarationVariant_type implements ITypeDeclarationVari
|
|
447
447
|
readonly kind = "type";
|
448
448
|
private readonly _typeParameterValues;
|
449
449
|
constructor(type: types.VariantType, localization: Localization);
|
450
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
450
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
451
451
|
getLocalization(): Localization;
|
452
452
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
453
|
+
getContainer(): DeclarationContainer | undefined;
|
453
454
|
}
|
454
455
|
interface ITypeDeclarationVariant {
|
455
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
456
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
456
457
|
getLocalization(): Localization;
|
457
458
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
459
|
+
getContainer(): DeclarationContainer | undefined;
|
458
460
|
}
|
459
461
|
export declare class TypeDeclaration_alias implements ITypeDeclaration {
|
460
462
|
readonly value: TypeDeclarationAlias;
|
461
463
|
readonly kind = "alias";
|
462
464
|
constructor(value: TypeDeclarationAlias);
|
463
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
465
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
464
466
|
getLocalization(): Localization;
|
465
467
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
468
|
+
getContainer(): DeclarationContainer | undefined;
|
466
469
|
}
|
467
470
|
export type TypeDeclarationAlias = TypeDeclarationAlias_entity | TypeDeclarationAlias_type;
|
468
471
|
export declare class TypeDeclarationAlias_entity implements ITypeDeclarationAlias {
|
469
|
-
readonly entity: AliasTypeEntity;
|
472
|
+
readonly entity: e.AliasTypeEntity;
|
470
473
|
readonly localization: Localization;
|
471
474
|
readonly kind = "entity";
|
472
475
|
private readonly _typeParameterValues;
|
473
|
-
constructor(entity: AliasTypeEntity, localization: Localization);
|
474
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
476
|
+
constructor(entity: e.AliasTypeEntity, localization: Localization);
|
477
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
475
478
|
getLocalization(): Localization;
|
476
479
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
477
480
|
getAliasedType(): types.Type;
|
481
|
+
getContainer(): DeclarationContainer | undefined;
|
478
482
|
}
|
479
483
|
export declare class TypeDeclarationAlias_type implements ITypeDeclarationAlias {
|
480
484
|
readonly type: types.AliasType;
|
@@ -482,91 +486,96 @@ export declare class TypeDeclarationAlias_type implements ITypeDeclarationAlias
|
|
482
486
|
readonly kind = "type";
|
483
487
|
private readonly _typeParameterValues;
|
484
488
|
constructor(type: types.AliasType, localization: Localization);
|
485
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
489
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
486
490
|
getLocalization(): Localization;
|
487
491
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
488
492
|
getAliasedType(): types.Type;
|
493
|
+
getContainer(): DeclarationContainer | undefined;
|
489
494
|
}
|
490
495
|
interface ITypeDeclarationAlias {
|
491
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
496
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
492
497
|
getLocalization(): Localization;
|
493
498
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
494
499
|
getAliasedType(): types.Type;
|
500
|
+
getContainer(): DeclarationContainer | undefined;
|
495
501
|
}
|
496
502
|
export declare class TypeDeclaration_parameter implements ITypeDeclaration {
|
497
|
-
readonly entity: TypeParameterEntity;
|
503
|
+
readonly entity: e.TypeParameterEntity;
|
498
504
|
readonly localization: Localization;
|
499
505
|
readonly kind = "parameter";
|
500
|
-
constructor(entity: TypeParameterEntity, localization: Localization);
|
501
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
506
|
+
constructor(entity: e.TypeParameterEntity, localization: Localization);
|
507
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
502
508
|
getLocalization(): Localization;
|
503
509
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
510
|
+
getContainer(): DeclarationContainer | undefined;
|
504
511
|
}
|
505
512
|
export declare class TypeDeclaration_unresolved implements ITypeDeclaration {
|
506
513
|
readonly localization: Localization;
|
507
514
|
readonly kind = "unresolved";
|
508
515
|
constructor(localization: Localization);
|
509
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
516
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
510
517
|
getLocalization(): Localization;
|
511
518
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
519
|
+
getContainer(): DeclarationContainer | undefined;
|
512
520
|
}
|
513
521
|
interface ITypeDeclaration {
|
514
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
522
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
515
523
|
getLocalization(): Localization;
|
516
524
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
525
|
+
getContainer(): DeclarationContainer | undefined;
|
517
526
|
}
|
518
527
|
type NamedType = NamedType_method | NamedType_structured | NamedType_typeParameter | NamedType_variant | NamedType_alias;
|
519
528
|
export declare class NamedType_method implements INamedType {
|
520
|
-
readonly value: PackageMethodTypeEntity;
|
529
|
+
readonly value: e.PackageMethodTypeEntity;
|
521
530
|
readonly kind = "method";
|
522
|
-
constructor(value: PackageMethodTypeEntity);
|
523
|
-
getEntity(): NamedTypeEntity;
|
524
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
531
|
+
constructor(value: e.PackageMethodTypeEntity);
|
532
|
+
getEntity(): e.NamedTypeEntity;
|
533
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
525
534
|
}
|
526
535
|
export declare class NamedType_structured implements INamedType {
|
527
|
-
readonly value: PackageStructuredTypeEntity;
|
536
|
+
readonly value: e.PackageStructuredTypeEntity;
|
528
537
|
readonly kind = "structured";
|
529
|
-
constructor(value: PackageStructuredTypeEntity);
|
530
|
-
getEntity(): NamedTypeEntity;
|
531
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
538
|
+
constructor(value: e.PackageStructuredTypeEntity);
|
539
|
+
getEntity(): e.NamedTypeEntity;
|
540
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
532
541
|
}
|
533
542
|
export declare class NamedType_typeParameter implements INamedType {
|
534
|
-
readonly value: TypeParameterEntity;
|
543
|
+
readonly value: e.TypeParameterEntity;
|
535
544
|
readonly kind = "typeParam";
|
536
|
-
constructor(value: TypeParameterEntity);
|
537
|
-
getEntity(): NamedTypeEntity;
|
538
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
545
|
+
constructor(value: e.TypeParameterEntity);
|
546
|
+
getEntity(): e.NamedTypeEntity;
|
547
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
539
548
|
}
|
540
549
|
export declare class NamedType_variant implements INamedType {
|
541
|
-
readonly value: PackageVariantTypeEntity;
|
550
|
+
readonly value: e.PackageVariantTypeEntity;
|
542
551
|
readonly kind = "variant";
|
543
|
-
constructor(value: PackageVariantTypeEntity);
|
544
|
-
getEntity(): NamedTypeEntity;
|
545
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
552
|
+
constructor(value: e.PackageVariantTypeEntity);
|
553
|
+
getEntity(): e.NamedTypeEntity;
|
554
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
546
555
|
}
|
547
556
|
export declare class NamedType_alias implements INamedType {
|
548
|
-
readonly value: AliasTypeEntity;
|
557
|
+
readonly value: e.AliasTypeEntity;
|
549
558
|
readonly kind = "alias";
|
550
|
-
constructor(value: AliasTypeEntity);
|
551
|
-
getEntity(): NamedTypeEntity;
|
552
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
559
|
+
constructor(value: e.AliasTypeEntity);
|
560
|
+
getEntity(): e.NamedTypeEntity;
|
561
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
553
562
|
}
|
554
563
|
interface INamedType {
|
555
|
-
getEntity(): NamedTypeEntity;
|
556
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
564
|
+
getEntity(): e.NamedTypeEntity;
|
565
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
557
566
|
}
|
558
567
|
export type OperatorDeclaration = OperatorDeclaration_entity | OperatorDeclaration_typeMember;
|
559
568
|
export declare class OperatorDeclaration_entity implements IOperatorDeclaration {
|
560
|
-
readonly operator: OperatorEntity;
|
569
|
+
readonly operator: e.OperatorEntity;
|
561
570
|
readonly localization: Localization;
|
562
571
|
readonly kind = "entity";
|
563
572
|
private readonly _valueParameters;
|
564
|
-
constructor(operator: OperatorEntity, localization: Localization);
|
573
|
+
constructor(operator: e.OperatorEntity, localization: Localization);
|
565
574
|
getLocalization(): Localization;
|
566
|
-
getOperatorKind(): OperatorKind;
|
575
|
+
getOperatorKind(): e.OperatorKind;
|
567
576
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
568
577
|
getReturnType(): types.Type;
|
569
|
-
|
578
|
+
getContainer(): DeclarationContainer | undefined;
|
570
579
|
}
|
571
580
|
export declare class OperatorDeclaration_typeMember implements IOperatorDeclaration {
|
572
581
|
readonly operator: types.Operator;
|
@@ -575,17 +584,17 @@ export declare class OperatorDeclaration_typeMember implements IOperatorDeclarat
|
|
575
584
|
private readonly _valueParameters;
|
576
585
|
constructor(operator: types.Operator, localization: Localization);
|
577
586
|
getLocalization(): Localization;
|
578
|
-
getOperatorKind(): OperatorKind;
|
587
|
+
getOperatorKind(): e.OperatorKind;
|
579
588
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
580
589
|
getReturnType(): types.Type;
|
581
|
-
|
590
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
582
591
|
}
|
583
592
|
interface IOperatorDeclaration {
|
584
593
|
getLocalization(): Localization;
|
585
|
-
getOperatorKind(): OperatorKind;
|
594
|
+
getOperatorKind(): e.OperatorKind;
|
586
595
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
587
596
|
getReturnType(): types.Type;
|
588
|
-
|
597
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
589
598
|
}
|
590
599
|
export type TypeUsage = StructuredTypeUsage | VariantTypeUsage | MethodTypeUsage | AliasTypeUsage | ParameterTypeUsage | UnionTypeUsage | UnresolvedTypeUsage;
|
591
600
|
export type StructuredTypeUsage = StructuredTypeUsage_type | StructuredTypeUsage_entity;
|
@@ -593,23 +602,26 @@ export declare class StructuredTypeUsage_type implements IStructuredTypeUsage {
|
|
593
602
|
readonly type: types.StructuredType;
|
594
603
|
readonly kind = "structured";
|
595
604
|
constructor(type: types.StructuredType);
|
596
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
605
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
597
606
|
getStructuredTypeKind(): StructuredTypeKind;
|
598
607
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
608
|
+
getContainer(): DeclarationContainer | undefined;
|
599
609
|
}
|
600
610
|
export declare class StructuredTypeUsage_entity implements IStructuredTypeUsage {
|
601
|
-
readonly entity: StructuredTypeEntity;
|
611
|
+
readonly entity: e.StructuredTypeEntity;
|
602
612
|
readonly kind = "structured";
|
603
|
-
constructor(entity: StructuredTypeEntity);
|
604
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
613
|
+
constructor(entity: e.StructuredTypeEntity);
|
614
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
605
615
|
getStructuredTypeKind(): StructuredTypeKind;
|
606
616
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
617
|
+
getContainer(): DeclarationContainer | undefined;
|
607
618
|
}
|
608
619
|
interface IStructuredTypeUsage {
|
609
620
|
readonly kind: 'structured';
|
610
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
621
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
611
622
|
getStructuredTypeKind(): StructuredTypeKind;
|
612
623
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
624
|
+
getContainer(): DeclarationContainer | undefined;
|
613
625
|
}
|
614
626
|
type StructuredTypeKind = 'ref-object' | 'plain-object' | 'aspect';
|
615
627
|
export type VariantTypeUsage = VariantTypeUsage_type | VariantTypeUsage_entity;
|
@@ -617,88 +629,97 @@ export declare class VariantTypeUsage_type implements IVariantTypeUsage {
|
|
617
629
|
readonly type: types.VariantType;
|
618
630
|
readonly kind = "variant";
|
619
631
|
constructor(type: types.VariantType);
|
620
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
632
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
633
|
+
getContainer(): DeclarationContainer | undefined;
|
621
634
|
}
|
622
635
|
export declare class VariantTypeUsage_entity implements IVariantTypeUsage {
|
623
|
-
readonly entity: VariantTypeEntity;
|
636
|
+
readonly entity: e.VariantTypeEntity;
|
624
637
|
readonly kind = "variant";
|
625
|
-
constructor(entity: VariantTypeEntity);
|
626
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
638
|
+
constructor(entity: e.VariantTypeEntity);
|
639
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
640
|
+
getContainer(): DeclarationContainer | undefined;
|
627
641
|
}
|
628
642
|
interface IVariantTypeUsage {
|
629
643
|
readonly kind: 'variant';
|
630
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
644
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
645
|
+
getContainer(): DeclarationContainer | undefined;
|
631
646
|
}
|
632
647
|
export type MethodTypeUsage = MethodTypeUsage_type | MethodTypeUsage_entity;
|
633
648
|
export declare class MethodTypeUsage_type implements IMethodTypeUsage {
|
634
649
|
readonly type: types.MethodType;
|
635
650
|
readonly kind = "method";
|
636
651
|
constructor(type: types.MethodType);
|
637
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
652
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
638
653
|
isAsync(): boolean;
|
639
654
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
640
655
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
641
656
|
getReturnType(): types.Type;
|
657
|
+
getContainer(): DeclarationContainer | undefined;
|
642
658
|
}
|
643
659
|
export declare class MethodTypeUsage_entity implements IMethodTypeUsage {
|
644
|
-
readonly entity: MethodTypeEntity;
|
660
|
+
readonly entity: e.MethodTypeEntity;
|
645
661
|
readonly kind = "method";
|
646
|
-
constructor(entity: MethodTypeEntity);
|
647
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
662
|
+
constructor(entity: e.MethodTypeEntity);
|
663
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
648
664
|
isAsync(): boolean;
|
649
665
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
650
666
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
651
667
|
getReturnType(): types.Type;
|
668
|
+
getContainer(): DeclarationContainer | undefined;
|
652
669
|
}
|
653
670
|
interface IMethodTypeUsage {
|
654
671
|
readonly kind: 'method';
|
655
|
-
ifNamedThenEntity(): NamedTypeEntity | undefined;
|
672
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
656
673
|
isAsync(): boolean;
|
657
674
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
658
675
|
getValueParameters(): readonly ValueParameterDeclaration[];
|
659
676
|
getReturnType(): types.Type;
|
677
|
+
getContainer(): DeclarationContainer | undefined;
|
660
678
|
}
|
661
679
|
export type AliasTypeUsage = AliasTypeUsage_type | AliasTypeUsage_entity;
|
662
680
|
export declare class AliasTypeUsage_type implements IAliasTypeUsage {
|
663
681
|
readonly type: types.AliasType;
|
664
682
|
readonly kind = "alias";
|
665
683
|
constructor(type: types.AliasType);
|
666
|
-
getEntity(): NamedTypeEntity;
|
684
|
+
getEntity(): e.NamedTypeEntity;
|
667
685
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
668
686
|
getAliasedType(): types.Type;
|
687
|
+
getContainer(): DeclarationContainer | undefined;
|
669
688
|
}
|
670
689
|
export declare class AliasTypeUsage_entity implements IAliasTypeUsage {
|
671
|
-
readonly entity: AliasTypeEntity;
|
690
|
+
readonly entity: e.AliasTypeEntity;
|
672
691
|
readonly kind = "alias";
|
673
|
-
constructor(entity: AliasTypeEntity);
|
674
|
-
getEntity(): NamedTypeEntity;
|
692
|
+
constructor(entity: e.AliasTypeEntity);
|
693
|
+
getEntity(): e.NamedTypeEntity;
|
675
694
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
676
695
|
getAliasedType(): types.Type;
|
696
|
+
getContainer(): DeclarationContainer | undefined;
|
677
697
|
}
|
678
698
|
interface IAliasTypeUsage {
|
679
699
|
readonly kind: 'alias';
|
680
|
-
getEntity(): NamedTypeEntity;
|
700
|
+
getEntity(): e.NamedTypeEntity;
|
681
701
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
682
702
|
getAliasedType(): types.Type;
|
703
|
+
getContainer(): DeclarationContainer | undefined;
|
683
704
|
}
|
684
705
|
export type ParameterTypeUsage = ParameterTypeUsage_type | ParameterTypeUsage_entity;
|
685
706
|
export declare class ParameterTypeUsage_type implements IParameterTypeUsage {
|
686
707
|
readonly type: types.ParameterType;
|
687
708
|
readonly kind = "parameter";
|
688
709
|
constructor(type: types.ParameterType);
|
689
|
-
getEntity(): NamedTypeEntity;
|
710
|
+
getEntity(): e.NamedTypeEntity;
|
690
711
|
isNoneExcluded(): boolean;
|
691
712
|
}
|
692
713
|
export declare class ParameterTypeUsage_entity implements IParameterTypeUsage {
|
693
|
-
readonly entity: TypeParameterEntity;
|
714
|
+
readonly entity: e.TypeParameterEntity;
|
694
715
|
readonly kind = "parameter";
|
695
|
-
constructor(entity: TypeParameterEntity);
|
696
|
-
getEntity(): NamedTypeEntity;
|
716
|
+
constructor(entity: e.TypeParameterEntity);
|
717
|
+
getEntity(): e.NamedTypeEntity;
|
697
718
|
isNoneExcluded(): boolean;
|
698
719
|
}
|
699
720
|
interface IParameterTypeUsage {
|
700
721
|
readonly kind: 'parameter';
|
701
|
-
getEntity(): NamedTypeEntity;
|
722
|
+
getEntity(): e.NamedTypeEntity;
|
702
723
|
isNoneExcluded(): boolean;
|
703
724
|
}
|
704
725
|
type UnionTypeUsage = UnionTypeUsage_type;
|
@@ -713,9 +734,26 @@ type UnresolvedTypeUsage = UnresolvedTypeUsage_type;
|
|
713
734
|
declare class UnresolvedTypeUsage_type {
|
714
735
|
readonly kind = "unresolved";
|
715
736
|
}
|
716
|
-
|
717
|
-
|
718
|
-
|
737
|
+
type TypeMemberDeclarationContainer = DeclarationContainer.Type | DeclarationContainer.TypeExtension;
|
738
|
+
type DeclarationContainer = DeclarationContainer.Type | DeclarationContainer.TypeExtension | DeclarationContainer.Package;
|
739
|
+
declare namespace DeclarationContainer {
|
740
|
+
class Type {
|
741
|
+
readonly typeUsage: TypeUsage;
|
742
|
+
readonly parent: Package | undefined;
|
743
|
+
readonly kind = "type";
|
744
|
+
constructor(typeUsage: TypeUsage, parent: Package | undefined);
|
745
|
+
}
|
746
|
+
class TypeExtension {
|
747
|
+
readonly entity: e.TypeExtensionEntity;
|
748
|
+
readonly parent: Package | undefined;
|
749
|
+
readonly kind = "type-extension";
|
750
|
+
constructor(entity: e.TypeExtensionEntity, parent: Package | undefined);
|
751
|
+
}
|
752
|
+
class Package {
|
753
|
+
readonly entity: e.PackageEntity;
|
754
|
+
readonly kind = "package";
|
755
|
+
constructor(entity: e.PackageEntity);
|
756
|
+
}
|
719
757
|
}
|
720
758
|
export declare class MethodDeclarationDisplayParts {
|
721
759
|
readonly asyncKeywordWithWhitespace: string;
|
@@ -761,6 +799,7 @@ export declare class ValueParameterDeclarationDisplayParts {
|
|
761
799
|
export declare class TypeDeclarationDisplayParts {
|
762
800
|
readonly typeKeyword: string;
|
763
801
|
readonly whitespaceAfterTypeKeyword: string;
|
802
|
+
readonly container: string;
|
764
803
|
readonly name: string;
|
765
804
|
readonly constraint: string;
|
766
805
|
readonly typeParametersStart: string;
|
@@ -769,7 +808,7 @@ export declare class TypeDeclarationDisplayParts {
|
|
769
808
|
readonly typeParametersEnd: string;
|
770
809
|
readonly equalsSignWithWhitespace: string;
|
771
810
|
readonly typeBody: string;
|
772
|
-
constructor(typeKeyword: string, whitespaceAfterTypeKeyword: string, name: string, constraint: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, equalsSignWithWhitespace: string, typeBody: string);
|
811
|
+
constructor(typeKeyword: string, whitespaceAfterTypeKeyword: string, container: string, name: string, constraint: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, equalsSignWithWhitespace: string, typeBody: string);
|
773
812
|
toString(): string;
|
774
813
|
}
|
775
814
|
export declare class ConstructorDeclarationDisplayParts {
|