@artel/artc 0.6.25217 → 0.6.25219
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 +16 -66
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +930 -888
- package/build/{chunk-HN3XZZQX.js → chunk-AIY75NR5.js} +5 -4
- package/build/{chunk-TXAEJ2GI.js → chunk-IYSH7MAQ.js} +10562 -10629
- package/build/{chunk-CMPXXHBQ.js → chunk-QLTGS2V2.js} +13 -5
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
- package/build/types/analysis/Analyzer.d.ts +27 -69
- package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +7 -7
- package/build/types/analysis/{CallArgumentsToParametersMatcher.d.ts → ArgumentsToParametersMatcher.d.ts} +14 -14
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +1 -1
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +2 -0
- package/build/types/analysis/FindModifier.d.ts +2 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
- package/build/types/analysis/LocalizationContext.d.ts +4 -5
- package/build/types/analysis/Lookup.d.ts +8 -7
- package/build/types/analysis/ModifierFlags.d.ts +16 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +4 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
- package/build/types/analysis/Scope.d.ts +21 -116
- package/build/types/analysis/SemanticContext.d.ts +23 -13
- package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +12 -99
- package/build/types/analysis/TagMeaning.d.ts +57 -9
- package/build/types/analysis/Tags.d.ts +18 -6
- package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
- package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
- package/build/types/analysis/Utils.d.ts +4 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
- package/build/types/analysis/index.d.ts +1 -1
- package/build/types/api/Api.d.ts +2 -6
- package/build/types/diagnostic/DiagnosticCode.d.ts +21 -17
- package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
- package/build/types/emitter/EmitterContext.d.ts +4 -1
- package/build/types/emitter/Entities.d.ts +52 -16
- package/build/types/emitter/EntityMap.d.ts +1 -3
- package/build/types/emitter/IrBuilder.d.ts +6 -2
- package/build/types/emitter/IrToJs.d.ts +6 -5
- package/build/types/emitter/Transformer.d.ts +20 -12
- package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
- package/build/types/emitter/ir/Nodes.d.ts +215 -179
- package/build/types/emitter/ir/index.d.ts +1 -2
- package/build/types/emitter/ir/types.d.ts +4 -4
- package/build/types/entities/AliasTypeEntity.d.ts +8 -4
- package/build/types/entities/ConstructorEntity.d.ts +2 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -3
- package/build/types/entities/DestructorEntity.d.ts +2 -0
- package/build/types/entities/GetterEntity.d.ts +8 -0
- package/build/types/entities/IndexerEntity.d.ts +5 -3
- package/build/types/entities/MethodEntity.d.ts +9 -5
- package/build/types/entities/MethodTypeEntity.d.ts +10 -5
- package/build/types/entities/OperatorEntity.d.ts +5 -3
- package/build/types/entities/PackageEntity.d.ts +3 -3
- package/build/types/entities/PackageMembers.d.ts +4 -90
- package/build/types/entities/SetterEntity.d.ts +8 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +11 -6
- package/build/types/entities/TypeEntity.d.ts +15 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +2 -0
- package/build/types/entities/TypeParameterEntity.d.ts +11 -6
- package/build/types/entities/VariableEntity.d.ts +50 -41
- package/build/types/entities/VariantTypeEntity.d.ts +10 -11
- package/build/types/entities/index.d.ts +17 -25
- package/build/types/executor/Compiler.d.ts +1 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +8 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +1 -2
- package/build/types/project/FileSystemTree.d.ts +2 -2
- package/build/types/services/CompletionService.d.ts +4 -1
- package/build/types/services/DisplayService.d.ts +18 -2
- package/build/types/services/NodeSemanticInfo.d.ts +7 -5
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -21
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +3 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +3 -3
- package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
- package/build/types/tree/KeywordKind.d.ts +37 -37
- package/build/types/tree/NodeKind.d.ts +10 -12
- package/build/types/tree/green/Nodes.d.ts +57 -84
- package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
- package/build/types/tree/red/Nodes.d.ts +67 -97
- package/build/types/ts-interop/Entities.d.ts +51 -28
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
- package/build/types/types/TypeMembers.d.ts +9 -0
- package/package.json +2 -2
- package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
- package/build/types/analysis/IndexedAccess.d.ts +0 -14
- package/build/types/analysis/VariableAccess.d.ts +0 -14
- package/build/types/analysis/VariantLookup.d.ts +0 -20
- package/build/types/emitter/ir/LoweringOptions.d.ts +0 -36
- package/build/types/emitter/ir/LoweringState.d.ts +0 -49
- package/build/types/entities/VariantEntity.d.ts +0 -31
- package/build/types/entities/Variants.d.ts +0 -10
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Tag } from '../analysis/Tags.js';
|
2
2
|
import { Analyzer } from '../analysis/index.js';
|
3
3
|
import { Lazy, Name } from '../common/index.js';
|
4
|
-
import { EnumerationVariableDeclaration, ErrorVariableDeclaration, LocalVariableDeclaration, MethodLiteral, PackageVariableDeclaration, PackageVariableGetterDeclaration, PackageVariableSetterDeclaration, ParameterDeclaration,
|
4
|
+
import { EnumerationVariableDeclaration, ErrorVariableDeclaration, LocalVariableDeclaration, MethodLiteral, PackageVariableDeclaration, PackageVariableGetterDeclaration, PackageVariableSetterDeclaration, ParameterDeclaration, TypeVariableDeclaration, TypeVariableGetterDeclaration, TypeVariableSetterDeclaration, VariantDeclaration } from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
|
-
import type { Entity, IndexerEntity,
|
7
|
-
import { Entity as ActualEntity, ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, GetterEntity, MethodEntity, MethodTypeEntity, SetterEntity, TypeMemberEntityContainer } from './index.js';
|
6
|
+
import type { Entity, IndexerEntity, PackageEntity } from './index.js';
|
7
|
+
import { Entity as ActualEntity, ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, GetterEntity, MethodEntity, MethodTypeEntity, OperatorEntity, SetterEntity, TypeMemberEntityContainer } from './index.js';
|
8
8
|
export type VariableEntity = PackageVariableEntity | TypeVariableEntity | ParameterVariableEntity | LocalVariableEntity;
|
9
9
|
export interface PackageVariableEntity extends IVariableEntity {
|
10
10
|
readonly subkind: 'package';
|
@@ -17,7 +17,8 @@ export interface TypeVariableEntity extends IVariableEntity {
|
|
17
17
|
isRedefinable(): boolean;
|
18
18
|
isRedefined(): boolean;
|
19
19
|
isAbstract(): boolean;
|
20
|
-
|
20
|
+
getOverriddenMembers(): readonly types.Variable[];
|
21
|
+
isVariant(): boolean;
|
21
22
|
}
|
22
23
|
export interface ParameterVariableEntity extends IVariableEntity {
|
23
24
|
readonly subkind: 'parameter';
|
@@ -55,7 +56,6 @@ export declare namespace ParameterVariableEntityContainer {
|
|
55
56
|
}
|
56
57
|
}
|
57
58
|
export type EntityContainingValueParameter = MethodEntity | IndexerEntity | ConstructorEntity | DestructorEntity | MethodTypeEntity | SetterEntity | OperatorEntity;
|
58
|
-
export declare function isEntityContainingValueParameter(entity: Entity): entity is EntityContainingValueParameter;
|
59
59
|
export type VariableEntityDefinition = {
|
60
60
|
kind: DefinitionKind.Source;
|
61
61
|
value: SourceVariableEntityDefinition;
|
@@ -67,7 +67,7 @@ export type VariableEntityDefinition = {
|
|
67
67
|
export type SourceVariableEntityDefinition = SingleSourceVariableEntityDefinition | MultiSourceVariableEntityDefinition;
|
68
68
|
export type SingleSourceVariableEntityDefinition = {
|
69
69
|
kind: 'single';
|
70
|
-
node: PackageVariableDeclaration | TypeVariableDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | ParameterDeclaration |
|
70
|
+
node: PackageVariableDeclaration | TypeVariableDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | ParameterDeclaration | VariantDeclaration;
|
71
71
|
};
|
72
72
|
export type MultiSourceVariableEntityDefinition = {
|
73
73
|
kind: 'multi';
|
@@ -78,13 +78,10 @@ export declare class ImplicitMethodBlockParameterSpecialVariableEntityInfo {
|
|
78
78
|
readonly kind = "implicit-method-block-parameter";
|
79
79
|
constructor(targetTypeParameter: types.ValueParameter);
|
80
80
|
}
|
81
|
-
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo |
|
81
|
+
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo | ValueSpecialVariableEntityInfo | BackingSpecialVariableEntityInfo | ImplicitMethodBlockParameterSpecialVariableEntityInfo;
|
82
82
|
export declare class ResultSpecialVariableEntityInfo {
|
83
83
|
readonly kind = "result";
|
84
84
|
}
|
85
|
-
export declare class ParamSpecialVariableEntityInfo {
|
86
|
-
readonly kind = "param";
|
87
|
-
}
|
88
85
|
export declare class ValueSpecialVariableEntityInfo {
|
89
86
|
readonly kind = "value";
|
90
87
|
}
|
@@ -93,17 +90,14 @@ export declare class BackingSpecialVariableEntityInfo {
|
|
93
90
|
readonly kind = "backing";
|
94
91
|
constructor(computedVariable: PackageVariableEntity | TypeVariableEntity);
|
95
92
|
}
|
96
|
-
export declare class ParamObjectMemberSpecialVariableEntityInfo {
|
97
|
-
readonly correspondingParameter: VariableEntity;
|
98
|
-
readonly kind = "param-object-member";
|
99
|
-
constructor(correspondingParameter: VariableEntity);
|
100
|
-
}
|
101
93
|
export declare class PackageVariableDeclarationEntity implements PackageVariableEntity {
|
102
94
|
private readonly _analyzer;
|
103
95
|
private readonly _node;
|
104
96
|
readonly kind = EntityKind.Variable;
|
105
97
|
readonly subkind = "package";
|
106
98
|
private readonly _typeInferrer;
|
99
|
+
private readonly _modifierFlags;
|
100
|
+
private get modifierFlags();
|
107
101
|
constructor(_analyzer: Analyzer, _node: PackageVariableDeclaration);
|
108
102
|
getName(): Name;
|
109
103
|
getContainingPackage(): PackageEntity;
|
@@ -123,6 +117,8 @@ export declare class ComputedPackageVariableDeclarationEntity implements Package
|
|
123
117
|
private readonly _getterDeclaration;
|
124
118
|
private readonly _setterDeclaration;
|
125
119
|
private readonly _getterOrSetterDeclaration;
|
120
|
+
private readonly _modifierFlags;
|
121
|
+
private get modifierFlags();
|
126
122
|
constructor(analyzer: Analyzer, getterDeclaration: PackageVariableGetterDeclaration | undefined, setterDeclaration: PackageVariableSetterDeclaration | undefined);
|
127
123
|
getName(): Name;
|
128
124
|
getType(): types.Type;
|
@@ -141,7 +137,9 @@ export declare class TypeVariableDeclarationEntity implements TypeVariableEntity
|
|
141
137
|
private readonly _analyzer;
|
142
138
|
private readonly _node;
|
143
139
|
private readonly _typeInferrer;
|
144
|
-
private readonly
|
140
|
+
private readonly _overriddenMembers;
|
141
|
+
private readonly _modifierFlags;
|
142
|
+
private get modifierFlags();
|
145
143
|
constructor(analyzer: Analyzer, node: TypeVariableDeclaration);
|
146
144
|
getName(): Name;
|
147
145
|
getType(): types.Type;
|
@@ -157,7 +155,8 @@ export declare class TypeVariableDeclarationEntity implements TypeVariableEntity
|
|
157
155
|
isRedefinable(): boolean;
|
158
156
|
isRedefined(): boolean;
|
159
157
|
isAbstract(): boolean;
|
160
|
-
|
158
|
+
getOverriddenMembers(): readonly types.Variable[];
|
159
|
+
isVariant(): boolean;
|
161
160
|
}
|
162
161
|
export declare class ComputedTypeVariableDeclarationEntity implements TypeVariableEntity {
|
163
162
|
readonly kind = EntityKind.Variable;
|
@@ -166,7 +165,9 @@ export declare class ComputedTypeVariableDeclarationEntity implements TypeVariab
|
|
166
165
|
private readonly _getterDeclaration;
|
167
166
|
private readonly _setterDeclaration;
|
168
167
|
private readonly _getterOrSetterDeclaration;
|
169
|
-
private readonly
|
168
|
+
private readonly _overriddenMembers;
|
169
|
+
private readonly _modifierFlags;
|
170
|
+
private get modifierFlags();
|
170
171
|
constructor(analyzer: Analyzer, getterDeclaration: TypeVariableGetterDeclaration | undefined, setterDeclaration: TypeVariableSetterDeclaration | undefined);
|
171
172
|
getName(): Name;
|
172
173
|
getType(): types.Type;
|
@@ -182,7 +183,33 @@ export declare class ComputedTypeVariableDeclarationEntity implements TypeVariab
|
|
182
183
|
getSetter(): SetterEntity | undefined;
|
183
184
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
184
185
|
getTags(): readonly Tag[];
|
185
|
-
|
186
|
+
getOverriddenMembers(): readonly types.Variable[];
|
187
|
+
isVariant(): boolean;
|
188
|
+
}
|
189
|
+
export declare class VariantDeclarationEntity implements TypeVariableEntity {
|
190
|
+
readonly kind = EntityKind.Variable;
|
191
|
+
readonly subkind = "type";
|
192
|
+
private readonly _analyzer;
|
193
|
+
private readonly _node;
|
194
|
+
private readonly _variantTypeDeclaration;
|
195
|
+
private readonly _type;
|
196
|
+
constructor(analyzer: Analyzer, node: VariantDeclaration);
|
197
|
+
getName(): Name;
|
198
|
+
getType(): types.Type;
|
199
|
+
getDefinition(): VariableEntityDefinition;
|
200
|
+
getGetter(): GetterEntity | undefined;
|
201
|
+
getSetter(): SetterEntity | undefined;
|
202
|
+
isConstant(): boolean;
|
203
|
+
isHidden(): EntityHidingLevel | undefined;
|
204
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
205
|
+
getTags(): readonly Tag[];
|
206
|
+
getContainer(): TypeMemberEntityContainer;
|
207
|
+
isStatic(): boolean;
|
208
|
+
isRedefinable(): boolean;
|
209
|
+
isRedefined(): boolean;
|
210
|
+
isAbstract(): boolean;
|
211
|
+
getOverriddenMembers(): readonly types.Variable[];
|
212
|
+
isVariant(): boolean;
|
186
213
|
}
|
187
214
|
export declare class LocalVariableDeclarationEntity implements LocalVariableEntity {
|
188
215
|
private readonly _analyzer;
|
@@ -301,25 +328,6 @@ export declare class MethodLiteralParameterDeclarationEntity implements Paramete
|
|
301
328
|
isOptional(): boolean;
|
302
329
|
isVariadic(): boolean;
|
303
330
|
}
|
304
|
-
export declare class SetterParameterDeclarationEntity implements ParameterVariableEntity {
|
305
|
-
private readonly _analyzer;
|
306
|
-
private readonly _node;
|
307
|
-
readonly kind = EntityKind.Variable;
|
308
|
-
readonly subkind = "parameter";
|
309
|
-
constructor(_analyzer: Analyzer, _node: SetterParameterDeclaration);
|
310
|
-
getName(): Name;
|
311
|
-
getType(): types.Type;
|
312
|
-
getDefinition(): VariableEntityDefinition;
|
313
|
-
getGetter(): GetterEntity | undefined;
|
314
|
-
getSetter(): SetterEntity | undefined;
|
315
|
-
isConstant(): boolean;
|
316
|
-
isHidden(): EntityHidingLevel | undefined;
|
317
|
-
isSpecial(): SpecialVariableEntityInfo | undefined;
|
318
|
-
getTags(): readonly Tag[];
|
319
|
-
getContainer(): ParameterVariableEntityContainer;
|
320
|
-
isOptional(): boolean;
|
321
|
-
isVariadic(): boolean;
|
322
|
-
}
|
323
331
|
export declare class IntrinsicPackageVariableEntity implements PackageVariableEntity {
|
324
332
|
private readonly _name;
|
325
333
|
private readonly _type;
|
@@ -354,10 +362,10 @@ export declare class IntrinsicTypeVariableEntity implements TypeVariableEntity {
|
|
354
362
|
private readonly _isHidden;
|
355
363
|
private readonly _getter;
|
356
364
|
private readonly _setter;
|
357
|
-
private readonly
|
365
|
+
private readonly _overriddenMembers;
|
358
366
|
readonly kind = EntityKind.Variable;
|
359
367
|
readonly subkind = "type";
|
360
|
-
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _isRedefinable: boolean, _isRedefined: boolean, _isAbstract: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined,
|
368
|
+
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _isRedefinable: boolean, _isRedefined: boolean, _isAbstract: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined, _overriddenMembers: readonly types.Variable[]);
|
361
369
|
getName(): Name;
|
362
370
|
getType(): types.Type;
|
363
371
|
getDefinition(): VariableEntityDefinition;
|
@@ -372,7 +380,8 @@ export declare class IntrinsicTypeVariableEntity implements TypeVariableEntity {
|
|
372
380
|
isRedefinable(): boolean;
|
373
381
|
isRedefined(): boolean;
|
374
382
|
isAbstract(): boolean;
|
375
|
-
|
383
|
+
getOverriddenMembers(): readonly types.Variable[];
|
384
|
+
isVariant(): boolean;
|
376
385
|
}
|
377
386
|
export declare class IntrinsicParameterVariableEntity implements ParameterVariableEntity {
|
378
387
|
private readonly _name;
|
@@ -5,8 +5,7 @@ import { AnonymousVariantTypeDeclaration, PackageVariantTypeDeclaration } from '
|
|
5
5
|
import * as types from '../types/index.js';
|
6
6
|
import { EntityNaming } from './EntityNaming.js';
|
7
7
|
import { OriginalTypeEntityMembers } from './TypeEntityMembers.js';
|
8
|
-
import {
|
9
|
-
import { BaseObjectType, DefinitionKind, EntityHidingLevel, EntityKind, PackageEntity, SubstitutionApplicationMode, TypeParameterEntity } from './index.js';
|
8
|
+
import { BaseObjectType, DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
10
9
|
export type VariantTypeEntity = PackageVariantTypeEntity | AnonymousVariantTypeEntity;
|
11
10
|
export interface PackageVariantTypeEntity extends IVariantTypeEntity {
|
12
11
|
readonly subkind: 'package';
|
@@ -17,9 +16,9 @@ export interface AnonymousVariantTypeEntity extends IVariantTypeEntity {
|
|
17
16
|
readonly subkind: 'anonymous';
|
18
17
|
getContainingPackage(): PackageEntity;
|
19
18
|
}
|
20
|
-
interface IVariantTypeEntity {
|
21
|
-
readonly kind: EntityKind.
|
22
|
-
|
19
|
+
interface IVariantTypeEntity extends ITypeEntity {
|
20
|
+
readonly kind: EntityKind.Type;
|
21
|
+
readonly typeEntityKind: TypeEntityKind.Variant;
|
23
22
|
getMembers(): OriginalTypeEntityMembers;
|
24
23
|
getUnderlyingType(): types.Type;
|
25
24
|
getDefinition(): VariantTypeEntityDefinition;
|
@@ -43,18 +42,19 @@ export type VariantTypeEntityDefinition = {
|
|
43
42
|
export declare class PackageVariantTypeDeclarationEntity implements PackageVariantTypeEntity {
|
44
43
|
private readonly _analyzer;
|
45
44
|
private readonly _node;
|
46
|
-
readonly kind = EntityKind.
|
45
|
+
readonly kind = EntityKind.Type;
|
46
|
+
readonly typeEntityKind = TypeEntityKind.Variant;
|
47
47
|
readonly subkind = "package";
|
48
48
|
private readonly _typeParameters;
|
49
|
-
private readonly _variants;
|
50
49
|
private readonly _members;
|
51
50
|
private readonly _underlyingType;
|
52
51
|
private readonly _baseObjectType;
|
52
|
+
private readonly _modifierFlags;
|
53
|
+
private get modifierFlags();
|
53
54
|
constructor(_analyzer: Analyzer, _node: PackageVariantTypeDeclaration);
|
54
55
|
getNaming(): EntityNaming;
|
55
56
|
getName(): Name;
|
56
57
|
getContainingPackage(): PackageEntity;
|
57
|
-
getVariants(): OriginalVariants;
|
58
58
|
getMembers(): OriginalTypeEntityMembers;
|
59
59
|
getUnderlyingType(): types.Type;
|
60
60
|
getDefinition(): VariantTypeEntityDefinition;
|
@@ -68,14 +68,13 @@ export declare class PackageVariantTypeDeclarationEntity implements PackageVaria
|
|
68
68
|
export declare class AnonymousVariantTypeDeclarationEntity implements AnonymousVariantTypeEntity {
|
69
69
|
private readonly _analyzer;
|
70
70
|
private readonly _node;
|
71
|
-
readonly kind = EntityKind.
|
71
|
+
readonly kind = EntityKind.Type;
|
72
|
+
readonly typeEntityKind = TypeEntityKind.Variant;
|
72
73
|
readonly subkind = "anonymous";
|
73
|
-
private readonly _variants;
|
74
74
|
private readonly _underlyingType;
|
75
75
|
private readonly _members;
|
76
76
|
private readonly _baseObjectType;
|
77
77
|
constructor(_analyzer: Analyzer, _node: AnonymousVariantTypeDeclaration);
|
78
|
-
getVariants(): OriginalVariants;
|
79
78
|
getMembers(): OriginalTypeEntityMembers;
|
80
79
|
getUnderlyingType(): types.Type;
|
81
80
|
getDefinition(): VariantTypeEntityDefinition;
|
@@ -5,17 +5,17 @@ import { DestructorEntity } from './DestructorEntity.js';
|
|
5
5
|
import { GetterEntity } from './GetterEntity.js';
|
6
6
|
import { IndexerEntity } from './IndexerEntity.js';
|
7
7
|
import { MethodEntity, PackageMethodEntity, TypeMethodEntity } from './MethodEntity.js';
|
8
|
-
import {
|
8
|
+
import { MethodTypeEntity, PackageMethodTypeEntity } from './MethodTypeEntity.js';
|
9
9
|
import { OperatorEntity } from './OperatorEntity.js';
|
10
10
|
import { PackageAliasEntity } from './PackageAliasEntity.js';
|
11
11
|
import { PackageEntity } from './PackageEntity.js';
|
12
12
|
import { SetterEntity } from './SetterEntity.js';
|
13
|
-
import {
|
13
|
+
import { PackageStructuredTypeEntity, StructuredTypeEntity } from './StructuredTypeEntity.js';
|
14
|
+
import { TypeEntity } from './TypeEntity.js';
|
14
15
|
import { TypeExtensionEntity } from './TypeExtensionEntity.js';
|
15
16
|
import { TypeParameterEntity } from './TypeParameterEntity.js';
|
16
17
|
import { PackageVariableEntity, TypeVariableEntity, VariableEntity } from './VariableEntity.js';
|
17
|
-
import {
|
18
|
-
import { AnonymousVariantTypeEntity, PackageVariantTypeEntity, VariantTypeEntity } from './VariantTypeEntity.js';
|
18
|
+
import { PackageVariantTypeEntity, VariantTypeEntity } from './VariantTypeEntity.js';
|
19
19
|
export * from './AliasTypeEntity.js';
|
20
20
|
export * from './ConstructorEntity.js';
|
21
21
|
export * from './DereferenceOperatorEntity.js';
|
@@ -33,11 +33,11 @@ export * from './PackageEntity.js';
|
|
33
33
|
export * from './SetterEntity.js';
|
34
34
|
export * from './StructuredTypeEntity.js';
|
35
35
|
export * from './SubstitutionApplicationMode.js';
|
36
|
+
export * from './TypeEntity.js';
|
36
37
|
export * from './TypeExtensionEntity.js';
|
37
38
|
export * from './TypeMemberContainer.js';
|
38
39
|
export * from './TypeParameterEntity.js';
|
39
40
|
export * from './VariableEntity.js';
|
40
|
-
export * from './VariantEntity.js';
|
41
41
|
export * from './VariantTypeEntity.js';
|
42
42
|
export declare const enum DefinitionKind {
|
43
43
|
Source = 0,
|
@@ -46,26 +46,20 @@ export declare const enum DefinitionKind {
|
|
46
46
|
}
|
47
47
|
export declare const enum EntityKind {
|
48
48
|
Variable = 0,
|
49
|
-
|
50
|
-
|
49
|
+
Method = 1,
|
50
|
+
Type = 2,
|
51
51
|
Getter = 3,
|
52
52
|
Setter = 4,
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
PackageAlias = 13,
|
62
|
-
AliasType = 14,
|
63
|
-
Operator = 15,
|
64
|
-
Package = 16,
|
65
|
-
TypeExtension = 17
|
53
|
+
Indexer = 5,
|
54
|
+
DereferenceOperator = 6,
|
55
|
+
Constructor = 7,
|
56
|
+
Destructor = 8,
|
57
|
+
Operator = 9,
|
58
|
+
PackageAlias = 10,
|
59
|
+
TypeExtension = 11,
|
60
|
+
Package = 12
|
66
61
|
}
|
67
|
-
export type Entity = PackageEntity | VariableEntity |
|
68
|
-
export type TypeEntity = MethodTypeEntity | StructuredTypeEntity | TypeParameterEntity | VariantTypeEntity | AliasTypeEntity;
|
62
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | MethodEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | MethodTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity;
|
69
63
|
export type PackageTypeEntity = PackageMethodTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity;
|
70
64
|
export declare function isPackageTypeEntity(entity: TypeEntity): entity is PackageTypeEntity;
|
71
65
|
export type NamedTypeEntity = PackageMethodTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
@@ -76,12 +70,10 @@ export declare function isNamedTypeEntity(entity: TypeEntity): entity is NamedTy
|
|
76
70
|
export type PackageMemberEntity = PackageVariableEntity | PackageMethodEntity | PackageTypeEntity | TypeExtensionEntity;
|
77
71
|
export declare function isPackageMemberEntity(entity: Entity): entity is PackageMemberEntity;
|
78
72
|
export type NamedPackageMemberEntity = PackageVariableEntity | PackageMethodEntity | PackageTypeEntity;
|
79
|
-
export type EntityWithTags =
|
73
|
+
export type EntityWithTags = ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity | MethodEntity | VariableEntity | GetterEntity | SetterEntity | TypeEntity | OperatorEntity;
|
80
74
|
export declare function isEntityWithTags(entity: Entity): entity is EntityWithTags;
|
81
75
|
export type TypeMemberEntity = TypeVariableEntity | TypeMethodEntity | OperatorEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity;
|
82
76
|
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
83
|
-
export type AnonymousTypeEntity = AnonymousStructuredTypeEntity | AnonymousMethodTypeEntity | AnonymousVariantTypeEntity;
|
84
|
-
export declare function isAnonymousTypeEntity(entity: Entity): entity is AnonymousTypeEntity;
|
85
77
|
export declare function entityToStringDecorator<T extends {
|
86
78
|
new (...args: any[]): Entity;
|
87
79
|
}>(constructor: T): void;
|
@@ -20,6 +20,7 @@ export interface NodeCompilerLoadCompilationOptions {
|
|
20
20
|
workspacePath?: string;
|
21
21
|
builtInsStandardPackagesPath?: string;
|
22
22
|
userStandardPackagesPath?: string;
|
23
|
+
enableLogging?: boolean;
|
23
24
|
}
|
24
25
|
export interface NodeCompilerTask {
|
25
26
|
nodeModulesWithTypeScriptSearchPaths: readonly string[];
|
@@ -13,9 +13,17 @@ export declare const enum CharacterCodes {
|
|
13
13
|
Ё = 1025,
|
14
14
|
ё = 1105,
|
15
15
|
А = 1040,
|
16
|
+
Б = 1041,
|
17
|
+
Д = 1044,
|
16
18
|
Е = 1045,
|
19
|
+
Ф = 1060,
|
20
|
+
Ц = 1062,
|
17
21
|
Я = 1071,
|
18
22
|
а = 1072,
|
23
|
+
б = 1073,
|
24
|
+
д = 1076,
|
19
25
|
е = 1077,
|
26
|
+
ф = 1092,
|
27
|
+
ц = 1094,
|
20
28
|
я = 1103
|
21
29
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringObject } from 'reactronic';
|
2
2
|
import { Uri } from '../common/index.js';
|
3
|
-
export declare class FileSystemTree extends
|
3
|
+
export declare class FileSystemTree extends TriggeringObject implements ReadonlyFileSystemTree {
|
4
4
|
private readonly _handleInconsistentRequestsWithoutErrors;
|
5
5
|
private readonly _deleteEmptyDirectories;
|
6
6
|
private readonly _rootsByScheme;
|
@@ -30,7 +30,6 @@ export declare class CompletionService {
|
|
30
30
|
private isCaseKeywordContext;
|
31
31
|
private getExpressionCompletionItemInfos;
|
32
32
|
private prioritizeItemsFromUnionType;
|
33
|
-
private getTargetVariantType;
|
34
33
|
private getCompletionItemInfosForTargetSignaturesValueParameters;
|
35
34
|
private getScopeCompletionItemInfos;
|
36
35
|
private getTypeCompletionItemInfos;
|
@@ -38,6 +37,10 @@ export declare class CompletionService {
|
|
38
37
|
private getTypeCompletionItemInfosFromPackage;
|
39
38
|
private getTypeCompletionItemInfosFromPackageNameSegment;
|
40
39
|
private getTypeCompletionItemInfosFromScope;
|
40
|
+
private getTagCompletionItemInfos;
|
41
|
+
private getTagCompletionItemInfosFromPackage;
|
42
|
+
private getTagCompletionItemInfosFromPackageNameSegment;
|
43
|
+
private getTagCompletionItemInfosFromScope;
|
41
44
|
private getPackageAliasMemberCompletionItemInfos;
|
42
45
|
private getPackageNameSegmentCompletionItemInfos;
|
43
46
|
private packageMemberToCompletionItemInfo;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AccessedMethod } from '../analysis/AccessedMethod.js';
|
1
2
|
import { Localization } from '../analysis/Localization.js';
|
2
3
|
import { LocalizationContext, NamedEntity } from '../analysis/LocalizationContext.js';
|
3
4
|
import { SubstitutedMethod } from '../analysis/SubstitutedMethod.js';
|
@@ -16,7 +17,6 @@ export declare class DisplayService {
|
|
16
17
|
displayType(type: types.Type): string;
|
17
18
|
getMethodTypeBodyDisplayParts(type: types.MethodType): MethodTypeBodyDisplayParts;
|
18
19
|
getNamedTypeDisplayParts(type: NamedType): NamedTypeDisplayParts;
|
19
|
-
displayVariantEntity(entity: e.VariantEntity, localization: Localization): string;
|
20
20
|
displayPackageAliasEntity(entity: e.PackageAliasEntity): string;
|
21
21
|
displayPackage(package_: e.PackageEntity): string;
|
22
22
|
displayValueParameterDeclaration(parameter: ValueParameterDeclaration, typeDisplayOptions?: TypeDisplayOptions): string;
|
@@ -42,6 +42,7 @@ export declare class DisplayService {
|
|
42
42
|
displaySetterEntity(entity: e.SetterEntity): string;
|
43
43
|
displayTypeExtensionEntity(entity: e.TypeExtensionEntity): string;
|
44
44
|
displayEntity(entity: e.Entity, localization?: Localization): string;
|
45
|
+
displayTypeEntity(entity: e.TypeEntity, localization?: Localization): string;
|
45
46
|
displayKeyword(kind: KeywordKind): string;
|
46
47
|
displayHelperPhrase(kind: HelperPhraseKind): string;
|
47
48
|
displayEntityName(entity: NamedEntity, localization: Localization | undefined): string;
|
@@ -99,7 +100,7 @@ interface IVariableDeclaration {
|
|
99
100
|
isOptionalParameter(): boolean;
|
100
101
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
101
102
|
}
|
102
|
-
export type MethodDeclaration = MethodDeclaration_entity | MethodDeclaration_typeMember | MethodDeclaration_substitutedMethod;
|
103
|
+
export type MethodDeclaration = MethodDeclaration_entity | MethodDeclaration_typeMember | MethodDeclaration_substitutedMethod | MethodDeclaration_accessedMethod;
|
103
104
|
export declare class MethodDeclaration_entity implements IMethodDeclaration {
|
104
105
|
readonly kind = "entity";
|
105
106
|
private readonly _typeParameterValues;
|
@@ -145,6 +146,21 @@ export declare class MethodDeclaration_substitutedMethod implements IMethodDecla
|
|
145
146
|
isAsync(): boolean;
|
146
147
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
147
148
|
}
|
149
|
+
export declare class MethodDeclaration_accessedMethod implements IMethodDeclaration {
|
150
|
+
readonly method: AccessedMethod;
|
151
|
+
readonly localization: Localization;
|
152
|
+
readonly kind = "accessed-method";
|
153
|
+
private readonly _typeParameterValues;
|
154
|
+
private readonly _valueParameters;
|
155
|
+
constructor(method: AccessedMethod, localization: Localization);
|
156
|
+
getEntity(): e.MethodEntity;
|
157
|
+
getLocalization(): Localization;
|
158
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
159
|
+
getValueParameters(): readonly ValueParameterDeclaration[];
|
160
|
+
getReturnType(): types.Type;
|
161
|
+
isAsync(): boolean;
|
162
|
+
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
163
|
+
}
|
148
164
|
interface IMethodDeclaration {
|
149
165
|
getEntity(): e.MethodEntity;
|
150
166
|
getLocalization(): Localization;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { AccessedMethod } from '../analysis/AccessedMethod.js';
|
2
|
-
import { MatchResultValueParameter } from '../analysis/
|
2
|
+
import { MatchResultValueParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
3
3
|
import { Translation, WithLocalization } from '../analysis/Localization.js';
|
4
4
|
import { TypeIndexedAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
|
5
5
|
import { Analyzer } from '../analysis/index.js';
|
6
6
|
import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
|
7
|
-
import { AliasTypeEntity, Entity, MethodEntity, MethodTypeEntity, PackageAliasEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity,
|
7
|
+
import { AliasTypeEntity, Entity, MethodEntity, MethodTypeEntity, PackageAliasEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
|
8
8
|
import * as tree from '../tree/index.js';
|
9
9
|
import * as types from '../types/index.js';
|
10
10
|
import { TokenOrKeyword } from './TreeUtils.js';
|
@@ -14,6 +14,8 @@ export declare class NodeSemanticInfoService {
|
|
14
14
|
static ofNonKeywordIdentifier(analyzer: Analyzer, node: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
15
15
|
static ofProperty(analyzer: Analyzer, node: tree.PropertyAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
16
16
|
static ofQualifiedNameQualifier(analyzer: Analyzer, node: tree.QualifiedName, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
17
|
+
static ofNamedTypeSpecifierNameQualifier(analyzer: Analyzer, node: tree.NamedTypeSpecifier, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
18
|
+
static ofTagNameQualifier(analyzer: Analyzer, node: tree.Tag, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
17
19
|
static ofIdentifierExpression(analyzer: Analyzer, node: tree.IdentifierExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
18
20
|
static ofTypeConstructorDeclaration(analyzer: Analyzer, node: tree.TypeConstructorDeclaration): NodeSemanticInfo;
|
19
21
|
static ofTypeIndexerDeclaration(analyzer: Analyzer, node: TypeIndexedAccessorDeclaration): NodeSemanticInfo;
|
@@ -27,7 +29,7 @@ export declare class NodeSemanticInfoService {
|
|
27
29
|
static ofObjectExpression(analyzer: Analyzer, node: tree.ObjectExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
28
30
|
static ofBaseExpression(analyzer: Analyzer, node: tree.BaseExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
29
31
|
private static ofPackageNameSegmentAccess;
|
30
|
-
private static
|
32
|
+
private static ofMaybeConstructorCallExpression;
|
31
33
|
private static getBetterReferenceTargetsOrPreserve;
|
32
34
|
private static getBetterReferenceTarget;
|
33
35
|
private static getContainingTranslationPackage;
|
@@ -58,7 +60,7 @@ export declare class EntityReferenceTarget {
|
|
58
60
|
readonly kind = "entity";
|
59
61
|
constructor(entity: ReferencedEntity, accessKind: AccessKind);
|
60
62
|
}
|
61
|
-
export type ReferencedEntity = VariableEntity |
|
63
|
+
export type ReferencedEntity = VariableEntity | VariantTypeEntity | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity;
|
62
64
|
export declare class TypeVariableReferenceTarget {
|
63
65
|
readonly variable: types.Variable;
|
64
66
|
readonly accessKind: AccessKind;
|
@@ -123,7 +125,7 @@ export declare class NameTranslationNodeSemanticInfo {
|
|
123
125
|
get firstTarget(): TranslationTargetEntity;
|
124
126
|
constructor(targets: ReadonlyNonEmptyArray<TranslationTargetEntity>, isAmbiguous: boolean, translation: Translation);
|
125
127
|
}
|
126
|
-
type TranslationTargetEntity = VariableEntity |
|
128
|
+
type TranslationTargetEntity = VariableEntity | VariantTypeEntity | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | AliasTypeEntity;
|
127
129
|
export declare class DefaultSwitchMatchNodeSemanticInfo {
|
128
130
|
readonly type: types.Type;
|
129
131
|
readonly kind = "default-switch-match";
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import { AccessedMethod } from '../../analysis/AccessedMethod.js';
|
1
2
|
import { Localization, WithLocalization } from '../../analysis/Localization.js';
|
2
|
-
import { SubstitutedMethod } from '../../analysis/SubstitutedMethod.js';
|
3
3
|
import { Analyzer } from '../../analysis/index.js';
|
4
4
|
import { Name } from '../../common/index.js';
|
5
|
-
import {
|
5
|
+
import { ParameterVariableEntity } from '../../entities/index.js';
|
6
6
|
import * as tree from '../../tree/index.js';
|
7
7
|
import * as types from '../../types/index.js';
|
8
8
|
export declare class ValueArgumentFactory {
|
@@ -49,26 +49,12 @@ export declare class MatchedSignature {
|
|
49
49
|
readonly matchResult: SimplifiedArgumentToParameterMatchResult;
|
50
50
|
constructor(value: Signature, matchResult: SimplifiedArgumentToParameterMatchResult);
|
51
51
|
}
|
52
|
-
export type Signature =
|
53
|
-
export declare class
|
54
|
-
readonly kind = "method
|
55
|
-
readonly method: WithLocalization<
|
52
|
+
export type Signature = AccessedMethodSignature | MethodTypeSignature | ConstructorSignature | IndexerSignature;
|
53
|
+
export declare class AccessedMethodSignature implements ISignature {
|
54
|
+
readonly kind = "accessed-method";
|
55
|
+
readonly method: WithLocalization<AccessedMethod>;
|
56
56
|
private readonly _valueParameters;
|
57
|
-
constructor(method: WithLocalization<
|
58
|
-
getValueParameters(): readonly ValueParameter[];
|
59
|
-
}
|
60
|
-
export declare class TypeMethodSignature implements ISignature {
|
61
|
-
readonly kind = "type-method";
|
62
|
-
readonly method: WithLocalization<types.Method>;
|
63
|
-
private readonly _valueParameters;
|
64
|
-
constructor(method: WithLocalization<types.Method>);
|
65
|
-
getValueParameters(): readonly ValueParameter[];
|
66
|
-
}
|
67
|
-
export declare class SubstitutedMethodSignature implements ISignature {
|
68
|
-
readonly kind = "substituted-method";
|
69
|
-
readonly method: WithLocalization<SubstitutedMethod>;
|
70
|
-
private readonly _valueParameters;
|
71
|
-
constructor(method: WithLocalization<SubstitutedMethod>);
|
57
|
+
constructor(method: WithLocalization<AccessedMethod>);
|
72
58
|
getValueParameters(): readonly ValueParameter[];
|
73
59
|
}
|
74
60
|
export declare class MethodTypeSignature implements ISignature {
|
@@ -14,6 +14,7 @@ export declare class TypeParameterSignatureHelpProvider {
|
|
14
14
|
private countArguments;
|
15
15
|
private getSignaturesForNode;
|
16
16
|
private getSignaturesForNamedTypeSpecifier;
|
17
|
+
private getSignaturesForTag;
|
17
18
|
private getSignaturesForGenericSpecializationExpression;
|
18
19
|
private getSignatureForSubstitutedMethod;
|
19
20
|
private getSignatureForNamedType;
|
@@ -10,6 +10,7 @@ export declare class EntityToSyntax {
|
|
10
10
|
convert(): tree.SourceFile;
|
11
11
|
private convertPackage;
|
12
12
|
private convertNamedPackageMember;
|
13
|
+
private convertPackageType;
|
13
14
|
private convertPackageVariable;
|
14
15
|
private convertPackageMethod;
|
15
16
|
private convertPackageStructuredType;
|
@@ -22,7 +23,6 @@ export declare class EntityToSyntax {
|
|
22
23
|
private convertTypeConstructor;
|
23
24
|
private convertTypeDestructor;
|
24
25
|
private convertTypeIndexer;
|
25
|
-
private convertVariants;
|
26
26
|
private convertVariant;
|
27
27
|
private createStructuredTypeDeclarationBody;
|
28
28
|
private createAliasTypeDeclarationBody;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringObject } from 'reactronic';
|
2
2
|
import { Analyzer } from '../../analysis/Analyzer.js';
|
3
3
|
import { LocalizationContext } from '../../analysis/LocalizationContext.js';
|
4
4
|
import { CancellationToken } from '../../common/index.js';
|
@@ -7,7 +7,7 @@ import { PackageContent } from '../../project/PackageContent.js';
|
|
7
7
|
import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
|
8
8
|
import { SourceLocation } from '../Types.js';
|
9
9
|
import { CompilationController, ReadonlyClientTrackedSourceFiles } from '../workspace/index.js';
|
10
|
-
export declare class SourceGenerationService extends
|
10
|
+
export declare class SourceGenerationService extends TriggeringObject {
|
11
11
|
private readonly _trackedSourceFiles;
|
12
12
|
private readonly _tsLibrariesProvider;
|
13
13
|
private readonly _standardPackageContentsProviders;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringMap, TriggeringObject } from 'reactronic';
|
2
2
|
import { Uri } from '../../common/index.js';
|
3
|
-
export declare class ClientTrackedSourceFiles extends
|
4
|
-
readonly items:
|
3
|
+
export declare class ClientTrackedSourceFiles extends TriggeringObject implements ReadonlyClientTrackedSourceFiles {
|
4
|
+
readonly items: TriggeringMap<string, ClientTrackedSourceFile>;
|
5
5
|
get unsaved(): Map<string, ClientTrackedSourceFile>;
|
6
6
|
track(uri: Uri, text: string, version: number): ClientTrackedSourceFile | undefined;
|
7
7
|
update(uri: Uri, text: string, version: number): ClientTrackedSourceFile | undefined;
|
@@ -13,11 +13,11 @@ export declare class ClientTrackedSourceFiles extends ObservableObject implement
|
|
13
13
|
dispose(): void;
|
14
14
|
}
|
15
15
|
export interface ReadonlyClientTrackedSourceFiles {
|
16
|
-
readonly items:
|
16
|
+
readonly items: TriggeringMap<string, ReadonlyClientTrackedSourceFile>;
|
17
17
|
readonly unsaved: Map<string, ReadonlyClientTrackedSourceFile>;
|
18
18
|
createItemsSnapshot(): Map<string, ClientTrackedSourceFileSnapshot>;
|
19
19
|
}
|
20
|
-
export declare class ClientTrackedSourceFile extends
|
20
|
+
export declare class ClientTrackedSourceFile extends TriggeringObject {
|
21
21
|
readonly uri: Uri;
|
22
22
|
text: string;
|
23
23
|
version: number;
|