@artel/artc 0.6.26021 → 0.6.26023
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 +36 -4
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +188 -323
- package/build/{chunk-NKLHVPAI.js → chunk-HAB6M5SG.js} +1 -1
- package/build/{chunk-BUGHCVWW.js → chunk-IMUSLOYE.js} +2 -2
- package/build/{chunk-DWHH53A7.js → chunk-RQOGIK5O.js} +3996 -3554
- package/build/types/analysis/AccessibilityCheck.d.ts +2 -1
- package/build/types/analysis/Analyzer.d.ts +32 -25
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +1 -0
- package/build/types/analysis/DialectSpecificBoundTypeMemberLookup.d.ts +18 -0
- package/build/types/analysis/ReferencedPackagesCollector.d.ts +1 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +2 -6
- package/build/types/analysis/SpecialNameKey.d.ts +9 -3
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +2 -0
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +1 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +12 -10
- package/build/types/analysis/a/Analyzer.d.ts +8 -14
- package/build/types/analysis/a/AutotypeCallExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/a/BaseExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/a/CallExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/a/ConstructorCallResolver.d.ts +6 -6
- package/build/types/analysis/a/ModifierValidator.d.ts +33 -18
- package/build/types/analysis/a/OwnAndBaseConstructorCallsChecker.d.ts +4 -4
- package/build/types/analysis/a/OwnConstructorCallExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/a/ReductionSourceMemberFinder.d.ts +0 -2
- package/build/types/analysis/a/ReservedNameDictionary.d.ts +3 -1
- package/build/types/analysis/a/SourceFileAnalyzer.d.ts +1 -0
- package/build/types/analysis/a/TagMeaning.d.ts +3 -3
- package/build/types/analysis/a/TypeMemberLookup.d.ts +31 -0
- package/build/types/analysis/a/semantic-context/SemanticContextBase.d.ts +9 -8
- package/build/types/analysis/a/semantic-context/TypeSemanticContext.d.ts +5 -4
- package/build/types/analysis/m/TypeMemberLookup.d.ts +31 -0
- package/build/types/common/ArrayUtils.d.ts +7 -0
- package/build/types/common/LocalizationHelperA.d.ts +8 -7
- package/build/types/common/Range.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +115 -112
- package/build/types/emitter/EntityMap.d.ts +0 -2
- package/build/types/entities/Entity.d.ts +2 -4
- package/build/types/entities/EntityKind.d.ts +4 -7
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -4
- package/build/types/entities/Tag.d.ts +2 -2
- package/build/types/entities/TypeEntityMembers.d.ts +19 -10
- package/build/types/entities/TypeMemberEntity.d.ts +23 -16
- package/build/types/entities/TypeMemberKindFlags.d.ts +14 -0
- package/build/types/entities/index.d.ts +3 -0
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +17 -24
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +34 -17
- package/build/types/entities/interfaces/DestructorEntity.d.ts +17 -17
- package/build/types/entities/interfaces/FunctionEntity.d.ts +65 -17
- package/build/types/entities/interfaces/IndexerEntity.d.ts +36 -18
- package/build/types/entities/interfaces/OperatorEntity.d.ts +12 -0
- package/build/types/entities/interfaces/OrdinaryMethodEntity.d.ts +13 -0
- package/build/types/entities/interfaces/VariableEntity.d.ts +48 -15
- package/build/types/entities/interfaces/a/ConstructorEntityA.d.ts +17 -0
- package/build/types/entities/interfaces/a/DestructorEntityA.d.ts +16 -0
- package/build/types/entities/interfaces/a/index.d.ts +2 -0
- package/build/types/entities/interfaces/index.d.ts +2 -0
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +14 -17
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +3 -9
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +4 -4
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +1 -3
- package/build/types/entities/source/a/SourceConstructorEntity.d.ts +7 -7
- package/build/types/entities/source/a/SourceDereferenceOperatorEntity.d.ts +2 -3
- package/build/types/entities/source/a/SourceDestructorEntity.d.ts +6 -7
- package/build/types/entities/source/a/SourceFunctionEntity.d.ts +42 -6
- package/build/types/entities/source/a/SourceIndexerEntity.d.ts +2 -3
- package/build/types/entities/source/a/SourceReducedTypeEntity.d.ts +1 -3
- package/build/types/entities/source/a/SourceStructuredTypeEntity.d.ts +1 -3
- package/build/types/entities/source/a/SourceVariableEntity.d.ts +3 -9
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +4 -30
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +3 -4
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +8 -9
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +2 -5
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +2 -4
- package/build/types/entities/translated/index.d.ts +0 -1
- package/build/types/entities/translated/source/a/SourceTranslatedConstructorEntity.d.ts +6 -4
- package/build/types/entities/translated/source/a/SourceTranslatedDestructorEntity.d.ts +7 -4
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionEntity.d.ts +3 -2
- package/build/types/services/a/CompletionService.d.ts +0 -1
- package/build/types/services/a/DisplayService.d.ts +1 -4
- package/build/types/services/a/SourceFileItemsService.d.ts +0 -1
- package/build/types/services/a/signature-help/SignatureWithParameters.d.ts +2 -2
- package/build/types/services/common/display/BaseDisplayService.d.ts +0 -3
- package/build/types/services/common/display/DisplayService.d.ts +0 -3
- package/build/types/services/common/display/Types.d.ts +7 -45
- package/build/types/services/common/node-semantic-info/Types.d.ts +1 -6
- package/build/types/services/common/references/ReferencesService.d.ts +0 -1
- package/build/types/services/common/source-generation/EntityToSyntax.d.ts +0 -2
- package/build/types/tree/a/SyntaxToCode.d.ts +1 -3
- package/build/types/ts-interop/Entities.d.ts +204 -222
- package/build/types/ts-interop/TypeEntities.d.ts +145 -157
- package/build/types/types/StructuredType.d.ts +3 -0
- package/build/types/types/TypeMembers.d.ts +11 -37
- package/package.json +1 -1
- package/build/types/analysis/a/NodeTypeUtils.d.ts +0 -39
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +0 -27
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Name } from '../../common/index.js';
|
|
2
|
+
import { TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
|
3
|
+
import * as types from '../../types/index.js';
|
|
4
|
+
import { Analyzer } from '../Analyzer.js';
|
|
5
|
+
import { TypeMemberLookupContext, TypeMemberLookupOptions } from '../TypeMemberLookup.js';
|
|
6
|
+
export declare class TypeMemberLookupA {
|
|
7
|
+
private readonly typeMemberLookup;
|
|
8
|
+
private constructor();
|
|
9
|
+
static ofType(analyzer: Analyzer, type: types.Type): TypeMemberLookupA;
|
|
10
|
+
static ofTypeEntity(analyzer: Analyzer, entity: TypeEntity): TypeMemberLookupA;
|
|
11
|
+
static ofTypeExtension(analyzer: Analyzer, typeExtension: TypeExtensionEntity): TypeMemberLookupA;
|
|
12
|
+
getNamedMembers(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.NamedTypeMember[];
|
|
13
|
+
getNamedMembersByName(name: Name, context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.NamedTypeMember[];
|
|
14
|
+
getConstructors(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.Method[];
|
|
15
|
+
getDestructors(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.Method[];
|
|
16
|
+
getIndexers(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.Indexer[];
|
|
17
|
+
getDereferenceOperators(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.DereferenceOperator[];
|
|
18
|
+
}
|
|
19
|
+
export declare class BoundTypeMemberLookupA {
|
|
20
|
+
private readonly typeMemberLookup;
|
|
21
|
+
private constructor();
|
|
22
|
+
static ofType(analyzer: Analyzer, type: types.Type, context: TypeMemberLookupContext | undefined, options: TypeMemberLookupOptions): BoundTypeMemberLookupA;
|
|
23
|
+
static ofTypeEntity(analyzer: Analyzer, entity: TypeEntity, context: TypeMemberLookupContext | undefined, options: TypeMemberLookupOptions): BoundTypeMemberLookupA;
|
|
24
|
+
static ofTypeExtension(analyzer: Analyzer, typeExtension: TypeExtensionEntity, context: TypeMemberLookupContext | undefined, options: TypeMemberLookupOptions): BoundTypeMemberLookupA;
|
|
25
|
+
getNamedMembers(): readonly types.NamedTypeMember[];
|
|
26
|
+
getNamedMembersByName(name: Name): readonly types.NamedTypeMember[];
|
|
27
|
+
getConstructors(): readonly types.Method[];
|
|
28
|
+
getDestructors(): readonly types.Method[];
|
|
29
|
+
getIndexers(): readonly types.Indexer[];
|
|
30
|
+
getDereferenceOperators(): readonly types.DereferenceOperator[];
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Name } from '../../../common/index.js';
|
|
2
|
-
import { AnonymousFunctionEntity,
|
|
2
|
+
import { AnonymousFunctionEntity, FunctionEntity, FunctionTypeEntity, GetterEntity, MethodEntity, NamedFunctionEntity, PackageEntity, ParameterEntity, SetterEntity, TextKey, TextTranslationEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity } from '../../../entities/index.js';
|
|
3
3
|
import { SourceFileA } from '../../../project/SourceFile.js';
|
|
4
4
|
import * as tree from '../../../tree/a/index.js';
|
|
5
5
|
import * as types from '../../../types/index.js';
|
|
@@ -44,12 +44,13 @@ export declare namespace SubprogramInfo {
|
|
|
44
44
|
readonly kind = "function";
|
|
45
45
|
private readonly analyzer;
|
|
46
46
|
private readonly node;
|
|
47
|
+
private readonly entity;
|
|
47
48
|
constructor(analyzer: Analyzer, node: tree.FunctionDeclaration);
|
|
48
49
|
getReturnType(): types.Type | undefined;
|
|
49
50
|
isGenerator(): boolean;
|
|
50
51
|
allowsAsyncCalls(): boolean;
|
|
51
52
|
getNode(): tree.FunctionDeclaration;
|
|
52
|
-
getEntity():
|
|
53
|
+
getEntity(): NamedFunctionEntity;
|
|
53
54
|
}
|
|
54
55
|
export class Constructor implements ISubprogramInfo {
|
|
55
56
|
readonly kind = "constructor";
|
|
@@ -59,7 +60,7 @@ export declare namespace SubprogramInfo {
|
|
|
59
60
|
getReturnType(): types.Type | undefined;
|
|
60
61
|
isGenerator(): boolean;
|
|
61
62
|
allowsAsyncCalls(): boolean;
|
|
62
|
-
getEntity():
|
|
63
|
+
getEntity(): MethodEntity;
|
|
63
64
|
getNode(): tree.ConstructorDeclaration;
|
|
64
65
|
}
|
|
65
66
|
export class Destructor implements ISubprogramInfo {
|
|
@@ -71,7 +72,7 @@ export declare namespace SubprogramInfo {
|
|
|
71
72
|
isGenerator(): boolean;
|
|
72
73
|
allowsAsyncCalls(): boolean;
|
|
73
74
|
getNode(): tree.DestructorDeclaration;
|
|
74
|
-
getEntity():
|
|
75
|
+
getEntity(): MethodEntity;
|
|
75
76
|
}
|
|
76
77
|
export class Getter implements ISubprogramInfo {
|
|
77
78
|
readonly kind = "getter";
|
|
@@ -82,7 +83,7 @@ export declare namespace SubprogramInfo {
|
|
|
82
83
|
isGenerator(): boolean;
|
|
83
84
|
allowsAsyncCalls(): boolean;
|
|
84
85
|
getNode(): tree.GetterDeclaration;
|
|
85
|
-
getEntity(): GetterEntity
|
|
86
|
+
getEntity(): GetterEntity;
|
|
86
87
|
}
|
|
87
88
|
export class Setter implements ISubprogramInfo {
|
|
88
89
|
readonly kind = "setter";
|
|
@@ -93,7 +94,7 @@ export declare namespace SubprogramInfo {
|
|
|
93
94
|
isGenerator(): boolean;
|
|
94
95
|
allowsAsyncCalls(): boolean;
|
|
95
96
|
getNode(): tree.SetterDeclaration;
|
|
96
|
-
getEntity(): SetterEntity
|
|
97
|
+
getEntity(): SetterEntity;
|
|
97
98
|
}
|
|
98
99
|
export class PackageConstructor implements ISubprogramInfo {
|
|
99
100
|
readonly kind = "package-constructor";
|
|
@@ -139,7 +140,7 @@ export declare namespace SubprogramInfo {
|
|
|
139
140
|
isGenerator(): boolean;
|
|
140
141
|
allowsAsyncCalls(): boolean;
|
|
141
142
|
getNode(): tree.TextTranslationFunctionDeclaration;
|
|
142
|
-
getEntity(): TextTranslationEntity
|
|
143
|
+
getEntity(): TextTranslationEntity;
|
|
143
144
|
}
|
|
144
145
|
interface ISubprogramInfo {
|
|
145
146
|
getReturnType(): types.Type | undefined;
|
|
@@ -150,7 +151,7 @@ export declare namespace SubprogramInfo {
|
|
|
150
151
|
}
|
|
151
152
|
export {};
|
|
152
153
|
}
|
|
153
|
-
export type SubprogramInfoEntity = GetterEntity | SetterEntity | FunctionEntity |
|
|
154
|
+
export type SubprogramInfoEntity = GetterEntity | SetterEntity | FunctionEntity | FunctionTypeEntity | TextTranslationEntity;
|
|
154
155
|
export type TypeOrTypeExtension = TypeOrTypeExtension.Type | TypeOrTypeExtension.TypeExtension;
|
|
155
156
|
export declare namespace TypeOrTypeExtension {
|
|
156
157
|
export class Type implements ITypeOrTypeExtension {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Name } from '../../../common/index.js';
|
|
2
2
|
import * as tree from '../../../tree/a/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { TypeMemberLookupContext } from '../../TypeMemberLookup.js';
|
|
4
4
|
import { Analyzer } from '../Analyzer.js';
|
|
5
|
+
import { TypeMemberLookupA } from '../TypeMemberLookup.js';
|
|
5
6
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
6
7
|
import { SemanticContext } from './SemanticContext.js';
|
|
7
8
|
import { NamedDeclarationLookupResult, ObjectVariableInfo, SemanticContextLookupState, SubprogramInfo, TypeOrTypeExtension } from './SemanticContextBase.js';
|
|
@@ -45,7 +46,7 @@ export declare class TypeParametersOfTypeSemanticContext extends SemanticContext
|
|
|
45
46
|
protected createMemberEntitiesForTypeLookup(): readonly MemberOfSemanticContextValidatingNameConflictsForTypeLookup[];
|
|
46
47
|
}
|
|
47
48
|
declare abstract class TypeOrExtensionBodySemanticContext extends SemanticContextWithParent {
|
|
48
|
-
protected abstract memberLookup:
|
|
49
|
+
protected abstract memberLookup: TypeMemberLookupA;
|
|
49
50
|
getOwnTypesOrContainersWithTypes(_initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
50
51
|
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
51
52
|
getOwnNamedDeclarations(initialContext: SemanticContext, noInstanceMembers: boolean, lookupState: SemanticContextLookupState): readonly NamedDeclaration[];
|
|
@@ -62,7 +63,7 @@ export declare class TypeBodySemanticContext extends TypeOrExtensionBodySemantic
|
|
|
62
63
|
private readonly analyzer;
|
|
63
64
|
private readonly node;
|
|
64
65
|
private readonly memberLookup_;
|
|
65
|
-
protected get memberLookup():
|
|
66
|
+
protected get memberLookup(): TypeMemberLookupA;
|
|
66
67
|
constructor(analyzer: Analyzer, node: TypeDeclarationWithMemberBlock, outer: TypeBodySemanticContextParent);
|
|
67
68
|
private getTypeEntity;
|
|
68
69
|
}
|
|
@@ -74,7 +75,7 @@ export declare class TypeExtensionBodySemanticContext extends TypeOrExtensionBod
|
|
|
74
75
|
private readonly node;
|
|
75
76
|
private readonly memberLookup_;
|
|
76
77
|
private readonly typeMemberLookupContext;
|
|
77
|
-
protected get memberLookup():
|
|
78
|
+
protected get memberLookup(): TypeMemberLookupA;
|
|
78
79
|
constructor(analyzer: Analyzer, node: tree.TypeExtensionDeclaration, outer: SourceFileSemanticContext);
|
|
79
80
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension;
|
|
80
81
|
getObjectVariableInfo(): ObjectVariableInfo | undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Name } from '../../common/index.js';
|
|
2
|
+
import { TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
|
3
|
+
import * as types from '../../types/index.js';
|
|
4
|
+
import { Analyzer } from '../Analyzer.js';
|
|
5
|
+
import { TypeMemberLookupContext, TypeMemberLookupOptions } from '../TypeMemberLookup.js';
|
|
6
|
+
export declare class TypeMemberLookupM {
|
|
7
|
+
private readonly typeMemberLookup;
|
|
8
|
+
private constructor();
|
|
9
|
+
static ofType(analyzer: Analyzer, type: types.Type): TypeMemberLookupM;
|
|
10
|
+
static ofTypeEntity(analyzer: Analyzer, entity: TypeEntity): TypeMemberLookupM;
|
|
11
|
+
static ofTypeExtension(analyzer: Analyzer, typeExtension: TypeExtensionEntity): TypeMemberLookupM;
|
|
12
|
+
getNamedMembers(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.NamedTypeMember[];
|
|
13
|
+
getNamedMembersByName(name: Name, context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.NamedTypeMember[];
|
|
14
|
+
getConstructors(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.Method[];
|
|
15
|
+
getDestructors(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.Method[];
|
|
16
|
+
getIndexers(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.Indexer[];
|
|
17
|
+
getDereferenceOperators(context: TypeMemberLookupContext | undefined, options?: TypeMemberLookupOptions): readonly types.DereferenceOperator[];
|
|
18
|
+
}
|
|
19
|
+
export declare class BoundTypeMemberLookupM {
|
|
20
|
+
private readonly typeMemberLookup;
|
|
21
|
+
private constructor();
|
|
22
|
+
static ofType(analyzer: Analyzer, type: types.Type, context: TypeMemberLookupContext | undefined, options: TypeMemberLookupOptions): BoundTypeMemberLookupM;
|
|
23
|
+
static ofTypeEntity(analyzer: Analyzer, entity: TypeEntity, context: TypeMemberLookupContext | undefined, options: TypeMemberLookupOptions): BoundTypeMemberLookupM;
|
|
24
|
+
static ofTypeExtension(analyzer: Analyzer, typeExtension: TypeExtensionEntity, context: TypeMemberLookupContext | undefined, options: TypeMemberLookupOptions): BoundTypeMemberLookupM;
|
|
25
|
+
getNamedMembers(): readonly types.NamedTypeMember[];
|
|
26
|
+
getNamedMembersByName(name: Name): readonly types.NamedTypeMember[];
|
|
27
|
+
getConstructors(): readonly types.Method[];
|
|
28
|
+
getDestructors(): readonly types.Method[];
|
|
29
|
+
getIndexers(): readonly types.Indexer[];
|
|
30
|
+
getDereferenceOperators(): readonly types.DereferenceOperator[];
|
|
31
|
+
}
|
|
@@ -12,6 +12,13 @@ export declare class ArrayUtils {
|
|
|
12
12
|
static compareWithComparatorIgnoringOrder<T1, T2>(array1: readonly T1[], array2: readonly T2[], comparator: (e1: T1, e2: T2) => boolean): boolean;
|
|
13
13
|
static compareWithEquals<T extends WithEqualsMethod<T>>(array1: readonly T[], array2: readonly T[]): boolean;
|
|
14
14
|
static compareWithComparator<T1, T2>(array1: readonly T1[], array2: readonly T2[], comparator: (e1: T1, e2: T2) => boolean): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Отличается от Array.filter тем, что если все элементы массива удовлетворяют условию, возвращается исходный массив.
|
|
17
|
+
*/
|
|
18
|
+
static filter<T, S extends T>(array: T[], fn: (value: T, index: number) => value is S): S[];
|
|
19
|
+
static filter<T, S extends T>(array: readonly T[], fn: (value: T, index: number) => value is S): readonly S[];
|
|
20
|
+
static filter<T>(array: T[], fn: (value: T, index: number) => boolean): T[];
|
|
21
|
+
static filter<T>(array: readonly T[], fn: (value: T, index: number) => boolean): readonly T[];
|
|
15
22
|
}
|
|
16
23
|
export type WithEqualsMethod<T> = {
|
|
17
24
|
equals(t: T): boolean;
|
|
@@ -4,13 +4,14 @@ import { Keyword } from '../parser/a/KeywordDictionary.js';
|
|
|
4
4
|
import { KeywordFlags } from '../tree/a/KeywordFlags.js';
|
|
5
5
|
import { KeywordKind } from '../tree/a/KeywordKind.js';
|
|
6
6
|
import { OperatorKind as SyntacticalOperatorKind } from '../tree/a/OperatorKind.js';
|
|
7
|
-
import { PackageDialect, PackageLocale } from './index.js';
|
|
8
7
|
import { LocalizationHelper } from './LocalizationHelper.js';
|
|
8
|
+
import { Name } from './Name.js';
|
|
9
|
+
import { PackageLocale } from './PackageLocale.js';
|
|
9
10
|
export declare class LocalizationHelperA extends LocalizationHelper {
|
|
10
|
-
static localizeKeyword(kind: KeywordKind, locale: PackageLocale
|
|
11
|
-
static localizeKeywordAndTakeFirst(kind: KeywordKind, locale: PackageLocale
|
|
12
|
-
static localizeKeywordAndTakeBest(kind: KeywordKind, locale: PackageLocale,
|
|
13
|
-
static localizeReservedName(kind: ReservedNameKind, locale: PackageLocale):
|
|
14
|
-
static localizeOperatorKind(kind: OperatorKind, locale: PackageLocale
|
|
15
|
-
static localizeSyntacticalOperatorKind(kind: SyntacticalOperatorKind, locale: PackageLocale
|
|
11
|
+
static localizeKeyword(kind: KeywordKind, locale: PackageLocale): readonly Keyword[];
|
|
12
|
+
static localizeKeywordAndTakeFirst(kind: KeywordKind, locale: PackageLocale): string;
|
|
13
|
+
static localizeKeywordAndTakeBest(kind: KeywordKind, locale: PackageLocale, preferredFlags?: KeywordFlags): string;
|
|
14
|
+
static localizeReservedName(kind: ReservedNameKind, locale: PackageLocale): Name;
|
|
15
|
+
static localizeOperatorKind(kind: OperatorKind, locale: PackageLocale): string;
|
|
16
|
+
static localizeSyntacticalOperatorKind(kind: SyntacticalOperatorKind, locale: PackageLocale): string;
|
|
16
17
|
}
|
|
@@ -155,118 +155,121 @@ export declare enum DiagnosticCode {
|
|
|
155
155
|
PackageAliasWithTheSameNameAlreadyExits = 2116,
|
|
156
156
|
TypeAlreadyContainsDeclarationWithTheSameName = 2117,
|
|
157
157
|
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 2118,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
158
|
+
TypeAlreadyContainsOperatorWithTheSameNameAndParameterTypes = 2119,
|
|
159
|
+
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 2120,
|
|
160
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 2121,
|
|
161
|
+
TypeCanHaveOnlyOneDestructor = 2122,
|
|
162
|
+
TypeCanHaveOnlyOneDereferenceOperator = 2123,
|
|
163
|
+
VariableIsUsedBeforeItsDeclaration = 2124,
|
|
164
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 2125,
|
|
165
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 2126,
|
|
166
|
+
WriteFunctionHasNoCorrespondingReadFunction = 2127,
|
|
167
|
+
TypeCannotHaveMultipleBaseObjectTypes = 2128,
|
|
168
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 2129,
|
|
169
|
+
StructureCannotBeUsedAsBaseType = 2130,
|
|
170
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 2131,
|
|
171
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 2132,
|
|
172
|
+
StructureCanHaveOnlyAspectsAsBaseTypes = 2133,
|
|
173
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 2134,
|
|
174
|
+
ModifierListAlreadyContains0Modifier = 2135,
|
|
175
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 2136,
|
|
176
|
+
_0ModifierIsNotAllowedHere = 2137,
|
|
177
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 2138,
|
|
178
|
+
PackageConstructorDeclarationCannotHaveModifiers = 2139,
|
|
179
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 2140,
|
|
180
|
+
TranslationsCannotHaveModifiers = 2141,
|
|
181
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 2142,
|
|
182
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 2143,
|
|
183
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 2144,
|
|
184
|
+
_0ModifierCannotBeUsedWith1Modifier = 2145,
|
|
185
|
+
VariantValueCannotBeHidden = 2146,
|
|
186
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 2147,
|
|
187
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 2148,
|
|
188
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 2149,
|
|
189
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 2150,
|
|
190
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 2151,
|
|
191
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 2152,
|
|
192
|
+
DeclarationConflictsWithBaseTypeMember0 = 2153,
|
|
193
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 2154,
|
|
194
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 2155,
|
|
195
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 2156,
|
|
196
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 2157,
|
|
197
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2158,
|
|
198
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2159,
|
|
199
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2160,
|
|
200
|
+
OverridingFieldMustMustBeMutableToMatchBaseField0 = 2161,
|
|
201
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2162,
|
|
202
|
+
TypeDoesNotImplementMember0 = 2163,
|
|
203
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2164,
|
|
204
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2165,
|
|
205
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2166,
|
|
206
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable = 2167,
|
|
207
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2168,
|
|
208
|
+
CannotAccessAbstractMemberOfBaseType = 2169,
|
|
209
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2170,
|
|
210
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 2171,
|
|
211
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 2172,
|
|
212
|
+
ThisCallCausesOwnConstructorCallCycle = 2173,
|
|
213
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2174,
|
|
214
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2175,
|
|
215
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 2176,
|
|
216
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2177,
|
|
217
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2178,
|
|
218
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 2179,
|
|
219
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2180,
|
|
220
|
+
CannotInferTypeArguments = 2181,
|
|
221
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2182,
|
|
222
|
+
ImmutableVariablesBustBeInitialized = 2183,
|
|
223
|
+
VariableTypeIsNotSpecified = 2184,
|
|
224
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2185,
|
|
225
|
+
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2186,
|
|
226
|
+
RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 2187,
|
|
227
|
+
RequiredParametersCannotFollowOptionalParameters = 2188,
|
|
228
|
+
ExpressionCannotBeReferenced = 2189,
|
|
229
|
+
TextIsMissingAmongPrimaryTextTranslationDefinitions = 2190,
|
|
230
|
+
DeclarationHasAlreadyBeenTranslated = 2191,
|
|
231
|
+
TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 2192,
|
|
232
|
+
TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 2193,
|
|
233
|
+
TranslatedOperatorMustBeNamed0 = 2194,
|
|
234
|
+
TranslationOfFunctionTypeMustIncludeParameterList = 2195,
|
|
235
|
+
OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 2196,
|
|
236
|
+
Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 2197,
|
|
237
|
+
TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 2198,
|
|
238
|
+
TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 2199,
|
|
239
|
+
TextTranslationAlreadyExistsInTheTextTranslationPackage = 2200,
|
|
240
|
+
PackageDoesNotContainImplementationOf0 = 2201,
|
|
241
|
+
TypeDoesNotContainImplementationOf0 = 2202,
|
|
242
|
+
ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 = 2203,
|
|
243
|
+
ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 = 2204,
|
|
244
|
+
ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 = 2205,
|
|
245
|
+
ImplementationTypeMustBeBasicToMatchInterfacePackageType0 = 2206,
|
|
246
|
+
ImplementationTypeMustNotBeAbstractToMatchInterfacePackageType0 = 2207,
|
|
247
|
+
ImplementationTypeMemberMustBeBasicToMatchInterfacePackageTypeMember0 = 2208,
|
|
248
|
+
ImplementationTypeMemberMustNotBeAbstractToMatchInterfacePackageTypeMember0 = 2209,
|
|
249
|
+
ImplementationTypeMemberMustHaveWriteFunctionToMatchInterfacePackageTypeMember0 = 2210,
|
|
250
|
+
BreakLoopAndContinueLoopStatementsCanOnlyBeUsedInsideALoop = 2211,
|
|
251
|
+
BreakLoopAndContinueLoopStatementsCannotBeUsedInFinallyBlock = 2212,
|
|
252
|
+
TheCodeWasExpectedToBeUnreachable = 2213,
|
|
253
|
+
CorrespondingReductionSourceTypeMemberNotFound = 2214,
|
|
254
|
+
OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified = 2215,
|
|
255
|
+
ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember = 2216,
|
|
256
|
+
ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember = 2217,
|
|
257
|
+
ReducedTypeFieldMustBeImmutableToMatchReductionSourceField = 2218,
|
|
258
|
+
ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod = 2219,
|
|
259
|
+
ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod = 2220,
|
|
260
|
+
ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember = 2221,
|
|
261
|
+
StructureFieldsMustBeImmutable = 2222,
|
|
262
|
+
StructureFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable = 2223,
|
|
263
|
+
FieldTypeCausesRecursiveStructureLayout = 2224,
|
|
264
|
+
QuestionOperatorCanBeUsedOnlyInSpecificExpressions = 2225,
|
|
265
|
+
BaseTypeListMustNotBeEmpty = 2226,
|
|
266
|
+
ObjectParameterMustBeTheFirstParameter = 2227,
|
|
267
|
+
ObjectParameterCannotBeDeclaredHere = 2228,
|
|
268
|
+
OperatorCannotBeAsync = 2229,
|
|
269
|
+
OperatorCannotBeStatic = 2230,
|
|
270
|
+
OperatorCannotContainTypeParameterDeclarations = 2231,
|
|
271
|
+
TypeNameExpectedAtLastQualifier = 2232,
|
|
272
|
+
ExpressionsWithTypes0And1CannotBeCompared = 2233,
|
|
270
273
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
|
|
271
274
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 3001,
|
|
272
275
|
ProgramWithoutMainPackageCannotBeCompiled = 3002,
|
|
@@ -19,8 +19,6 @@ export declare class EntityMap {
|
|
|
19
19
|
constructor(analyzer: Analyzer, targetPlatform: PlatformKind);
|
|
20
20
|
getVariableEntity(entity: analyzerEntities.VariableEntity): emitterEntities.VariableEntity;
|
|
21
21
|
getNamedFunctionEntity(entity: analyzerEntities.NamedFunctionEntity): emitterEntities.FunctionEntity;
|
|
22
|
-
getConstructorEntity(entity: analyzerEntities.ConstructorEntity): emitterEntities.FunctionEntity;
|
|
23
|
-
getDestructorEntity(entity: analyzerEntities.DestructorEntity): emitterEntities.FunctionEntity;
|
|
24
22
|
getGetterEntity(entity: analyzerEntities.GetterEntity): emitterEntities.FunctionEntity;
|
|
25
23
|
getSetterEntity(entity: analyzerEntities.SetterEntity): emitterEntities.FunctionEntity;
|
|
26
24
|
getStructuredTypeEntity(entity: analyzerEntities.StructuredTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AliasTypeEntity } from './interfaces/AliasTypeEntity.js';
|
|
2
|
-
import { ConstructorEntity } from './interfaces/ConstructorEntity.js';
|
|
3
2
|
import { DereferenceOperatorEntity } from './interfaces/DereferenceOperatorEntity.js';
|
|
4
|
-
import { DestructorEntity } from './interfaces/DestructorEntity.js';
|
|
5
3
|
import { FunctionEntity, MethodEntity, NestedFunctionEntity, PackageFunctionEntity } from './interfaces/FunctionEntity.js';
|
|
6
4
|
import { AnonymousFunctionTypeEntity, FunctionTypeEntity } from './interfaces/FunctionTypeEntity.js';
|
|
7
5
|
import { GetterEntity } from './interfaces/GetterEntity.js';
|
|
@@ -22,7 +20,7 @@ export declare const enum DefinitionKind {
|
|
|
22
20
|
Intrinsic = 1,
|
|
23
21
|
TypeScript = 2
|
|
24
22
|
}
|
|
25
|
-
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity |
|
|
23
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
26
24
|
export type PackageTypeEntity = PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity;
|
|
27
25
|
export declare function isPackageTypeEntity(entity: Entity): entity is PackageTypeEntity;
|
|
28
26
|
export type NamedTypeEntity = PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeParameterEntity;
|
|
@@ -50,7 +48,7 @@ export type AccessorEntity = GetterEntity | SetterEntity;
|
|
|
50
48
|
export declare function isAccessorEntity(entity: Entity): entity is AccessorEntity;
|
|
51
49
|
export type EntityWithTypeParameters = EntityContainingTypeParameter;
|
|
52
50
|
export declare function isEntityWithTypeParameters(entity: Entity): entity is EntityWithTypeParameters;
|
|
53
|
-
export type EntityWithParameters =
|
|
51
|
+
export type EntityWithParameters = EntityContainingParameter;
|
|
54
52
|
export declare function isEntityWithParameters(entity: Entity): entity is EntityWithParameters;
|
|
55
53
|
export type NamedFunctionEntity = PackageFunctionEntity | MethodEntity | NestedFunctionEntity;
|
|
56
54
|
export declare function isNamedFunctionEntity(entity: Entity): entity is NamedFunctionEntity;
|
|
@@ -6,11 +6,8 @@ export declare const enum EntityKind {
|
|
|
6
6
|
Setter = 4,
|
|
7
7
|
Indexer = 5,
|
|
8
8
|
DereferenceOperator = 6,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
TypeExtension = 11,
|
|
14
|
-
Package = 12,
|
|
15
|
-
TextTranslation = 13
|
|
9
|
+
PackageAlias = 7,
|
|
10
|
+
TypeExtension = 8,
|
|
11
|
+
Package = 9,
|
|
12
|
+
TextTranslation = 10
|
|
16
13
|
}
|
|
@@ -2,7 +2,7 @@ import { Analyzer } from '../analysis/Analyzer.js';
|
|
|
2
2
|
import type * as types from '../types/index.js';
|
|
3
3
|
import { Substitutions } from '../types/Substitutions.js';
|
|
4
4
|
import { Entity, NamedTypeMemberEntity, PackageMemberEntity, PackageTypeEntity, TypeEntityWithMembers, TypeWithMembersOrExtensionEntity } from './Entity.js';
|
|
5
|
-
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity,
|
|
5
|
+
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, DereferenceOperatorEntity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NameTranslationPackageEntity, PackageEntity, PackageFunctionEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, ReducedTypeEntity, SetterEntity, StructuredTypeEntity, TypeExtensionEntity, TypeParameterEntity, VariantTypeEntity } from './interfaces/index.js';
|
|
6
6
|
import { TypeEntity } from './TypeEntity.js';
|
|
7
7
|
import { TypeMemberEntity } from './TypeMemberEntity.js';
|
|
8
8
|
export declare class EntityLocalizationContext {
|
|
@@ -21,8 +21,6 @@ export declare class EntityLocalizationContext {
|
|
|
21
21
|
getLocalizedTypeParameterEntity(entity: TypeParameterEntity): TypeParameterEntity;
|
|
22
22
|
getLocalizedIndexerEntity(entity: IndexerEntity): IndexerEntity;
|
|
23
23
|
getLocalizedDereferenceOperatorEntity(entity: DereferenceOperatorEntity): DereferenceOperatorEntity;
|
|
24
|
-
getLocalizedConstructorEntity(entity: ConstructorEntity): ConstructorEntity;
|
|
25
|
-
getLocalizedDestructorEntity(entity: DestructorEntity): DestructorEntity;
|
|
26
24
|
getLocalizedAnonymousFunctionTypeEntity(entity: AnonymousFunctionTypeEntity): AnonymousFunctionTypeEntity;
|
|
27
25
|
getLocalizedPackageStructuredTypeEntity(entity: PackageStructuredTypeEntity): PackageStructuredTypeEntity;
|
|
28
26
|
getLocalizedAnonymousStructuredTypeEntity(entity: AnonymousStructuredTypeEntity): AnonymousStructuredTypeEntity;
|
|
@@ -49,6 +47,6 @@ export declare class EntityLocalizationContext {
|
|
|
49
47
|
private getOwnTranslatedParameterEntity;
|
|
50
48
|
private getOwnTranslatedAccessorEntity;
|
|
51
49
|
}
|
|
52
|
-
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity |
|
|
50
|
+
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity;
|
|
53
51
|
export declare function isLocalizableEntity(entity: Entity): entity is LocalizableEntity;
|
|
54
52
|
export type LocalizablePackageMemberEntity = PackageMemberEntity & LocalizableEntity;
|
|
@@ -13,9 +13,9 @@ export declare class TagType extends TagBase {
|
|
|
13
13
|
readonly kind = "type";
|
|
14
14
|
readonly type: types.Type;
|
|
15
15
|
readonly typeEntity: TypeEntity;
|
|
16
|
-
readonly constructor_: types.
|
|
16
|
+
readonly constructor_: types.Method;
|
|
17
17
|
get entity(): TypeEntity | FunctionEntity;
|
|
18
|
-
constructor(type: types.Type, typeEntity: TypeEntity, constructor_: types.
|
|
18
|
+
constructor(type: types.Type, typeEntity: TypeEntity, constructor_: types.Method, argumentByParameter: ReadonlyMap<ParameterEntity, TagArgument>);
|
|
19
19
|
}
|
|
20
20
|
export declare class TagFunction extends TagBase {
|
|
21
21
|
readonly kind = "function";
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import { Name } from '../common/index.js';
|
|
2
|
-
import { NamedTypeMemberEntity
|
|
3
|
-
import { ConstructorEntity } from './interfaces/ConstructorEntity.js';
|
|
2
|
+
import { NamedTypeMemberEntity } from './Entity.js';
|
|
4
3
|
import { DereferenceOperatorEntity } from './interfaces/DereferenceOperatorEntity.js';
|
|
5
|
-
import {
|
|
4
|
+
import { MethodEntity } from './interfaces/FunctionEntity.js';
|
|
6
5
|
import { IndexerEntity } from './interfaces/IndexerEntity.js';
|
|
6
|
+
import { TypeMemberEntity } from './TypeMemberEntity.js';
|
|
7
|
+
import { TypeMemberKindFlags } from './TypeMemberKindFlags.js';
|
|
7
8
|
export declare class TypeEntityMembers {
|
|
9
|
+
private static readonly emptyNamedMembers;
|
|
10
|
+
private readonly members;
|
|
8
11
|
private readonly namedMembers;
|
|
9
12
|
private readonly constructors;
|
|
10
13
|
private readonly destructors;
|
|
14
|
+
private readonly operators;
|
|
11
15
|
private readonly indexers;
|
|
12
16
|
private readonly dereferenceOperators;
|
|
13
|
-
private static readonly emptyNamedMembers;
|
|
14
17
|
private readonly membersByNameKey_;
|
|
15
18
|
private get membersByNameKey();
|
|
16
|
-
constructor(
|
|
17
|
-
getNamedMembers(): readonly NamedTypeMemberEntity[];
|
|
18
|
-
|
|
19
|
+
constructor(members: readonly TypeMemberEntity[]);
|
|
20
|
+
getNamedMembers(kinds: TypeMemberKindFlags): readonly NamedTypeMemberEntity[];
|
|
21
|
+
getNamedMembersA(): readonly NamedTypeMemberEntity[];
|
|
22
|
+
getNamedMembersM(): readonly NamedTypeMemberEntity[];
|
|
23
|
+
getNamedMembersByName(name: Name, kinds: TypeMemberKindFlags): readonly NamedTypeMemberEntity[];
|
|
24
|
+
getNamedMembersByNameA(name: Name): readonly NamedTypeMemberEntity[];
|
|
25
|
+
getNamedMembersByNameM(name: Name): readonly NamedTypeMemberEntity[];
|
|
19
26
|
getIndexers(): readonly IndexerEntity[];
|
|
20
27
|
getDereferenceOperators(): readonly DereferenceOperatorEntity[];
|
|
21
|
-
getConstructors(): readonly
|
|
22
|
-
getDestructors(): readonly
|
|
23
|
-
|
|
28
|
+
getConstructors(): readonly MethodEntity[];
|
|
29
|
+
getDestructors(): readonly MethodEntity[];
|
|
30
|
+
getOperators(): readonly MethodEntity[];
|
|
31
|
+
getAll(kinds?: TypeMemberKindFlags): readonly TypeMemberEntity[];
|
|
32
|
+
private createNamedMemberDictionary;
|
|
24
33
|
}
|