@artel/artc 0.6.25243 → 0.6.25245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Cli.js +3 -3
- package/build/api/Api.js +30 -22
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +501 -917
- package/build/{chunk-EU5AITNE.js → chunk-FVBS6MPY.js} +1 -1
- package/build/{chunk-7D775S4V.js → chunk-T7WG4Z7I.js} +21039 -19038
- package/build/{chunk-7MCQTANE.js → chunk-TVZEHLXD.js} +2 -2
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +49 -80
- package/build/types/analysis/Analyzer.d.ts +59 -73
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +8 -10
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +6 -6
- package/build/types/analysis/CallExpressionMeaning.d.ts +7 -9
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +4 -7
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +1 -2
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +2 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +16 -17
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -7
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -5
- package/build/types/analysis/Localization.d.ts +19 -25
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +29 -31
- package/build/types/analysis/NamedTypeResolver.d.ts +6 -8
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -5
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +4 -9
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +2 -2
- package/build/types/analysis/SourceFileMembers.d.ts +3 -3
- package/build/types/analysis/TagMeaning.d.ts +18 -20
- package/build/types/analysis/Tags.d.ts +1 -1
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +23 -31
- package/build/types/analysis/TypeNarrower.d.ts +1 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +100 -31
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +11 -14
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +5 -6
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +5 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +11 -12
- package/build/types/api/Api.d.ts +0 -3
- package/build/types/common/Name.d.ts +9 -14
- package/build/types/common/TreeQuery.d.ts +2 -0
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +1 -1
- package/build/types/emitter/EntityMap.d.ts +1 -0
- package/build/types/entities/AliasTypeEntity.d.ts +9 -41
- package/build/types/entities/AliasedType.d.ts +62 -0
- package/build/types/entities/ConstructorEntity.d.ts +10 -2
- package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -0
- package/build/types/entities/DestructorEntity.d.ts +6 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +53 -0
- package/build/types/entities/FunctionEntity.d.ts +20 -0
- package/build/types/entities/FunctionTypeEntity.d.ts +15 -4
- package/build/types/entities/GetterEntity.d.ts +15 -2
- package/build/types/entities/IndexerEntity.d.ts +5 -0
- package/build/types/entities/OperatorEntity.d.ts +9 -3
- package/build/types/entities/PackageAliasEntity.d.ts +5 -0
- package/build/types/entities/PackageEntity.d.ts +8 -3
- package/build/types/entities/PackageMembers.d.ts +3 -2
- package/build/types/entities/SetterEntity.d.ts +15 -2
- package/build/types/entities/StructuredTypeEntity.d.ts +64 -15
- package/build/types/entities/TypeEntityMembers.d.ts +2 -5
- package/build/types/entities/TypeExtensionEntity.d.ts +9 -5
- package/build/types/entities/TypeMemberContainer.d.ts +2 -2
- package/build/types/entities/TypeParameterEntity.d.ts +26 -8
- package/build/types/entities/VariableEntity.d.ts +41 -1
- package/build/types/entities/VariantTypeEntity.d.ts +13 -4
- package/build/types/entities/index.d.ts +5 -4
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +54 -0
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +34 -0
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +24 -0
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +75 -0
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +83 -0
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +37 -0
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +35 -0
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +22 -0
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +107 -0
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +46 -0
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +97 -0
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +76 -0
- package/build/types/project/SourcePackage.d.ts +1 -0
- package/build/types/services/DefinitionService.d.ts +0 -1
- package/build/types/services/DisplayService.d.ts +39 -134
- package/build/types/services/NodeSemanticInfo.d.ts +7 -7
- package/build/types/services/ReferencesService.d.ts +5 -3
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -10
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -3
- package/build/types/services/source-generation/SourceGenerationService.d.ts +1 -2
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/green/Nodes.d.ts +7 -7
- package/build/types/tree/green/Token.d.ts +6 -7
- package/build/types/tree/red/Nodes.d.ts +10 -10
- package/build/types/ts-interop/Entities.d.ts +64 -13
- package/build/types/ts-interop/TsInteropContext.d.ts +17 -5
- package/build/types/ts-interop/TsPackageContents.d.ts +2 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +3 -3
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +4 -4
- package/build/types/types/StandardTypes.d.ts +3 -2
- package/build/types/types/Substitutions.d.ts +3 -0
- package/build/types/types/Type.d.ts +3 -0
- package/package.json +1 -1
- package/build/types/analysis/EntityLocalizationHelper.d.ts +0 -17
- package/build/types/analysis/FoundDeclaration.d.ts +0 -19
- package/build/types/analysis/LocalizationContext.d.ts +0 -15
- package/build/types/common/SearchName.d.ts +0 -14
- package/build/types/types/Internal.d.ts +0 -1
@@ -1,10 +1,10 @@
|
|
1
|
+
import { Localization } from '../analysis/Localization.js';
|
1
2
|
import { Tag } from '../analysis/Tags.js';
|
2
3
|
import { Analyzer } from '../analysis/index.js';
|
3
4
|
import { Name } from '../common/index.js';
|
4
5
|
import { PackageAliasTypeDeclaration } from '../tree/index.js';
|
5
|
-
import
|
6
|
-
import {
|
7
|
-
import { DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
6
|
+
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
7
|
+
import { AliasedType, DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
8
8
|
export interface AliasTypeEntity extends ITypeEntity {
|
9
9
|
readonly kind: EntityKind.Type;
|
10
10
|
readonly typeEntityKind: TypeEntityKind.Alias;
|
@@ -16,11 +16,13 @@ export interface AliasTypeEntity extends ITypeEntity {
|
|
16
16
|
getAliasedType(): AliasedType;
|
17
17
|
getTypeParameters(): readonly TypeParameterEntity[];
|
18
18
|
getDefinition(): AliasTypeEntityDefinition;
|
19
|
-
getMembers():
|
19
|
+
getMembers(): TypeEntityMembers;
|
20
20
|
getArity(): number;
|
21
21
|
isHidden(): EntityHidingLevel | undefined;
|
22
22
|
getTags(): readonly Tag[];
|
23
23
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
24
|
+
getLocalization(): Localization;
|
25
|
+
getOriginalEntity(): AliasTypeEntity;
|
24
26
|
}
|
25
27
|
export type AliasTypeEntityDefinition = {
|
26
28
|
kind: DefinitionKind.Source;
|
@@ -28,42 +30,6 @@ export type AliasTypeEntityDefinition = {
|
|
28
30
|
} | {
|
29
31
|
kind: DefinitionKind.TypeScript;
|
30
32
|
};
|
31
|
-
/**
|
32
|
-
* Класс позволяет работать с правой частью тождественного типа (с "aliased type"), исключая циклы.
|
33
|
-
*
|
34
|
-
* Пример цикла:
|
35
|
-
* ```artel
|
36
|
-
* тип А = Б
|
37
|
-
* тип Б = А
|
38
|
-
* ```
|
39
|
-
*
|
40
|
-
* Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - тип `unresolved`, чтобы разорвать цикл,
|
41
|
-
* созданный типами `А` и `Б`.
|
42
|
-
*/
|
43
|
-
export declare class AliasedType {
|
44
|
-
/**
|
45
|
-
* Правая часть тождественного типа, указанная пользователем.
|
46
|
-
*/
|
47
|
-
readonly declared: types.Type;
|
48
|
-
private readonly _analyzer;
|
49
|
-
private _state;
|
50
|
-
/**
|
51
|
-
* Правая часть тождественного типа, указанная пользователем, либо тип `unresolved`,
|
52
|
-
* если указанный тип приводит к циклу.
|
53
|
-
*/
|
54
|
-
get cycleFree(): types.Type;
|
55
|
-
/**
|
56
|
-
* Приводит ли указанная пользователем правая часть тождественного типа к циклу?
|
57
|
-
*/
|
58
|
-
get causesCycle(): boolean;
|
59
|
-
constructor(analyzer: Analyzer, declared: types.Type);
|
60
|
-
private getAliasedTypeResolutionResult;
|
61
|
-
/**
|
62
|
-
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
63
|
-
*/
|
64
|
-
private resolveAliasedType;
|
65
|
-
private checkIfTypeFormsCycle;
|
66
|
-
}
|
67
33
|
export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntity {
|
68
34
|
private readonly _analyzer;
|
69
35
|
private readonly _node;
|
@@ -79,11 +45,13 @@ export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntit
|
|
79
45
|
getContainingPackage(): PackageEntity;
|
80
46
|
getAliasedType(): AliasedType;
|
81
47
|
getTypeParameters(): readonly TypeParameterEntity[];
|
82
|
-
getMembers():
|
48
|
+
getMembers(): TypeEntityMembers;
|
83
49
|
getDefinition(): AliasTypeEntityDefinition;
|
84
50
|
getArity(): number;
|
85
51
|
isHidden(): EntityHidingLevel | undefined;
|
86
52
|
getTags(): readonly Tag[];
|
87
53
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
88
54
|
getContext(): EntityContext;
|
55
|
+
getLocalization(): Localization;
|
56
|
+
getOriginalEntity(): AliasTypeEntity;
|
89
57
|
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import * as types from '../types/index.js';
|
3
|
+
/**
|
4
|
+
* Класс позволяет работать с правой частью тождественного типа (с "aliased type"), исключая циклы.
|
5
|
+
*
|
6
|
+
* Пример цикла:
|
7
|
+
* ```artel
|
8
|
+
* тип А = Б
|
9
|
+
* тип Б = А
|
10
|
+
* ```
|
11
|
+
*
|
12
|
+
* Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - тип `unresolved`, чтобы разорвать цикл,
|
13
|
+
* созданный типами `А` и `Б`.
|
14
|
+
*/
|
15
|
+
export declare abstract class AliasedType {
|
16
|
+
/**
|
17
|
+
* Правая часть тождественного типа, указанная пользователем.
|
18
|
+
*/
|
19
|
+
abstract readonly declared: types.Type;
|
20
|
+
/**
|
21
|
+
* Правая часть тождественного типа, указанная пользователем, либо тип `unresolved`,
|
22
|
+
* если указанный тип приводит к циклу.
|
23
|
+
*/
|
24
|
+
abstract cycleFree: types.Type;
|
25
|
+
/**
|
26
|
+
* Приводит ли указанная пользователем правая часть тождественного типа к циклу?
|
27
|
+
*/
|
28
|
+
abstract causesCycle: boolean;
|
29
|
+
/**
|
30
|
+
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
31
|
+
*/
|
32
|
+
abstract resolveAliasedType(circularityTrackingStack: boolean[]): CycleFreeAliasedTypeResolutionResult;
|
33
|
+
}
|
34
|
+
export declare class OriginalAliasedType extends AliasedType {
|
35
|
+
/**
|
36
|
+
* Правая часть тождественного типа, указанная пользователем.
|
37
|
+
*/
|
38
|
+
readonly declared: types.Type;
|
39
|
+
private readonly _analyzer;
|
40
|
+
private _state;
|
41
|
+
/**
|
42
|
+
* Правая часть тождественного типа, указанная пользователем, либо тип `unresolved`,
|
43
|
+
* если указанный тип приводит к циклу.
|
44
|
+
*/
|
45
|
+
get cycleFree(): types.Type;
|
46
|
+
/**
|
47
|
+
* Приводит ли указанная пользователем правая часть тождественного типа к циклу?
|
48
|
+
*/
|
49
|
+
get causesCycle(): boolean;
|
50
|
+
constructor(analyzer: Analyzer, declared: types.Type);
|
51
|
+
/**
|
52
|
+
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
53
|
+
*/
|
54
|
+
resolveAliasedType(circularityTrackingStack: boolean[]): CycleFreeAliasedTypeResolutionResult;
|
55
|
+
private getAliasedTypeResolutionResult;
|
56
|
+
private checkIfTypeFormsCycle;
|
57
|
+
}
|
58
|
+
export declare class CycleFreeAliasedTypeResolutionResult {
|
59
|
+
readonly type: types.Type;
|
60
|
+
readonly causesCycle: boolean;
|
61
|
+
constructor(type: types.Type, causesCycle: boolean);
|
62
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Localization } from '../analysis/Localization.js';
|
2
2
|
import { Tag } from '../analysis/Tags.js';
|
3
3
|
import { Analyzer } from '../analysis/index.js';
|
4
4
|
import { ConstructorDeclaration } from '../tree/index.js';
|
@@ -14,6 +14,8 @@ export interface ConstructorEntity {
|
|
14
14
|
isHidden(): EntityHidingLevel | undefined;
|
15
15
|
markedAbstract(): boolean;
|
16
16
|
getTags(): readonly Tag[];
|
17
|
+
getLocalization(): Localization;
|
18
|
+
getOriginalEntity(): ConstructorEntity;
|
17
19
|
}
|
18
20
|
export declare class DefaultConstructorEntityInfo {
|
19
21
|
readonly baseConstructor: types.Constructor | undefined;
|
@@ -55,6 +57,8 @@ export declare class ConstructorDeclarationEntity implements ConstructorEntity {
|
|
55
57
|
isHidden(): EntityHidingLevel | undefined;
|
56
58
|
markedAbstract(): boolean;
|
57
59
|
getTags(): readonly Tag[];
|
60
|
+
getLocalization(): Localization;
|
61
|
+
getOriginalEntity(): ConstructorEntity;
|
58
62
|
}
|
59
63
|
export declare class IntrinsicConstructorEntity implements ConstructorEntity {
|
60
64
|
private readonly _valueParameters;
|
@@ -71,6 +75,8 @@ export declare class IntrinsicConstructorEntity implements ConstructorEntity {
|
|
71
75
|
isHidden(): EntityHidingLevel | undefined;
|
72
76
|
markedAbstract(): boolean;
|
73
77
|
getTags(): readonly Tag[];
|
78
|
+
getLocalization(): Localization;
|
79
|
+
getOriginalEntity(): ConstructorEntity;
|
74
80
|
}
|
75
81
|
export declare class DefaultConstructorEntity implements ConstructorEntity {
|
76
82
|
private readonly _analyzer;
|
@@ -79,7 +85,7 @@ export declare class DefaultConstructorEntity implements ConstructorEntity {
|
|
79
85
|
private readonly _baseConstructor;
|
80
86
|
readonly kind = EntityKind.Constructor;
|
81
87
|
private readonly _parametersInfo;
|
82
|
-
constructor(_analyzer: Analyzer, _containingType: TypeEntityWithMembers, _variablesToInitialize: readonly VariableToInitialize[], _baseConstructor:
|
88
|
+
constructor(_analyzer: Analyzer, _containingType: TypeEntityWithMembers, _variablesToInitialize: readonly VariableToInitialize[], _baseConstructor: types.Constructor | undefined);
|
83
89
|
getValueParameters(): readonly ParameterVariableEntity[];
|
84
90
|
getDefinition(): ConstructorEntityDefinition;
|
85
91
|
getContainer(): TypeMemberEntityContainer;
|
@@ -87,6 +93,8 @@ export declare class DefaultConstructorEntity implements ConstructorEntity {
|
|
87
93
|
isHidden(): EntityHidingLevel | undefined;
|
88
94
|
markedAbstract(): boolean;
|
89
95
|
getTags(): readonly Tag[];
|
96
|
+
getLocalization(): Localization;
|
97
|
+
getOriginalEntity(): ConstructorEntity;
|
90
98
|
private getParametersInfo;
|
91
99
|
private createOrderedParametersForBaseConstructor;
|
92
100
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Localization } from '../analysis/Localization.js';
|
2
3
|
import { Tag } from '../analysis/Tags.js';
|
3
4
|
import { DereferencedVariableGetterDeclaration, DereferencedVariableSetterDeclaration } from '../tree/index.js';
|
4
5
|
import * as types from '../types/index.js';
|
@@ -17,6 +18,8 @@ export interface DereferenceOperatorEntity {
|
|
17
18
|
markedAbstract(): boolean;
|
18
19
|
getTags(): readonly Tag[];
|
19
20
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
21
|
+
getLocalization(): Localization;
|
22
|
+
getOriginalEntity(): DereferenceOperatorEntity;
|
20
23
|
ensureAllDiagnosticsReported?(): void;
|
21
24
|
}
|
22
25
|
export type DereferenceOperatorEntityDefinition = {
|
@@ -47,5 +50,7 @@ export declare class DereferenceOperatorDeclarationEntity implements Dereference
|
|
47
50
|
markedAbstract(): boolean;
|
48
51
|
getTags(): readonly Tag[];
|
49
52
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
53
|
+
getLocalization(): Localization;
|
54
|
+
getOriginalEntity(): DereferenceOperatorEntity;
|
50
55
|
ensureAllDiagnosticsReported(): void;
|
51
56
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Localization } from '../analysis/Localization.js';
|
1
2
|
import { Tag } from '../analysis/Tags.js';
|
2
3
|
import { Analyzer } from '../analysis/index.js';
|
3
4
|
import { DestructorDeclaration } from '../tree/index.js';
|
@@ -10,8 +11,10 @@ export interface DestructorEntity {
|
|
10
11
|
isHidden(): EntityHidingLevel | undefined;
|
11
12
|
markedAbstract(): boolean;
|
12
13
|
getTags(): readonly Tag[];
|
14
|
+
getLocalization(): Localization;
|
15
|
+
getOriginalEntity(): DestructorEntity;
|
13
16
|
}
|
14
|
-
type DestructorEntityDefinition = {
|
17
|
+
export type DestructorEntityDefinition = {
|
15
18
|
kind: DefinitionKind.Source;
|
16
19
|
node: DestructorDeclaration;
|
17
20
|
};
|
@@ -29,5 +32,6 @@ export declare class DestructorDeclarationEntity implements DestructorEntity {
|
|
29
32
|
isHidden(): EntityHidingLevel | undefined;
|
30
33
|
markedAbstract(): boolean;
|
31
34
|
getTags(): readonly Tag[];
|
35
|
+
getLocalization(): Localization;
|
36
|
+
getOriginalEntity(): DestructorEntity;
|
32
37
|
}
|
33
|
-
export {};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { AnalyzedTranslationPackage } from '../analysis/AnalyzedTranslationPackage.js';
|
2
|
+
import { Analyzer } from '../analysis/Analyzer.js';
|
3
|
+
import * as types from '../types/index.js';
|
4
|
+
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, EntityContext, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedPackageMemberEntity, NamedTypeMemberEntity, OperatorEntity, PackageEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageStructuredTypeEntity, PackageTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterVariableEntity, SetterEntity, StructuredTypeEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity, TypeMemberEntityContainer, TypeParameterEntity, VariantTypeEntity } from './index.js';
|
5
|
+
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
6
|
+
export declare class EntityLocalizationContext {
|
7
|
+
private readonly _analyzer;
|
8
|
+
private readonly _translationPackage;
|
9
|
+
private readonly _translatedEntities;
|
10
|
+
constructor(analyzer: Analyzer, translationPackage: AnalyzedTranslationPackage);
|
11
|
+
getLocalizedPackageEntity(entity: PackageEntity): PackageEntity;
|
12
|
+
getLocalizedPackageVariableEntity(entity: PackageVariableEntity): PackageVariableEntity;
|
13
|
+
getLocalizedFieldEntity(entity: FieldEntity): FieldEntity;
|
14
|
+
getLocalizedParameterVariableEntity(entity: ParameterVariableEntity): ParameterVariableEntity;
|
15
|
+
getLocalizedPackageVariantTypeEntity(entity: PackageVariantTypeEntity): PackageVariantTypeEntity;
|
16
|
+
getLocalizedAnonymousVariantTypeEntity(entity: AnonymousVariantTypeEntity): AnonymousVariantTypeEntity;
|
17
|
+
getLocalizedGetterEntity(entity: GetterEntity): GetterEntity;
|
18
|
+
getLocalizedSetterEntity(entity: SetterEntity): SetterEntity;
|
19
|
+
getLocalizedPackageFunctionEntity(entity: PackageFunctionEntity): PackageFunctionEntity;
|
20
|
+
getLocalizedMethodEntity(entity: MethodEntity): MethodEntity;
|
21
|
+
getLocalizedTypeParameterEntity(entity: TypeParameterEntity): TypeParameterEntity;
|
22
|
+
getLocalizedOperatorEntity(entity: OperatorEntity): OperatorEntity;
|
23
|
+
getLocalizedIndexerEntity(entity: IndexerEntity): IndexerEntity;
|
24
|
+
getLocalizedDereferenceOperatorEntity(entity: DereferenceOperatorEntity): DereferenceOperatorEntity;
|
25
|
+
getLocalizedConstructorEntity(entity: ConstructorEntity): ConstructorEntity;
|
26
|
+
getLocalizedDestructorEntity(entity: DestructorEntity): DestructorEntity;
|
27
|
+
getLocalizedPackageFunctionTypeEntity(entity: PackageFunctionTypeEntity): PackageFunctionTypeEntity;
|
28
|
+
getLocalizedAnonymousFunctionTypeEntity(entity: AnonymousFunctionTypeEntity): AnonymousFunctionTypeEntity;
|
29
|
+
getLocalizedPackageStructuredTypeEntity(entity: PackageStructuredTypeEntity): PackageStructuredTypeEntity;
|
30
|
+
getLocalizedAnonymousStructuredTypeEntity(entity: AnonymousStructuredTypeEntity): AnonymousStructuredTypeEntity;
|
31
|
+
getLocalizedAliasTypeEntity(entity: AliasTypeEntity): AliasTypeEntity;
|
32
|
+
getLocalizedTypeExtensionEntity(entity: TypeExtensionEntity): TypeExtensionEntity;
|
33
|
+
getLocalizedNamedPackageMemberEntity(entity: NamedPackageMemberEntity): NamedPackageMemberEntity;
|
34
|
+
getLocalizedNamedTypeMemberEntity(entity: NamedTypeMemberEntity): NamedTypeMemberEntity;
|
35
|
+
getLocalizedStructuredTypeEntity(entity: StructuredTypeEntity): StructuredTypeEntity;
|
36
|
+
getLocalizedFunctionTypeEntity(entity: FunctionTypeEntity): FunctionTypeEntity;
|
37
|
+
getLocalizedVariantTypeEntity(entity: VariantTypeEntity): VariantTypeEntity;
|
38
|
+
getLocalizedTypeEntity(entity: TypeEntity): TypeEntity;
|
39
|
+
getLocalizedTypeEntityWithMember(entity: TypeEntityWithMembers): TypeEntityWithMembers;
|
40
|
+
getLocalizedPackageTypeEntity(entity: PackageTypeEntity): PackageTypeEntity;
|
41
|
+
getLocalizedEntity(entity: LocalizableEntity): LocalizableEntity;
|
42
|
+
getLocalizedEntityForPossiblyNotLocalizableEntity(entity: Entity): Entity;
|
43
|
+
getLocalizedType(type: types.Type): types.Type;
|
44
|
+
getLocalizedSubstitutions(substitutions: types.Substitutions): types.Substitutions;
|
45
|
+
createLocalizedTypeEntityMembers(members: TypeEntityMembers): TypeEntityMembers;
|
46
|
+
createLocalizedTypeMemberEntityContainer(container: TypeMemberEntityContainer): TypeMemberEntityContainer;
|
47
|
+
createLocalizedEntityContext(context: EntityContext): EntityContext;
|
48
|
+
private createTranslatedEntity;
|
49
|
+
private createTranslatedTypeEntity;
|
50
|
+
private getTranslatedName;
|
51
|
+
}
|
52
|
+
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterVariableEntity | PackageVariantTypeEntity | AnonymousVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | PackageFunctionTypeEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | TypeExtensionEntity;
|
53
|
+
export declare function isLocalizableEntity(entity: Entity): entity is LocalizableEntity;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Localization } from '../analysis/Localization.js';
|
1
2
|
import { Tag } from '../analysis/Tags.js';
|
2
3
|
import { Analyzer } from '../analysis/index.js';
|
3
4
|
import { Name } from '../common/index.js';
|
@@ -9,6 +10,8 @@ export type FunctionEntity = PackageFunctionEntity | MethodEntity | NestedFuncti
|
|
9
10
|
export interface PackageFunctionEntity extends IFunctionEntity {
|
10
11
|
readonly subkind: 'package';
|
11
12
|
getContainingPackage(): PackageEntity;
|
13
|
+
getLocalization(): Localization;
|
14
|
+
getOriginalEntity(): PackageFunctionEntity;
|
12
15
|
}
|
13
16
|
export interface MethodEntity extends IFunctionEntity {
|
14
17
|
readonly subkind: 'method';
|
@@ -20,10 +23,14 @@ export interface MethodEntity extends IFunctionEntity {
|
|
20
23
|
isModifyingOwningPlainObject(): boolean;
|
21
24
|
isFunctionTypeInvokeMethod(): boolean;
|
22
25
|
getOverriddenMembers(): readonly types.Method[];
|
26
|
+
getLocalization(): Localization;
|
27
|
+
getOriginalEntity(): MethodEntity;
|
23
28
|
}
|
24
29
|
export interface NestedFunctionEntity extends IFunctionEntity {
|
25
30
|
readonly subkind: 'nested';
|
26
31
|
getContainingEntity(): Entity;
|
32
|
+
getLocalization(): Localization;
|
33
|
+
getOriginalEntity(): NestedFunctionEntity;
|
27
34
|
}
|
28
35
|
interface IFunctionEntity {
|
29
36
|
readonly kind: EntityKind.Function;
|
@@ -53,6 +60,7 @@ export declare class PackageFunctionDeclarationEntity implements PackageFunction
|
|
53
60
|
readonly subkind = "package";
|
54
61
|
private readonly _typeParameters;
|
55
62
|
private readonly _valueParameters;
|
63
|
+
private readonly _returnType;
|
56
64
|
private _modifierFlags;
|
57
65
|
private get modifierFlags();
|
58
66
|
constructor(_analyzer: Analyzer, _node: PackageFunctionDeclaration);
|
@@ -67,6 +75,8 @@ export declare class PackageFunctionDeclarationEntity implements PackageFunction
|
|
67
75
|
getTags(): readonly Tag[];
|
68
76
|
getTypeParametersArity(): number;
|
69
77
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
78
|
+
getLocalization(): Localization;
|
79
|
+
getOriginalEntity(): PackageFunctionEntity;
|
70
80
|
}
|
71
81
|
export declare class MethodDeclarationEntity implements MethodEntity {
|
72
82
|
private readonly _analyzer;
|
@@ -75,6 +85,7 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
75
85
|
readonly subkind = "method";
|
76
86
|
private readonly _typeParameters;
|
77
87
|
private readonly _valueParameters;
|
88
|
+
private readonly _returnType;
|
78
89
|
private _modifierFlags;
|
79
90
|
private get modifierFlags();
|
80
91
|
constructor(_analyzer: Analyzer, _node: MethodDeclaration);
|
@@ -96,6 +107,8 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
96
107
|
isModifyingOwningPlainObject(): boolean;
|
97
108
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
98
109
|
getOverriddenMembers(): readonly types.Method[];
|
110
|
+
getLocalization(): Localization;
|
111
|
+
getOriginalEntity(): MethodEntity;
|
99
112
|
}
|
100
113
|
export declare class NestedFunctionDeclarationEntity implements NestedFunctionEntity {
|
101
114
|
private readonly _analyzer;
|
@@ -104,6 +117,7 @@ export declare class NestedFunctionDeclarationEntity implements NestedFunctionEn
|
|
104
117
|
readonly subkind = "nested";
|
105
118
|
private readonly _typeParameters;
|
106
119
|
private readonly _valueParameters;
|
120
|
+
private readonly _returnType;
|
107
121
|
constructor(_analyzer: Analyzer, _node: NestedFunctionDeclaration);
|
108
122
|
getName(): Name;
|
109
123
|
getContainingEntity(): Entity;
|
@@ -116,6 +130,8 @@ export declare class NestedFunctionDeclarationEntity implements NestedFunctionEn
|
|
116
130
|
getTags(): readonly Tag[];
|
117
131
|
getTypeParametersArity(): number;
|
118
132
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
133
|
+
getLocalization(): Localization;
|
134
|
+
getOriginalEntity(): NestedFunctionEntity;
|
119
135
|
}
|
120
136
|
export declare class IntrinsicPackageFunctionEntity implements PackageFunctionEntity {
|
121
137
|
private readonly _name;
|
@@ -140,6 +156,8 @@ export declare class IntrinsicPackageFunctionEntity implements PackageFunctionEn
|
|
140
156
|
getTags(): readonly Tag[];
|
141
157
|
getTypeParametersArity(): number;
|
142
158
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
159
|
+
getLocalization(): Localization;
|
160
|
+
getOriginalEntity(): PackageFunctionEntity;
|
143
161
|
}
|
144
162
|
export declare class IntrinsicMethodEntity implements MethodEntity {
|
145
163
|
private readonly _name;
|
@@ -178,5 +196,7 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
178
196
|
isModifyingOwningPlainObject(): boolean;
|
179
197
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
180
198
|
getOverriddenMembers(): readonly types.Method[];
|
199
|
+
getLocalization(): Localization;
|
200
|
+
getOriginalEntity(): MethodEntity;
|
181
201
|
}
|
182
202
|
export {};
|
@@ -1,10 +1,11 @@
|
|
1
|
+
import { Localization } from '../analysis/Localization.js';
|
1
2
|
import { Tag } from '../analysis/Tags.js';
|
2
3
|
import { Analyzer } from '../analysis/index.js';
|
3
4
|
import { Name } from '../common/index.js';
|
4
5
|
import { AnonymousFunctionTypeDeclaration, PackageFunctionTypeDeclaration } from '../tree/index.js';
|
5
6
|
import * as types from '../types/index.js';
|
6
7
|
import { EntityNaming } from './EntityNaming.js';
|
7
|
-
import {
|
8
|
+
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
8
9
|
import type { PackageEntity } from './index.js';
|
9
10
|
import { BaseObjectType, DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, ParameterVariableEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
10
11
|
export type FunctionTypeEntity = PackageFunctionTypeEntity | AnonymousFunctionTypeEntity;
|
@@ -12,10 +13,14 @@ export interface PackageFunctionTypeEntity extends IFunctionTypeEntity {
|
|
12
13
|
readonly subkind: 'package';
|
13
14
|
getName(): Name;
|
14
15
|
getContainingPackage(): PackageEntity;
|
16
|
+
getLocalization(): Localization;
|
17
|
+
getOriginalEntity(): PackageFunctionTypeEntity;
|
15
18
|
}
|
16
19
|
export interface AnonymousFunctionTypeEntity extends IFunctionTypeEntity {
|
17
20
|
readonly subkind: 'anonymous';
|
18
21
|
getContainingPackage(): PackageEntity;
|
22
|
+
getLocalization(): Localization;
|
23
|
+
getOriginalEntity(): AnonymousFunctionTypeEntity;
|
19
24
|
}
|
20
25
|
interface IFunctionTypeEntity extends ITypeEntity {
|
21
26
|
readonly kind: EntityKind.Type;
|
@@ -24,7 +29,7 @@ interface IFunctionTypeEntity extends ITypeEntity {
|
|
24
29
|
getTypeParameters(): readonly TypeParameterEntity[];
|
25
30
|
getValueParameters(): readonly ParameterVariableEntity[];
|
26
31
|
getReturnType(): types.Type;
|
27
|
-
getMembers():
|
32
|
+
getMembers(): TypeEntityMembers;
|
28
33
|
getDefinition(): FunctionTypeEntityDefinition;
|
29
34
|
isAsync(): boolean;
|
30
35
|
getArity(): number;
|
@@ -52,6 +57,7 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
52
57
|
readonly subkind = "package";
|
53
58
|
private readonly _typeParameters;
|
54
59
|
private readonly _valueParameters;
|
60
|
+
private readonly _returnType;
|
55
61
|
private readonly _members;
|
56
62
|
private readonly _baseObjectType;
|
57
63
|
private _modifierFlags;
|
@@ -63,7 +69,7 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
63
69
|
getTypeParameters(): readonly TypeParameterEntity[];
|
64
70
|
getValueParameters(): readonly ParameterVariableEntity[];
|
65
71
|
getReturnType(): types.Type;
|
66
|
-
getMembers():
|
72
|
+
getMembers(): TypeEntityMembers;
|
67
73
|
getDefinition(): FunctionTypeEntityDefinition;
|
68
74
|
isAsync(): boolean;
|
69
75
|
getArity(): number;
|
@@ -72,6 +78,8 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
72
78
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
73
79
|
getBaseObjectType(): BaseObjectType;
|
74
80
|
getContext(): EntityContext;
|
81
|
+
getLocalization(): Localization;
|
82
|
+
getOriginalEntity(): PackageFunctionTypeEntity;
|
75
83
|
}
|
76
84
|
export declare class AnonymousFunctionTypeDeclarationEntity implements AnonymousFunctionTypeEntity {
|
77
85
|
private readonly _analyzer;
|
@@ -80,6 +88,7 @@ export declare class AnonymousFunctionTypeDeclarationEntity implements Anonymous
|
|
80
88
|
readonly typeEntityKind = TypeEntityKind.Function;
|
81
89
|
readonly subkind = "anonymous";
|
82
90
|
private readonly _valueParameters;
|
91
|
+
private readonly _returnType;
|
83
92
|
private readonly _members;
|
84
93
|
private readonly _baseObjectType;
|
85
94
|
constructor(_analyzer: Analyzer, _node: AnonymousFunctionTypeDeclaration);
|
@@ -87,7 +96,7 @@ export declare class AnonymousFunctionTypeDeclarationEntity implements Anonymous
|
|
87
96
|
getTypeParameters(): readonly TypeParameterEntity[];
|
88
97
|
getValueParameters(): readonly ParameterVariableEntity[];
|
89
98
|
getReturnType(): types.Type;
|
90
|
-
getMembers():
|
99
|
+
getMembers(): TypeEntityMembers;
|
91
100
|
getDefinition(): FunctionTypeEntityDefinition;
|
92
101
|
isAsync(): boolean;
|
93
102
|
getArity(): number;
|
@@ -97,6 +106,8 @@ export declare class AnonymousFunctionTypeDeclarationEntity implements Anonymous
|
|
97
106
|
getContainingPackage(): PackageEntity;
|
98
107
|
getBaseObjectType(): BaseObjectType;
|
99
108
|
getContext(): EntityContext;
|
109
|
+
getLocalization(): Localization;
|
110
|
+
getOriginalEntity(): AnonymousFunctionTypeEntity;
|
100
111
|
}
|
101
112
|
export declare class UnfinishedIntrinsicAnonymousFunctionTypeEntity {
|
102
113
|
private readonly _unfinishedValue;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Localization } from '../analysis/Localization.js';
|
2
3
|
import { GetterDeclaration } from '../analysis/NodeTypeUtils.js';
|
3
4
|
import { Tag } from '../analysis/Tags.js';
|
4
|
-
import {
|
5
|
+
import { DereferencedVariableGetterDeclaration, FieldGetterDeclaration, IndexedElementGetterDeclaration, PackageVariableGetterDeclaration } from '../tree/index.js';
|
5
6
|
import * as types from '../types/index.js';
|
6
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, IndexerEntity, PackageVariableEntity
|
7
|
+
import { DefinitionKind, DereferenceOperatorEntity, EntityHidingLevel, EntityKind, FieldEntity, IndexerEntity, PackageVariableEntity } from './index.js';
|
7
8
|
export interface GetterEntity {
|
8
9
|
readonly kind: EntityKind.Getter;
|
9
10
|
getReturnType(): types.Type;
|
@@ -12,6 +13,8 @@ export interface GetterEntity {
|
|
12
13
|
getOwningEntity(): EntityOwningGetter;
|
13
14
|
isHidden(): EntityHidingLevel | undefined;
|
14
15
|
getTags(): readonly Tag[];
|
16
|
+
getLocalization(): Localization;
|
17
|
+
getOriginalEntity(): GetterEntity;
|
15
18
|
}
|
16
19
|
export type GetterEntityDefinition = {
|
17
20
|
kind: DefinitionKind.Source;
|
@@ -35,6 +38,8 @@ export declare class PackageVariableGetterDeclarationEntity implements GetterEnt
|
|
35
38
|
getOwningEntity(): EntityOwningGetter;
|
36
39
|
isHidden(): EntityHidingLevel | undefined;
|
37
40
|
getTags(): readonly Tag[];
|
41
|
+
getLocalization(): Localization;
|
42
|
+
getOriginalEntity(): GetterEntity;
|
38
43
|
}
|
39
44
|
export declare class FieldGetterDeclarationEntity implements GetterEntity {
|
40
45
|
private readonly _analyzer;
|
@@ -49,6 +54,8 @@ export declare class FieldGetterDeclarationEntity implements GetterEntity {
|
|
49
54
|
getOwningEntity(): EntityOwningGetter;
|
50
55
|
isHidden(): EntityHidingLevel | undefined;
|
51
56
|
getTags(): readonly Tag[];
|
57
|
+
getLocalization(): Localization;
|
58
|
+
getOriginalEntity(): GetterEntity;
|
52
59
|
}
|
53
60
|
export declare class IndexedElementGetterDeclarationEntity implements GetterEntity {
|
54
61
|
private readonly _analyzer;
|
@@ -63,6 +70,8 @@ export declare class IndexedElementGetterDeclarationEntity implements GetterEnti
|
|
63
70
|
getOwningEntity(): EntityOwningGetter;
|
64
71
|
isHidden(): EntityHidingLevel | undefined;
|
65
72
|
getTags(): readonly Tag[];
|
73
|
+
getLocalization(): Localization;
|
74
|
+
getOriginalEntity(): GetterEntity;
|
66
75
|
}
|
67
76
|
export declare class DereferencedVariableGetterDeclarationEntity implements GetterEntity {
|
68
77
|
private readonly _analyzer;
|
@@ -77,6 +86,8 @@ export declare class DereferencedVariableGetterDeclarationEntity implements Gett
|
|
77
86
|
getOwningEntity(): EntityOwningGetter;
|
78
87
|
isHidden(): EntityHidingLevel | undefined;
|
79
88
|
getTags(): readonly Tag[];
|
89
|
+
getLocalization(): Localization;
|
90
|
+
getOriginalEntity(): GetterEntity;
|
80
91
|
}
|
81
92
|
export declare class IntrinsicGetterEntity implements GetterEntity {
|
82
93
|
private readonly _returnType;
|
@@ -91,4 +102,6 @@ export declare class IntrinsicGetterEntity implements GetterEntity {
|
|
91
102
|
getOwningEntity(): EntityOwningGetter;
|
92
103
|
isHidden(): EntityHidingLevel | undefined;
|
93
104
|
getTags(): readonly Tag[];
|
105
|
+
getLocalization(): Localization;
|
106
|
+
getOriginalEntity(): GetterEntity;
|
94
107
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Localization } from '../analysis/Localization.js';
|
2
3
|
import { Tag } from '../analysis/Tags.js';
|
3
4
|
import { IndexedElementGetterDeclaration, IndexedElementSetterDeclaration, ParameterDeclaration } from '../tree/index.js';
|
4
5
|
import * as types from '../types/index.js';
|
@@ -18,6 +19,8 @@ export interface IndexerEntity {
|
|
18
19
|
markedAbstract(): boolean;
|
19
20
|
getTags(): readonly Tag[];
|
20
21
|
getOverriddenMembers(): readonly types.Indexer[];
|
22
|
+
getLocalization(): Localization;
|
23
|
+
getOriginalEntity(): IndexerEntity;
|
21
24
|
ensureAllDiagnosticsReported?(): void;
|
22
25
|
}
|
23
26
|
export type IndexerEntityDefinition = {
|
@@ -57,6 +60,8 @@ export declare class IndexerDeclarationEntity implements SourceIndexerEntity {
|
|
57
60
|
markedAbstract(): boolean;
|
58
61
|
getTags(): readonly Tag[];
|
59
62
|
getOverriddenMembers(): readonly types.Indexer[];
|
63
|
+
getLocalization(): Localization;
|
64
|
+
getOriginalEntity(): IndexerEntity;
|
60
65
|
ensureAllDiagnosticsReported(): void;
|
61
66
|
private createParameters;
|
62
67
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Localization } from '../analysis/Localization.js';
|
2
3
|
import { Tag } from '../analysis/Tags.js';
|
3
4
|
import * as tree from '../tree/index.js';
|
4
5
|
import * as types from '../types/index.js';
|
@@ -8,7 +9,7 @@ export interface OperatorEntity {
|
|
8
9
|
getOperatorKind(): OperatorKind;
|
9
10
|
getValueParameters(): readonly ParameterVariableEntity[];
|
10
11
|
getReturnType(): types.Type;
|
11
|
-
getDefinition():
|
12
|
+
getDefinition(): OperatorEntityDefinition;
|
12
13
|
getContainer(): TypeMemberEntityContainer;
|
13
14
|
isStatic(): boolean;
|
14
15
|
isOverride(): boolean;
|
@@ -17,8 +18,10 @@ export interface OperatorEntity {
|
|
17
18
|
isHidden(): EntityHidingLevel | undefined;
|
18
19
|
getTags(): readonly Tag[];
|
19
20
|
getOverriddenMembers(): readonly types.Operator[];
|
21
|
+
getLocalization(): Localization;
|
22
|
+
getOriginalEntity(): OperatorEntity;
|
20
23
|
}
|
21
|
-
export type
|
24
|
+
export type OperatorEntityDefinition = {
|
22
25
|
kind: DefinitionKind.Source;
|
23
26
|
node: tree.OperatorDeclaration;
|
24
27
|
};
|
@@ -28,13 +31,14 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
28
31
|
readonly kind = EntityKind.Operator;
|
29
32
|
private readonly _operatorKind;
|
30
33
|
private readonly _valueParameters;
|
34
|
+
private readonly _returnType;
|
31
35
|
private _modifierFlags;
|
32
36
|
private get modifierFlags();
|
33
37
|
constructor(_analyzer: Analyzer, _node: tree.OperatorDeclaration);
|
34
38
|
getOperatorKind(): OperatorKind;
|
35
39
|
getValueParameters(): readonly ParameterVariableEntity[];
|
36
40
|
getReturnType(): types.Type;
|
37
|
-
getDefinition():
|
41
|
+
getDefinition(): OperatorEntityDefinition;
|
38
42
|
getContainer(): TypeMemberEntityContainer;
|
39
43
|
isStatic(): boolean;
|
40
44
|
markedBasic(): boolean;
|
@@ -43,5 +47,7 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
43
47
|
isHidden(): EntityHidingLevel | undefined;
|
44
48
|
getTags(): readonly Tag[];
|
45
49
|
getOverriddenMembers(): readonly types.Operator[];
|
50
|
+
getLocalization(): Localization;
|
51
|
+
getOriginalEntity(): OperatorEntity;
|
46
52
|
private convertSyntaxOperatorKind;
|
47
53
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Localization } from '../analysis/Localization.js';
|
2
3
|
import { Name } from '../common/index.js';
|
3
4
|
import type { Identifier } from '../tree/index.js';
|
4
5
|
import { PackageImport } from '../tree/index.js';
|
@@ -10,6 +11,8 @@ export interface PackageAliasEntity {
|
|
10
11
|
getPackage(): PackageEntity | undefined;
|
11
12
|
isHidden(): EntityHidingLevel | undefined;
|
12
13
|
getContainingPackage(): PackageEntity;
|
14
|
+
getLocalization(): Localization;
|
15
|
+
getOriginalEntity(): PackageAliasEntity;
|
13
16
|
}
|
14
17
|
type PackageAliasEntityDefinition = {
|
15
18
|
kind: DefinitionKind.Source;
|
@@ -26,5 +29,7 @@ export declare class AliasedPackageImportEntity implements PackageAliasEntity {
|
|
26
29
|
getPackage(): PackageEntity | undefined;
|
27
30
|
isHidden(): EntityHidingLevel | undefined;
|
28
31
|
getContainingPackage(): PackageEntity;
|
32
|
+
getLocalization(): Localization;
|
33
|
+
getOriginalEntity(): PackageAliasEntity;
|
29
34
|
}
|
30
35
|
export {};
|