@artel/artc 0.6.25223 → 0.6.25225
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 +85 -79
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +797 -674
- package/build/{chunk-DZNNWICP.js → chunk-TFTCV5R5.js} +6604 -5875
- package/build/{chunk-AX3LQ2CF.js → chunk-UB6LHKS5.js} +3 -3
- package/build/{chunk-LG4Z4SWO.js → chunk-Z6TZA6SN.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +16 -15
- package/build/types/analysis/Analyzer.d.ts +142 -127
- package/build/types/analysis/CallExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/DiagnosticCollector.d.ts +17 -17
- package/build/types/analysis/EntityLocalizationHelper.d.ts +6 -6
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -0
- package/build/types/analysis/LocalizationContext.d.ts +2 -2
- package/build/types/analysis/{PropertyAccessExpressionMeaning.d.ts → MemberAccessExpressionMeaning.d.ts} +27 -21
- package/build/types/analysis/NamedTypeResolver.d.ts +5 -1
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +13 -13
- package/build/types/analysis/OperationOverloadResolver.d.ts +1 -1
- package/build/types/analysis/Scope.d.ts +15 -15
- package/build/types/analysis/SemanticContext.d.ts +29 -29
- package/build/types/analysis/SemanticContextBuilder.d.ts +22 -22
- package/build/types/analysis/SourceFileMembers.d.ts +2 -2
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +12 -12
- package/build/types/analysis/{SubstitutedMethod.d.ts → SubstitutedFunction.d.ts} +14 -14
- package/build/types/analysis/TagMeaning.d.ts +23 -20
- package/build/types/analysis/Tags.d.ts +6 -6
- package/build/types/analysis/TypeNarrower.d.ts +21 -21
- package/build/types/analysis/Utils.d.ts +15 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +4 -4
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +43 -0
- package/build/types/analysis/{ControlFlowGraphVisualizer.d.ts → control-flow/GraphVisualizer.d.ts} +3 -3
- package/build/types/analysis/control-flow/NarrowableExpression.d.ts +5 -0
- package/build/types/analysis/control-flow/Nodes.d.ts +91 -0
- package/build/types/analysis/control-flow/index.d.ts +4 -0
- package/build/types/api/Api.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +3 -2
- package/build/types/diagnostic/DiagnosticCode.d.ts +130 -131
- package/build/types/emitter/EmitPhaseName.d.ts +8 -8
- package/build/types/emitter/Emitter.d.ts +4 -4
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +31 -29
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/IrBuilder.d.ts +18 -18
- package/build/types/emitter/IrToJs.d.ts +9 -9
- package/build/types/emitter/Transformer.d.ts +37 -37
- package/build/types/emitter/ir/AccessedEntities.d.ts +5 -5
- package/build/types/emitter/ir/ComputedAccess.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +41 -27
- package/build/types/emitter/ir/Nodes.d.ts +141 -140
- package/build/types/emitter/ir/types.d.ts +8 -8
- package/build/types/entities/ConstructorEntity.d.ts +9 -9
- package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/DestructorEntity.d.ts +4 -4
- package/build/types/entities/{MethodEntity.d.ts → FunctionEntity.d.ts} +36 -36
- package/build/types/entities/{MethodTypeEntity.d.ts → FunctionTypeEntity.d.ts} +23 -23
- package/build/types/entities/GetterEntity.d.ts +9 -9
- package/build/types/entities/IndexerEntity.d.ts +4 -4
- package/build/types/entities/SetterEntity.d.ts +9 -9
- package/build/types/entities/TypeEntity.d.ts +3 -3
- package/build/types/entities/TypeEntityMembers.d.ts +3 -3
- package/build/types/entities/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/VariableEntity.d.ts +32 -32
- package/build/types/entities/index.d.ts +14 -14
- package/build/types/services/CompletionService.d.ts +8 -9
- package/build/types/services/DisplayService.d.ts +72 -69
- package/build/types/services/HoverService.d.ts +1 -1
- package/build/types/services/NodeSemanticInfo.d.ts +26 -21
- package/build/types/services/SemanticTokensService.d.ts +6 -6
- package/build/types/services/SourceFileItemsService.d.ts +11 -11
- package/build/types/services/TypeDefinitionService.d.ts +2 -2
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +10 -10
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +10 -9
- package/build/types/tree/NodeKind.d.ts +27 -27
- package/build/types/tree/green/Nodes.d.ts +127 -128
- package/build/types/tree/green/SyntaxFactory.d.ts +20 -19
- package/build/types/tree/green/SyntaxToCode.d.ts +23 -21
- package/build/types/tree/red/Nodes.d.ts +173 -172
- package/build/types/ts-interop/Entities.d.ts +28 -28
- package/build/types/ts-interop/TsInteropContext.d.ts +2 -1
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
- package/build/types/types/{MethodType.d.ts → FunctionType.d.ts} +6 -6
- package/build/types/types/IntersectionType.d.ts +20 -0
- package/build/types/types/ParameterType.d.ts +6 -3
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/build/types/types/Type.d.ts +3 -2
- package/build/types/types/TypeFactory.d.ts +8 -6
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/build/types/analysis/AccessedMethod.d.ts +0 -53
- package/build/types/analysis/ControlFlowGraphBuilder.d.ts +0 -129
@@ -3,10 +3,10 @@ import { ConstructorEntity } from './ConstructorEntity.js';
|
|
3
3
|
import { DereferenceOperatorEntity } from './DereferenceOperatorEntity.js';
|
4
4
|
import { DestructorEntity } from './DestructorEntity.js';
|
5
5
|
import { IndexerEntity } from './IndexerEntity.js';
|
6
|
-
import {
|
6
|
+
import { MethodEntity } from './FunctionEntity.js';
|
7
7
|
import { OperatorEntity } from './OperatorEntity.js';
|
8
8
|
import { OperatorKind } from './OperatorKind.js';
|
9
|
-
import {
|
9
|
+
import { FieldEntity } from './VariableEntity.js';
|
10
10
|
export declare class OriginalTypeEntityMembers {
|
11
11
|
private readonly _namedMembers;
|
12
12
|
private readonly _operators;
|
@@ -28,4 +28,4 @@ export declare class OriginalTypeEntityMembers {
|
|
28
28
|
getConstructors(): readonly ConstructorEntity[];
|
29
29
|
getDestructors(): readonly DestructorEntity[];
|
30
30
|
}
|
31
|
-
export type NamedTypeMemberEntity =
|
31
|
+
export type NamedTypeMemberEntity = FieldEntity | MethodEntity;
|
@@ -3,7 +3,7 @@ import { Tag } from '../analysis/Tags.js';
|
|
3
3
|
import { Name } from '../common/index.js';
|
4
4
|
import { TypeParameterDeclaration } from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
|
-
import { AliasTypeEntity, DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity,
|
6
|
+
import { AliasTypeEntity, DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, FunctionEntity, FunctionTypeEntity, StructuredTypeEntity, TypeEntityKind, VariantTypeEntity } from './index.js';
|
7
7
|
export interface TypeParameterEntity extends ITypeEntity {
|
8
8
|
readonly kind: EntityKind.Type;
|
9
9
|
readonly typeEntityKind: TypeEntityKind.Parameter;
|
@@ -27,7 +27,7 @@ export type TypeParameterEntityDefinition = {
|
|
27
27
|
} | {
|
28
28
|
kind: DefinitionKind.TypeScript;
|
29
29
|
};
|
30
|
-
export type EntityContainingTypeParameter = VariantTypeEntity |
|
30
|
+
export type EntityContainingTypeParameter = VariantTypeEntity | FunctionEntity | FunctionTypeEntity | StructuredTypeEntity | AliasTypeEntity;
|
31
31
|
/**
|
32
32
|
* Класс позволяет работать с ограничением параметра шаблона, исключая циклы.
|
33
33
|
*
|
@@ -1,17 +1,17 @@
|
|
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,
|
4
|
+
import { EnumerationVariableDeclaration, ErrorVariableDeclaration, FieldDeclaration, FieldGetterDeclaration, FieldSetterDeclaration, FunctionLiteral, LocalVariableDeclaration, PackageVariableDeclaration, PackageVariableGetterDeclaration, PackageVariableSetterDeclaration, ParameterDeclaration, VariantDeclaration } from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
6
|
import type { Entity, IndexerEntity, PackageEntity } from './index.js';
|
7
|
-
import { Entity as ActualEntity, ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind,
|
8
|
-
export type VariableEntity = PackageVariableEntity |
|
7
|
+
import { Entity as ActualEntity, ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, FunctionEntity, FunctionTypeEntity, GetterEntity, OperatorEntity, SetterEntity, TypeMemberEntityContainer } from './index.js';
|
8
|
+
export type VariableEntity = PackageVariableEntity | FieldEntity | ParameterVariableEntity | LocalVariableEntity;
|
9
9
|
export interface PackageVariableEntity extends IVariableEntity {
|
10
10
|
readonly subkind: 'package';
|
11
11
|
getContainingPackage(): PackageEntity;
|
12
12
|
}
|
13
|
-
export interface
|
14
|
-
readonly subkind: '
|
13
|
+
export interface FieldEntity extends IVariableEntity {
|
14
|
+
readonly subkind: 'field';
|
15
15
|
getContainer(): TypeMemberEntityContainer;
|
16
16
|
isStatic(): boolean;
|
17
17
|
isRedefinable(): boolean;
|
@@ -42,20 +42,20 @@ interface IVariableEntity {
|
|
42
42
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
43
43
|
getTags(): readonly Tag[];
|
44
44
|
}
|
45
|
-
export type ParameterVariableEntityContainer = ParameterVariableEntityContainer.Entity | ParameterVariableEntityContainer.
|
45
|
+
export type ParameterVariableEntityContainer = ParameterVariableEntityContainer.Entity | ParameterVariableEntityContainer.FunctionLiteral;
|
46
46
|
export declare namespace ParameterVariableEntityContainer {
|
47
47
|
class Entity {
|
48
48
|
readonly entity: EntityContainingValueParameter;
|
49
49
|
readonly kind = "entity";
|
50
50
|
constructor(entity: EntityContainingValueParameter);
|
51
51
|
}
|
52
|
-
class
|
53
|
-
readonly
|
54
|
-
readonly kind = "
|
55
|
-
constructor(
|
52
|
+
class FunctionLiteral {
|
53
|
+
readonly entityContainingFunction: ActualEntity;
|
54
|
+
readonly kind = "function-literal";
|
55
|
+
constructor(entityContainingFunction: ActualEntity);
|
56
56
|
}
|
57
57
|
}
|
58
|
-
export type EntityContainingValueParameter =
|
58
|
+
export type EntityContainingValueParameter = FunctionEntity | IndexerEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | SetterEntity | OperatorEntity;
|
59
59
|
export type VariableEntityDefinition = {
|
60
60
|
kind: DefinitionKind.Source;
|
61
61
|
value: SourceVariableEntityDefinition;
|
@@ -67,18 +67,18 @@ export type VariableEntityDefinition = {
|
|
67
67
|
export type SourceVariableEntityDefinition = SingleSourceVariableEntityDefinition | MultiSourceVariableEntityDefinition;
|
68
68
|
export type SingleSourceVariableEntityDefinition = {
|
69
69
|
kind: 'single';
|
70
|
-
node: PackageVariableDeclaration |
|
70
|
+
node: PackageVariableDeclaration | FieldDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | ParameterDeclaration | VariantDeclaration;
|
71
71
|
};
|
72
72
|
export type MultiSourceVariableEntityDefinition = {
|
73
73
|
kind: 'multi';
|
74
|
-
nodes: ReadonlyArray<PackageVariableGetterDeclaration | PackageVariableSetterDeclaration |
|
74
|
+
nodes: ReadonlyArray<PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | ParameterDeclaration>;
|
75
75
|
};
|
76
|
-
export declare class
|
76
|
+
export declare class ImplicitFunctionBlockParameterSpecialVariableEntityInfo {
|
77
77
|
readonly targetTypeParameter: types.ValueParameter;
|
78
|
-
readonly kind = "implicit-
|
78
|
+
readonly kind = "implicit-function-block-parameter";
|
79
79
|
constructor(targetTypeParameter: types.ValueParameter);
|
80
80
|
}
|
81
|
-
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo | ValueSpecialVariableEntityInfo | BackingSpecialVariableEntityInfo |
|
81
|
+
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo | ValueSpecialVariableEntityInfo | BackingSpecialVariableEntityInfo | ImplicitFunctionBlockParameterSpecialVariableEntityInfo;
|
82
82
|
export declare class ResultSpecialVariableEntityInfo {
|
83
83
|
readonly kind = "result";
|
84
84
|
}
|
@@ -86,9 +86,9 @@ export declare class ValueSpecialVariableEntityInfo {
|
|
86
86
|
readonly kind = "value";
|
87
87
|
}
|
88
88
|
export declare class BackingSpecialVariableEntityInfo {
|
89
|
-
readonly computedVariable: PackageVariableEntity |
|
89
|
+
readonly computedVariable: PackageVariableEntity | FieldEntity;
|
90
90
|
readonly kind = "backing";
|
91
|
-
constructor(computedVariable: PackageVariableEntity |
|
91
|
+
constructor(computedVariable: PackageVariableEntity | FieldEntity);
|
92
92
|
}
|
93
93
|
export declare class PackageVariableDeclarationEntity implements PackageVariableEntity {
|
94
94
|
private readonly _analyzer;
|
@@ -131,16 +131,16 @@ export declare class ComputedPackageVariableDeclarationEntity implements Package
|
|
131
131
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
132
132
|
getTags(): readonly Tag[];
|
133
133
|
}
|
134
|
-
export declare class
|
134
|
+
export declare class FieldDeclarationEntity implements FieldEntity {
|
135
135
|
readonly kind = EntityKind.Variable;
|
136
|
-
readonly subkind = "
|
136
|
+
readonly subkind = "field";
|
137
137
|
private readonly _analyzer;
|
138
138
|
private readonly _node;
|
139
139
|
private readonly _typeInferrer;
|
140
140
|
private readonly _overriddenMembers;
|
141
141
|
private readonly _modifierFlags;
|
142
142
|
private get modifierFlags();
|
143
|
-
constructor(analyzer: Analyzer, node:
|
143
|
+
constructor(analyzer: Analyzer, node: FieldDeclaration);
|
144
144
|
getName(): Name;
|
145
145
|
getType(): types.Type;
|
146
146
|
getDefinition(): VariableEntityDefinition;
|
@@ -158,9 +158,9 @@ export declare class TypeVariableDeclarationEntity implements TypeVariableEntity
|
|
158
158
|
getOverriddenMembers(): readonly types.Variable[];
|
159
159
|
isVariant(): boolean;
|
160
160
|
}
|
161
|
-
export declare class
|
161
|
+
export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
162
162
|
readonly kind = EntityKind.Variable;
|
163
|
-
readonly subkind = "
|
163
|
+
readonly subkind = "field";
|
164
164
|
private readonly _analyzer;
|
165
165
|
private readonly _getterDeclaration;
|
166
166
|
private readonly _setterDeclaration;
|
@@ -168,7 +168,7 @@ export declare class ComputedTypeVariableDeclarationEntity implements TypeVariab
|
|
168
168
|
private readonly _overriddenMembers;
|
169
169
|
private readonly _modifierFlags;
|
170
170
|
private get modifierFlags();
|
171
|
-
constructor(analyzer: Analyzer, getterDeclaration:
|
171
|
+
constructor(analyzer: Analyzer, getterDeclaration: FieldGetterDeclaration | undefined, setterDeclaration: FieldSetterDeclaration | undefined);
|
172
172
|
getName(): Name;
|
173
173
|
getType(): types.Type;
|
174
174
|
getContainer(): TypeMemberEntityContainer;
|
@@ -186,9 +186,9 @@ export declare class ComputedTypeVariableDeclarationEntity implements TypeVariab
|
|
186
186
|
getOverriddenMembers(): readonly types.Variable[];
|
187
187
|
isVariant(): boolean;
|
188
188
|
}
|
189
|
-
export declare class VariantDeclarationEntity implements
|
189
|
+
export declare class VariantDeclarationEntity implements FieldEntity {
|
190
190
|
readonly kind = EntityKind.Variable;
|
191
|
-
readonly subkind = "
|
191
|
+
readonly subkind = "field";
|
192
192
|
private readonly _analyzer;
|
193
193
|
private readonly _node;
|
194
194
|
private readonly _variantTypeDeclaration;
|
@@ -284,7 +284,7 @@ export declare class ParameterDeclarationEntity implements ParameterVariableEnti
|
|
284
284
|
isOptional(): boolean;
|
285
285
|
isVariadic(): boolean;
|
286
286
|
}
|
287
|
-
export declare class
|
287
|
+
export declare class IndexParameterDeclarationEntity implements ParameterVariableEntity {
|
288
288
|
private readonly _analyzer;
|
289
289
|
private readonly _getterParameterDeclaration;
|
290
290
|
private readonly _setterParameterDeclaration;
|
@@ -307,14 +307,14 @@ export declare class TypeIndexerParameterDeclarationEntity implements ParameterV
|
|
307
307
|
isOptional(): boolean;
|
308
308
|
isVariadic(): boolean;
|
309
309
|
}
|
310
|
-
export declare class
|
310
|
+
export declare class FunctionLiteralParameterDeclarationEntity implements ParameterVariableEntity {
|
311
311
|
private readonly _analyzer;
|
312
312
|
private readonly _node;
|
313
|
-
private readonly
|
313
|
+
private readonly _functionLiteral;
|
314
314
|
readonly kind = EntityKind.Variable;
|
315
315
|
readonly subkind = "parameter";
|
316
316
|
private readonly _parameterIndex;
|
317
|
-
constructor(_analyzer: Analyzer, _node: ParameterDeclaration,
|
317
|
+
constructor(_analyzer: Analyzer, _node: ParameterDeclaration, _functionLiteral: FunctionLiteral);
|
318
318
|
getName(): Name;
|
319
319
|
getType(): types.Type;
|
320
320
|
getDefinition(): VariableEntityDefinition;
|
@@ -350,7 +350,7 @@ export declare class IntrinsicPackageVariableEntity implements PackageVariableEn
|
|
350
350
|
getTags(): readonly Tag[];
|
351
351
|
getContainingPackage(): PackageEntity;
|
352
352
|
}
|
353
|
-
export declare class
|
353
|
+
export declare class IntrinsicFieldEntity implements FieldEntity {
|
354
354
|
private readonly _name;
|
355
355
|
private readonly _type;
|
356
356
|
private readonly _container;
|
@@ -364,7 +364,7 @@ export declare class IntrinsicTypeVariableEntity implements TypeVariableEntity {
|
|
364
364
|
private readonly _setter;
|
365
365
|
private readonly _overriddenMembers;
|
366
366
|
readonly kind = EntityKind.Variable;
|
367
|
-
readonly subkind = "
|
367
|
+
readonly subkind = "field";
|
368
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[]);
|
369
369
|
getName(): Name;
|
370
370
|
getType(): types.Type;
|
@@ -4,8 +4,8 @@ import { DereferenceOperatorEntity } from './DereferenceOperatorEntity.js';
|
|
4
4
|
import { DestructorEntity } from './DestructorEntity.js';
|
5
5
|
import { GetterEntity } from './GetterEntity.js';
|
6
6
|
import { IndexerEntity } from './IndexerEntity.js';
|
7
|
-
import {
|
8
|
-
import {
|
7
|
+
import { FunctionEntity, MethodEntity, PackageFunctionEntity } from './FunctionEntity.js';
|
8
|
+
import { FunctionTypeEntity, PackageFunctionTypeEntity } from './FunctionTypeEntity.js';
|
9
9
|
import { OperatorEntity } from './OperatorEntity.js';
|
10
10
|
import { PackageAliasEntity } from './PackageAliasEntity.js';
|
11
11
|
import { PackageEntity } from './PackageEntity.js';
|
@@ -14,7 +14,7 @@ import { PackageStructuredTypeEntity, StructuredTypeEntity } from './StructuredT
|
|
14
14
|
import { TypeEntity } from './TypeEntity.js';
|
15
15
|
import { TypeExtensionEntity } from './TypeExtensionEntity.js';
|
16
16
|
import { TypeParameterEntity } from './TypeParameterEntity.js';
|
17
|
-
import { PackageVariableEntity,
|
17
|
+
import { PackageVariableEntity, FieldEntity, VariableEntity } from './VariableEntity.js';
|
18
18
|
import { PackageVariantTypeEntity, VariantTypeEntity } from './VariantTypeEntity.js';
|
19
19
|
export * from './AliasTypeEntity.js';
|
20
20
|
export * from './ConstructorEntity.js';
|
@@ -24,8 +24,8 @@ export * from './EntityHiding.js';
|
|
24
24
|
export * from './EntityNaming.js';
|
25
25
|
export * from './GetterEntity.js';
|
26
26
|
export * from './IndexerEntity.js';
|
27
|
-
export * from './
|
28
|
-
export * from './
|
27
|
+
export * from './FunctionEntity.js';
|
28
|
+
export * from './FunctionTypeEntity.js';
|
29
29
|
export * from './OperatorEntity.js';
|
30
30
|
export * from './OperatorKind.js';
|
31
31
|
export * from './PackageAliasEntity.js';
|
@@ -46,7 +46,7 @@ export declare const enum DefinitionKind {
|
|
46
46
|
}
|
47
47
|
export declare const enum EntityKind {
|
48
48
|
Variable = 0,
|
49
|
-
|
49
|
+
Function = 1,
|
50
50
|
Type = 2,
|
51
51
|
Getter = 3,
|
52
52
|
Setter = 4,
|
@@ -59,23 +59,23 @@ export declare const enum EntityKind {
|
|
59
59
|
TypeExtension = 11,
|
60
60
|
Package = 12
|
61
61
|
}
|
62
|
-
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity |
|
63
|
-
export type PackageTypeEntity =
|
62
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity;
|
63
|
+
export type PackageTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity;
|
64
64
|
export declare function isPackageTypeEntity(entity: TypeEntity): entity is PackageTypeEntity;
|
65
|
-
export type NamedTypeEntity =
|
66
|
-
export type TypeEntityWithMembers =
|
65
|
+
export type NamedTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
66
|
+
export type TypeEntityWithMembers = FunctionTypeEntity | StructuredTypeEntity | VariantTypeEntity | AliasTypeEntity;
|
67
67
|
export declare function isTypeEntityWithMembers(entity: TypeEntity): entity is TypeEntityWithMembers;
|
68
68
|
export type TypeOrExtensionEntity = TypeEntity | TypeExtensionEntity;
|
69
69
|
export type TypeWithMembersOrExtensionEntity = TypeEntityWithMembers | TypeExtensionEntity;
|
70
70
|
export declare function isTypeWithMembersOrExtensionEntity(entity: Entity): entity is TypeWithMembersOrExtensionEntity;
|
71
71
|
export declare function isTypeEntity(entity: Entity): entity is TypeEntity;
|
72
72
|
export declare function isNamedTypeEntity(entity: TypeEntity): entity is NamedTypeEntity;
|
73
|
-
export type PackageMemberEntity = PackageVariableEntity |
|
73
|
+
export type PackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity | TypeExtensionEntity;
|
74
74
|
export declare function isPackageMemberEntity(entity: Entity): entity is PackageMemberEntity;
|
75
|
-
export type NamedPackageMemberEntity = PackageVariableEntity |
|
76
|
-
export type EntityWithTags = ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity |
|
75
|
+
export type NamedPackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity;
|
76
|
+
export type EntityWithTags = ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity | FunctionEntity | VariableEntity | GetterEntity | SetterEntity | TypeEntity | OperatorEntity;
|
77
77
|
export declare function isEntityWithTags(entity: Entity): entity is EntityWithTags;
|
78
|
-
export type TypeMemberEntity =
|
78
|
+
export type TypeMemberEntity = FieldEntity | MethodEntity | OperatorEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity;
|
79
79
|
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
80
80
|
export declare function entityToStringDecorator<T extends {
|
81
81
|
new (...args: any[]): Entity;
|
@@ -34,7 +34,6 @@ export declare class CompletionService {
|
|
34
34
|
private getCompletionItemInfosForTargetSignaturesValueParameters;
|
35
35
|
private getScopeCompletionItemInfos;
|
36
36
|
private getTypeCompletionItemInfos;
|
37
|
-
private getEntityFromType;
|
38
37
|
private getTypeCompletionItemInfosFromPackage;
|
39
38
|
private getTypeCompletionItemInfosFromPackageNameSegment;
|
40
39
|
private getTypeCompletionItemInfosFromScope;
|
@@ -51,7 +50,7 @@ export declare class CompletionService {
|
|
51
50
|
private getTopLevelAliasListCompletionItemInfos;
|
52
51
|
private getTypeAliasMemberListItemInfos;
|
53
52
|
private getOperatorNameItemInfos;
|
54
|
-
private
|
53
|
+
private mergeOverloadedFunctions;
|
55
54
|
private removeCompletionItemsWithDuplicateLabels;
|
56
55
|
private convertCompletionItemInfos;
|
57
56
|
private convertCompletionItemInfo;
|
@@ -70,23 +69,23 @@ export declare class CompletionItem {
|
|
70
69
|
export declare const enum CompletionItemKind {
|
71
70
|
PackageNameSegment = 0,
|
72
71
|
PackageAlias = 1,
|
73
|
-
|
74
|
-
|
72
|
+
Field = 2,
|
73
|
+
Method = 3,
|
75
74
|
Operator = 4,
|
76
|
-
|
77
|
-
|
75
|
+
Indexer = 5,
|
76
|
+
Constructor = 6,
|
78
77
|
PackageVariable = 7,
|
79
|
-
|
78
|
+
PackageFunction = 8,
|
80
79
|
LocalVariable = 9,
|
81
80
|
ParameterVariable = 10,
|
82
|
-
|
81
|
+
NestedFunction = 11,
|
83
82
|
Variant = 12,
|
84
83
|
RefObjectType = 13,
|
85
84
|
PlainObjectType = 14,
|
86
85
|
AspectType = 15,
|
87
86
|
VariantType = 16,
|
88
87
|
TypeParameter = 17,
|
89
|
-
|
88
|
+
FunctionType = 18,
|
90
89
|
AliasType = 19,
|
91
90
|
InvalidType = 20,
|
92
91
|
Keyword = 21,
|