@artel/artc 0.6.25271 → 0.6.25273
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 +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +188 -238
- package/build/{chunk-LD2OIYWC.js → chunk-7EXJHYWX.js} +17928 -17171
- package/build/{chunk-MMSDQCD5.js → chunk-GOQZ6DP3.js} +1 -1
- package/build/{chunk-NLPXNTAI.js → chunk-W3SQYLD5.js} +2 -2
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +3 -3
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +2 -4
- package/build/types/analysis/Analyzer.d.ts +14 -4
- package/build/types/analysis/DiagnosticCollector.d.ts +7 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/ReturnTypeInferrer.d.ts +2 -2
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +1 -1
- package/build/types/analysis/TextIdentity.d.ts +9 -0
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +1 -1
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +1 -1
- package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +1 -1
- package/build/types/common/Constants.d.ts +1 -1
- package/build/types/common/PackageDialect.d.ts +2 -3
- package/build/types/common/Query.d.ts +4 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +98 -92
- package/build/types/emitter/EmitterContext.d.ts +50 -4
- package/build/types/emitter/IrBuilder.d.ts +0 -1
- package/build/types/emitter/IrToJs.d.ts +4 -0
- package/build/types/emitter/Transformer.d.ts +35 -15
- package/build/types/emitter/ir/types.d.ts +1 -1
- package/build/types/entities/BaseAspectTypes.d.ts +26 -1
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +20 -1
- package/build/types/entities/Entity.d.ts +104 -0
- package/build/types/entities/EntityHiding.d.ts +1 -1
- package/build/types/entities/TypeEntityMembers.d.ts +5 -5
- package/build/types/entities/index.d.ts +5 -123
- package/build/types/entities/{AliasedType.d.ts → interfaces/AliasTypeEntity.d.ts} +44 -13
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +44 -0
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +30 -0
- package/build/types/entities/interfaces/DestructorEntity.d.ts +20 -0
- package/build/types/entities/interfaces/FunctionEntity.d.ts +56 -0
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +52 -0
- package/build/types/entities/interfaces/GetterEntity.d.ts +26 -0
- package/build/types/entities/interfaces/IndexerEntity.d.ts +33 -0
- package/build/types/entities/interfaces/OperatorEntity.d.ts +27 -0
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +21 -0
- package/build/types/entities/{PackageEntity.d.ts → interfaces/PackageEntity.d.ts} +8 -35
- package/build/types/entities/interfaces/SetterEntity.d.ts +24 -0
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +62 -0
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +18 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +22 -0
- package/build/types/entities/{TypeParameterEntity.d.ts → interfaces/TypeParameterEntity.d.ts} +6 -60
- package/build/types/entities/interfaces/VariableEntity.d.ts +102 -0
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +47 -0
- package/build/types/entities/interfaces/index.d.ts +18 -0
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +56 -0
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +77 -0
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +17 -0
- package/build/types/entities/intrinsic/IntrinsicGetterEntity.d.ts +25 -0
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +17 -0
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +32 -0
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +123 -0
- package/build/types/entities/intrinsic/index.d.ts +7 -0
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +36 -0
- package/build/types/entities/source/SourceConstructorEntity.d.ts +30 -0
- package/build/types/entities/source/SourceDereferenceOperatorEntity.d.ts +37 -0
- package/build/types/entities/source/SourceDestructorEntity.d.ts +28 -0
- package/build/types/entities/source/SourceFunctionEntity.d.ts +101 -0
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +77 -0
- package/build/types/entities/{GetterEntity.d.ts → source/SourceGetterEntity.d.ts} +7 -48
- package/build/types/entities/source/SourceIndexerEntity.d.ts +39 -0
- package/build/types/entities/source/SourceOperatorEntity.d.ts +38 -0
- package/build/types/entities/source/SourcePackageAliasEntity.d.ts +24 -0
- package/build/types/entities/source/SourcePackageEntity.d.ts +34 -0
- package/build/types/entities/{SetterEntity.d.ts → source/SourceSetterEntity.d.ts} +6 -27
- package/build/types/entities/source/SourceStructuredTypeEntity.d.ts +114 -0
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +30 -0
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +28 -0
- package/build/types/entities/source/SourceTypeParameterEntity.d.ts +34 -0
- package/build/types/entities/{VariableEntity.d.ts → source/SourceVariableEntity.d.ts} +8 -220
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +69 -0
- package/build/types/entities/source/index.d.ts +18 -0
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +4 -5
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +1 -1
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +5 -6
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +4 -4
- package/build/types/entities/translated/index.d.ts +16 -0
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +0 -1
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +0 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +58 -60
- package/build/types/tree/Nodes.d.ts +4 -30
- package/build/types/tree/SyntaxToCode.d.ts +0 -1
- package/build/types/ts-interop/Entities.d.ts +2 -4
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/package.json +1 -1
- package/build/types/entities/AliasTypeEntity.d.ts +0 -61
- package/build/types/entities/ConstructorEntity.d.ts +0 -118
- package/build/types/entities/DereferenceOperatorEntity.d.ts +0 -62
- package/build/types/entities/DestructorEntity.d.ts +0 -44
- package/build/types/entities/FunctionEntity.d.ts +0 -221
- package/build/types/entities/FunctionTypeEntity.d.ts +0 -131
- package/build/types/entities/IndexerEntity.d.ts +0 -67
- package/build/types/entities/OperatorEntity.d.ts +0 -60
- package/build/types/entities/PackageAliasEntity.d.ts +0 -41
- package/build/types/entities/StructuredTypeEntity.d.ts +0 -226
- package/build/types/entities/TextTranslationEntity.d.ts +0 -45
- package/build/types/entities/TypeExtensionEntity.d.ts +0 -45
- package/build/types/entities/VariantTypeEntity.d.ts +0 -108
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { Tag } from '../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../analysis/Translation.js';
|
|
3
|
-
import { Analyzer } from '../analysis/index.js';
|
|
4
|
-
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
-
import * as tree from '../tree/index.js';
|
|
6
|
-
import * as types from '../types/index.js';
|
|
7
|
-
import { BaseAspectTypes } from './BaseAspectTypes.js';
|
|
8
|
-
import { BaseObjectType } from './BaseObjectType.js';
|
|
9
|
-
import { EntityNaming } from './EntityNaming.js';
|
|
10
|
-
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
11
|
-
import type { PackageEntity } from './index.js';
|
|
12
|
-
import { ConstructorEntity, DefinitionKind, DereferenceOperatorEntity, DestructorEntity, EntityContext, EntityHidingLevel, EntityKind, IndexerEntity, ITypeEntity, NamedTypeMemberEntity, OperatorEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
|
13
|
-
export type StructuredTypeEntity = PackageStructuredTypeEntity | AnonymousStructuredTypeEntity;
|
|
14
|
-
export interface PackageStructuredTypeEntity extends IStructuredTypeEntity {
|
|
15
|
-
readonly subkind: 'package';
|
|
16
|
-
getName(): Name;
|
|
17
|
-
getContainingPackage(): PackageEntity;
|
|
18
|
-
getTranslation(): Translation | undefined;
|
|
19
|
-
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
20
|
-
}
|
|
21
|
-
export interface AnonymousStructuredTypeEntity extends IStructuredTypeEntity {
|
|
22
|
-
readonly subkind: 'anonymous';
|
|
23
|
-
getContainingPackage(): PackageEntity;
|
|
24
|
-
getTranslation(): Translation | undefined;
|
|
25
|
-
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
|
26
|
-
}
|
|
27
|
-
interface IStructuredTypeEntity extends ITypeEntity {
|
|
28
|
-
readonly kind: EntityKind.Type;
|
|
29
|
-
readonly typeEntityKind: TypeEntityKind.Structured;
|
|
30
|
-
getNaming(): EntityNaming;
|
|
31
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
32
|
-
getMembers(): TypeEntityMembers;
|
|
33
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
34
|
-
markedBasic(): boolean;
|
|
35
|
-
isAbstract(): boolean;
|
|
36
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
37
|
-
getArity(): number;
|
|
38
|
-
/**
|
|
39
|
-
* При каждом вызове метод должен возвращать один и тот же экземпляр класса BaseObjectType.
|
|
40
|
-
*/
|
|
41
|
-
getBaseObjectType(): BaseObjectType;
|
|
42
|
-
/**
|
|
43
|
-
* При каждом вызове метод должен возвращать один и тот же экземпляр класса BaseAspectTypes.
|
|
44
|
-
*/
|
|
45
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
46
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
47
|
-
getTags(): readonly Tag[];
|
|
48
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
49
|
-
}
|
|
50
|
-
export declare enum StructuredTypeKind {
|
|
51
|
-
RefObject = 0,
|
|
52
|
-
PlainObject = 1,
|
|
53
|
-
Aspect = 2
|
|
54
|
-
}
|
|
55
|
-
export type StructuredTypeEntityDefinition = {
|
|
56
|
-
kind: DefinitionKind.Source;
|
|
57
|
-
node: StructuredTypeEntityDefinitionNode;
|
|
58
|
-
} | {
|
|
59
|
-
kind: DefinitionKind.Intrinsic;
|
|
60
|
-
} | {
|
|
61
|
-
kind: DefinitionKind.TypeScript;
|
|
62
|
-
};
|
|
63
|
-
type StructuredTypeEntityDefinitionNode = tree.PackageStructuredTypeDeclaration | tree.AnonymousStructuredTypeDeclaration;
|
|
64
|
-
export declare class OriginalBaseObjectType extends BaseObjectType {
|
|
65
|
-
/**
|
|
66
|
-
* Базовый объектный тип, указанный пользователем (либо базовый тип по умолчанию).
|
|
67
|
-
*/
|
|
68
|
-
readonly declared: types.Type | undefined;
|
|
69
|
-
private state;
|
|
70
|
-
get cycleFree(): types.Type | undefined;
|
|
71
|
-
get causesCycle(): boolean;
|
|
72
|
-
constructor(declared: types.Type | undefined);
|
|
73
|
-
/**
|
|
74
|
-
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
75
|
-
*/
|
|
76
|
-
resolveBaseObjectType(circularityTrackingStack: boolean[]): CycleFreeBaseObjectTypeResolutionResult;
|
|
77
|
-
private getBaseObjectTypeResolutionResult;
|
|
78
|
-
}
|
|
79
|
-
export declare class CycleFreeBaseObjectTypeResolutionResult {
|
|
80
|
-
readonly type: types.Type | undefined;
|
|
81
|
-
readonly causesCycle: boolean;
|
|
82
|
-
constructor(type: types.Type | undefined, causesCycle: boolean);
|
|
83
|
-
}
|
|
84
|
-
export declare class OriginalBaseAspectTypes extends BaseAspectTypes {
|
|
85
|
-
/**
|
|
86
|
-
* Базовые аспектные типы, указанные пользователем.
|
|
87
|
-
*/
|
|
88
|
-
readonly declared: readonly types.Type[];
|
|
89
|
-
private state;
|
|
90
|
-
/**
|
|
91
|
-
* Базовые аспектные типы, указанные пользователем, которые не приводят к циклу.
|
|
92
|
-
*/
|
|
93
|
-
get cycleFree(): readonly types.Type[];
|
|
94
|
-
/**
|
|
95
|
-
* Приводит ли хотя бы один базовый аспектный тип, указанный пользователем, к циклу?
|
|
96
|
-
*/
|
|
97
|
-
get causesCycle(): boolean;
|
|
98
|
-
constructor(declared: readonly types.Type[]);
|
|
99
|
-
/**
|
|
100
|
-
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
101
|
-
*/
|
|
102
|
-
resolveBaseAspectTypes(circularityTrackingStack: boolean[]): CycleFreeBaseAspectTypesResolutionResult;
|
|
103
|
-
private getBaseAspectTypesResolutionResult;
|
|
104
|
-
}
|
|
105
|
-
export declare class CycleFreeBaseAspectTypesResolutionResult {
|
|
106
|
-
readonly types: readonly types.Type[];
|
|
107
|
-
readonly causesCycle: boolean;
|
|
108
|
-
constructor(types: readonly types.Type[], causesCycle: boolean);
|
|
109
|
-
}
|
|
110
|
-
export declare class PackageStructuredTypeDeclarationEntity implements PackageStructuredTypeEntity {
|
|
111
|
-
readonly kind = EntityKind.Type;
|
|
112
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
113
|
-
readonly subkind = "package";
|
|
114
|
-
private readonly analyzer;
|
|
115
|
-
private readonly node;
|
|
116
|
-
private readonly data;
|
|
117
|
-
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration);
|
|
118
|
-
getNaming(): EntityNaming;
|
|
119
|
-
getName(): Name;
|
|
120
|
-
getContainingPackage(): PackageEntity;
|
|
121
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
122
|
-
getMembers(): TypeEntityMembers;
|
|
123
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
124
|
-
markedBasic(): boolean;
|
|
125
|
-
isAbstract(): boolean;
|
|
126
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
127
|
-
getArity(): number;
|
|
128
|
-
getBaseObjectType(): BaseObjectType;
|
|
129
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
130
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
131
|
-
getTags(): readonly Tag[];
|
|
132
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
133
|
-
getContext(): EntityContext;
|
|
134
|
-
getTranslation(): Translation | undefined;
|
|
135
|
-
getLocale(): PackageLocale;
|
|
136
|
-
getDialect(): PackageDialect;
|
|
137
|
-
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
138
|
-
}
|
|
139
|
-
export declare class AnonymousStructuredTypeDeclarationEntity implements AnonymousStructuredTypeEntity {
|
|
140
|
-
private readonly analyzer;
|
|
141
|
-
private readonly node;
|
|
142
|
-
readonly kind = EntityKind.Type;
|
|
143
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
144
|
-
readonly subkind = "anonymous";
|
|
145
|
-
private readonly data;
|
|
146
|
-
constructor(analyzer: Analyzer, node: tree.AnonymousStructuredTypeDeclaration);
|
|
147
|
-
getNaming(): EntityNaming;
|
|
148
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
149
|
-
getArity(): number;
|
|
150
|
-
getMembers(): TypeEntityMembers;
|
|
151
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
152
|
-
markedBasic(): boolean;
|
|
153
|
-
isAbstract(): boolean;
|
|
154
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
155
|
-
getBaseObjectType(): BaseObjectType;
|
|
156
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
157
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
158
|
-
getTags(): readonly Tag[];
|
|
159
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
160
|
-
getContainingPackage(): PackageEntity;
|
|
161
|
-
getContext(): EntityContext;
|
|
162
|
-
getTranslation(): Translation | undefined;
|
|
163
|
-
getLocale(): PackageLocale;
|
|
164
|
-
getDialect(): PackageDialect;
|
|
165
|
-
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
|
166
|
-
}
|
|
167
|
-
export declare abstract class SourceStructuredTypeDeclarationData {
|
|
168
|
-
protected readonly analyzer: Analyzer;
|
|
169
|
-
protected abstract get body(): tree.StructuredTypeDeclarationBody;
|
|
170
|
-
protected abstract get entity(): StructuredTypeEntity;
|
|
171
|
-
private readonly baseTypes;
|
|
172
|
-
private readonly members;
|
|
173
|
-
constructor(analyzer: Analyzer);
|
|
174
|
-
getContainingPackage(): PackageEntity;
|
|
175
|
-
getMembers(): TypeEntityMembers;
|
|
176
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
177
|
-
getBaseObjectType(): BaseObjectType;
|
|
178
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
179
|
-
private getBaseTypes;
|
|
180
|
-
private validateBaseTypeListAndCreateBaseTypes;
|
|
181
|
-
}
|
|
182
|
-
export declare class SourcePackageStructuredTypeDeclarationData extends SourceStructuredTypeDeclarationData {
|
|
183
|
-
protected readonly entity: PackageStructuredTypeEntity;
|
|
184
|
-
private readonly node;
|
|
185
|
-
private readonly name;
|
|
186
|
-
private readonly typeParameters;
|
|
187
|
-
private readonly hiding;
|
|
188
|
-
private modifierFlags_;
|
|
189
|
-
protected get body(): tree.StructuredTypeDeclarationBody;
|
|
190
|
-
private get modifierFlags();
|
|
191
|
-
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration, entity: PackageStructuredTypeEntity);
|
|
192
|
-
getNaming(): EntityNaming;
|
|
193
|
-
getName(): Name;
|
|
194
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
195
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
196
|
-
markedBasic(): boolean;
|
|
197
|
-
isAbstract(): boolean;
|
|
198
|
-
getArity(): number;
|
|
199
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
200
|
-
getTags(): readonly Tag[];
|
|
201
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
202
|
-
}
|
|
203
|
-
export declare class SourceAnonymousStructuredTypeDeclarationData extends SourceStructuredTypeDeclarationData {
|
|
204
|
-
protected readonly entity: AnonymousStructuredTypeEntity;
|
|
205
|
-
private readonly node;
|
|
206
|
-
protected get body(): tree.StructuredTypeDeclarationBody;
|
|
207
|
-
constructor(analyzer: Analyzer, node: tree.AnonymousStructuredTypeDeclaration, entity: AnonymousStructuredTypeEntity);
|
|
208
|
-
getNaming(): EntityNaming;
|
|
209
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
210
|
-
getArity(): number;
|
|
211
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
212
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
213
|
-
}
|
|
214
|
-
export declare class UnfinishedIntrinsicPackageStructuredTypeEntity {
|
|
215
|
-
private readonly unfinishedValue_;
|
|
216
|
-
get unfinishedValue(): PackageStructuredTypeEntity;
|
|
217
|
-
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, context: EntityContext | undefined);
|
|
218
|
-
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownOperators: readonly OperatorEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): PackageStructuredTypeEntity;
|
|
219
|
-
}
|
|
220
|
-
export declare class UnfinishedIntrinsicAnonymousStructuredTypeEntity {
|
|
221
|
-
private readonly unfinishedValue_;
|
|
222
|
-
get unfinishedValue(): AnonymousStructuredTypeEntity;
|
|
223
|
-
constructor(analyzer: Analyzer, typeParameters: readonly TypeParameterEntity[], structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity, context: EntityContext | undefined);
|
|
224
|
-
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownOperators: readonly OperatorEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): AnonymousStructuredTypeEntity;
|
|
225
|
-
}
|
|
226
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import { Tag } from '../analysis/Tag.js';
|
|
3
|
-
import { Translation } from '../analysis/Translation.js';
|
|
4
|
-
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
-
import * as tree from '../tree/index.js';
|
|
6
|
-
import { IEntity } from './IEntity.js';
|
|
7
|
-
import { DefinitionKind, EntityKind, PackageEntity, ParameterEntity } from './index.js';
|
|
8
|
-
export type TextTranslationEntityKey = string | number;
|
|
9
|
-
export interface TextTranslationEntity extends IEntity {
|
|
10
|
-
readonly kind: EntityKind.TextTranslation;
|
|
11
|
-
isTextTemplate(): boolean;
|
|
12
|
-
getKey(): TextTranslationEntityKey;
|
|
13
|
-
getText(): string;
|
|
14
|
-
getTextFragments(): readonly string[];
|
|
15
|
-
getComment(): string | undefined;
|
|
16
|
-
getParameters(): readonly ParameterEntity[];
|
|
17
|
-
getDefinition(): TextTranslationEntityDefinition;
|
|
18
|
-
}
|
|
19
|
-
export type TextTranslationEntityDefinition = {
|
|
20
|
-
kind: DefinitionKind.Source;
|
|
21
|
-
node: tree.TextTranslationSource;
|
|
22
|
-
};
|
|
23
|
-
export declare class TextTranslationDeclarationEntity implements TextTranslationEntity {
|
|
24
|
-
private readonly analyzer;
|
|
25
|
-
private readonly node;
|
|
26
|
-
readonly kind = EntityKind.TextTranslation;
|
|
27
|
-
private readonly key;
|
|
28
|
-
private readonly text;
|
|
29
|
-
private readonly textFragments;
|
|
30
|
-
private readonly parameters;
|
|
31
|
-
private readonly comment;
|
|
32
|
-
constructor(analyzer: Analyzer, node: tree.TextTranslationSource);
|
|
33
|
-
isTextTemplate(): boolean;
|
|
34
|
-
getKey(): TextTranslationEntityKey;
|
|
35
|
-
getText(): string;
|
|
36
|
-
getTextFragments(): readonly string[];
|
|
37
|
-
getParameters(): readonly ParameterEntity[];
|
|
38
|
-
getComment(): string | undefined;
|
|
39
|
-
getContainingPackage(): PackageEntity;
|
|
40
|
-
getDefinition(): TextTranslationEntityDefinition;
|
|
41
|
-
getTags(): readonly Tag[];
|
|
42
|
-
getTranslation(): Translation | undefined;
|
|
43
|
-
getLocale(): PackageLocale;
|
|
44
|
-
getDialect(): PackageDialect;
|
|
45
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Tag } from '../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../analysis/Translation.js';
|
|
3
|
-
import { Analyzer } from '../analysis/index.js';
|
|
4
|
-
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
-
import { TypeExtensionDeclaration } from '../tree/index.js';
|
|
6
|
-
import { IEntity } from './IEntity.js';
|
|
7
|
-
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
8
|
-
import { DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, NamedTypeEntity, PackageEntity } from './index.js';
|
|
9
|
-
export interface TypeExtensionEntity extends IEntity {
|
|
10
|
-
readonly kind: EntityKind.TypeExtension;
|
|
11
|
-
getMembers(): TypeEntityMembers;
|
|
12
|
-
getContainingPackage(): PackageEntity;
|
|
13
|
-
getExtendedTypeEntity(): NamedTypeEntity | undefined;
|
|
14
|
-
getDefinition(): TypeExtensionEntityDefinition;
|
|
15
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
16
|
-
getTags(): readonly Tag[];
|
|
17
|
-
getContext(): EntityContext;
|
|
18
|
-
getTranslation(): Translation | undefined;
|
|
19
|
-
getOriginalEntity(): TypeExtensionEntity;
|
|
20
|
-
}
|
|
21
|
-
export type TypeExtensionEntityDefinition = {
|
|
22
|
-
kind: DefinitionKind.Source;
|
|
23
|
-
node: TypeExtensionDeclaration;
|
|
24
|
-
};
|
|
25
|
-
export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
26
|
-
readonly kind = EntityKind.TypeExtension;
|
|
27
|
-
private readonly analyzer;
|
|
28
|
-
private readonly node;
|
|
29
|
-
private readonly members;
|
|
30
|
-
private readonly hiding;
|
|
31
|
-
private modifierFlags_;
|
|
32
|
-
private get modifierFlags();
|
|
33
|
-
constructor(analyzer: Analyzer, node: TypeExtensionDeclaration);
|
|
34
|
-
getMembers(): TypeEntityMembers;
|
|
35
|
-
getContainingPackage(): PackageEntity;
|
|
36
|
-
getExtendedTypeEntity(): NamedTypeEntity | undefined;
|
|
37
|
-
getDefinition(): TypeExtensionEntityDefinition;
|
|
38
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
39
|
-
getTags(): readonly Tag[];
|
|
40
|
-
getContext(): EntityContext;
|
|
41
|
-
getTranslation(): Translation | undefined;
|
|
42
|
-
getLocale(): PackageLocale;
|
|
43
|
-
getDialect(): PackageDialect;
|
|
44
|
-
getOriginalEntity(): TypeExtensionEntity;
|
|
45
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Tag } from '../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../analysis/Translation.js';
|
|
3
|
-
import { Analyzer } from '../analysis/index.js';
|
|
4
|
-
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
-
import { AnonymousVariantTypeDeclaration, PackageVariantTypeDeclaration } from '../tree/index.js';
|
|
6
|
-
import * as types from '../types/index.js';
|
|
7
|
-
import { BaseObjectType } from './BaseObjectType.js';
|
|
8
|
-
import { EntityNaming } from './EntityNaming.js';
|
|
9
|
-
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
10
|
-
import { DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
|
11
|
-
export type VariantTypeEntity = PackageVariantTypeEntity | AnonymousVariantTypeEntity;
|
|
12
|
-
export interface PackageVariantTypeEntity extends IVariantTypeEntity {
|
|
13
|
-
readonly subkind: 'package';
|
|
14
|
-
getName(): Name;
|
|
15
|
-
getContainingPackage(): PackageEntity;
|
|
16
|
-
getTranslation(): Translation | undefined;
|
|
17
|
-
getOriginalEntity(): PackageVariantTypeEntity;
|
|
18
|
-
}
|
|
19
|
-
export interface AnonymousVariantTypeEntity extends IVariantTypeEntity {
|
|
20
|
-
readonly subkind: 'anonymous';
|
|
21
|
-
getContainingPackage(): PackageEntity;
|
|
22
|
-
getTranslation(): Translation | undefined;
|
|
23
|
-
getOriginalEntity(): AnonymousVariantTypeEntity;
|
|
24
|
-
}
|
|
25
|
-
interface IVariantTypeEntity extends ITypeEntity {
|
|
26
|
-
readonly kind: EntityKind.Type;
|
|
27
|
-
readonly typeEntityKind: TypeEntityKind.Variant;
|
|
28
|
-
getMembers(): TypeEntityMembers;
|
|
29
|
-
getUnderlyingType(): types.Type;
|
|
30
|
-
getDefinition(): VariantTypeEntityDefinition;
|
|
31
|
-
getNaming(): EntityNaming;
|
|
32
|
-
getArity(): number;
|
|
33
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
34
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
35
|
-
getTags(): readonly Tag[];
|
|
36
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
37
|
-
/**
|
|
38
|
-
* При каждом вызове метод должен возвращать один и тот же экземпляр класса BaseObjectType.
|
|
39
|
-
*/
|
|
40
|
-
getBaseObjectType(): BaseObjectType;
|
|
41
|
-
}
|
|
42
|
-
export type VariantTypeEntityDefinition = {
|
|
43
|
-
kind: DefinitionKind.Source;
|
|
44
|
-
node: PackageVariantTypeDeclaration | AnonymousVariantTypeDeclaration;
|
|
45
|
-
} | {
|
|
46
|
-
kind: DefinitionKind.TypeScript;
|
|
47
|
-
};
|
|
48
|
-
export declare class PackageVariantTypeDeclarationEntity implements PackageVariantTypeEntity {
|
|
49
|
-
private readonly analyzer;
|
|
50
|
-
private readonly node;
|
|
51
|
-
readonly kind = EntityKind.Type;
|
|
52
|
-
readonly typeEntityKind = TypeEntityKind.Variant;
|
|
53
|
-
readonly subkind = "package";
|
|
54
|
-
private readonly name;
|
|
55
|
-
private readonly typeParameters;
|
|
56
|
-
private readonly members;
|
|
57
|
-
private readonly underlyingType;
|
|
58
|
-
private readonly baseObjectType;
|
|
59
|
-
private readonly hiding;
|
|
60
|
-
private modifierFlags_;
|
|
61
|
-
private get modifierFlags();
|
|
62
|
-
constructor(analyzer: Analyzer, node: PackageVariantTypeDeclaration);
|
|
63
|
-
getNaming(): EntityNaming;
|
|
64
|
-
getName(): Name;
|
|
65
|
-
getContainingPackage(): PackageEntity;
|
|
66
|
-
getMembers(): TypeEntityMembers;
|
|
67
|
-
getUnderlyingType(): types.Type;
|
|
68
|
-
getDefinition(): VariantTypeEntityDefinition;
|
|
69
|
-
getArity(): number;
|
|
70
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
71
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
72
|
-
getTags(): readonly Tag[];
|
|
73
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
74
|
-
getBaseObjectType(): BaseObjectType;
|
|
75
|
-
getContext(): EntityContext;
|
|
76
|
-
getTranslation(): Translation | undefined;
|
|
77
|
-
getLocale(): PackageLocale;
|
|
78
|
-
getDialect(): PackageDialect;
|
|
79
|
-
getOriginalEntity(): PackageVariantTypeEntity;
|
|
80
|
-
}
|
|
81
|
-
export declare class AnonymousVariantTypeDeclarationEntity implements AnonymousVariantTypeEntity {
|
|
82
|
-
private readonly analyzer;
|
|
83
|
-
private readonly node;
|
|
84
|
-
readonly kind = EntityKind.Type;
|
|
85
|
-
readonly typeEntityKind = TypeEntityKind.Variant;
|
|
86
|
-
readonly subkind = "anonymous";
|
|
87
|
-
private readonly underlyingType;
|
|
88
|
-
private readonly members;
|
|
89
|
-
private readonly baseObjectType;
|
|
90
|
-
constructor(analyzer: Analyzer, node: AnonymousVariantTypeDeclaration);
|
|
91
|
-
getMembers(): TypeEntityMembers;
|
|
92
|
-
getUnderlyingType(): types.Type;
|
|
93
|
-
getDefinition(): VariantTypeEntityDefinition;
|
|
94
|
-
getNaming(): EntityNaming;
|
|
95
|
-
getArity(): number;
|
|
96
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
97
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
98
|
-
getTags(): readonly Tag[];
|
|
99
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
100
|
-
getContainingPackage(): PackageEntity;
|
|
101
|
-
getBaseObjectType(): BaseObjectType;
|
|
102
|
-
getContext(): EntityContext;
|
|
103
|
-
getTranslation(): Translation | undefined;
|
|
104
|
-
getLocale(): PackageLocale;
|
|
105
|
-
getDialect(): PackageDialect;
|
|
106
|
-
getOriginalEntity(): AnonymousVariantTypeEntity;
|
|
107
|
-
}
|
|
108
|
-
export {};
|