@artel/artc 0.6.25281 → 0.6.25283
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 +18 -16
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1182 -979
- package/build/{chunk-TIWNEKIS.js → chunk-2Q4QKW7T.js} +9266 -8683
- package/build/{chunk-7OXU5662.js → chunk-7RAZAZE6.js} +3 -3
- package/build/{chunk-NVHCHE3R.js → chunk-MJ2ZVHII.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/Analyzer.d.ts +68 -109
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/PackageMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +48 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
- package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/Utils.d.ts +1 -0
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +4 -5
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +11 -7
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +8 -8
- package/build/types/api/Api.d.ts +4 -5
- package/build/types/common/ArrayUtils.d.ts +3 -1
- package/build/types/common/Displayable.d.ts +4 -4
- package/build/types/common/FormatString.d.ts +1 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/LocalizationHelper.d.ts +6 -4
- package/build/types/common/index.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +248 -238
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
- package/build/types/emitter/EntityMap.d.ts +1 -1
- package/build/types/emitter/IrBuilder.d.ts +3 -1
- package/build/types/emitter/IrFactory.d.ts +2 -2
- package/build/types/emitter/Transformer.d.ts +3 -3
- package/build/types/emitter/ir/Nodes.d.ts +17 -8
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/Entity.d.ts +0 -12
- package/build/types/entities/EntityLocalizationContext.d.ts +1 -2
- package/build/types/entities/IEntity.d.ts +2 -1
- package/build/types/entities/OperatorKind.d.ts +6 -3
- package/build/types/entities/{PackageMembers.d.ts → PackageEntityMembers.d.ts} +1 -1
- package/build/types/entities/TypeEntity.d.ts +4 -4
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +3 -8
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/DestructorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/FunctionEntity.d.ts +1 -8
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/GetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/IndexerEntity.d.ts +0 -4
- package/build/types/entities/interfaces/OperatorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +0 -5
- package/build/types/entities/interfaces/PackageEntity.d.ts +2 -11
- package/build/types/entities/interfaces/SetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +1 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +1 -7
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +0 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -12
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -8
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +2 -4
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +1 -2
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
- package/build/types/entities/source/SourceStructuredTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +1 -0
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTypeParameterEntity.d.ts +1 -2
- package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +1 -5
- package/build/types/parser/KeywordDictionary.d.ts +10 -2
- package/build/types/parser/TokenKind.d.ts +46 -44
- package/build/types/services/CustomRequests.d.ts +24 -4
- package/build/types/services/DisplayService.d.ts +10 -3
- package/build/types/services/LanguageServer.d.ts +4 -3
- package/build/types/services/ScriptEditingService.d.ts +25 -0
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/Types.d.ts +6 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +12 -0
- package/build/types/tree/BaseNode.d.ts +56 -2
- package/build/types/tree/KeywordFlags.d.ts +28 -0
- package/build/types/tree/KeywordKind.d.ts +3 -1
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +10 -24
- package/build/types/tree/NodesDebug.d.ts +9 -0
- package/build/types/tree/OperatorKind.d.ts +6 -3
- package/build/types/tree/SyntaxFactory.d.ts +31 -29
- package/build/types/tree/SyntaxToCode.d.ts +4 -1
- package/build/types/tree/TokenFlags.d.ts +15 -0
- package/build/types/tree/TokenKind.d.ts +63 -51
- package/build/types/tree/Utils.d.ts +2 -2
- package/build/types/tree/index.d.ts +2 -1
- package/build/types/ts-interop/Entities.d.ts +1 -11
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/types/AliasType.d.ts +1 -2
- package/build/types/types/FunctionType.d.ts +2 -3
- package/build/types/types/IntersectionType.d.ts +1 -2
- package/build/types/types/ParameterType.d.ts +1 -2
- package/build/types/types/StructuredType.d.ts +1 -2
- package/build/types/types/SubstitutionStubType.d.ts +21 -0
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +5 -7
- package/build/types/types/TypeFactory.d.ts +2 -1
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/UnionType.d.ts +1 -2
- package/build/types/types/UnresolvedType.d.ts +0 -1
- package/build/types/types/VariantType.d.ts +1 -2
- package/build/types/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +0 -29
- package/build/types/services/AssignFieldService.d.ts +0 -10
- package/build/types/services/DeleteBlockFromScriptService.d.ts +0 -6
- package/build/types/tree/Token.d.ts +0 -57
- /package/build/types/services/{ProjectItemsService.d.ts → WorkspaceItemsService.d.ts} +0 -0
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { SetterDeclaration, SubprogramDeclarationOrLiteral } from '../../analysis/NodeTypeUtils.js';
|
|
2
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
3
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
4
2
|
import { Name } from '../../common/index.js';
|
|
5
3
|
import * as tree from '../../tree/index.js';
|
|
6
4
|
import * as types from '../../types/index.js';
|
|
7
5
|
import { IEntity } from '../IEntity.js';
|
|
8
|
-
import
|
|
9
|
-
import { ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, FunctionEntity, FunctionTypeEntity, GetterEntity, OperatorEntity, SetterEntity } from '../index.js';
|
|
6
|
+
import { ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, FunctionEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, OperatorEntity, PackageEntity, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
10
7
|
export type VariableEntity = PackageVariableEntity | FieldEntity | ParameterEntity | LocalVariableEntity;
|
|
11
8
|
interface IVariableEntity extends IEntity {
|
|
12
9
|
readonly kind: EntityKind.Variable;
|
|
@@ -18,13 +15,10 @@ interface IVariableEntity extends IEntity {
|
|
|
18
15
|
isConstant(): boolean;
|
|
19
16
|
isHidden(): EntityHidingLevel | undefined;
|
|
20
17
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
|
21
|
-
getTags(): readonly Tag[];
|
|
22
18
|
ensureAllDiagnosticsReported?(): void;
|
|
23
19
|
}
|
|
24
20
|
export interface PackageVariableEntity extends IVariableEntity {
|
|
25
21
|
readonly subkind: 'package';
|
|
26
|
-
getContainingPackage(): PackageEntity;
|
|
27
|
-
getTranslation(): Translation | undefined;
|
|
28
22
|
getOriginalEntity(): PackageVariableEntity;
|
|
29
23
|
}
|
|
30
24
|
export interface FieldEntity extends IVariableEntity {
|
|
@@ -36,7 +30,6 @@ export interface FieldEntity extends IVariableEntity {
|
|
|
36
30
|
markedAbstract(): boolean;
|
|
37
31
|
getOverriddenMembers(): readonly types.Field[];
|
|
38
32
|
isVariant(): boolean;
|
|
39
|
-
getTranslation(): Translation | undefined;
|
|
40
33
|
getOriginalEntity(): FieldEntity;
|
|
41
34
|
}
|
|
42
35
|
export interface ParameterEntity extends IVariableEntity {
|
|
@@ -44,14 +37,11 @@ export interface ParameterEntity extends IVariableEntity {
|
|
|
44
37
|
getContainingEntity(): EntityContainingParameter;
|
|
45
38
|
isOptional(): boolean;
|
|
46
39
|
isVariadic(): boolean;
|
|
47
|
-
getTranslation(): Translation | undefined;
|
|
48
40
|
getOriginalEntity(): ParameterEntity;
|
|
49
41
|
}
|
|
50
42
|
export interface LocalVariableEntity extends IVariableEntity {
|
|
51
43
|
readonly subkind: 'local';
|
|
52
44
|
getLocalVariableKind(): LocalVariableKind;
|
|
53
|
-
getContainingPackage(): PackageEntity;
|
|
54
|
-
getTranslation(): Translation | undefined;
|
|
55
45
|
getOriginalEntity(): LocalVariableEntity;
|
|
56
46
|
}
|
|
57
47
|
export declare enum LocalVariableKind {
|
|
@@ -71,7 +61,7 @@ export type VariableEntityDefinition = {
|
|
|
71
61
|
export type SourceVariableEntityDefinition = SingleSourceVariableEntityDefinition | MultiSourceVariableEntityDefinition;
|
|
72
62
|
export type SingleSourceVariableEntityDefinition = {
|
|
73
63
|
kind: 'single';
|
|
74
|
-
node: tree.PackageVariableDeclaration | tree.FieldDeclaration | tree.LocalVariableDeclaration | tree.ForStatementVariableDeclaration | tree.ErrorVariableDeclaration | tree.ParameterDeclaration | tree.
|
|
64
|
+
node: tree.PackageVariableDeclaration | tree.FieldDeclaration | tree.LocalVariableDeclaration | tree.ForStatementVariableDeclaration | tree.ErrorVariableDeclaration | tree.ParameterDeclaration | tree.VariantValueDeclaration | tree.TranslationTextTemplateParameter;
|
|
75
65
|
};
|
|
76
66
|
export type MultiSourceVariableEntityDefinition = {
|
|
77
67
|
kind: 'multi';
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import { Name } from '../../common/index.js';
|
|
4
2
|
import * as tree from '../../tree/index.js';
|
|
5
3
|
import * as types from '../../types/index.js';
|
|
6
4
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
7
5
|
import { EntityNaming } from '../EntityNaming.js';
|
|
8
6
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
9
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity,
|
|
7
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
10
8
|
export type VariantTypeEntity = PackageVariantTypeEntity | AnonymousVariantTypeEntity;
|
|
11
9
|
interface IVariantTypeEntity extends ITypeEntity {
|
|
12
10
|
readonly kind: EntityKind.Type;
|
|
@@ -18,7 +16,6 @@ interface IVariantTypeEntity extends ITypeEntity {
|
|
|
18
16
|
getArity(): number;
|
|
19
17
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
20
18
|
isHidden(): EntityHidingLevel | undefined;
|
|
21
|
-
getTags(): readonly Tag[];
|
|
22
19
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
23
20
|
/**
|
|
24
21
|
* При каждом вызове метод должен возвращать один и тот же экземпляр класса BaseObjectType.
|
|
@@ -29,14 +26,10 @@ interface IVariantTypeEntity extends ITypeEntity {
|
|
|
29
26
|
export interface PackageVariantTypeEntity extends IVariantTypeEntity {
|
|
30
27
|
readonly subkind: 'package';
|
|
31
28
|
getName(): Name;
|
|
32
|
-
getContainingPackage(): PackageEntity;
|
|
33
|
-
getTranslation(): Translation | undefined;
|
|
34
29
|
getOriginalEntity(): PackageVariantTypeEntity;
|
|
35
30
|
}
|
|
36
31
|
export interface AnonymousVariantTypeEntity extends IVariantTypeEntity {
|
|
37
32
|
readonly subkind: 'anonymous';
|
|
38
|
-
getContainingPackage(): PackageEntity;
|
|
39
|
-
getTranslation(): Translation | undefined;
|
|
40
33
|
getOriginalEntity(): AnonymousVariantTypeEntity;
|
|
41
34
|
}
|
|
42
35
|
export type VariantTypeEntityDefinition = {
|
|
@@ -2,16 +2,16 @@ import { Analyzer } from '../../analysis/index.js';
|
|
|
2
2
|
import { Name } from '../../common/index.js';
|
|
3
3
|
import * as types from '../../types/index.js';
|
|
4
4
|
import type { AnonymousFunctionTypeEntity, PackageEntity, PackageFunctionTypeEntity } from '../index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { EntityHidingLevel, ParameterEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
6
6
|
export declare class UnfinishedIntrinsicAnonymousFunctionTypeEntity {
|
|
7
7
|
private readonly unfinishedValue_;
|
|
8
8
|
get unfinishedValue(): AnonymousFunctionTypeEntity;
|
|
9
|
-
constructor(analyzer: Analyzer, returnType: types.Type, isAsync: boolean, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined
|
|
9
|
+
constructor(analyzer: Analyzer, returnType: types.Type, isAsync: boolean, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined);
|
|
10
10
|
finish(typeParameters: readonly TypeParameterEntity[], parameters: readonly ParameterEntity[]): AnonymousFunctionTypeEntity;
|
|
11
11
|
}
|
|
12
12
|
export declare class UnfinishedIntrinsicPackageFunctionTypeEntity {
|
|
13
13
|
private readonly unfinishedValue_;
|
|
14
14
|
get unfinishedValue(): PackageFunctionTypeEntity;
|
|
15
|
-
constructor(analyzer: Analyzer, name: Name, returnType: types.Type, isAsync: boolean, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined
|
|
15
|
+
constructor(analyzer: Analyzer, name: Name, returnType: types.Type, isAsync: boolean, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined);
|
|
16
16
|
finish(typeParameters: readonly TypeParameterEntity[], parameters: readonly ParameterEntity[]): PackageFunctionTypeEntity;
|
|
17
17
|
}
|
|
@@ -2,16 +2,16 @@ import { Analyzer } from '../../analysis/index.js';
|
|
|
2
2
|
import { Name } from '../../common/index.js';
|
|
3
3
|
import * as types from '../../types/index.js';
|
|
4
4
|
import type { AnonymousStructuredTypeEntity, PackageEntity, PackageStructuredTypeEntity, StructuredTypeKind } from '../index.js';
|
|
5
|
-
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity,
|
|
5
|
+
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, IndexerEntity, NamedTypeMemberEntity, OperatorEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
6
6
|
export declare class UnfinishedIntrinsicPackageStructuredTypeEntity {
|
|
7
7
|
private readonly unfinishedValue_;
|
|
8
8
|
get unfinishedValue(): PackageStructuredTypeEntity;
|
|
9
|
-
constructor(analyzer: Analyzer, name: Name, containingPackage: PackageEntity, typeParameters: readonly TypeParameterEntity[], isBasic: boolean, isAbstract: boolean, structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode
|
|
9
|
+
constructor(analyzer: Analyzer, name: Name, containingPackage: PackageEntity, typeParameters: readonly TypeParameterEntity[], isBasic: boolean, isAbstract: boolean, structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode);
|
|
10
10
|
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownOperators: readonly OperatorEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): PackageStructuredTypeEntity;
|
|
11
11
|
}
|
|
12
12
|
export declare class UnfinishedIntrinsicAnonymousStructuredTypeEntity {
|
|
13
13
|
private readonly unfinishedValue_;
|
|
14
14
|
get unfinishedValue(): AnonymousStructuredTypeEntity;
|
|
15
|
-
constructor(analyzer: Analyzer, typeParameters: readonly TypeParameterEntity[], structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity
|
|
15
|
+
constructor(analyzer: Analyzer, typeParameters: readonly TypeParameterEntity[], structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity);
|
|
16
16
|
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownOperators: readonly OperatorEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): AnonymousStructuredTypeEntity;
|
|
17
17
|
}
|
|
@@ -3,7 +3,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
3
3
|
import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
4
4
|
import * as types from '../../types/index.js';
|
|
5
5
|
import type { EntityContainingTypeParameter } from '../index.js';
|
|
6
|
-
import {
|
|
6
|
+
import { EntityHidingLevel, EntityKind, PackageEntity, TypeEntityKind, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition } from '../index.js';
|
|
7
7
|
export declare class IntrinsicTypeParameterEntity implements TypeParameterEntity {
|
|
8
8
|
private readonly name;
|
|
9
9
|
private readonly constraint;
|
|
@@ -12,8 +12,7 @@ export declare class IntrinsicTypeParameterEntity implements TypeParameterEntity
|
|
|
12
12
|
readonly kind = EntityKind.Type;
|
|
13
13
|
readonly typeEntityKind = TypeEntityKind.Parameter;
|
|
14
14
|
private readonly typeParameterConstraint;
|
|
15
|
-
|
|
16
|
-
constructor(name: Name, constraint: types.Type | undefined, defaultValue: types.Type | undefined, containingEntity: EntityContainingTypeParameter, context: EntityContext | undefined);
|
|
15
|
+
constructor(name: Name, constraint: types.Type | undefined, defaultValue: types.Type | undefined, containingEntity: EntityContainingTypeParameter);
|
|
17
16
|
getName(): Name;
|
|
18
17
|
getConstraint(): TypeParameterConstraint;
|
|
19
18
|
getDefaultType(): types.Type | undefined;
|
|
@@ -24,7 +23,6 @@ export declare class IntrinsicTypeParameterEntity implements TypeParameterEntity
|
|
|
24
23
|
getContainingPackage(): PackageEntity;
|
|
25
24
|
isHidden(): EntityHidingLevel | undefined;
|
|
26
25
|
getTags(): readonly Tag[];
|
|
27
|
-
getContext(): EntityContext;
|
|
28
26
|
getTranslation(): Translation | undefined;
|
|
29
27
|
getLocale(): PackageLocale;
|
|
30
28
|
getDialect(): PackageDialect;
|
|
@@ -4,7 +4,7 @@ import { Analyzer } from '../../analysis/index.js';
|
|
|
4
4
|
import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import { PackageAliasTypeDeclaration } from '../../tree/index.js';
|
|
6
6
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
7
|
-
import { AliasedType, AliasTypeEntity, AliasTypeEntityDefinition,
|
|
7
|
+
import { AliasedType, AliasTypeEntity, AliasTypeEntityDefinition, EntityHidingLevel, EntityKind, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
8
8
|
export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntity {
|
|
9
9
|
private readonly analyzer;
|
|
10
10
|
private readonly node;
|
|
@@ -28,7 +28,6 @@ export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntit
|
|
|
28
28
|
isHidden(): EntityHidingLevel | undefined;
|
|
29
29
|
getTags(): readonly Tag[];
|
|
30
30
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
31
|
-
getContext(): EntityContext;
|
|
32
31
|
getTranslation(): Translation | undefined;
|
|
33
32
|
getLocale(): PackageLocale;
|
|
34
33
|
getDialect(): PackageDialect;
|
|
@@ -8,7 +8,7 @@ import { BaseObjectType } from '../BaseObjectType.js';
|
|
|
8
8
|
import { EntityNaming } from '../EntityNaming.js';
|
|
9
9
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
10
10
|
import type { AnonymousFunctionTypeEntity, FunctionTypeEntityDefinition, PackageEntity, PackageFunctionTypeEntity } from '../index.js';
|
|
11
|
-
import {
|
|
11
|
+
import { EntityHidingLevel, EntityKind, ParameterEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
12
12
|
export declare class PackageFunctionTypeDeclarationEntity implements PackageFunctionTypeEntity {
|
|
13
13
|
private readonly analyzer;
|
|
14
14
|
private readonly node;
|
|
@@ -39,7 +39,6 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
|
39
39
|
getTags(): readonly Tag[];
|
|
40
40
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
41
41
|
getBaseObjectType(): BaseObjectType;
|
|
42
|
-
getContext(): EntityContext;
|
|
43
42
|
getTranslation(): Translation | undefined;
|
|
44
43
|
getLocale(): PackageLocale;
|
|
45
44
|
getDialect(): PackageDialect;
|
|
@@ -69,7 +68,6 @@ export declare class AnonymousFunctionTypeDeclarationEntity implements Anonymous
|
|
|
69
68
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
70
69
|
getContainingPackage(): PackageEntity;
|
|
71
70
|
getBaseObjectType(): BaseObjectType;
|
|
72
|
-
getContext(): EntityContext;
|
|
73
71
|
getTranslation(): Translation | undefined;
|
|
74
72
|
getLocale(): PackageLocale;
|
|
75
73
|
getDialect(): PackageDialect;
|
|
@@ -4,8 +4,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import type { SourcePackage } from '../../project/index.js';
|
|
6
6
|
import { PackageName, PlatformKind } from '../../project/index.js';
|
|
7
|
-
import { EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, TextTranslationPackageEntityInfo } from '../index.js';
|
|
8
|
-
import { PackageEntityMembers } from '../PackageMembers.js';
|
|
7
|
+
import { EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, PackageEntityMembers, TextTranslationPackageEntityInfo } from '../index.js';
|
|
9
8
|
export declare class SourcePackageEntity implements PackageEntity {
|
|
10
9
|
private readonly analyzer;
|
|
11
10
|
private readonly package_;
|
|
@@ -7,7 +7,7 @@ import { BaseAspectTypes } from '../BaseAspectTypes.js';
|
|
|
7
7
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
8
8
|
import { EntityNaming } from '../EntityNaming.js';
|
|
9
9
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
10
|
-
import { AnonymousStructuredTypeEntity,
|
|
10
|
+
import { AnonymousStructuredTypeEntity, EntityHidingLevel, EntityKind, PackageEntity, PackageStructuredTypeEntity, StructuredTypeEntity, StructuredTypeEntityDefinition, StructuredTypeKind, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
11
11
|
export declare class PackageStructuredTypeDeclarationEntity implements PackageStructuredTypeEntity {
|
|
12
12
|
readonly kind = EntityKind.Type;
|
|
13
13
|
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
@@ -31,7 +31,6 @@ export declare class PackageStructuredTypeDeclarationEntity implements PackageSt
|
|
|
31
31
|
isHidden(): EntityHidingLevel | undefined;
|
|
32
32
|
getTags(): readonly Tag[];
|
|
33
33
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
34
|
-
getContext(): EntityContext;
|
|
35
34
|
getTranslation(): Translation | undefined;
|
|
36
35
|
getLocale(): PackageLocale;
|
|
37
36
|
getDialect(): PackageDialect;
|
|
@@ -59,7 +58,6 @@ export declare class AnonymousStructuredTypeDeclarationEntity implements Anonymo
|
|
|
59
58
|
getTags(): readonly Tag[];
|
|
60
59
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
61
60
|
getContainingPackage(): PackageEntity;
|
|
62
|
-
getContext(): EntityContext;
|
|
63
61
|
getTranslation(): Translation | undefined;
|
|
64
62
|
getLocale(): PackageLocale;
|
|
65
63
|
getDialect(): PackageDialect;
|
|
@@ -4,7 +4,7 @@ import { Analyzer } from '../../analysis/index.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import { TypeExtensionDeclaration } from '../../tree/index.js';
|
|
6
6
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
7
|
-
import {
|
|
7
|
+
import { EntityHidingLevel, EntityKind, NamedTypeEntity, PackageEntity, TypeExtensionEntity, TypeExtensionEntityDefinition } from '../index.js';
|
|
8
8
|
export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
9
9
|
readonly kind = EntityKind.TypeExtension;
|
|
10
10
|
private readonly analyzer;
|
|
@@ -22,7 +22,6 @@ export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
|
22
22
|
getDefinition(): TypeExtensionEntityDefinition;
|
|
23
23
|
isHidden(): EntityHidingLevel | undefined;
|
|
24
24
|
getTags(): readonly Tag[];
|
|
25
|
-
getContext(): EntityContext;
|
|
26
25
|
getTranslation(): Translation | undefined;
|
|
27
26
|
getLocale(): PackageLocale;
|
|
28
27
|
getDialect(): PackageDialect;
|
|
@@ -5,7 +5,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
5
5
|
import { TypeParameterDeclaration } from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
7
|
import type { EntityContainingTypeParameter } from '../index.js';
|
|
8
|
-
import {
|
|
8
|
+
import { EntityHidingLevel, EntityKind, PackageEntity, TypeEntityKind, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition } from '../index.js';
|
|
9
9
|
export declare class SourceTypeParameterEntity implements TypeParameterEntity {
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly node;
|
|
@@ -26,7 +26,6 @@ export declare class SourceTypeParameterEntity implements TypeParameterEntity {
|
|
|
26
26
|
getContainingPackage(): PackageEntity;
|
|
27
27
|
isHidden(): EntityHidingLevel | undefined;
|
|
28
28
|
getTags(): readonly Tag[];
|
|
29
|
-
getContext(): EntityContext;
|
|
30
29
|
getTranslation(): Translation | undefined;
|
|
31
30
|
getLocale(): PackageLocale;
|
|
32
31
|
getDialect(): PackageDialect;
|
|
@@ -134,7 +134,7 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
|
134
134
|
getOriginalEntity(): FieldEntity;
|
|
135
135
|
ensureAllDiagnosticsReported(): void;
|
|
136
136
|
}
|
|
137
|
-
export declare class
|
|
137
|
+
export declare class VariantValueDeclarationEntity implements FieldEntity {
|
|
138
138
|
readonly kind = EntityKind.Variable;
|
|
139
139
|
readonly subkind = "field";
|
|
140
140
|
private readonly analyzer;
|
|
@@ -143,7 +143,7 @@ export declare class VariantDeclarationEntity implements FieldEntity {
|
|
|
143
143
|
private readonly name;
|
|
144
144
|
private readonly type;
|
|
145
145
|
private containingEntity;
|
|
146
|
-
constructor(analyzer: Analyzer, node: tree.
|
|
146
|
+
constructor(analyzer: Analyzer, node: tree.VariantValueDeclaration);
|
|
147
147
|
getName(): Name;
|
|
148
148
|
getType(): types.Type;
|
|
149
149
|
getDefinition(): VariableEntityDefinition;
|
|
@@ -6,7 +6,7 @@ import * as tree from '../../tree/index.js';
|
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
7
|
import { EntityNaming } from '../EntityNaming.js';
|
|
8
8
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
9
|
-
import { AnonymousVariantTypeEntity, BaseObjectType,
|
|
9
|
+
import { AnonymousVariantTypeEntity, BaseObjectType, EntityHidingLevel, EntityKind, PackageEntity, PackageVariantTypeEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity, VariantTypeEntityDefinition } from '../index.js';
|
|
10
10
|
export declare class PackageVariantTypeDeclarationEntity implements PackageVariantTypeEntity {
|
|
11
11
|
private readonly analyzer;
|
|
12
12
|
private readonly node;
|
|
@@ -34,7 +34,6 @@ export declare class PackageVariantTypeDeclarationEntity implements PackageVaria
|
|
|
34
34
|
getTags(): readonly Tag[];
|
|
35
35
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
36
36
|
getBaseObjectType(): BaseObjectType;
|
|
37
|
-
getContext(): EntityContext;
|
|
38
37
|
getTranslation(): Translation | undefined;
|
|
39
38
|
getLocale(): PackageLocale;
|
|
40
39
|
getDialect(): PackageDialect;
|
|
@@ -61,7 +60,6 @@ export declare class AnonymousVariantTypeDeclarationEntity implements AnonymousV
|
|
|
61
60
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
62
61
|
getContainingPackage(): PackageEntity;
|
|
63
62
|
getBaseObjectType(): BaseObjectType;
|
|
64
|
-
getContext(): EntityContext;
|
|
65
63
|
getTranslation(): Translation | undefined;
|
|
66
64
|
getLocale(): PackageLocale;
|
|
67
65
|
getDialect(): PackageDialect;
|
|
@@ -6,7 +6,7 @@ import * as tree from '../../tree/index.js';
|
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
7
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
8
8
|
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
|
9
|
-
import {
|
|
9
|
+
import { EntityKind } from '../index.js';
|
|
10
10
|
import type { AliasTypeEntity, CycleFreeAliasedTypeResolutionResult } from '../interfaces/AliasTypeEntity.js';
|
|
11
11
|
import { AliasedType, AliasTypeEntityDefinition } from '../interfaces/AliasTypeEntity.js';
|
|
12
12
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
@@ -26,7 +26,6 @@ export declare class TranslatedAliasTypeEntity implements AliasTypeEntity {
|
|
|
26
26
|
private readonly typeParameters;
|
|
27
27
|
private readonly aliasedType;
|
|
28
28
|
private readonly members;
|
|
29
|
-
private readonly context;
|
|
30
29
|
constructor(originalEntity: AliasTypeEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
31
30
|
getName(): Name;
|
|
32
31
|
getContainingPackage(): PackageEntity;
|
|
@@ -42,7 +41,6 @@ export declare class TranslatedAliasTypeEntity implements AliasTypeEntity {
|
|
|
42
41
|
isHidden(): EntityHidingLevel | undefined;
|
|
43
42
|
getTags(): readonly Tag[];
|
|
44
43
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
45
|
-
getContext(): EntityContext;
|
|
46
44
|
}
|
|
47
45
|
export declare class LocalizedAliasedType extends AliasedType {
|
|
48
46
|
private readonly original;
|
|
@@ -7,7 +7,7 @@ import * as types from '../../types/Type.js';
|
|
|
7
7
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
8
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
9
9
|
import { EntityNaming } from '../EntityNaming.js';
|
|
10
|
-
import {
|
|
10
|
+
import { EntityKind } from '../index.js';
|
|
11
11
|
import type { AnonymousFunctionTypeEntity, PackageFunctionTypeEntity } from '../interfaces/FunctionTypeEntity.js';
|
|
12
12
|
import { FunctionTypeEntityDefinition } from '../interfaces/FunctionTypeEntity.js';
|
|
13
13
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
@@ -30,7 +30,6 @@ export declare class TranslatedPackageFunctionTypeEntity implements PackageFunct
|
|
|
30
30
|
private readonly returnType;
|
|
31
31
|
private readonly members;
|
|
32
32
|
private readonly baseObjectType;
|
|
33
|
-
private readonly context;
|
|
34
33
|
constructor(originalEntity: PackageFunctionTypeEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, node: tree.FunctionTypeTranslationDeclaration | undefined);
|
|
35
34
|
getName(): Name;
|
|
36
35
|
getContainingPackage(): PackageEntity;
|
|
@@ -50,7 +49,6 @@ export declare class TranslatedPackageFunctionTypeEntity implements PackageFunct
|
|
|
50
49
|
getTags(): readonly Tag[];
|
|
51
50
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
52
51
|
getBaseObjectType(): BaseObjectType;
|
|
53
|
-
getContext(): EntityContext;
|
|
54
52
|
}
|
|
55
53
|
export declare class TranslatedAnonymousFunctionTypeEntity implements AnonymousFunctionTypeEntity {
|
|
56
54
|
readonly kind = EntityKind.Type;
|
|
@@ -63,7 +61,6 @@ export declare class TranslatedAnonymousFunctionTypeEntity implements AnonymousF
|
|
|
63
61
|
private readonly returnType;
|
|
64
62
|
private readonly members;
|
|
65
63
|
private readonly baseObjectType;
|
|
66
|
-
private readonly context;
|
|
67
64
|
constructor(originalEntity: AnonymousFunctionTypeEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage);
|
|
68
65
|
getContainingPackage(): PackageEntity;
|
|
69
66
|
getTranslation(): Translation | undefined;
|
|
@@ -82,5 +79,4 @@ export declare class TranslatedAnonymousFunctionTypeEntity implements AnonymousF
|
|
|
82
79
|
getTags(): readonly Tag[];
|
|
83
80
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
84
81
|
getBaseObjectType(): BaseObjectType;
|
|
85
|
-
getContext(): EntityContext;
|
|
86
82
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
2
2
|
import { Tag } from '../../analysis/Tag.js';
|
|
3
3
|
import { Translation } from '../../analysis/Translation.js';
|
|
4
|
-
import { PackageDialect } from '../../common/
|
|
5
|
-
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
4
|
+
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
6
5
|
import { PackageName, PlatformKind } from '../../project/SourcePackage.js';
|
|
7
6
|
import { EntityKind } from '../index.js';
|
|
8
7
|
import type { PackageEntity, TextTranslationPackageEntityInfo } from '../interfaces/PackageEntity.js';
|
|
9
8
|
import { InterfacePackageEntityInfo, PackageEntityDefinition } from '../interfaces/PackageEntity.js';
|
|
10
|
-
import { PackageEntityMembers } from '../
|
|
9
|
+
import { PackageEntityMembers } from '../PackageEntityMembers.js';
|
|
11
10
|
export declare class TranslatedPackageEntity implements PackageEntity {
|
|
12
11
|
readonly kind = EntityKind.Package;
|
|
13
12
|
private readonly originalEntity;
|
|
@@ -9,7 +9,7 @@ import { BaseObjectType, CycleFreeBaseObjectTypeResolutionResult } from '../Base
|
|
|
9
9
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
10
10
|
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
|
11
11
|
import { EntityNaming } from '../EntityNaming.js';
|
|
12
|
-
import {
|
|
12
|
+
import { EntityKind } from '../index.js';
|
|
13
13
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
14
14
|
import type { AnonymousStructuredTypeEntity, PackageStructuredTypeEntity, StructuredTypeEntityDefinition, StructuredTypeKind } from '../interfaces/StructuredTypeEntity.js';
|
|
15
15
|
import { TypeParameterEntity } from '../interfaces/TypeParameterEntity.js';
|
|
@@ -29,7 +29,6 @@ export declare class TranslatedPackageStructuredTypeEntity implements PackageStr
|
|
|
29
29
|
private readonly members;
|
|
30
30
|
private readonly baseObjectType;
|
|
31
31
|
private readonly baseAspectTypes;
|
|
32
|
-
private readonly context;
|
|
33
32
|
constructor(originalEntity: PackageStructuredTypeEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
34
33
|
getName(): Name;
|
|
35
34
|
getContainingPackage(): PackageEntity;
|
|
@@ -50,7 +49,6 @@ export declare class TranslatedPackageStructuredTypeEntity implements PackageStr
|
|
|
50
49
|
isHidden(): EntityHidingLevel | undefined;
|
|
51
50
|
getTags(): readonly Tag[];
|
|
52
51
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
53
|
-
getContext(): EntityContext;
|
|
54
52
|
}
|
|
55
53
|
export declare class TranslatedAnonymousStructuredTypeEntity implements AnonymousStructuredTypeEntity {
|
|
56
54
|
readonly kind = EntityKind.Type;
|
|
@@ -62,7 +60,6 @@ export declare class TranslatedAnonymousStructuredTypeEntity implements Anonymou
|
|
|
62
60
|
private readonly members;
|
|
63
61
|
private readonly baseObjectType;
|
|
64
62
|
private readonly baseAspectTypes;
|
|
65
|
-
private readonly context;
|
|
66
63
|
constructor(originalEntity: AnonymousStructuredTypeEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage);
|
|
67
64
|
getContainingPackage(): PackageEntity;
|
|
68
65
|
getTranslation(): Translation | undefined;
|
|
@@ -82,7 +79,6 @@ export declare class TranslatedAnonymousStructuredTypeEntity implements Anonymou
|
|
|
82
79
|
isHidden(): EntityHidingLevel | undefined;
|
|
83
80
|
getTags(): readonly Tag[];
|
|
84
81
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
85
|
-
getContext(): EntityContext;
|
|
86
82
|
}
|
|
87
83
|
export declare class LocalizedBaseObjectType extends BaseObjectType {
|
|
88
84
|
private readonly original;
|
|
@@ -3,7 +3,7 @@ import { Tag } from '../../analysis/Tag.js';
|
|
|
3
3
|
import { Translation } from '../../analysis/Translation.js';
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
6
|
-
import {
|
|
6
|
+
import { EntityKind, NamedTypeEntity } from '../index.js';
|
|
7
7
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
8
8
|
import type { TypeExtensionEntity, TypeExtensionEntityDefinition } from '../interfaces/TypeExtensionEntity.js';
|
|
9
9
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
@@ -14,7 +14,6 @@ export declare class TranslatedTypeExtensionEntity implements TypeExtensionEntit
|
|
|
14
14
|
private readonly translationPackage;
|
|
15
15
|
private readonly members;
|
|
16
16
|
private readonly extendedTypeEntity;
|
|
17
|
-
private readonly context;
|
|
18
17
|
constructor(originalEntity: TypeExtensionEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage);
|
|
19
18
|
getMembers(): TypeEntityMembers;
|
|
20
19
|
getContainingPackage(): PackageEntity;
|
|
@@ -22,7 +21,6 @@ export declare class TranslatedTypeExtensionEntity implements TypeExtensionEntit
|
|
|
22
21
|
getDefinition(): TypeExtensionEntityDefinition;
|
|
23
22
|
isHidden(): EntityHidingLevel | undefined;
|
|
24
23
|
getTags(): readonly Tag[];
|
|
25
|
-
getContext(): EntityContext;
|
|
26
24
|
getTranslation(): Translation | undefined;
|
|
27
25
|
getLocale(): PackageLocale;
|
|
28
26
|
getDialect(): PackageDialect;
|
|
@@ -5,7 +5,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
5
5
|
import * as types from '../../types/index.js';
|
|
6
6
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
7
7
|
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
|
8
|
-
import {
|
|
8
|
+
import { EntityKind, PackageEntity } from '../index.js';
|
|
9
9
|
import type { EntityContainingTypeParameter, TypeParameterEntity } from '../interfaces/TypeParameterEntity.js';
|
|
10
10
|
import { CycleFreeConstraintResolutionResult, TypeParameterConstraint, TypeParameterEntityDefinition } from '../interfaces/TypeParameterEntity.js';
|
|
11
11
|
import { TypeEntityKind } from '../TypeEntity.js';
|
|
@@ -19,7 +19,6 @@ export declare class TranslatedTypeParameterEntity implements TypeParameterEntit
|
|
|
19
19
|
private readonly containingEntity;
|
|
20
20
|
private readonly defaultType;
|
|
21
21
|
private readonly constraint;
|
|
22
|
-
private readonly context;
|
|
23
22
|
constructor(originalEntity: TypeParameterEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: EntityContainingTypeParameter);
|
|
24
23
|
getName(): Name;
|
|
25
24
|
getConstraint(): TypeParameterConstraint;
|
|
@@ -34,7 +33,6 @@ export declare class TranslatedTypeParameterEntity implements TypeParameterEntit
|
|
|
34
33
|
getLocale(): PackageLocale;
|
|
35
34
|
getDialect(): PackageDialect;
|
|
36
35
|
getOriginalEntity(): TypeParameterEntity;
|
|
37
|
-
getContext(): EntityContext;
|
|
38
36
|
getTags(): readonly Tag[];
|
|
39
37
|
}
|
|
40
38
|
export declare class LocalizedTypeParameterConstraint extends TypeParameterConstraint {
|
|
@@ -7,7 +7,7 @@ import * as types from '../../types/Type.js';
|
|
|
7
7
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
8
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
9
9
|
import { EntityNaming } from '../EntityNaming.js';
|
|
10
|
-
import {
|
|
10
|
+
import { EntityKind } from '../index.js';
|
|
11
11
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
12
12
|
import { TypeParameterEntity } from '../interfaces/TypeParameterEntity.js';
|
|
13
13
|
import type { AnonymousVariantTypeEntity, PackageVariantTypeEntity } from '../interfaces/VariantTypeEntity.js';
|
|
@@ -28,7 +28,6 @@ export declare class TranslatedPackageVariantTypeEntity implements PackageVarian
|
|
|
28
28
|
private readonly underlyingType;
|
|
29
29
|
private readonly members;
|
|
30
30
|
private readonly baseObjectType;
|
|
31
|
-
private readonly context;
|
|
32
31
|
constructor(originalEntity: PackageVariantTypeEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
33
32
|
getName(): Name;
|
|
34
33
|
getContainingPackage(): PackageEntity;
|
|
@@ -46,7 +45,6 @@ export declare class TranslatedPackageVariantTypeEntity implements PackageVarian
|
|
|
46
45
|
getTags(): readonly Tag[];
|
|
47
46
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
48
47
|
getBaseObjectType(): BaseObjectType;
|
|
49
|
-
getContext(): EntityContext;
|
|
50
48
|
}
|
|
51
49
|
export declare class TranslatedAnonymousVariantTypeEntity implements AnonymousVariantTypeEntity {
|
|
52
50
|
readonly kind = EntityKind.Type;
|
|
@@ -58,7 +56,6 @@ export declare class TranslatedAnonymousVariantTypeEntity implements AnonymousVa
|
|
|
58
56
|
private readonly underlyingType;
|
|
59
57
|
private readonly members;
|
|
60
58
|
private readonly baseObjectType;
|
|
61
|
-
private readonly context;
|
|
62
59
|
constructor(originalEntity: AnonymousVariantTypeEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage);
|
|
63
60
|
getContainingPackage(): PackageEntity;
|
|
64
61
|
getTranslation(): Translation | undefined;
|
|
@@ -75,5 +72,4 @@ export declare class TranslatedAnonymousVariantTypeEntity implements AnonymousVa
|
|
|
75
72
|
getTags(): readonly Tag[];
|
|
76
73
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
77
74
|
getBaseObjectType(): BaseObjectType;
|
|
78
|
-
getContext(): EntityContext;
|
|
79
75
|
}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
2
|
+
import { KeywordFlags } from '../tree/KeywordFlags.js';
|
|
2
3
|
import { KeywordKind } from '../tree/KeywordKind.js';
|
|
3
4
|
export type KeywordDictionary = Map<string, KeywordPart>;
|
|
4
|
-
export type KeywordKindDictionary = Map<KeywordKind, Array<
|
|
5
|
+
export type KeywordKindDictionary = Map<KeywordKind, Array<Keyword>>;
|
|
5
6
|
export declare class KeywordPart {
|
|
6
|
-
value: string;
|
|
7
|
+
readonly value: string;
|
|
7
8
|
keywordKind: KeywordKind;
|
|
9
|
+
flags: KeywordFlags;
|
|
8
10
|
subsequentParts?: KeywordDictionary;
|
|
9
11
|
constructor(value: string);
|
|
10
12
|
}
|
|
13
|
+
export declare class Keyword {
|
|
14
|
+
readonly value: string;
|
|
15
|
+
readonly kind: KeywordKind;
|
|
16
|
+
readonly flags: KeywordFlags;
|
|
17
|
+
constructor(value: string, kind: KeywordKind, flags: KeywordFlags);
|
|
18
|
+
}
|
|
11
19
|
export declare function getOrCreateKeywordDictionary(locale: PackageLocale, dialect: PackageDialect): KeywordDictionary;
|
|
12
20
|
export declare function getOrCreateKeywordKindDictionary(locale: PackageLocale, dialect: PackageDialect): KeywordKindDictionary;
|