@artel/artc 0.6.25282 → 0.6.25284
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 +28 -20
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1836 -1590
- package/build/{chunk-VVFLEWSA.js → chunk-CGOSDN2E.js} +18023 -15286
- package/build/{chunk-DURHSZYF.js → chunk-OBX375YX.js} +1 -1
- package/build/{chunk-3DN3M64Y.js → chunk-ZV3UW5X6.js} +2 -2
- package/build/types/analysis/AccessibilityCheck.d.ts +20 -0
- package/build/types/analysis/Analyzer.d.ts +53 -78
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +2 -4
- package/build/types/analysis/ConstructorCallResolver.d.ts +3 -4
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +2 -1
- package/build/types/analysis/ModifierValidator.d.ts +17 -15
- package/build/types/analysis/NodeTypeUtils.d.ts +3 -3
- package/build/types/analysis/PackageMemberLookup.d.ts +11 -4
- package/build/types/analysis/ReachabilityChecker.d.ts +27 -0
- package/build/types/analysis/ReductionSourceMemberFinder.d.ts +20 -0
- package/build/types/analysis/ReservedNameDictionary.d.ts +14 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +48 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +3 -0
- package/build/types/analysis/TypeArgumentInferrer.d.ts +1 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +36 -22
- package/build/types/analysis/Utils.d.ts +2 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +11 -7
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +4 -1
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +6 -5
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +8 -7
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +4 -5
- package/build/types/analysis/semantic-context/SemanticContextWithParent.d.ts +2 -0
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +11 -6
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +5 -5
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +18 -15
- package/build/types/api/Api.d.ts +1 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/LocalizationHelper.d.ts +8 -6
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +154 -131
- package/build/types/emitter/Entities.d.ts +5 -4
- package/build/types/emitter/EntityMap.d.ts +5 -1
- package/build/types/emitter/IrBuilder.d.ts +1 -0
- package/build/types/emitter/ir/Nodes.d.ts +11 -2
- package/build/types/entities/Entity.d.ts +9 -18
- package/build/types/entities/EntityHiding.d.ts +1 -4
- package/build/types/entities/EntityLocalizationContext.d.ts +3 -3
- package/build/types/entities/IEntity.d.ts +2 -1
- package/build/types/entities/OperatorKind.d.ts +6 -3
- package/build/types/entities/TypeEntity.d.ts +7 -6
- package/build/types/entities/index.d.ts +0 -2
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +1 -6
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -5
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -5
- package/build/types/entities/interfaces/DestructorEntity.d.ts +4 -5
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -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 +2 -5
- package/build/types/entities/interfaces/OperatorEntity.d.ts +3 -5
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +0 -5
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -9
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +99 -0
- 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 +2 -4
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -11
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -8
- package/build/types/entities/interfaces/index.d.ts +1 -0
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +3 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +2 -1
- 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/intrinsic/IntrinsicVariableEntity.d.ts +2 -1
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +1 -2
- package/build/types/entities/source/SourceConstructorEntity.d.ts +6 -2
- package/build/types/entities/source/SourceDereferenceOperatorEntity.d.ts +3 -1
- package/build/types/entities/source/SourceDestructorEntity.d.ts +6 -1
- package/build/types/entities/source/SourceFunctionEntity.d.ts +5 -1
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceIndexerEntity.d.ts +3 -1
- package/build/types/entities/source/SourceOperatorEntity.d.ts +5 -1
- package/build/types/entities/source/SourceReducedTypeEntity.d.ts +44 -0
- 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 +7 -1
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +1 -3
- package/build/types/entities/source/index.d.ts +1 -0
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +9 -4
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +4 -1
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +59 -0
- 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/TranslatedVariableEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/index.d.ts +1 -0
- package/build/types/parser/KeywordDictionary.d.ts +10 -2
- package/build/types/parser/TokenKind.d.ts +46 -44
- package/build/types/project/SourceFile.d.ts +3 -1
- package/build/types/services/CompletionService.d.ts +5 -4
- package/build/types/services/CustomRequests.d.ts +17 -6
- package/build/types/services/DisplayService.d.ts +78 -3
- package/build/types/services/LanguageServer.d.ts +3 -4
- package/build/types/services/ScriptEditingService.d.ts +25 -0
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/Types.d.ts +6 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +16 -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 +57 -54
- package/build/types/tree/NodeKind.d.ts +142 -140
- package/build/types/tree/Nodes.d.ts +55 -29
- 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 +33 -29
- package/build/types/tree/SyntaxToCode.d.ts +4 -0
- package/build/types/tree/TokenFlags.d.ts +15 -0
- package/build/types/tree/TokenKind.d.ts +58 -44
- 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 +11 -12
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/types/AliasType.d.ts +0 -1
- package/build/types/types/FunctionType.d.ts +0 -1
- package/build/types/types/IntersectionType.d.ts +0 -1
- package/build/types/types/ParameterType.d.ts +0 -1
- package/build/types/types/ReducedType.d.ts +24 -0
- package/build/types/types/StructuredType.d.ts +1 -2
- package/build/types/types/SubstitutionStubType.d.ts +21 -0
- package/build/types/types/Type.d.ts +5 -3
- package/build/types/types/TypeFactory.d.ts +4 -2
- package/build/types/types/UnionType.d.ts +0 -1
- package/build/types/types/UnresolvedType.d.ts +0 -1
- package/build/types/types/VariantType.d.ts +0 -1
- package/build/types/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +0 -14
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +0 -11
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +0 -10
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +0 -11
- package/build/types/services/AddBlockToScriptService.d.ts +0 -17
- 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 -58
- /package/build/types/services/{ProjectItemsService.d.ts → WorkspaceItemsService.d.ts} +0 -0
|
@@ -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;
|
|
@@ -2,7 +2,7 @@ import { Tag } from '../../analysis/Tag.js';
|
|
|
2
2
|
import { Translation } from '../../analysis/Translation.js';
|
|
3
3
|
import { Lazy, Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
4
4
|
import * as types from '../../types/index.js';
|
|
5
|
-
import type { EntityContainingParameter, PackageEntity } from '../index.js';
|
|
5
|
+
import type { EntityContainingParameter, PackageEntity, PreservedReducedTypeEntityMemberInfo } from '../index.js';
|
|
6
6
|
import { EntityHidingLevel, EntityKind, FieldEntity, GetterEntity, LocalVariableEntity, LocalVariableKind, PackageVariableEntity, ParameterEntity, SetterEntity, SpecialVariableEntityInfo, TypeWithMembersOrExtensionEntity, VariableEntityDefinition } from '../index.js';
|
|
7
7
|
export declare class IntrinsicPackageVariableEntity implements PackageVariableEntity {
|
|
8
8
|
private readonly name;
|
|
@@ -63,6 +63,7 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
|
63
63
|
markedAbstract(): boolean;
|
|
64
64
|
getOverriddenMembers(): readonly types.Field[];
|
|
65
65
|
isVariant(): boolean;
|
|
66
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Field> | undefined;
|
|
66
67
|
getTranslation(): Translation | undefined;
|
|
67
68
|
getLocale(): PackageLocale;
|
|
68
69
|
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;
|
|
@@ -3,16 +3,18 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
3
3
|
import { Analyzer } from '../../analysis/index.js';
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import { ConstructorDeclaration } from '../../tree/index.js';
|
|
6
|
-
import
|
|
7
|
-
import { EntityHidingLevel, EntityKind, ParameterEntity } from '../index.js';
|
|
6
|
+
import * as types from '../../types/index.js';
|
|
7
|
+
import { ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityHidingLevel, EntityKind, PackageEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
8
|
export declare class ConstructorDeclarationEntity implements ConstructorEntity {
|
|
9
9
|
private readonly analyzer;
|
|
10
10
|
private readonly node;
|
|
11
11
|
readonly kind = EntityKind.Constructor;
|
|
12
12
|
private readonly parameters;
|
|
13
13
|
private readonly hiding;
|
|
14
|
+
private readonly isPreservedReducedTypeMember_;
|
|
14
15
|
private containingEntity;
|
|
15
16
|
private modifierFlags_;
|
|
17
|
+
private hasReportedAllDiagnostics;
|
|
16
18
|
private get modifierFlags();
|
|
17
19
|
constructor(analyzer: Analyzer, node: ConstructorDeclaration);
|
|
18
20
|
getParameters(): readonly ParameterEntity[];
|
|
@@ -23,8 +25,10 @@ export declare class ConstructorDeclarationEntity implements ConstructorEntity {
|
|
|
23
25
|
isHidden(): EntityHidingLevel | undefined;
|
|
24
26
|
markedAbstract(): boolean;
|
|
25
27
|
getTags(): readonly Tag[];
|
|
28
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Constructor> | undefined;
|
|
26
29
|
getTranslation(): Translation | undefined;
|
|
27
30
|
getLocale(): PackageLocale;
|
|
28
31
|
getDialect(): PackageDialect;
|
|
29
32
|
getOriginalEntity(): ConstructorEntity;
|
|
33
|
+
ensureAllDiagnosticsReported(): void;
|
|
30
34
|
}
|
|
@@ -4,13 +4,14 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import { DereferencedVariableGetterDeclaration, DereferencedVariableSetterDeclaration } from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
|
-
import { DereferenceOperatorEntity, DereferenceOperatorEntityDefinition, EntityHidingLevel, EntityKind, GetterEntity, PackageEntity, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
|
+
import { DereferenceOperatorEntity, DereferenceOperatorEntityDefinition, EntityHidingLevel, EntityKind, GetterEntity, PackageEntity, PreservedReducedTypeEntityMemberInfo, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
8
|
export declare class DereferenceOperatorDeclarationEntity implements DereferenceOperatorEntity {
|
|
9
9
|
readonly kind = EntityKind.DereferenceOperator;
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly getterDeclaration;
|
|
12
12
|
private readonly setterDeclaration;
|
|
13
13
|
private readonly getterOrSetterDeclaration;
|
|
14
|
+
private readonly isPreservedReducedTypeMember_;
|
|
14
15
|
private containingEntity;
|
|
15
16
|
private modifierFlags_;
|
|
16
17
|
private hasReportedAllDiagnostics;
|
|
@@ -29,6 +30,7 @@ export declare class DereferenceOperatorDeclarationEntity implements Dereference
|
|
|
29
30
|
markedAbstract(): boolean;
|
|
30
31
|
getTags(): readonly Tag[];
|
|
31
32
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
|
33
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.DereferenceOperator> | undefined;
|
|
32
34
|
getTranslation(): Translation | undefined;
|
|
33
35
|
getLocale(): PackageLocale;
|
|
34
36
|
getDialect(): PackageDialect;
|
|
@@ -3,15 +3,18 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
3
3
|
import { Analyzer } from '../../analysis/index.js';
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import { DestructorDeclaration } from '../../tree/index.js';
|
|
6
|
-
import
|
|
6
|
+
import * as types from '../../types/index.js';
|
|
7
|
+
import { DestructorEntity, DestructorEntityDefinition, EntityHidingLevel, EntityKind, PackageEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
8
|
export declare class DestructorDeclarationEntity implements DestructorEntity {
|
|
8
9
|
private readonly analyzer;
|
|
9
10
|
private readonly node;
|
|
10
11
|
readonly kind = EntityKind.Destructor;
|
|
11
12
|
private readonly parameters;
|
|
12
13
|
private readonly hiding;
|
|
14
|
+
private readonly isPreservedReducedTypeMember_;
|
|
13
15
|
private containingEntity;
|
|
14
16
|
private modifierFlags_;
|
|
17
|
+
private hasReportedAllDiagnostics;
|
|
15
18
|
private get modifierFlags();
|
|
16
19
|
constructor(analyzer: Analyzer, node: DestructorDeclaration);
|
|
17
20
|
getParameters(): readonly ParameterEntity[];
|
|
@@ -21,8 +24,10 @@ export declare class DestructorDeclarationEntity implements DestructorEntity {
|
|
|
21
24
|
isHidden(): EntityHidingLevel | undefined;
|
|
22
25
|
markedAbstract(): boolean;
|
|
23
26
|
getTags(): readonly Tag[];
|
|
27
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Destructor> | undefined;
|
|
24
28
|
getTranslation(): Translation | undefined;
|
|
25
29
|
getLocale(): PackageLocale;
|
|
26
30
|
getDialect(): PackageDialect;
|
|
27
31
|
getOriginalEntity(): DestructorEntity;
|
|
32
|
+
ensureAllDiagnosticsReported(): void;
|
|
28
33
|
}
|
|
@@ -5,7 +5,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
7
|
import type { AnonymousFunctionEntity, EntityNaming, FunctionEntityDefinition, FunctionLiteralParameterDeclarationEntity, MethodEntity, NestedFunctionEntity, PackageEntity, PackageFunctionEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
|
-
import { EntityHidingLevel, EntityKind, ParameterEntity, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
8
|
+
import { EntityHidingLevel, EntityKind, ParameterEntity, PreservedReducedTypeEntityMemberInfo, SubstitutionApplicationMode, TypeParameterEntity } from '../index.js';
|
|
9
9
|
export declare class PackageFunctionDeclarationEntity implements PackageFunctionEntity {
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly node;
|
|
@@ -46,8 +46,10 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
|
46
46
|
private readonly parameters;
|
|
47
47
|
private readonly returnType;
|
|
48
48
|
private readonly hiding;
|
|
49
|
+
private readonly isPreservedReducedTypeMember_;
|
|
49
50
|
private containingEntity;
|
|
50
51
|
private modifierFlags_;
|
|
52
|
+
private hasReportedAllDiagnostics;
|
|
51
53
|
private get modifierFlags();
|
|
52
54
|
constructor(analyzer: Analyzer, node: tree.MethodDeclaration);
|
|
53
55
|
getName(): Name;
|
|
@@ -70,10 +72,12 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
|
70
72
|
isModifyingOwningPlainObject(): boolean;
|
|
71
73
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
72
74
|
getOverriddenMembers(): readonly types.Method[];
|
|
75
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Method> | undefined;
|
|
73
76
|
getTranslation(): Translation | undefined;
|
|
74
77
|
getLocale(): PackageLocale;
|
|
75
78
|
getDialect(): PackageDialect;
|
|
76
79
|
getOriginalEntity(): MethodEntity;
|
|
80
|
+
ensureAllDiagnosticsReported(): void;
|
|
77
81
|
}
|
|
78
82
|
export declare class NestedFunctionDeclarationEntity implements NestedFunctionEntity {
|
|
79
83
|
private readonly analyzer;
|
|
@@ -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,7 +4,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
|
-
import { EntityHidingLevel, EntityKind, GetterEntity, IndexerEntity, IndexerEntityDefinition, PackageEntity, ParameterEntity, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
|
+
import { EntityHidingLevel, EntityKind, GetterEntity, IndexerEntity, IndexerEntityDefinition, PackageEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
8
|
export declare class IndexerDeclarationEntity implements IndexerEntity {
|
|
9
9
|
readonly kind = EntityKind.Indexer;
|
|
10
10
|
private readonly analyzer;
|
|
@@ -12,6 +12,7 @@ export declare class IndexerDeclarationEntity implements IndexerEntity {
|
|
|
12
12
|
private readonly setterDeclaration;
|
|
13
13
|
private readonly getterOrSetterDeclaration;
|
|
14
14
|
private readonly parameters;
|
|
15
|
+
private readonly isPreservedReducedTypeMember_;
|
|
15
16
|
private containingEntity;
|
|
16
17
|
private modifierFlags_;
|
|
17
18
|
private hasReportedAllDiagnostics;
|
|
@@ -31,6 +32,7 @@ export declare class IndexerDeclarationEntity implements IndexerEntity {
|
|
|
31
32
|
markedAbstract(): boolean;
|
|
32
33
|
getTags(): readonly Tag[];
|
|
33
34
|
getOverriddenMembers(): readonly types.Indexer[];
|
|
35
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Indexer> | undefined;
|
|
34
36
|
getTranslation(): Translation | undefined;
|
|
35
37
|
getLocale(): PackageLocale;
|
|
36
38
|
getDialect(): PackageDialect;
|
|
@@ -4,7 +4,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
|
-
import { EntityHidingLevel, EntityKind, OperatorEntity, OperatorEntityDefinition, OperatorKind, PackageEntity, ParameterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
|
+
import { EntityHidingLevel, EntityKind, OperatorEntity, OperatorEntityDefinition, OperatorKind, PackageEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
8
|
export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
9
9
|
private readonly analyzer;
|
|
10
10
|
private readonly node;
|
|
@@ -13,8 +13,10 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
|
13
13
|
private readonly parameters;
|
|
14
14
|
private readonly returnType;
|
|
15
15
|
private readonly hiding;
|
|
16
|
+
private readonly isPreservedReducedTypeMember_;
|
|
16
17
|
private containingEntity;
|
|
17
18
|
private modifierFlags_;
|
|
19
|
+
private hasReportedAllDiagnostic;
|
|
18
20
|
private get modifierFlags();
|
|
19
21
|
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration);
|
|
20
22
|
getOperatorKind(): OperatorKind;
|
|
@@ -30,9 +32,11 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
|
30
32
|
isHidden(): EntityHidingLevel | undefined;
|
|
31
33
|
getTags(): readonly Tag[];
|
|
32
34
|
getOverriddenMembers(): readonly types.Operator[];
|
|
35
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Operator> | undefined;
|
|
33
36
|
getTranslation(): Translation | undefined;
|
|
34
37
|
getLocale(): PackageLocale;
|
|
35
38
|
getDialect(): PackageDialect;
|
|
36
39
|
getOriginalEntity(): OperatorEntity;
|
|
40
|
+
ensureAllDiagnosticsReported(): void;
|
|
37
41
|
private convertSyntaxOperatorKind;
|
|
38
42
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { BaseAspectTypes } from '../BaseAspectTypes.js';
|
|
7
|
+
import { BaseObjectType } from '../BaseObjectType.js';
|
|
8
|
+
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
9
|
+
import { EntityHidingLevel, EntityKind, PackageEntity, ReducedTypeEntity, ReducedTypeEntityDefinition, ReductionSource, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
10
|
+
export declare class PackageReducedTypeDeclarationEntity implements ReducedTypeEntity {
|
|
11
|
+
private readonly analyzer;
|
|
12
|
+
private readonly node;
|
|
13
|
+
readonly kind = EntityKind.Type;
|
|
14
|
+
readonly typeEntityKind = TypeEntityKind.Reduced;
|
|
15
|
+
private readonly name;
|
|
16
|
+
private readonly reductionSource;
|
|
17
|
+
private readonly baseTypes;
|
|
18
|
+
private readonly typeParameters;
|
|
19
|
+
private readonly members;
|
|
20
|
+
private readonly hiding;
|
|
21
|
+
private hasReportedAllDiagnostic;
|
|
22
|
+
private modifierFlags_;
|
|
23
|
+
private get modifierFlags();
|
|
24
|
+
constructor(analyzer: Analyzer, node: tree.PackageReducedTypeDeclaration);
|
|
25
|
+
getName(): Name;
|
|
26
|
+
getContainingPackage(): PackageEntity;
|
|
27
|
+
getReductionSource(): ReductionSource;
|
|
28
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
29
|
+
getMembers(): TypeEntityMembers;
|
|
30
|
+
getBaseObjectType(): BaseObjectType;
|
|
31
|
+
getBaseAspectTypes(): BaseAspectTypes;
|
|
32
|
+
getDefinition(): ReducedTypeEntityDefinition;
|
|
33
|
+
getArity(): number;
|
|
34
|
+
isHidden(): EntityHidingLevel | undefined;
|
|
35
|
+
getTags(): readonly Tag[];
|
|
36
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
37
|
+
getTranslation(): Translation | undefined;
|
|
38
|
+
getLocale(): PackageLocale;
|
|
39
|
+
getDialect(): PackageDialect;
|
|
40
|
+
getOriginalEntity(): ReducedTypeEntity;
|
|
41
|
+
ensureAllDiagnosticsReported?(): void;
|
|
42
|
+
private getPreservedBaseTypes;
|
|
43
|
+
private validatePreservedTypeListAndCreatePreservedTypes;
|
|
44
|
+
}
|
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
7
|
import type { IndexerEntity } from '../index.js';
|
|
8
|
-
import { EntityContainingParameter, EntityHidingLevel, EntityKind, FieldEntity, GetterEntity, LocalVariableEntity, LocalVariableKind, PackageEntity, PackageVariableEntity, ParameterEntity, SetterEntity, SpecialVariableEntityInfo, TypeWithMembersOrExtensionEntity, VariableEntityDefinition } from '../index.js';
|
|
8
|
+
import { EntityContainingParameter, EntityHidingLevel, EntityKind, FieldEntity, GetterEntity, LocalVariableEntity, LocalVariableKind, PackageEntity, PackageVariableEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, SetterEntity, SpecialVariableEntityInfo, TypeWithMembersOrExtensionEntity, VariableEntityDefinition } from '../index.js';
|
|
9
9
|
export declare class PackageVariableDeclarationEntity implements PackageVariableEntity {
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly node;
|
|
@@ -70,6 +70,7 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
|
70
70
|
private readonly name;
|
|
71
71
|
private readonly typeInferrer;
|
|
72
72
|
private readonly hiding;
|
|
73
|
+
private readonly isPreservedReducedTypeMember_;
|
|
73
74
|
private containingEntity;
|
|
74
75
|
private modifierFlags_;
|
|
75
76
|
private hasReportedAllDiagnostics;
|
|
@@ -91,6 +92,7 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
|
91
92
|
isOverride(): boolean;
|
|
92
93
|
markedAbstract(): boolean;
|
|
93
94
|
getOverriddenMembers(): readonly types.Field[];
|
|
95
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Field> | undefined;
|
|
94
96
|
isVariant(): boolean;
|
|
95
97
|
getTranslation(): Translation | undefined;
|
|
96
98
|
getLocale(): PackageLocale;
|
|
@@ -106,6 +108,7 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
|
106
108
|
private readonly setterDeclaration;
|
|
107
109
|
private readonly getterOrSetterDeclaration;
|
|
108
110
|
private readonly name;
|
|
111
|
+
private readonly isPreservedReducedTypeMember_;
|
|
109
112
|
private containingEntity;
|
|
110
113
|
private modifierFlags_;
|
|
111
114
|
private hasReportedAllDiagnostics;
|
|
@@ -127,6 +130,7 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
|
127
130
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
|
128
131
|
getTags(): readonly Tag[];
|
|
129
132
|
getOverriddenMembers(): readonly types.Field[];
|
|
133
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Field> | undefined;
|
|
130
134
|
isVariant(): boolean;
|
|
131
135
|
getTranslation(): Translation | undefined;
|
|
132
136
|
getLocale(): PackageLocale;
|
|
@@ -142,6 +146,7 @@ export declare class VariantValueDeclarationEntity implements FieldEntity {
|
|
|
142
146
|
private readonly variantTypeDeclaration;
|
|
143
147
|
private readonly name;
|
|
144
148
|
private readonly type;
|
|
149
|
+
private readonly isPreservedReducedTypeMember_;
|
|
145
150
|
private containingEntity;
|
|
146
151
|
constructor(analyzer: Analyzer, node: tree.VariantValueDeclaration);
|
|
147
152
|
getName(): Name;
|
|
@@ -160,6 +165,7 @@ export declare class VariantValueDeclarationEntity implements FieldEntity {
|
|
|
160
165
|
isOverride(): boolean;
|
|
161
166
|
markedAbstract(): boolean;
|
|
162
167
|
getOverriddenMembers(): readonly types.Field[];
|
|
168
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Field> | undefined;
|
|
163
169
|
isVariant(): boolean;
|
|
164
170
|
getTranslation(): Translation | undefined;
|
|
165
171
|
getLocale(): PackageLocale;
|
|
@@ -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;
|
|
@@ -9,6 +9,7 @@ export * from './SourceIndexerEntity.js';
|
|
|
9
9
|
export * from './SourceOperatorEntity.js';
|
|
10
10
|
export * from './SourcePackageAliasEntity.js';
|
|
11
11
|
export * from './SourcePackageEntity.js';
|
|
12
|
+
export * from './SourceReducedTypeEntity.js';
|
|
12
13
|
export * from './SourceSetterEntity.js';
|
|
13
14
|
export * from './SourceStructuredTypeEntity.js';
|
|
14
15
|
export * from './SourceTextTranslationEntity.js';
|
|
@@ -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;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
2
|
+
import { Analyzer } from '../../analysis/Analyzer.js';
|
|
2
3
|
import { Tag } from '../../analysis/Tag.js';
|
|
3
4
|
import { Translation } from '../../analysis/Translation.js';
|
|
4
5
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
6
|
import * as tree from '../../tree/index.js';
|
|
7
|
+
import * as types from '../../types/index.js';
|
|
6
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
7
|
-
import { EntityKind, PackageEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
9
|
+
import { EntityKind, PackageEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
10
|
import type { ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo } from '../interfaces/ConstructorEntity.js';
|
|
9
11
|
import { ParameterEntity } from '../interfaces/VariableEntity.js';
|
|
10
12
|
export declare abstract class TranslatedConstructorEntity implements ConstructorEntity {
|
|
11
13
|
readonly kind = EntityKind.Constructor;
|
|
14
|
+
protected readonly analyzer: Analyzer;
|
|
12
15
|
protected readonly originalEntity: ConstructorEntity;
|
|
13
16
|
protected readonly translation: Translation;
|
|
14
17
|
protected readonly translationPackage: AnalyzedTranslationPackage;
|
|
15
18
|
protected readonly containingEntity: TypeWithMembersOrExtensionEntity;
|
|
16
|
-
|
|
19
|
+
private readonly isPreservedReducedTypeMember_;
|
|
20
|
+
constructor(analyzer: Analyzer, originalEntity: ConstructorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
17
21
|
abstract getParameters(): readonly ParameterEntity[];
|
|
18
22
|
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
19
23
|
getContainingPackage(): PackageEntity;
|
|
@@ -26,16 +30,17 @@ export declare abstract class TranslatedConstructorEntity implements Constructor
|
|
|
26
30
|
isHidden(): EntityHidingLevel | undefined;
|
|
27
31
|
markedAbstract(): boolean;
|
|
28
32
|
getTags(): readonly Tag[];
|
|
33
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Constructor> | undefined;
|
|
29
34
|
}
|
|
30
35
|
export declare class SourceTranslatedConstructorEntity extends TranslatedConstructorEntity {
|
|
31
36
|
private readonly node;
|
|
32
37
|
private readonly parameters;
|
|
33
|
-
constructor(originalEntity: ConstructorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity, node: tree.ConstructorTranslation | undefined);
|
|
38
|
+
constructor(analyzer: Analyzer, originalEntity: ConstructorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity, node: tree.ConstructorTranslation | undefined);
|
|
34
39
|
getParameters(): readonly ParameterEntity[];
|
|
35
40
|
}
|
|
36
41
|
export declare class UnfinishedIntrinsicTranslatedConstructorEntity {
|
|
37
42
|
private readonly unfinishedValue_;
|
|
38
43
|
get unfinishedValue(): ConstructorEntity;
|
|
39
|
-
constructor(originalEntity: ConstructorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
44
|
+
constructor(analyzer: Analyzer, originalEntity: ConstructorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
40
45
|
finish(parameters: readonly ParameterEntity[]): ConstructorEntity;
|
|
41
46
|
}
|
|
@@ -4,7 +4,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
5
|
import * as types from '../../types/index.js';
|
|
6
6
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
7
|
-
import { EntityKind, GetterEntity, PackageEntity, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
|
+
import { EntityKind, GetterEntity, PackageEntity, PreservedReducedTypeEntityMemberInfo, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
8
|
import type { DereferenceOperatorEntity, DereferenceOperatorEntityDefinition } from '../interfaces/DereferenceOperatorEntity.js';
|
|
9
9
|
export declare class TranslatedDereferenceOperatorEntity implements DereferenceOperatorEntity {
|
|
10
10
|
readonly kind = EntityKind.DereferenceOperator;
|
|
@@ -16,6 +16,7 @@ export declare class TranslatedDereferenceOperatorEntity implements DereferenceO
|
|
|
16
16
|
private readonly getter;
|
|
17
17
|
private readonly setter;
|
|
18
18
|
private readonly overriddenMembers;
|
|
19
|
+
private readonly isPreservedReducedTypeMember_;
|
|
19
20
|
constructor(originalEntity: DereferenceOperatorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
20
21
|
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
21
22
|
getContainingPackage(): PackageEntity;
|
|
@@ -33,6 +34,7 @@ export declare class TranslatedDereferenceOperatorEntity implements DereferenceO
|
|
|
33
34
|
isOverride(): boolean;
|
|
34
35
|
markedBasic(): boolean;
|
|
35
36
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
|
37
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.DereferenceOperator> | undefined;
|
|
36
38
|
ensureAllDiagnosticsReported?(): void;
|
|
37
39
|
getTags(): readonly Tag[];
|
|
38
40
|
}
|
|
@@ -2,8 +2,9 @@ import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPa
|
|
|
2
2
|
import { Tag } from '../../analysis/Tag.js';
|
|
3
3
|
import { Translation } from '../../analysis/Translation.js';
|
|
4
4
|
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
|
+
import * as types from '../../types/index.js';
|
|
5
6
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
6
|
-
import { EntityKind, PackageEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
|
+
import { EntityKind, PackageEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
8
|
import type { DestructorEntity, DestructorEntityDefinition } from '../interfaces/DestructorEntity.js';
|
|
8
9
|
import { ParameterEntity } from '../interfaces/VariableEntity.js';
|
|
9
10
|
export declare class TranslatedDestructorEntity implements DestructorEntity {
|
|
@@ -13,6 +14,7 @@ export declare class TranslatedDestructorEntity implements DestructorEntity {
|
|
|
13
14
|
private readonly translationPackage;
|
|
14
15
|
private readonly containingEntity;
|
|
15
16
|
private readonly parameters;
|
|
17
|
+
private readonly isPreservedReducedTypeMember_;
|
|
16
18
|
constructor(originalEntity: DestructorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
17
19
|
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
18
20
|
getContainingPackage(): PackageEntity;
|
|
@@ -25,4 +27,5 @@ export declare class TranslatedDestructorEntity implements DestructorEntity {
|
|
|
25
27
|
isHidden(): EntityHidingLevel | undefined;
|
|
26
28
|
markedAbstract(): boolean;
|
|
27
29
|
getTags(): readonly Tag[];
|
|
30
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Destructor> | undefined;
|
|
28
31
|
}
|