@artel/artc 0.6.25283 → 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 +26 -14
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +828 -700
- package/build/{chunk-2Q4QKW7T.js → chunk-CGOSDN2E.js} +20378 -18371
- package/build/{chunk-MJ2ZVHII.js → chunk-OBX375YX.js} +1 -1
- package/build/{chunk-7RAZAZE6.js → chunk-ZV3UW5X6.js} +2 -2
- package/build/types/analysis/AccessibilityCheck.d.ts +20 -0
- package/build/types/analysis/Analyzer.d.ts +16 -8
- 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/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 +4 -2
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +6 -5
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextWithParent.d.ts +2 -0
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +9 -4
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +5 -5
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +2 -2
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +14 -11
- package/build/types/api/Api.d.ts +1 -1
- package/build/types/common/LocalizationHelper.d.ts +2 -2
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +154 -141
- package/build/types/emitter/Entities.d.ts +5 -4
- package/build/types/emitter/EntityMap.d.ts +4 -0
- package/build/types/emitter/IrBuilder.d.ts +1 -0
- package/build/types/entities/Entity.d.ts +9 -6
- package/build/types/entities/EntityHiding.d.ts +1 -4
- package/build/types/entities/EntityLocalizationContext.d.ts +3 -2
- package/build/types/entities/TypeEntity.d.ts +4 -3
- package/build/types/entities/index.d.ts +0 -2
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +2 -2
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -1
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -1
- package/build/types/entities/interfaces/DestructorEntity.d.ts +4 -1
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -1
- package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -1
- package/build/types/entities/interfaces/OperatorEntity.d.ts +3 -1
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +99 -0
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -1
- 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/IntrinsicVariableEntity.d.ts +2 -1
- 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/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/SourceVariableEntity.d.ts +7 -1
- package/build/types/entities/source/index.d.ts +1 -0
- 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/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/TranslatedVariableEntity.d.ts +3 -1
- package/build/types/entities/translated/index.d.ts +1 -0
- package/build/types/project/SourceFile.d.ts +3 -1
- package/build/types/services/CompletionService.d.ts +5 -4
- package/build/types/services/DisplayService.d.ts +70 -3
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -0
- package/build/types/tree/KeywordKind.d.ts +57 -56
- package/build/types/tree/NodeKind.d.ts +142 -140
- package/build/types/tree/Nodes.d.ts +51 -11
- package/build/types/tree/SyntaxFactory.d.ts +2 -0
- package/build/types/tree/SyntaxToCode.d.ts +1 -0
- package/build/types/ts-interop/Entities.d.ts +10 -1
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/types/ReducedType.d.ts +24 -0
- package/build/types/types/Type.d.ts +2 -1
- package/build/types/types/TypeFactory.d.ts +3 -2
- package/build/types/types/index.d.ts +1 -0
- 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
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -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';
|
|
@@ -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
|
}
|
|
@@ -6,7 +6,7 @@ import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
6
6
|
import * as tree from '../../tree/index.js';
|
|
7
7
|
import * as types from '../../types/index.js';
|
|
8
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
9
|
-
import { EntityKind, EntityNaming, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
9
|
+
import { EntityKind, EntityNaming, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
10
10
|
import type { MethodEntity, PackageFunctionEntity } from '../interfaces/FunctionEntity.js';
|
|
11
11
|
import { FunctionEntityDefinition } from '../interfaces/FunctionEntity.js';
|
|
12
12
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
@@ -53,6 +53,7 @@ export declare abstract class TranslatedMethodEntity implements MethodEntity {
|
|
|
53
53
|
protected readonly containingEntity: TypeWithMembersOrExtensionEntity;
|
|
54
54
|
private readonly returnType;
|
|
55
55
|
private readonly overriddenMembers;
|
|
56
|
+
private readonly isPreservedReducedTypeMember_;
|
|
56
57
|
constructor(analyzer: Analyzer, originalEntity: MethodEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
57
58
|
abstract getTypeParameters(): readonly TypeParameterEntity[];
|
|
58
59
|
abstract getParameters(): readonly ParameterEntity[];
|
|
@@ -73,6 +74,7 @@ export declare abstract class TranslatedMethodEntity implements MethodEntity {
|
|
|
73
74
|
isModifyingOwningPlainObject(): boolean;
|
|
74
75
|
isFunctionTypeInvokeMethod(): boolean;
|
|
75
76
|
getOverriddenMembers(): readonly types.Method[];
|
|
77
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Method> | undefined;
|
|
76
78
|
isAsync(): boolean;
|
|
77
79
|
isHidden(): EntityHidingLevel | undefined;
|
|
78
80
|
getTags(): readonly Tag[];
|
|
@@ -5,7 +5,7 @@ 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
7
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
8
|
-
import { EntityKind, GetterEntity, PackageEntity, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
|
+
import { EntityKind, GetterEntity, PackageEntity, PreservedReducedTypeEntityMemberInfo, SetterEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
9
9
|
import type { IndexerEntity, IndexerEntityDefinition } from '../interfaces/IndexerEntity.js';
|
|
10
10
|
import { ParameterEntity } from '../interfaces/VariableEntity.js';
|
|
11
11
|
export declare abstract class TranslatedIndexerEntity implements IndexerEntity {
|
|
@@ -18,6 +18,7 @@ export declare abstract class TranslatedIndexerEntity implements IndexerEntity {
|
|
|
18
18
|
private readonly getter;
|
|
19
19
|
private readonly setter;
|
|
20
20
|
private readonly overriddenMembers;
|
|
21
|
+
private readonly isPreservedReducedTypeMember_;
|
|
21
22
|
constructor(originalEntity: IndexerEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
22
23
|
abstract getParameters(): readonly ParameterEntity[];
|
|
23
24
|
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
@@ -36,6 +37,7 @@ export declare abstract class TranslatedIndexerEntity implements IndexerEntity {
|
|
|
36
37
|
isOverride(): boolean;
|
|
37
38
|
markedBasic(): boolean;
|
|
38
39
|
getOverriddenMembers(): readonly types.Indexer[];
|
|
40
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Indexer> | undefined;
|
|
39
41
|
ensureAllDiagnosticsReported?(): void;
|
|
40
42
|
getTags(): readonly Tag[];
|
|
41
43
|
}
|
|
@@ -6,7 +6,7 @@ import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
|
6
6
|
import * as tree from '../../tree/index.js';
|
|
7
7
|
import * as types from '../../types/index.js';
|
|
8
8
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
9
|
-
import { EntityKind, OperatorKind, PackageEntity, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
9
|
+
import { EntityKind, OperatorKind, PackageEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
10
10
|
import type { OperatorEntity, OperatorEntityDefinition } from '../interfaces/OperatorEntity.js';
|
|
11
11
|
import { ParameterEntity } from '../interfaces/VariableEntity.js';
|
|
12
12
|
export declare abstract class TranslatedOperatorEntity implements OperatorEntity {
|
|
@@ -18,6 +18,7 @@ export declare abstract class TranslatedOperatorEntity implements OperatorEntity
|
|
|
18
18
|
protected readonly containingEntity: TypeWithMembersOrExtensionEntity;
|
|
19
19
|
private readonly returnType;
|
|
20
20
|
private readonly overriddenMembers;
|
|
21
|
+
private readonly isPreservedReducedTypeMember_;
|
|
21
22
|
constructor(analyzer: Analyzer, originalEntity: OperatorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
22
23
|
abstract getParameters(): readonly ParameterEntity[];
|
|
23
24
|
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
@@ -34,6 +35,7 @@ export declare abstract class TranslatedOperatorEntity implements OperatorEntity
|
|
|
34
35
|
markedBasic(): boolean;
|
|
35
36
|
markedAbstract(): boolean;
|
|
36
37
|
getOverriddenMembers(): readonly types.Operator[];
|
|
38
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Operator> | undefined;
|
|
37
39
|
isHidden(): EntityHidingLevel | undefined;
|
|
38
40
|
getTags(): readonly Tag[];
|
|
39
41
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
2
|
+
import { Tag } from '../../analysis/Tag.js';
|
|
3
|
+
import { Translation } from '../../analysis/Translation.js';
|
|
4
|
+
import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
|
+
import * as tree from '../../tree/index.js';
|
|
6
|
+
import * as types from '../../types/index.js';
|
|
7
|
+
import { BaseAspectTypes } from '../BaseAspectTypes.js';
|
|
8
|
+
import { BaseObjectType } from '../BaseObjectType.js';
|
|
9
|
+
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
10
|
+
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
|
11
|
+
import type { ReducedTypeEntity, ReducedTypeEntityDefinition } from '../index.js';
|
|
12
|
+
import { CycleFreeReductionSourceResolutionResult, EntityKind, ReductionSource } from '../index.js';
|
|
13
|
+
import { PackageEntity, TypeParameterEntity } from '../interfaces/index.js';
|
|
14
|
+
import { SubstitutionApplicationMode } from '../SubstitutionApplicationMode.js';
|
|
15
|
+
import { TypeEntityKind } from '../TypeEntity.js';
|
|
16
|
+
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
17
|
+
export declare class TranslatedReducedTypeEntity implements ReducedTypeEntity {
|
|
18
|
+
readonly kind = EntityKind.Type;
|
|
19
|
+
readonly typeEntityKind = TypeEntityKind.Reduced;
|
|
20
|
+
readonly subkind = "package";
|
|
21
|
+
private readonly originalEntity;
|
|
22
|
+
private readonly translation;
|
|
23
|
+
private readonly name;
|
|
24
|
+
private readonly translationPackage;
|
|
25
|
+
private readonly node;
|
|
26
|
+
private readonly typeParameters;
|
|
27
|
+
private readonly members;
|
|
28
|
+
private readonly reductionSource;
|
|
29
|
+
private readonly baseObjectType;
|
|
30
|
+
private readonly baseAspectTypes;
|
|
31
|
+
constructor(originalEntity: ReducedTypeEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
32
|
+
getName(): Name;
|
|
33
|
+
getContainingPackage(): PackageEntity;
|
|
34
|
+
getTranslation(): Translation | undefined;
|
|
35
|
+
getLocale(): PackageLocale;
|
|
36
|
+
getDialect(): PackageDialect;
|
|
37
|
+
getOriginalEntity(): ReducedTypeEntity;
|
|
38
|
+
getReductionSource(): ReductionSource;
|
|
39
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
40
|
+
getMembers(): TypeEntityMembers;
|
|
41
|
+
getDefinition(): ReducedTypeEntityDefinition;
|
|
42
|
+
getArity(): number;
|
|
43
|
+
getBaseObjectType(): BaseObjectType;
|
|
44
|
+
getBaseAspectTypes(): BaseAspectTypes;
|
|
45
|
+
isHidden(): EntityHidingLevel | undefined;
|
|
46
|
+
getTags(): readonly Tag[];
|
|
47
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
48
|
+
}
|
|
49
|
+
export declare class LocalizedReductionSource extends ReductionSource {
|
|
50
|
+
private readonly original;
|
|
51
|
+
private readonly localizationContext;
|
|
52
|
+
private readonly declared_;
|
|
53
|
+
private readonly cycleFree_;
|
|
54
|
+
get declared(): types.Type;
|
|
55
|
+
get cycleFree(): types.Type;
|
|
56
|
+
get causesCycle(): boolean;
|
|
57
|
+
constructor(original: ReductionSource, localizationContext: EntityLocalizationContext);
|
|
58
|
+
resolveReductionSource(circularityTrackingStack: boolean[]): CycleFreeReductionSourceResolutionResult;
|
|
59
|
+
}
|
|
@@ -4,7 +4,7 @@ import { Translation } from '../../analysis/Translation.js';
|
|
|
4
4
|
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
|
-
import { EntityKind, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
7
|
+
import { EntityKind, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
8
|
import { GetterEntity } from '../interfaces/GetterEntity.js';
|
|
9
9
|
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
10
10
|
import { SetterEntity } from '../interfaces/SetterEntity.js';
|
|
@@ -49,6 +49,7 @@ export declare class TranslatedFieldEntity implements FieldEntity {
|
|
|
49
49
|
private readonly getter;
|
|
50
50
|
private readonly setter;
|
|
51
51
|
private readonly overriddenMembers;
|
|
52
|
+
private readonly isPreservedReducedTypeMember_;
|
|
52
53
|
constructor(originalEntity: FieldEntity, translation: Translation, name: Name, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
53
54
|
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
54
55
|
getContainingPackage(): PackageEntity;
|
|
@@ -64,6 +65,7 @@ export declare class TranslatedFieldEntity implements FieldEntity {
|
|
|
64
65
|
markedBasic(): boolean;
|
|
65
66
|
markedAbstract(): boolean;
|
|
66
67
|
getOverriddenMembers(): readonly types.Field[];
|
|
68
|
+
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Field> | undefined;
|
|
67
69
|
isVariant(): boolean;
|
|
68
70
|
getGetter(): GetterEntity | undefined;
|
|
69
71
|
getSetter(): SetterEntity | undefined;
|
|
@@ -8,6 +8,7 @@ export * from './TranslatedGetterEntity.js';
|
|
|
8
8
|
export * from './TranslatedIndexerEntity.js';
|
|
9
9
|
export * from './TranslatedOperatorEntity.js';
|
|
10
10
|
export * from './TranslatedPackageEntity.js';
|
|
11
|
+
export * from './TranslatedReducedTypeEntity.js';
|
|
11
12
|
export * from './TranslatedSetterEntity.js';
|
|
12
13
|
export * from './TranslatedStructuredTypeEntity.js';
|
|
13
14
|
export * from './TranslatedTypeExtensionEntity.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Uri } from '../common/index.js';
|
|
1
|
+
import { PackageDialect, PackageLocale, Uri } from '../common/index.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
3
|
import { SourcePackage } from './SourcePackage.js';
|
|
4
4
|
import { TextFile } from './TextFile.js';
|
|
@@ -7,6 +7,8 @@ export declare class SourceFile extends TextFile {
|
|
|
7
7
|
private package_;
|
|
8
8
|
private readonly node;
|
|
9
9
|
get package(): SourcePackage;
|
|
10
|
+
get locale(): PackageLocale;
|
|
11
|
+
get dialect(): PackageDialect;
|
|
10
12
|
private constructor();
|
|
11
13
|
static create(text: string, uri: Uri, version: number): SourceFile;
|
|
12
14
|
/**
|
|
@@ -87,10 +87,11 @@ export declare const enum CompletionItemKind {
|
|
|
87
87
|
TypeParameter = 17,
|
|
88
88
|
FunctionType = 18,
|
|
89
89
|
AliasType = 19,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
ReducedType = 20,
|
|
91
|
+
InvalidType = 21,
|
|
92
|
+
Keyword = 22,
|
|
93
|
+
TargetSignatureParameter = 23,
|
|
94
|
+
OperatorName = 24
|
|
94
95
|
}
|
|
95
96
|
export type ResolutionResult = ResolutionResult_item | ResolutionResult_notInCache;
|
|
96
97
|
export declare class ResolutionResult_item {
|
|
@@ -59,6 +59,7 @@ export declare class DisplayService {
|
|
|
59
59
|
private displayFunctionTypeUsage;
|
|
60
60
|
private displayParameterTypeUsage;
|
|
61
61
|
private displayAliasTypeUsage;
|
|
62
|
+
private displayReducedTypeUsage;
|
|
62
63
|
private displayUnionOrIntersectionTypeUsage;
|
|
63
64
|
private displayUnresolvedTypeUsage;
|
|
64
65
|
private displaySubstitutionStubTypeUsage;
|
|
@@ -321,7 +322,7 @@ export declare class TypeParameterValue_typeArgument {
|
|
|
321
322
|
readonly kind = "type-argument";
|
|
322
323
|
constructor(value: types.Type);
|
|
323
324
|
}
|
|
324
|
-
export type TypeDeclaration = TypeDeclaration_structured | TypeDeclaration_function | TypeDeclaration_variant | TypeDeclaration_alias | TypeDeclaration_parameter | TypeDeclaration_unresolved;
|
|
325
|
+
export type TypeDeclaration = TypeDeclaration_structured | TypeDeclaration_function | TypeDeclaration_variant | TypeDeclaration_alias | TypeDeclaration_reduced | TypeDeclaration_parameter | TypeDeclaration_unresolved;
|
|
325
326
|
export declare class TypeDeclaration_structured implements ITypeDeclaration {
|
|
326
327
|
readonly value: TypeDeclarationStructured;
|
|
327
328
|
readonly kind = "structured";
|
|
@@ -457,6 +458,39 @@ interface ITypeDeclarationAlias {
|
|
|
457
458
|
getAliasedType(): types.Type;
|
|
458
459
|
getContainer(): DeclarationContainer | undefined;
|
|
459
460
|
}
|
|
461
|
+
export declare class TypeDeclaration_reduced implements ITypeDeclaration {
|
|
462
|
+
readonly value: TypeDeclarationReduced;
|
|
463
|
+
readonly kind = "reduced";
|
|
464
|
+
constructor(value: TypeDeclarationReduced);
|
|
465
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
466
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
467
|
+
getContainer(): DeclarationContainer | undefined;
|
|
468
|
+
}
|
|
469
|
+
export type TypeDeclarationReduced = TypeDeclarationReduced_entity | TypeDeclarationReduced_type;
|
|
470
|
+
export declare class TypeDeclarationReduced_entity implements ITypeDeclarationReduced {
|
|
471
|
+
readonly entity: e.ReducedTypeEntity;
|
|
472
|
+
readonly kind = "entity";
|
|
473
|
+
constructor(entity: e.ReducedTypeEntity);
|
|
474
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
475
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
476
|
+
getReductionSource(): types.Type;
|
|
477
|
+
getContainer(): DeclarationContainer | undefined;
|
|
478
|
+
}
|
|
479
|
+
export declare class TypeDeclarationReduced_type implements ITypeDeclarationReduced {
|
|
480
|
+
readonly type: types.ReducedType;
|
|
481
|
+
readonly kind = "type";
|
|
482
|
+
constructor(type: types.ReducedType);
|
|
483
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
484
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
485
|
+
getReductionSource(): types.Type;
|
|
486
|
+
getContainer(): DeclarationContainer | undefined;
|
|
487
|
+
}
|
|
488
|
+
interface ITypeDeclarationReduced {
|
|
489
|
+
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
490
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
491
|
+
getReductionSource(): types.Type;
|
|
492
|
+
getContainer(): DeclarationContainer | undefined;
|
|
493
|
+
}
|
|
460
494
|
export declare class TypeDeclaration_parameter implements ITypeDeclaration {
|
|
461
495
|
readonly entity: e.TypeParameterEntity;
|
|
462
496
|
readonly kind = "parameter";
|
|
@@ -476,7 +510,7 @@ interface ITypeDeclaration {
|
|
|
476
510
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
477
511
|
getContainer(): DeclarationContainer | undefined;
|
|
478
512
|
}
|
|
479
|
-
type NamedType = NamedType_function | NamedType_structured | NamedType_typeParameter | NamedType_variant | NamedType_alias;
|
|
513
|
+
type NamedType = NamedType_function | NamedType_structured | NamedType_typeParameter | NamedType_variant | NamedType_alias | NamedType_reduced;
|
|
480
514
|
export declare class NamedType_function implements INamedType {
|
|
481
515
|
readonly value: e.PackageFunctionTypeEntity;
|
|
482
516
|
readonly kind = "function";
|
|
@@ -512,6 +546,13 @@ export declare class NamedType_alias implements INamedType {
|
|
|
512
546
|
getEntity(): e.NamedTypeEntity;
|
|
513
547
|
getTypeParameters(): readonly e.TypeParameterEntity[];
|
|
514
548
|
}
|
|
549
|
+
export declare class NamedType_reduced implements INamedType {
|
|
550
|
+
readonly value: e.ReducedTypeEntity;
|
|
551
|
+
readonly kind = "alias";
|
|
552
|
+
constructor(value: e.ReducedTypeEntity);
|
|
553
|
+
getEntity(): e.NamedTypeEntity;
|
|
554
|
+
getTypeParameters(): readonly e.TypeParameterEntity[];
|
|
555
|
+
}
|
|
515
556
|
interface INamedType {
|
|
516
557
|
getEntity(): e.NamedTypeEntity;
|
|
517
558
|
getTypeParameters(): readonly e.TypeParameterEntity[];
|
|
@@ -541,7 +582,7 @@ interface IOperatorDeclaration {
|
|
|
541
582
|
getReturnType(): types.Type;
|
|
542
583
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
543
584
|
}
|
|
544
|
-
export type TypeUsage = StructuredTypeUsage | VariantTypeUsage | FunctionTypeUsage | AliasTypeUsage | ParameterTypeUsage | UnionOrIntersectionTypeUsage | UnresolvedTypeUsage | SubstitutionStubTypeUsage;
|
|
585
|
+
export type TypeUsage = StructuredTypeUsage | VariantTypeUsage | FunctionTypeUsage | AliasTypeUsage | ReducedTypeUsage | ParameterTypeUsage | UnionOrIntersectionTypeUsage | UnresolvedTypeUsage | SubstitutionStubTypeUsage;
|
|
545
586
|
export type StructuredTypeUsage = StructuredTypeUsage_type | StructuredTypeUsage_entity;
|
|
546
587
|
export declare class StructuredTypeUsage_type implements IStructuredTypeUsage {
|
|
547
588
|
readonly type: types.StructuredType;
|
|
@@ -646,6 +687,32 @@ interface IAliasTypeUsage {
|
|
|
646
687
|
getAliasedType(): types.Type;
|
|
647
688
|
getContainer(): DeclarationContainer | undefined;
|
|
648
689
|
}
|
|
690
|
+
export type ReducedTypeUsage = ReducedTypeUsage_type | ReducedTypeUsage_entity;
|
|
691
|
+
export declare class ReducedTypeUsage_type implements IReducedTypeUsage {
|
|
692
|
+
readonly type: types.ReducedType;
|
|
693
|
+
readonly kind = "reduced";
|
|
694
|
+
constructor(type: types.ReducedType);
|
|
695
|
+
getEntity(): e.NamedTypeEntity;
|
|
696
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
697
|
+
getReductionSource(): types.Type;
|
|
698
|
+
getContainer(): DeclarationContainer | undefined;
|
|
699
|
+
}
|
|
700
|
+
export declare class ReducedTypeUsage_entity implements IReducedTypeUsage {
|
|
701
|
+
readonly entity: e.ReducedTypeEntity;
|
|
702
|
+
readonly kind = "reduced";
|
|
703
|
+
constructor(entity: e.ReducedTypeEntity);
|
|
704
|
+
getEntity(): e.NamedTypeEntity;
|
|
705
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
706
|
+
getReductionSource(): types.Type;
|
|
707
|
+
getContainer(): DeclarationContainer | undefined;
|
|
708
|
+
}
|
|
709
|
+
interface IReducedTypeUsage {
|
|
710
|
+
readonly kind: 'reduced';
|
|
711
|
+
getEntity(): e.NamedTypeEntity;
|
|
712
|
+
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
713
|
+
getReductionSource(): types.Type;
|
|
714
|
+
getContainer(): DeclarationContainer | undefined;
|
|
715
|
+
}
|
|
649
716
|
export type ParameterTypeUsage = ParameterTypeUsage_type | ParameterTypeUsage_entity;
|
|
650
717
|
export declare class ParameterTypeUsage_type implements IParameterTypeUsage {
|
|
651
718
|
readonly type: types.ParameterType;
|
|
@@ -9,7 +9,7 @@ export declare class TranslationService {
|
|
|
9
9
|
clearTranslationCache(): void;
|
|
10
10
|
private translateIdentifier;
|
|
11
11
|
private translateKeywords;
|
|
12
|
-
private
|
|
12
|
+
private translateReservedName;
|
|
13
13
|
private createRangeMaps;
|
|
14
14
|
private getTranslationId;
|
|
15
15
|
}
|
|
@@ -17,6 +17,8 @@ export declare class EntityToSyntax {
|
|
|
17
17
|
private convertPackageStructuredTypeModifiers;
|
|
18
18
|
private convertPackageAliasType;
|
|
19
19
|
private convertPackageAliasTypeModifiers;
|
|
20
|
+
private convertPackageReducedType;
|
|
21
|
+
private convertPackageReducedTypeModifiers;
|
|
20
22
|
private convertPackageVariantType;
|
|
21
23
|
private convertPackageVariantTypeModifiers;
|
|
22
24
|
private convertPackageFunctionType;
|
|
@@ -35,6 +37,7 @@ export declare class EntityToSyntax {
|
|
|
35
37
|
private convertVariant;
|
|
36
38
|
private createStructuredTypeDeclarationBody;
|
|
37
39
|
private createAliasTypeDeclarationBody;
|
|
40
|
+
private createReducedTypeDeclarationBody;
|
|
38
41
|
private createVariantTypeDeclarationBody;
|
|
39
42
|
private createFunctionTypeDeclarationBody;
|
|
40
43
|
private convertTypeParameters;
|
|
@@ -49,6 +52,7 @@ export declare class EntityToSyntax {
|
|
|
49
52
|
private convertVariantType;
|
|
50
53
|
private convertFunctionType;
|
|
51
54
|
private convertAliasType;
|
|
55
|
+
private convertReducedType;
|
|
52
56
|
private convertParameterType;
|
|
53
57
|
private convertUnionType;
|
|
54
58
|
private convertIntersectionType;
|