@artel/artc 0.6.26016 → 0.6.26018
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 +3 -7
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +72 -265
- package/build/{chunk-6YO3VB2X.js → chunk-4LBH5LW4.js} +1 -1
- package/build/{chunk-46EEXYHP.js → chunk-NQCSWP3L.js} +2552 -4269
- package/build/{chunk-R55UIINW.js → chunk-WVQAJC2B.js} +2 -2
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +0 -1
- package/build/types/analysis/Analyzer.d.ts +11 -29
- package/build/types/analysis/BaseExpressionMeaning.d.ts +3 -14
- package/build/types/analysis/CallExpressionMeaning.d.ts +1 -11
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +2 -19
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +2 -17
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +0 -1
- package/build/types/analysis/ReductionSourceMemberFinder.d.ts +0 -1
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +1 -3
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -1
- package/build/types/analysis/SpecialNameKey.d.ts +32 -0
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +0 -1
- package/build/types/analysis/TypeMemberLookup.d.ts +1 -5
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +1 -1
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +2 -2
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +1 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +2 -30
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +1 -5
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +2 -6
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +2 -6
- package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +0 -1
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +2 -17
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +1 -9
- package/build/types/common/Name.d.ts +3 -7
- package/build/types/diagnostic/DiagnosticCode.d.ts +177 -173
- package/build/types/emitter/EntityMap.d.ts +0 -1
- package/build/types/emitter/IrBuilder.d.ts +1 -2
- package/build/types/emitter/ir/Nodes.d.ts +24 -26
- package/build/types/entities/Entity.d.ts +2 -3
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -3
- package/build/types/entities/OperatorKind.d.ts +20 -20
- package/build/types/entities/TypeEntityMembers.d.ts +2 -10
- package/build/types/entities/interfaces/FunctionEntity.d.ts +2 -1
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -2
- package/build/types/entities/interfaces/index.d.ts +0 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +4 -2
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/source/SourceFunctionEntity.d.ts +4 -1
- package/build/types/entities/source/index.d.ts +0 -1
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +2 -1
- package/build/types/entities/translated/index.d.ts +0 -1
- package/build/types/parser/TokenKind.d.ts +1 -2
- package/build/types/project/CompilationLoader.d.ts +3 -3
- package/build/types/project/SourcePackage.d.ts +3 -0
- package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -5
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +7 -6
- package/build/types/project/configuration/ConfigurationTranslator.d.ts +1 -3
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +1 -2
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +1 -2
- package/build/types/services/DisplayService.d.ts +5 -27
- package/build/types/services/NodeSemanticInfo.d.ts +1 -6
- package/build/types/services/signature-help/SignatureWithParameters.d.ts +1 -8
- package/build/types/services/workspace/CompilationController.d.ts +2 -2
- package/build/types/tree/BaseNode.d.ts +5 -5
- package/build/types/tree/Nodes.d.ts +7 -31
- package/build/types/tree/OperatorKind.d.ts +16 -17
- package/build/types/tree/SyntaxFactory.d.ts +0 -1
- package/build/types/tree/SyntaxToCode.d.ts +0 -1
- package/build/types/tree/TokenKind.d.ts +1 -2
- package/build/types/tree/index.d.ts +5 -5
- package/build/types/ts-interop/Entities.d.ts +3 -1
- package/build/types/types/TypeMembers.d.ts +3 -24
- package/package.json +1 -1
- package/build/types/analysis/OperatorAccessResolver.d.ts +0 -10
- package/build/types/entities/interfaces/OperatorEntity.d.ts +0 -25
- package/build/types/entities/source/SourceOperatorEntity.d.ts +0 -42
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +0 -54
|
@@ -1103,14 +1103,13 @@ export declare const enum AssignmentOperatorKind {
|
|
|
1103
1103
|
SubtractEquals = 2,
|
|
1104
1104
|
MultiplyEquals = 3,
|
|
1105
1105
|
DivideEquals = 4,
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
UnsignedRightShiftEquals = 12
|
|
1106
|
+
ModuloEquals = 5,
|
|
1107
|
+
BitwiseAndEquals = 6,
|
|
1108
|
+
BitwiseOrEquals = 7,
|
|
1109
|
+
BitwiseXorEquals = 8,
|
|
1110
|
+
LeftShiftEquals = 9,
|
|
1111
|
+
SignedRightShiftEquals = 10,
|
|
1112
|
+
UnsignedRightShiftEquals = 11
|
|
1114
1113
|
}
|
|
1115
1114
|
export declare const enum PrefixUnaryExpressionOperatorKind {
|
|
1116
1115
|
Plus = 0,
|
|
@@ -1123,22 +1122,21 @@ export declare const enum BinaryExpressionOperatorKind {
|
|
|
1123
1122
|
Subtract = 1,
|
|
1124
1123
|
Multiply = 2,
|
|
1125
1124
|
Divide = 3,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
UnsignedRightShift = 21
|
|
1125
|
+
Equals = 4,
|
|
1126
|
+
NotEquals = 5,
|
|
1127
|
+
LessThan = 6,
|
|
1128
|
+
GreaterThan = 7,
|
|
1129
|
+
LessThanOrEqual = 8,
|
|
1130
|
+
GreaterThanOrEqual = 9,
|
|
1131
|
+
Or = 10,
|
|
1132
|
+
And = 11,
|
|
1133
|
+
Xor = 12,
|
|
1134
|
+
QuestionQuestion = 13,
|
|
1135
|
+
Modulo = 14,
|
|
1136
|
+
BitwiseAnd = 15,
|
|
1137
|
+
BitwiseOr = 16,
|
|
1138
|
+
BitwiseXor = 17,
|
|
1139
|
+
LeftShift = 18,
|
|
1140
|
+
SignedRightShift = 19,
|
|
1141
|
+
UnsignedRightShift = 20
|
|
1144
1142
|
}
|
|
@@ -8,7 +8,6 @@ import { FunctionEntity, MethodEntity, NestedFunctionEntity, PackageFunctionEnti
|
|
|
8
8
|
import { AnonymousFunctionTypeEntity, FunctionTypeEntity } from './interfaces/FunctionTypeEntity.js';
|
|
9
9
|
import { GetterEntity } from './interfaces/GetterEntity.js';
|
|
10
10
|
import { IndexerEntity } from './interfaces/IndexerEntity.js';
|
|
11
|
-
import { OperatorEntity } from './interfaces/OperatorEntity.js';
|
|
12
11
|
import { PackageAliasEntity } from './interfaces/PackageAliasEntity.js';
|
|
13
12
|
import { PackageEntity } from './interfaces/PackageEntity.js';
|
|
14
13
|
import { ReducedTypeEntity } from './interfaces/ReducedTypeEntity.js';
|
|
@@ -41,7 +40,7 @@ export declare const enum EntityKind {
|
|
|
41
40
|
Package = 12,
|
|
42
41
|
TextTranslation = 13
|
|
43
42
|
}
|
|
44
|
-
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity |
|
|
43
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
45
44
|
export type PackageTypeEntity = PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity;
|
|
46
45
|
export declare function isPackageTypeEntity(entity: Entity): entity is PackageTypeEntity;
|
|
47
46
|
export type NamedTypeEntity = PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeParameterEntity;
|
|
@@ -61,7 +60,7 @@ export type PackageMemberEntity = PackageVariableEntity | PackageFunctionEntity
|
|
|
61
60
|
export declare function isPackageMemberEntity(entity: Entity): entity is PackageMemberEntity;
|
|
62
61
|
export type NamedPackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity;
|
|
63
62
|
export declare function isNamedPackageMemberEntity(entity: Entity): entity is NamedPackageMemberEntity;
|
|
64
|
-
export type TypeMemberEntity = FieldEntity | MethodEntity |
|
|
63
|
+
export type TypeMemberEntity = FieldEntity | MethodEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity;
|
|
65
64
|
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
|
66
65
|
export declare namespace TypeMemberEntity {
|
|
67
66
|
function isAspectMember(entity: TypeMemberEntity): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../analysis/AnalyzedTranslationPackage.js';
|
|
2
2
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
|
-
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedTypeMemberEntity,
|
|
4
|
+
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedTypeMemberEntity, PackageEntity, PackageFunctionEntity, PackageMemberEntity, PackageStructuredTypeEntity, PackageTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, ReducedTypeEntity, SetterEntity, StructuredTypeEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity, TypeMemberEntity, TypeParameterEntity, TypeWithMembersOrExtensionEntity, VariantTypeEntity } from './index.js';
|
|
5
5
|
export declare class EntityLocalizationContext {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly translationPackage;
|
|
@@ -17,7 +17,6 @@ export declare class EntityLocalizationContext {
|
|
|
17
17
|
getLocalizedPackageFunctionEntity(entity: PackageFunctionEntity): PackageFunctionEntity;
|
|
18
18
|
getLocalizedMethodEntity(entity: MethodEntity): MethodEntity;
|
|
19
19
|
getLocalizedTypeParameterEntity(entity: TypeParameterEntity): TypeParameterEntity;
|
|
20
|
-
getLocalizedOperatorEntity(entity: OperatorEntity): OperatorEntity;
|
|
21
20
|
getLocalizedIndexerEntity(entity: IndexerEntity): IndexerEntity;
|
|
22
21
|
getLocalizedDereferenceOperatorEntity(entity: DereferenceOperatorEntity): DereferenceOperatorEntity;
|
|
23
22
|
getLocalizedConstructorEntity(entity: ConstructorEntity): ConstructorEntity;
|
|
@@ -48,6 +47,6 @@ export declare class EntityLocalizationContext {
|
|
|
48
47
|
private getOwnTranslatedParameterEntity;
|
|
49
48
|
private getOwnTranslatedAccessorEntity;
|
|
50
49
|
}
|
|
51
|
-
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity |
|
|
50
|
+
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity;
|
|
52
51
|
export declare function isLocalizableEntity(entity: Entity): entity is LocalizableEntity;
|
|
53
52
|
export type LocalizablePackageMemberEntity = PackageMemberEntity & LocalizableEntity;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { KeywordKind } from '../tree/KeywordKind.js';
|
|
2
|
+
import { OperatorKind as SyntacticalOperatorKind } from '../tree/OperatorKind.js';
|
|
2
3
|
export declare enum OperatorKind {
|
|
3
4
|
UnaryPlus = 0,
|
|
4
5
|
UnaryMinus = 1,
|
|
@@ -7,26 +8,25 @@ export declare enum OperatorKind {
|
|
|
7
8
|
Subtract = 4,
|
|
8
9
|
Multiply = 5,
|
|
9
10
|
Divide = 6,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
UnsignedRightShift = 21
|
|
11
|
+
Modulo = 7,
|
|
12
|
+
LessThan = 8,
|
|
13
|
+
GreaterThan = 9,
|
|
14
|
+
LessThanOrEqual = 10,
|
|
15
|
+
GreaterThanOrEqual = 11,
|
|
16
|
+
Or = 12,
|
|
17
|
+
And = 13,
|
|
18
|
+
Xor = 14,
|
|
19
|
+
BitwiseAnd = 15,
|
|
20
|
+
BitwiseOr = 16,
|
|
21
|
+
BitwiseXor = 17,
|
|
22
|
+
LeftShift = 18,
|
|
23
|
+
SignedRightShift = 19,
|
|
24
|
+
UnsignedRightShift = 20
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
|
|
28
28
|
*/
|
|
29
|
-
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.
|
|
29
|
+
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
30
30
|
export declare function isOperatorDefinedByToken(kind: OperatorKind): kind is KindOfOperatorDefinedByToken;
|
|
31
31
|
/**
|
|
32
32
|
* Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
|
|
@@ -41,7 +41,7 @@ export declare function isUnaryOperator(kind: OperatorKind): kind is UnaryOperat
|
|
|
41
41
|
/**
|
|
42
42
|
* Виды двухместных операторов. Объявление двухместного оператора должно содержать один параметр.
|
|
43
43
|
*/
|
|
44
|
-
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.
|
|
44
|
+
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
45
45
|
export declare function isBinaryOperator(kind: OperatorKind): kind is BinaryOperatorKind;
|
|
46
46
|
export type KindOfUnaryOperatorDefinedByToken = UnaryOperatorKind & KindOfOperatorDefinedByToken;
|
|
47
47
|
export type KindOfUnaryOperatorDefinedByKeyword = UnaryOperatorKind & KindOfOperatorDefinedByKeyword;
|
|
@@ -51,8 +51,8 @@ export declare const tokenTextByOperatorKind: {
|
|
|
51
51
|
[T in KindOfOperatorDefinedByToken]: string;
|
|
52
52
|
};
|
|
53
53
|
export declare const keywordKindByOperatorKind: {
|
|
54
|
-
[T in KindOfOperatorDefinedByKeyword]:
|
|
54
|
+
[T in KindOfOperatorDefinedByKeyword]: KeywordKind;
|
|
55
55
|
};
|
|
56
56
|
export declare const operatorKindsBySyntacticalOperatorKind: {
|
|
57
|
-
[T in
|
|
57
|
+
[T in SyntacticalOperatorKind]: readonly OperatorKind[];
|
|
58
58
|
};
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
import { Name } from '../common/index.js';
|
|
2
|
+
import { NamedTypeMemberEntity, TypeMemberEntity } from './index.js';
|
|
2
3
|
import { ConstructorEntity } from './interfaces/ConstructorEntity.js';
|
|
3
4
|
import { DereferenceOperatorEntity } from './interfaces/DereferenceOperatorEntity.js';
|
|
4
5
|
import { DestructorEntity } from './interfaces/DestructorEntity.js';
|
|
5
6
|
import { IndexerEntity } from './interfaces/IndexerEntity.js';
|
|
6
|
-
import { OperatorEntity } from './interfaces/OperatorEntity.js';
|
|
7
|
-
import { OperatorKind } from './OperatorKind.js';
|
|
8
|
-
import { NamedTypeMemberEntity, TypeMemberEntity } from './index.js';
|
|
9
7
|
export declare class TypeEntityMembers {
|
|
10
8
|
private readonly namedMembers;
|
|
11
|
-
private readonly operators;
|
|
12
9
|
private readonly constructors;
|
|
13
10
|
private readonly destructors;
|
|
14
11
|
private readonly indexers;
|
|
15
12
|
private readonly dereferenceOperators;
|
|
16
13
|
private static readonly emptyNamedMembers;
|
|
17
|
-
private static readonly emptyOperators;
|
|
18
14
|
private readonly membersByNameKey_;
|
|
19
|
-
private readonly operatorsByKind_;
|
|
20
15
|
private get membersByNameKey();
|
|
21
|
-
|
|
22
|
-
constructor(namedMembers: readonly NamedTypeMemberEntity[], operators: readonly OperatorEntity[], constructors: readonly ConstructorEntity[], destructors: readonly DestructorEntity[], indexers: readonly IndexerEntity[], dereferenceOperators: readonly DereferenceOperatorEntity[]);
|
|
16
|
+
constructor(namedMembers: readonly NamedTypeMemberEntity[], constructors: readonly ConstructorEntity[], destructors: readonly DestructorEntity[], indexers: readonly IndexerEntity[], dereferenceOperators: readonly DereferenceOperatorEntity[]);
|
|
23
17
|
getNamedMembers(): readonly NamedTypeMemberEntity[];
|
|
24
18
|
getNamedMembersByName(name: Name): readonly NamedTypeMemberEntity[];
|
|
25
|
-
getOperators(): readonly OperatorEntity[];
|
|
26
|
-
getOperatorsByKind(kind: OperatorKind): readonly OperatorEntity[];
|
|
27
19
|
getIndexers(): readonly IndexerEntity[];
|
|
28
20
|
getDereferenceOperators(): readonly DereferenceOperatorEntity[];
|
|
29
21
|
getConstructors(): readonly ConstructorEntity[];
|
|
@@ -3,7 +3,7 @@ import { Name } from '../../common/index.js';
|
|
|
3
3
|
import * as tree from '../../tree/index.js';
|
|
4
4
|
import * as types from '../../types/index.js';
|
|
5
5
|
import { IEntity } from '../IEntity.js';
|
|
6
|
-
import type { EntityNaming, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
6
|
+
import type { EntityNaming, OperatorKind, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
7
|
import { DefinitionKind, EntityHidingLevel, EntityKind, ParameterEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
8
8
|
export type FunctionEntity = PackageFunctionEntity | MethodEntity | NestedFunctionEntity | AnonymousFunctionEntity;
|
|
9
9
|
interface IFunctionEntity extends IEntity {
|
|
@@ -35,6 +35,7 @@ export interface MethodEntity extends IFunctionEntity {
|
|
|
35
35
|
isFunctionTypeInvokeMethod(): boolean;
|
|
36
36
|
getOverriddenMembers(): readonly types.Method[];
|
|
37
37
|
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Method> | undefined;
|
|
38
|
+
getOperatorKind(): OperatorKind | undefined;
|
|
38
39
|
getOriginalEntity(): MethodEntity;
|
|
39
40
|
ensureAllDiagnosticsReported?(): void;
|
|
40
41
|
}
|
|
@@ -3,7 +3,7 @@ import { Name } from '../../common/index.js';
|
|
|
3
3
|
import * as tree from '../../tree/index.js';
|
|
4
4
|
import * as types from '../../types/index.js';
|
|
5
5
|
import { IEntity } from '../IEntity.js';
|
|
6
|
-
import { ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, FunctionEntity, FunctionTypeEntity, GetterEntity, IndexerEntity,
|
|
6
|
+
import { ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, FunctionEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, PackageEntity, PreservedReducedTypeEntityMemberInfo, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
7
|
export type VariableEntity = PackageVariableEntity | FieldEntity | ParameterEntity | LocalVariableEntity;
|
|
8
8
|
interface IVariableEntity extends IEntity {
|
|
9
9
|
readonly kind: EntityKind.Variable;
|
|
@@ -51,7 +51,7 @@ export declare enum LocalVariableKind {
|
|
|
51
51
|
Enumeration = 1,
|
|
52
52
|
Error = 2
|
|
53
53
|
}
|
|
54
|
-
export type EntityContainingParameter = FunctionEntity | IndexerEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity |
|
|
54
|
+
export type EntityContainingParameter = FunctionEntity | IndexerEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | PackageEntity;
|
|
55
55
|
export type VariableEntityDefinition = {
|
|
56
56
|
kind: DefinitionKind.Source;
|
|
57
57
|
value: SourceVariableEntityDefinition;
|
|
@@ -6,7 +6,6 @@ export * from './FunctionEntity.js';
|
|
|
6
6
|
export * from './FunctionTypeEntity.js';
|
|
7
7
|
export * from './GetterEntity.js';
|
|
8
8
|
export * from './IndexerEntity.js';
|
|
9
|
-
export * from './OperatorEntity.js';
|
|
10
9
|
export * from './PackageAliasEntity.js';
|
|
11
10
|
export * from './PackageEntity.js';
|
|
12
11
|
export * from './ReducedTypeEntity.js';
|
|
@@ -2,7 +2,7 @@ import { Tag } from '../../analysis/Tag.js';
|
|
|
2
2
|
import { Translation } from '../../analysis/Translation.js';
|
|
3
3
|
import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
4
4
|
import * as types from '../../types/index.js';
|
|
5
|
-
import type { EntityNaming, FunctionEntityDefinition, MethodEntity, PackageEntity, PackageFunctionEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
5
|
+
import type { EntityNaming, FunctionEntityDefinition, MethodEntity, OperatorKind, PackageEntity, PackageFunctionEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
6
6
|
import { EntityHidingLevel, EntityKind, ParameterEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
7
7
|
export declare class IntrinsicPackageFunctionEntity implements PackageFunctionEntity {
|
|
8
8
|
private readonly name;
|
|
@@ -48,9 +48,10 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
|
48
48
|
private readonly isOverride_;
|
|
49
49
|
private readonly isAbstract_;
|
|
50
50
|
private readonly overriddenMembers;
|
|
51
|
+
private readonly operatorKind;
|
|
51
52
|
readonly kind = EntityKind.Function;
|
|
52
53
|
readonly subkind = "method";
|
|
53
|
-
constructor(name: Name, typeParameters: readonly TypeParameterEntity[], parameters: readonly ParameterEntity[], returnType: types.Type, isAsync_: boolean, isHidden_: EntityHidingLevel | undefined, tags: readonly Tag[], isFunctionTypeInvokeMethod_: boolean, containingEntity: TypeWithMembersOrExtensionEntity, isStatic_: boolean, isBasic_: boolean, isOverride_: boolean, isAbstract_: boolean, overriddenMembers: readonly types.Method[]);
|
|
54
|
+
constructor(name: Name, typeParameters: readonly TypeParameterEntity[], parameters: readonly ParameterEntity[], returnType: types.Type, isAsync_: boolean, isHidden_: EntityHidingLevel | undefined, tags: readonly Tag[], isFunctionTypeInvokeMethod_: boolean, containingEntity: TypeWithMembersOrExtensionEntity, isStatic_: boolean, isBasic_: boolean, isOverride_: boolean, isAbstract_: boolean, overriddenMembers: readonly types.Method[], operatorKind: OperatorKind | undefined);
|
|
54
55
|
getName(): Name;
|
|
55
56
|
getNaming(): EntityNaming;
|
|
56
57
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
@@ -74,5 +75,6 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
|
74
75
|
getTranslation(): Translation | undefined;
|
|
75
76
|
getLocale(): PackageLocale;
|
|
76
77
|
getDialect(): PackageDialect;
|
|
78
|
+
getOperatorKind(): OperatorKind | undefined;
|
|
77
79
|
getOriginalEntity(): MethodEntity;
|
|
78
80
|
}
|
|
@@ -2,16 +2,16 @@ import { Analyzer } from '../../analysis/index.js';
|
|
|
2
2
|
import { Name } from '../../common/index.js';
|
|
3
3
|
import * as types from '../../types/index.js';
|
|
4
4
|
import type { AnonymousStructuredTypeEntity, PackageEntity, PackageStructuredTypeEntity, StructuredTypeKind } from '../index.js';
|
|
5
|
-
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, IndexerEntity, NamedTypeMemberEntity,
|
|
5
|
+
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, IndexerEntity, NamedTypeMemberEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
6
6
|
export declare class UnfinishedIntrinsicPackageStructuredTypeEntity {
|
|
7
7
|
private readonly unfinishedValue_;
|
|
8
8
|
get unfinishedValue(): PackageStructuredTypeEntity;
|
|
9
9
|
constructor(analyzer: Analyzer, name: Name, containingPackage: PackageEntity, typeParameters: readonly TypeParameterEntity[], isBasic: boolean, isAbstract: boolean, structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode);
|
|
10
|
-
finish(ownNamedMembers: readonly NamedTypeMemberEntity[],
|
|
10
|
+
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): PackageStructuredTypeEntity;
|
|
11
11
|
}
|
|
12
12
|
export declare class UnfinishedIntrinsicAnonymousStructuredTypeEntity {
|
|
13
13
|
private readonly unfinishedValue_;
|
|
14
14
|
get unfinishedValue(): AnonymousStructuredTypeEntity;
|
|
15
15
|
constructor(analyzer: Analyzer, typeParameters: readonly TypeParameterEntity[], structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity);
|
|
16
|
-
finish(ownNamedMembers: readonly NamedTypeMemberEntity[],
|
|
16
|
+
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): AnonymousStructuredTypeEntity;
|
|
17
17
|
}
|
|
@@ -5,7 +5,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
7
|
import type { AnonymousFunctionEntity, EntityNaming, FunctionEntityDefinition, FunctionLiteralParameterDeclarationEntity, MethodEntity, NestedFunctionEntity, PackageEntity, PackageFunctionEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
|
-
import { EntityHidingLevel, EntityKind, ParameterEntity, PreservedReducedTypeEntityMemberInfo, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
8
|
+
import { EntityHidingLevel, EntityKind, OperatorKind, ParameterEntity, PreservedReducedTypeEntityMemberInfo, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
9
9
|
export declare class PackageFunctionDeclarationEntity implements PackageFunctionEntity {
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly node;
|
|
@@ -42,6 +42,7 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
|
42
42
|
readonly kind = EntityKind.Function;
|
|
43
43
|
readonly subkind = "method";
|
|
44
44
|
private readonly name;
|
|
45
|
+
private readonly operatorKind;
|
|
45
46
|
private readonly typeParameters;
|
|
46
47
|
private readonly parameters;
|
|
47
48
|
private readonly returnType;
|
|
@@ -75,8 +76,10 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
|
75
76
|
getTranslation(): Translation | undefined;
|
|
76
77
|
getLocale(): PackageLocale;
|
|
77
78
|
getDialect(): PackageDialect;
|
|
79
|
+
getOperatorKind(): OperatorKind | undefined;
|
|
78
80
|
getOriginalEntity(): MethodEntity;
|
|
79
81
|
ensureAllDiagnosticsReported(): void;
|
|
82
|
+
private convertSyntacticOperatorKind;
|
|
80
83
|
}
|
|
81
84
|
export declare class NestedFunctionDeclarationEntity implements NestedFunctionEntity {
|
|
82
85
|
private readonly analyzer;
|
|
@@ -6,7 +6,6 @@ export * from './SourceFunctionEntity.js';
|
|
|
6
6
|
export * from './SourceFunctionTypeEntity.js';
|
|
7
7
|
export * from './SourceGetterEntity.js';
|
|
8
8
|
export * from './SourceIndexerEntity.js';
|
|
9
|
-
export * from './SourceOperatorEntity.js';
|
|
10
9
|
export * from './SourcePackageAliasEntity.js';
|
|
11
10
|
export * from './SourcePackageEntity.js';
|
|
12
11
|
export * from './SourceReducedTypeEntity.js';
|
|
@@ -6,7 +6,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
6
6
|
import * as tree from '../../tree/index.js';
|
|
7
7
|
import * as types from '../../types/index.js';
|
|
8
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
9
|
-
import { EntityKind, EntityNaming, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
9
|
+
import { EntityKind, EntityNaming, OperatorKind, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
10
10
|
import type { MethodEntity, PackageFunctionEntity } from '../interfaces/FunctionEntity.js';
|
|
11
11
|
import { FunctionEntityDefinition } from '../interfaces/FunctionEntity.js';
|
|
12
12
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
@@ -79,6 +79,7 @@ export declare abstract class TranslatedMethodEntity implements MethodEntity {
|
|
|
79
79
|
getTags(): readonly Tag[];
|
|
80
80
|
getTypeParametersArity(): number;
|
|
81
81
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
82
|
+
getOperatorKind(): OperatorKind | undefined;
|
|
82
83
|
}
|
|
83
84
|
export declare class SourceTranslatedMethodEntity extends TranslatedMethodEntity {
|
|
84
85
|
readonly kind = EntityKind.Function;
|
|
@@ -6,7 +6,6 @@ export * from './TranslatedFunctionEntity.js';
|
|
|
6
6
|
export * from './TranslatedFunctionTypeEntity.js';
|
|
7
7
|
export * from './TranslatedGetterEntity.js';
|
|
8
8
|
export * from './TranslatedIndexerEntity.js';
|
|
9
|
-
export * from './TranslatedOperatorEntity.js';
|
|
10
9
|
export * from './TranslatedPackageEntity.js';
|
|
11
10
|
export * from './TranslatedReducedTypeEntity.js';
|
|
12
11
|
export * from './TranslatedSetterEntity.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TaskController, Uri } from '../common/index.js';
|
|
2
2
|
import { Diagnostic, DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { Compilation } from './Compilation.js';
|
|
4
|
-
import {
|
|
4
|
+
import { PackageOrGroupConfiguration } from './configuration/ConfigurationConverter.js';
|
|
5
5
|
import * as fsTree from './FileSystemTree.js';
|
|
6
6
|
import * as packageContent from './PackageContent.js';
|
|
7
7
|
import { PackageName, ProgramPackageConfiguration } from './SourcePackage.js';
|
|
@@ -92,10 +92,10 @@ export declare class CompilationLoadResult {
|
|
|
92
92
|
constructor(compilation: Compilation | undefined, configurationsByPackageOrGroupUri: ReadonlyMap<string, ProcessedConfigurationInfo>);
|
|
93
93
|
}
|
|
94
94
|
interface ProcessedConfigurationInfo {
|
|
95
|
-
processedConfiguration:
|
|
95
|
+
processedConfiguration: PackageOrGroupConfiguration | undefined;
|
|
96
96
|
diagnostics: readonly Diagnostic[];
|
|
97
97
|
configurationFileVersion: number;
|
|
98
98
|
}
|
|
99
99
|
export type MainPackageConfigurationProvider = () => Promise<ProgramPackageConfiguration>;
|
|
100
|
-
export type ConfigurationProvider = (configurationDirectory: ConfigurationDirectoryInfo, isLoadedFromNodeModules: boolean, process: (configurationDirectory: ConfigurationDirectoryInfo) => Promise<
|
|
100
|
+
export type ConfigurationProvider = (configurationDirectory: ConfigurationDirectoryInfo, isLoadedFromNodeModules: boolean, process: (configurationDirectory: ConfigurationDirectoryInfo) => Promise<PackageOrGroupConfiguration | undefined>) => Promise<PackageOrGroupConfiguration | undefined>;
|
|
101
101
|
export {};
|
|
@@ -52,6 +52,7 @@ export declare class TranslationPackageConfiguration {
|
|
|
52
52
|
readonly translationLocale: PackageLocale;
|
|
53
53
|
readonly locale: PackageLocale;
|
|
54
54
|
readonly dialect: PackageDialect;
|
|
55
|
+
readonly kind = "name-translation-package";
|
|
55
56
|
readonly name: PackageName;
|
|
56
57
|
constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect);
|
|
57
58
|
}
|
|
@@ -65,6 +66,7 @@ export declare class TextTranslationPackageConfiguration {
|
|
|
65
66
|
readonly targetPlatform: TargetPlatformConfig;
|
|
66
67
|
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
67
68
|
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
69
|
+
readonly kind = "text-translation-package";
|
|
68
70
|
readonly name: PackageName;
|
|
69
71
|
constructor(targetPackageName: PackageName, translationLocale: string, isPrimaryTranslation: boolean | undefined, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
70
72
|
}
|
|
@@ -79,6 +81,7 @@ export declare class ProgramPackageConfiguration {
|
|
|
79
81
|
readonly jsProjectRootUri?: Uri | undefined;
|
|
80
82
|
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
81
83
|
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
84
|
+
readonly kind = "program-package";
|
|
82
85
|
constructor(name: PackageName, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, requiredPackages?: readonly RequiredPackageConfig[], implementedInterfacePackageName?: PackageName | undefined, jsProjectRootUri?: Uri | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
83
86
|
isInterfacePackage(): boolean;
|
|
84
87
|
}
|
|
@@ -5,7 +5,7 @@ import * as origin from '../configuration/types/PackageConfigurationEn.js';
|
|
|
5
5
|
import { PackageConfiguration, ProgramPackageConfiguration, TextTranslationPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
|
|
6
6
|
export declare class ConfigurationConverter {
|
|
7
7
|
private static readonly uriRegexp;
|
|
8
|
-
static convert(
|
|
8
|
+
static convert(configuration: origin.Configuration | undefined, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): PackageOrGroupConfiguration;
|
|
9
9
|
static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
|
|
10
10
|
static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
|
|
11
11
|
static convertNameTranslationsConfiguration(configuration: origin.NameTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
|
|
@@ -19,10 +19,8 @@ export declare class ConfigurationConverter {
|
|
|
19
19
|
private static convertJavaScriptModuleFormat;
|
|
20
20
|
private static tryParseUri;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
packageConfiguration?: PackageConfiguration;
|
|
24
|
-
packageGroupConfiguration?: PackageGroupConfiguration;
|
|
25
|
-
}
|
|
22
|
+
export type PackageOrGroupConfiguration = PackageConfiguration | PackageGroupConfiguration;
|
|
26
23
|
export declare class PackageGroupConfiguration {
|
|
24
|
+
readonly kind = "package-group";
|
|
27
25
|
}
|
|
28
26
|
export declare function createDefaultPackageConfiguration(packageUri: Uri | undefined, locale?: PackageLocale, dialect?: PackageDialect): ProgramPackageConfiguration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Option } from '../../common/index.js';
|
|
1
2
|
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
2
3
|
import { RangeDiagnosticAcceptor } from '../../diagnostic/RangeDiagnostic.js';
|
|
3
4
|
import * as configEn from '../configuration/types/PackageConfigurationEn.js';
|
|
@@ -8,19 +9,19 @@ export declare class ConfigurationFileParser {
|
|
|
8
9
|
* Выполняет разбор и валидацию конфигурации (проверка соответствия JSON схеме), преобразует в конфигурацию на
|
|
9
10
|
* английском языке путём замены имён свойств.
|
|
10
11
|
*
|
|
11
|
-
* @returns Возвращает `
|
|
12
|
+
* @returns Возвращает `Option.some`, если конфигурация была успешно разобрана, `Option.none`, если содержала
|
|
12
13
|
* ошибки (ошибки в синтаксисе JSON, несоответствие JSON схеме).
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
|
-
*
|
|
16
|
+
* {
|
|
16
17
|
* "тип": "Пакет",
|
|
17
18
|
* "имя": "МойПакет"
|
|
18
|
-
* }
|
|
19
|
+
* }
|
|
19
20
|
* ->
|
|
20
|
-
*
|
|
21
|
+
* {
|
|
21
22
|
* "type": "Package",
|
|
22
23
|
* "name": "МойПакет"
|
|
23
|
-
* }
|
|
24
|
+
* }
|
|
24
25
|
*/
|
|
25
|
-
static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<configEn.
|
|
26
|
+
static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<Option<configEn.Configuration | undefined>>;
|
|
26
27
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
2
2
|
import * as configEn from '../configuration/types/PackageConfigurationEn.js';
|
|
3
3
|
import * as configRu from '../configuration/types/PackageConfigurationRu.js';
|
|
4
|
-
export type ConfigurationArray = configEn.ConfigurationArray | configRu.МассивКонфигураций;
|
|
5
4
|
export type Configuration = configEn.Configuration | configRu.Конфигурация;
|
|
6
5
|
/**
|
|
7
6
|
* Заменяет ключи объектов конфигурации на ключи на английском языке.
|
|
@@ -18,6 +17,5 @@ export type Configuration = configEn.Configuration | configRu.Конфигура
|
|
|
18
17
|
* }]
|
|
19
18
|
*/
|
|
20
19
|
export declare class ConfigurationTranslator {
|
|
21
|
-
static translate(configuration:
|
|
22
|
-
static translateConfiguration(configuration: Configuration, locale: PackageLocale): configEn.Configuration;
|
|
20
|
+
static translate(configuration: Configuration, locale: PackageLocale): configEn.Configuration;
|
|
23
21
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export type ConfigurationArray = Configuration[];
|
|
2
1
|
export type Configuration = Package | PackageGroup | NameTranslations | TextTranslations;
|
|
3
2
|
export interface Package {
|
|
4
|
-
type
|
|
3
|
+
type?: 'Package';
|
|
5
4
|
name: string;
|
|
6
5
|
language?: Language;
|
|
7
6
|
dialect?: Dialect;
|
|
@@ -27,8 +27,6 @@ export declare class DisplayService {
|
|
|
27
27
|
displayFunctionDeclaration(func: FunctionDeclaration): string;
|
|
28
28
|
getFunctionDeclarationDisplayParts(func: FunctionDeclaration): FunctionDeclarationDisplayParts;
|
|
29
29
|
displayAnonymousFunctionDeclaration(func: AnonymousFunctionDeclaration): string;
|
|
30
|
-
displayOperatorDeclaration(operator: OperatorDeclaration): string;
|
|
31
|
-
getOperatorDeclarationDisplayParts(operator: OperatorDeclaration): OperatorDeclarationDisplayParts;
|
|
32
30
|
displayOperatorKind(kind: e.OperatorKind): string;
|
|
33
31
|
displayConstructorDeclaration(constructor: ConstructorDeclaration): string;
|
|
34
32
|
getConstructorDeclarationDisplayParts(constructor: ConstructorDeclaration): ConstructorDeclarationDisplayParts;
|
|
@@ -114,6 +112,7 @@ export declare class FunctionDeclaration_entity implements IFunctionDeclaration
|
|
|
114
112
|
readonly func: e.NamedFunctionEntity;
|
|
115
113
|
constructor(func: e.NamedFunctionEntity);
|
|
116
114
|
getEntity(): e.NamedFunctionEntity;
|
|
115
|
+
getOperatorKind(): e.OperatorKind | undefined;
|
|
117
116
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
118
117
|
getParameters(): readonly ParameterDeclaration[];
|
|
119
118
|
getReturnType(): types.Type;
|
|
@@ -125,6 +124,7 @@ export declare class FunctionDeclaration_typeMember implements IFunctionDeclarat
|
|
|
125
124
|
readonly func: types.Method;
|
|
126
125
|
constructor(func: types.Method);
|
|
127
126
|
getEntity(): e.NamedFunctionEntity;
|
|
127
|
+
getOperatorKind(): e.OperatorKind | undefined;
|
|
128
128
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
129
129
|
getParameters(): readonly ParameterDeclaration[];
|
|
130
130
|
getReturnType(): types.Type;
|
|
@@ -136,6 +136,7 @@ export declare class FunctionDeclaration_substitutedFunction implements IFunctio
|
|
|
136
136
|
readonly kind = "substituted-function";
|
|
137
137
|
constructor(func: SubstitutedFunction);
|
|
138
138
|
getEntity(): e.NamedFunctionEntity;
|
|
139
|
+
getOperatorKind(): e.OperatorKind | undefined;
|
|
139
140
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
140
141
|
getParameters(): readonly ParameterDeclaration[];
|
|
141
142
|
getReturnType(): types.Type;
|
|
@@ -147,6 +148,7 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
|
|
|
147
148
|
readonly kind = "accessed-function";
|
|
148
149
|
constructor(func: AccessedFunction);
|
|
149
150
|
getEntity(): e.NamedFunctionEntity;
|
|
151
|
+
getOperatorKind(): e.OperatorKind | undefined;
|
|
150
152
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
151
153
|
getParameters(): readonly ParameterDeclaration[];
|
|
152
154
|
getReturnType(): types.Type;
|
|
@@ -155,6 +157,7 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
|
|
|
155
157
|
}
|
|
156
158
|
interface IFunctionDeclaration {
|
|
157
159
|
getEntity(): e.NamedFunctionEntity;
|
|
160
|
+
getOperatorKind(): e.OperatorKind | undefined;
|
|
158
161
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
159
162
|
getParameters(): readonly ParameterDeclaration[];
|
|
160
163
|
getReturnType(): types.Type;
|
|
@@ -548,31 +551,6 @@ interface INamedType {
|
|
|
548
551
|
getEntity(): e.NamedTypeEntity;
|
|
549
552
|
getTypeParameters(): readonly e.TypeParameterEntity[];
|
|
550
553
|
}
|
|
551
|
-
export type OperatorDeclaration = OperatorDeclaration_entity | OperatorDeclaration_typeMember;
|
|
552
|
-
export declare class OperatorDeclaration_entity implements IOperatorDeclaration {
|
|
553
|
-
readonly operator: e.OperatorEntity;
|
|
554
|
-
readonly kind = "entity";
|
|
555
|
-
constructor(operator: e.OperatorEntity);
|
|
556
|
-
getOperatorKind(): e.OperatorKind;
|
|
557
|
-
getParameters(): readonly ParameterDeclaration[];
|
|
558
|
-
getReturnType(): types.Type;
|
|
559
|
-
getContainer(): DeclarationContainer | undefined;
|
|
560
|
-
}
|
|
561
|
-
export declare class OperatorDeclaration_typeMember implements IOperatorDeclaration {
|
|
562
|
-
readonly operator: types.Operator;
|
|
563
|
-
readonly kind = "type-member";
|
|
564
|
-
constructor(operator: types.Operator);
|
|
565
|
-
getOperatorKind(): e.OperatorKind;
|
|
566
|
-
getParameters(): readonly ParameterDeclaration[];
|
|
567
|
-
getReturnType(): types.Type;
|
|
568
|
-
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
569
|
-
}
|
|
570
|
-
interface IOperatorDeclaration {
|
|
571
|
-
getOperatorKind(): e.OperatorKind;
|
|
572
|
-
getParameters(): readonly ParameterDeclaration[];
|
|
573
|
-
getReturnType(): types.Type;
|
|
574
|
-
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
575
|
-
}
|
|
576
554
|
export type TypeUsage = StructuredTypeUsage | VariantTypeUsage | FunctionTypeUsage | AliasTypeUsage | ReducedTypeUsage | ParameterTypeUsage | UnionOrIntersectionTypeUsage | UnresolvedTypeUsage | SubstitutionStubTypeUsage;
|
|
577
555
|
export type StructuredTypeUsage = StructuredTypeUsage_type | StructuredTypeUsage_entity;
|
|
578
556
|
export declare class StructuredTypeUsage_type implements IStructuredTypeUsage {
|