@artel/artc 0.6.25244 → 0.6.25245
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 +30 -22
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +500 -916
- package/build/{chunk-C7RKXERX.js → chunk-FVBS6MPY.js} +1 -1
- package/build/{chunk-BAAUJYMH.js → chunk-T7WG4Z7I.js} +21018 -19022
- package/build/{chunk-V7EU2U6Y.js → chunk-TVZEHLXD.js} +2 -2
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +49 -80
- package/build/types/analysis/Analyzer.d.ts +59 -73
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +8 -10
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +6 -6
- package/build/types/analysis/CallExpressionMeaning.d.ts +7 -9
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +4 -7
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +1 -2
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +2 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +16 -17
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -7
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -5
- package/build/types/analysis/Localization.d.ts +19 -25
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +29 -31
- package/build/types/analysis/NamedTypeResolver.d.ts +6 -8
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -5
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +4 -9
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +2 -2
- package/build/types/analysis/SourceFileMembers.d.ts +3 -3
- package/build/types/analysis/TagMeaning.d.ts +18 -20
- package/build/types/analysis/Tags.d.ts +1 -1
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +23 -31
- package/build/types/analysis/TypeNarrower.d.ts +1 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +100 -31
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +11 -14
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +5 -6
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +5 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +11 -12
- package/build/types/api/Api.d.ts +0 -3
- package/build/types/common/Name.d.ts +9 -14
- package/build/types/common/TreeQuery.d.ts +2 -0
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +1 -1
- package/build/types/emitter/EntityMap.d.ts +1 -0
- package/build/types/entities/AliasTypeEntity.d.ts +9 -41
- package/build/types/entities/AliasedType.d.ts +62 -0
- package/build/types/entities/ConstructorEntity.d.ts +10 -2
- package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -0
- package/build/types/entities/DestructorEntity.d.ts +6 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +53 -0
- package/build/types/entities/FunctionEntity.d.ts +20 -0
- package/build/types/entities/FunctionTypeEntity.d.ts +15 -4
- package/build/types/entities/GetterEntity.d.ts +15 -2
- package/build/types/entities/IndexerEntity.d.ts +5 -0
- package/build/types/entities/OperatorEntity.d.ts +9 -3
- package/build/types/entities/PackageAliasEntity.d.ts +5 -0
- package/build/types/entities/PackageEntity.d.ts +8 -3
- package/build/types/entities/PackageMembers.d.ts +3 -2
- package/build/types/entities/SetterEntity.d.ts +15 -2
- package/build/types/entities/StructuredTypeEntity.d.ts +64 -15
- package/build/types/entities/TypeEntityMembers.d.ts +2 -5
- package/build/types/entities/TypeExtensionEntity.d.ts +9 -5
- package/build/types/entities/TypeMemberContainer.d.ts +2 -2
- package/build/types/entities/TypeParameterEntity.d.ts +26 -8
- package/build/types/entities/VariableEntity.d.ts +41 -1
- package/build/types/entities/VariantTypeEntity.d.ts +13 -4
- package/build/types/entities/index.d.ts +5 -4
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +54 -0
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +34 -0
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +24 -0
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +75 -0
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +83 -0
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +37 -0
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +35 -0
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +22 -0
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +107 -0
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +46 -0
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +97 -0
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +76 -0
- package/build/types/project/SourcePackage.d.ts +1 -0
- package/build/types/services/DefinitionService.d.ts +0 -1
- package/build/types/services/DisplayService.d.ts +39 -134
- package/build/types/services/NodeSemanticInfo.d.ts +7 -7
- package/build/types/services/ReferencesService.d.ts +5 -3
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -10
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -3
- package/build/types/services/source-generation/SourceGenerationService.d.ts +1 -2
- package/build/types/tree/green/Token.d.ts +6 -7
- package/build/types/ts-interop/Entities.d.ts +64 -13
- package/build/types/ts-interop/TsInteropContext.d.ts +17 -5
- package/build/types/ts-interop/TsPackageContents.d.ts +2 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +3 -3
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +4 -4
- package/build/types/types/StandardTypes.d.ts +3 -2
- package/build/types/types/Substitutions.d.ts +3 -0
- package/build/types/types/Type.d.ts +3 -0
- package/package.json +1 -1
- package/build/types/analysis/EntityLocalizationHelper.d.ts +0 -17
- package/build/types/analysis/FoundDeclaration.d.ts +0 -19
- package/build/types/analysis/LocalizationContext.d.ts +0 -15
- package/build/types/common/SearchName.d.ts +0 -14
- package/build/types/types/Internal.d.ts +0 -1
@@ -0,0 +1,107 @@
|
|
1
|
+
import { Localization, Translation } from '../../analysis/Localization.js';
|
2
|
+
import { Tag } from '../../analysis/Tags.js';
|
3
|
+
import { Name } from '../../common/index.js';
|
4
|
+
import * as types from '../../types/index.js';
|
5
|
+
import { EntityHidingLevel } from '../EntityHiding.js';
|
6
|
+
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
7
|
+
import { EntityNaming } from '../EntityNaming.js';
|
8
|
+
import { EntityContext, EntityKind } from '../index.js';
|
9
|
+
import { PackageEntity } from '../PackageEntity.js';
|
10
|
+
import type { AnonymousStructuredTypeEntity, PackageStructuredTypeEntity } from '../StructuredTypeEntity.js';
|
11
|
+
import { BaseAspectTypes, BaseObjectType, CycleFreeBaseAspectTypesResolutionResult, CycleFreeBaseObjectTypeResolutionResult, StructuredTypeEntityDefinition } from '../StructuredTypeEntity.js';
|
12
|
+
import { SubstitutionApplicationMode } from '../SubstitutionApplicationMode.js';
|
13
|
+
import { TypeEntityKind } from '../TypeEntity.js';
|
14
|
+
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
15
|
+
import { TypeParameterEntity } from '../TypeParameterEntity.js';
|
16
|
+
export declare class TranslatedPackageStructuredTypeEntity implements PackageStructuredTypeEntity {
|
17
|
+
readonly kind = EntityKind.Type;
|
18
|
+
readonly typeEntityKind = TypeEntityKind.Structured;
|
19
|
+
readonly subkind = "package";
|
20
|
+
private readonly _originalEntity;
|
21
|
+
private readonly _translation;
|
22
|
+
private readonly _name;
|
23
|
+
private readonly _localizationContext;
|
24
|
+
private readonly _containingPackage;
|
25
|
+
private readonly _typeParameters;
|
26
|
+
private readonly _members;
|
27
|
+
private readonly _baseObjectType;
|
28
|
+
private readonly _baseAspectTypes;
|
29
|
+
private readonly _context;
|
30
|
+
constructor(originalEntity: PackageStructuredTypeEntity, translation: Translation, name: Name, localizationContext: EntityLocalizationContext);
|
31
|
+
getName(): Name;
|
32
|
+
getContainingPackage(): PackageEntity;
|
33
|
+
getLocalization(): Localization;
|
34
|
+
getOriginalEntity(): PackageStructuredTypeEntity;
|
35
|
+
getNaming(): EntityNaming;
|
36
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
37
|
+
getMembers(): TypeEntityMembers;
|
38
|
+
getDefinition(): StructuredTypeEntityDefinition;
|
39
|
+
markedBasic(): boolean;
|
40
|
+
isAbstract(): boolean;
|
41
|
+
isAspect(): boolean;
|
42
|
+
isRefObject(): boolean;
|
43
|
+
isPlainObject(): boolean;
|
44
|
+
getArity(): number;
|
45
|
+
getBaseObjectType(): BaseObjectType;
|
46
|
+
getBaseAspectTypes(): BaseAspectTypes;
|
47
|
+
isHidden(): EntityHidingLevel | undefined;
|
48
|
+
getTags(): readonly Tag[];
|
49
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
50
|
+
getContext(): EntityContext;
|
51
|
+
}
|
52
|
+
export declare class TranslatedAnonymousStructuredTypeEntity implements AnonymousStructuredTypeEntity {
|
53
|
+
readonly kind = EntityKind.Type;
|
54
|
+
readonly typeEntityKind = TypeEntityKind.Structured;
|
55
|
+
readonly subkind = "anonymous";
|
56
|
+
private readonly _originalEntity;
|
57
|
+
private readonly _translation;
|
58
|
+
private readonly _localizationContext;
|
59
|
+
private readonly _containingPackage;
|
60
|
+
private readonly _typeParameters;
|
61
|
+
private readonly _members;
|
62
|
+
private readonly _baseObjectType;
|
63
|
+
private readonly _baseAspectTypes;
|
64
|
+
private readonly _context;
|
65
|
+
constructor(originalEntity: AnonymousStructuredTypeEntity, translation: Translation, localizationContext: EntityLocalizationContext);
|
66
|
+
getContainingPackage(): PackageEntity;
|
67
|
+
getLocalization(): Localization;
|
68
|
+
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
69
|
+
getNaming(): EntityNaming;
|
70
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
71
|
+
getMembers(): TypeEntityMembers;
|
72
|
+
getDefinition(): StructuredTypeEntityDefinition;
|
73
|
+
markedBasic(): boolean;
|
74
|
+
isAbstract(): boolean;
|
75
|
+
isAspect(): boolean;
|
76
|
+
isRefObject(): boolean;
|
77
|
+
isPlainObject(): boolean;
|
78
|
+
getArity(): number;
|
79
|
+
getBaseObjectType(): BaseObjectType;
|
80
|
+
getBaseAspectTypes(): BaseAspectTypes;
|
81
|
+
isHidden(): EntityHidingLevel | undefined;
|
82
|
+
getTags(): readonly Tag[];
|
83
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
84
|
+
getContext(): EntityContext;
|
85
|
+
}
|
86
|
+
export declare class LocalizedBaseObjectType extends BaseObjectType {
|
87
|
+
private readonly _original;
|
88
|
+
private readonly _localizationContext;
|
89
|
+
private readonly _declared;
|
90
|
+
private readonly _cycleFree;
|
91
|
+
get declared(): types.Type | undefined;
|
92
|
+
get cycleFree(): types.Type | undefined;
|
93
|
+
get causesCycle(): boolean;
|
94
|
+
constructor(original: BaseObjectType, localizationContext: EntityLocalizationContext);
|
95
|
+
resolveBaseObjectType(circularityTrackingStack: boolean[]): CycleFreeBaseObjectTypeResolutionResult;
|
96
|
+
}
|
97
|
+
export declare class LocalizedBaseAspectTypes extends BaseAspectTypes {
|
98
|
+
private readonly _original;
|
99
|
+
private readonly _localizationContext;
|
100
|
+
private readonly _declared;
|
101
|
+
private readonly _cycleFree;
|
102
|
+
get declared(): readonly types.Type[];
|
103
|
+
get cycleFree(): readonly types.Type[];
|
104
|
+
get causesCycle(): boolean;
|
105
|
+
constructor(original: BaseAspectTypes, localizationContext: EntityLocalizationContext);
|
106
|
+
resolveBaseAspectTypes(circularityTrackingStack: boolean[]): CycleFreeBaseAspectTypesResolutionResult;
|
107
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Localization, Translation } from '../../analysis/Localization.js';
|
2
|
+
import { Tag } from '../../analysis/Tags.js';
|
3
|
+
import { EntityHidingLevel } from '../EntityHiding.js';
|
4
|
+
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
5
|
+
import { EntityContext, EntityKind, NamedTypeEntity } from '../index.js';
|
6
|
+
import { PackageEntity } from '../PackageEntity.js';
|
7
|
+
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
8
|
+
import type { TypeExtensionEntity, TypeExtensionEntityDefinition } from '../TypeExtensionEntity.js';
|
9
|
+
export declare class TranslatedTypeExtensionEntity implements TypeExtensionEntity {
|
10
|
+
readonly kind = EntityKind.TypeExtension;
|
11
|
+
private readonly _originalEntity;
|
12
|
+
private readonly _translation;
|
13
|
+
private readonly _localizationContext;
|
14
|
+
private readonly _containingPackage;
|
15
|
+
private readonly _members;
|
16
|
+
private readonly _extendedTypeEntity;
|
17
|
+
private readonly _context;
|
18
|
+
constructor(originalEntity: TypeExtensionEntity, translation: Translation, localizationContext: EntityLocalizationContext);
|
19
|
+
getMembers(): TypeEntityMembers;
|
20
|
+
getContainingPackage(): PackageEntity;
|
21
|
+
getExtendedTypeEntity(): NamedTypeEntity | undefined;
|
22
|
+
getDefinition(): TypeExtensionEntityDefinition;
|
23
|
+
isHidden(): EntityHidingLevel | undefined;
|
24
|
+
getTags(): readonly Tag[];
|
25
|
+
getContext(): EntityContext;
|
26
|
+
getLocalization(): Localization;
|
27
|
+
getOriginalEntity(): TypeExtensionEntity;
|
28
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { Localization, Translation } from '../../analysis/Localization.js';
|
2
|
+
import { Tag } from '../../analysis/Tags.js';
|
3
|
+
import { Name } from '../../common/index.js';
|
4
|
+
import * as types from '../../types/index.js';
|
5
|
+
import { EntityHidingLevel } from '../EntityHiding.js';
|
6
|
+
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
7
|
+
import { EntityContext, EntityKind } from '../index.js';
|
8
|
+
import { TypeEntityKind } from '../TypeEntity.js';
|
9
|
+
import type { TypeParameterEntity } from '../TypeParameterEntity.js';
|
10
|
+
import { CycleFreeConstraintResolutionResult, EntityContainingTypeParameter, TypeParameterConstraint, TypeParameterEntityDefinition } from '../TypeParameterEntity.js';
|
11
|
+
export declare class TranslatedTypeParameterEntity implements TypeParameterEntity {
|
12
|
+
readonly kind = EntityKind.Type;
|
13
|
+
readonly typeEntityKind = TypeEntityKind.Parameter;
|
14
|
+
private readonly _originalEntity;
|
15
|
+
private readonly _translation;
|
16
|
+
private readonly _name;
|
17
|
+
private readonly _localizationContext;
|
18
|
+
private readonly _defaultType;
|
19
|
+
private readonly _constraint;
|
20
|
+
private readonly _context;
|
21
|
+
private readonly _containingEntity;
|
22
|
+
constructor(originalEntity: TypeParameterEntity, translation: Translation, name: Name, localizationContext: EntityLocalizationContext);
|
23
|
+
getName(): Name;
|
24
|
+
getConstraint(): TypeParameterConstraint;
|
25
|
+
getDefaultType(): types.Type | undefined;
|
26
|
+
getDefinition(): TypeParameterEntityDefinition;
|
27
|
+
getArity(): number;
|
28
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
29
|
+
getContainingEntity(): EntityContainingTypeParameter;
|
30
|
+
isHidden(): EntityHidingLevel | undefined;
|
31
|
+
getLocalization(): Localization;
|
32
|
+
getOriginalEntity(): TypeParameterEntity;
|
33
|
+
getContext(): EntityContext;
|
34
|
+
getTags(): readonly Tag[];
|
35
|
+
}
|
36
|
+
export declare class LocalizedTypeParameterConstraint extends TypeParameterConstraint {
|
37
|
+
private readonly _original;
|
38
|
+
private readonly _localizationContext;
|
39
|
+
private readonly _declared;
|
40
|
+
private readonly _cycleFree;
|
41
|
+
get declared(): types.Type | undefined;
|
42
|
+
get cycleFree(): types.Type | undefined;
|
43
|
+
get causesCycle(): boolean;
|
44
|
+
constructor(original: TypeParameterConstraint, localizationContext: EntityLocalizationContext);
|
45
|
+
resolveConstraint(circularityTrackingStack: boolean[]): CycleFreeConstraintResolutionResult;
|
46
|
+
}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { Localization, Translation } from '../../analysis/Localization.js';
|
2
|
+
import { Tag } from '../../analysis/Tags.js';
|
3
|
+
import { Name } from '../../common/index.js';
|
4
|
+
import * as types from '../../types/index.js';
|
5
|
+
import { EntityHidingLevel } from '../EntityHiding.js';
|
6
|
+
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
7
|
+
import { GetterEntity } from '../GetterEntity.js';
|
8
|
+
import { EntityKind, TypeMemberEntityContainer } from '../index.js';
|
9
|
+
import { PackageEntity } from '../PackageEntity.js';
|
10
|
+
import { SetterEntity } from '../SetterEntity.js';
|
11
|
+
import type { FieldEntity, PackageVariableEntity, ParameterVariableEntity } from '../VariableEntity.js';
|
12
|
+
import { ParameterVariableEntityContainer, SpecialVariableEntityInfo, VariableEntityDefinition } from '../VariableEntity.js';
|
13
|
+
export declare class TranslatedPackageVariableEntity implements PackageVariableEntity {
|
14
|
+
readonly kind = EntityKind.Variable;
|
15
|
+
readonly subkind = "package";
|
16
|
+
private readonly _originalEntity;
|
17
|
+
private readonly _translation;
|
18
|
+
private readonly _name;
|
19
|
+
private readonly _localizationContext;
|
20
|
+
private readonly _containingPackage;
|
21
|
+
private readonly _type;
|
22
|
+
private readonly _getter;
|
23
|
+
private readonly _setter;
|
24
|
+
constructor(originalEntity: PackageVariableEntity, translation: Translation, name: Name, localizationContext: EntityLocalizationContext);
|
25
|
+
getContainingPackage(): PackageEntity;
|
26
|
+
getLocalization(): Localization;
|
27
|
+
getOriginalEntity(): PackageVariableEntity;
|
28
|
+
getName(): Name;
|
29
|
+
getType(): types.Type;
|
30
|
+
getDefinition(): VariableEntityDefinition;
|
31
|
+
getGetter(): GetterEntity | undefined;
|
32
|
+
getSetter(): SetterEntity | undefined;
|
33
|
+
isConstant(): boolean;
|
34
|
+
isHidden(): EntityHidingLevel | undefined;
|
35
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
36
|
+
getTags(): readonly Tag[];
|
37
|
+
ensureAllDiagnosticsReported?(): void;
|
38
|
+
}
|
39
|
+
export declare class TranslatedFieldEntity implements FieldEntity {
|
40
|
+
readonly kind = EntityKind.Variable;
|
41
|
+
readonly subkind = "field";
|
42
|
+
private readonly _originalEntity;
|
43
|
+
private readonly _translation;
|
44
|
+
private readonly _name;
|
45
|
+
private readonly _localizationContext;
|
46
|
+
private readonly _container;
|
47
|
+
private readonly _type;
|
48
|
+
private readonly _getter;
|
49
|
+
private readonly _setter;
|
50
|
+
private readonly _overriddenMembers;
|
51
|
+
constructor(originalEntity: FieldEntity, translation: Translation, name: Name, localizationContext: EntityLocalizationContext);
|
52
|
+
getContainer(): TypeMemberEntityContainer;
|
53
|
+
getLocalization(): Localization;
|
54
|
+
getOriginalEntity(): FieldEntity;
|
55
|
+
getName(): Name;
|
56
|
+
getType(): types.Type;
|
57
|
+
getDefinition(): VariableEntityDefinition;
|
58
|
+
isStatic(): boolean;
|
59
|
+
isOverride(): boolean;
|
60
|
+
markedBasic(): boolean;
|
61
|
+
markedAbstract(): boolean;
|
62
|
+
getOverriddenMembers(): readonly types.Field[];
|
63
|
+
isVariant(): boolean;
|
64
|
+
getGetter(): GetterEntity | undefined;
|
65
|
+
getSetter(): SetterEntity | undefined;
|
66
|
+
isConstant(): boolean;
|
67
|
+
isHidden(): EntityHidingLevel | undefined;
|
68
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
69
|
+
getTags(): readonly Tag[];
|
70
|
+
ensureAllDiagnosticsReported?(): void;
|
71
|
+
}
|
72
|
+
export declare class TranslatedParameterVariableEntity implements ParameterVariableEntity {
|
73
|
+
readonly kind = EntityKind.Variable;
|
74
|
+
readonly subkind = "parameter";
|
75
|
+
private readonly _originalEntity;
|
76
|
+
private readonly _translation;
|
77
|
+
private readonly _name;
|
78
|
+
private readonly _localizationContext;
|
79
|
+
private readonly _container;
|
80
|
+
private readonly _type;
|
81
|
+
constructor(originalEntity: ParameterVariableEntity, translation: Translation, name: Name, localizationContext: EntityLocalizationContext);
|
82
|
+
getContainer(): ParameterVariableEntityContainer;
|
83
|
+
isOptional(): boolean;
|
84
|
+
isVariadic(): boolean;
|
85
|
+
getLocalization(): Localization;
|
86
|
+
getOriginalEntity(): ParameterVariableEntity;
|
87
|
+
getName(): Name;
|
88
|
+
getType(): types.Type;
|
89
|
+
getDefinition(): VariableEntityDefinition;
|
90
|
+
getGetter(): GetterEntity | undefined;
|
91
|
+
getSetter(): SetterEntity | undefined;
|
92
|
+
isConstant(): boolean;
|
93
|
+
isHidden(): EntityHidingLevel | undefined;
|
94
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
95
|
+
getTags(): readonly Tag[];
|
96
|
+
ensureAllDiagnosticsReported?(): void;
|
97
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { Localization, Translation } from '../../analysis/Localization.js';
|
2
|
+
import { Tag } from '../../analysis/Tags.js';
|
3
|
+
import { Name } from '../../common/index.js';
|
4
|
+
import * as types from '../../types/Type.js';
|
5
|
+
import { EntityHidingLevel } from '../EntityHiding.js';
|
6
|
+
import { EntityLocalizationContext } from '../EntityLocalizationContext.js';
|
7
|
+
import { EntityNaming } from '../EntityNaming.js';
|
8
|
+
import { EntityContext, EntityKind } from '../index.js';
|
9
|
+
import { PackageEntity } from '../PackageEntity.js';
|
10
|
+
import { BaseObjectType } from '../StructuredTypeEntity.js';
|
11
|
+
import { SubstitutionApplicationMode } from '../SubstitutionApplicationMode.js';
|
12
|
+
import { TypeEntityKind } from '../TypeEntity.js';
|
13
|
+
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
14
|
+
import { TypeParameterEntity } from '../TypeParameterEntity.js';
|
15
|
+
import type { AnonymousVariantTypeEntity, PackageVariantTypeEntity } from '../VariantTypeEntity.js';
|
16
|
+
import { VariantTypeEntityDefinition } from '../VariantTypeEntity.js';
|
17
|
+
export declare class TranslatedPackageVariantTypeEntity implements PackageVariantTypeEntity {
|
18
|
+
readonly kind = EntityKind.Type;
|
19
|
+
readonly typeEntityKind = TypeEntityKind.Variant;
|
20
|
+
readonly subkind = "package";
|
21
|
+
private readonly _originalEntity;
|
22
|
+
private readonly _translation;
|
23
|
+
private readonly _name;
|
24
|
+
private readonly _localizationContext;
|
25
|
+
private readonly _containingPackage;
|
26
|
+
private readonly _typeParameters;
|
27
|
+
private readonly _underlyingType;
|
28
|
+
private readonly _members;
|
29
|
+
private readonly _baseObjectType;
|
30
|
+
private readonly _context;
|
31
|
+
constructor(originalEntity: PackageVariantTypeEntity, translation: Translation, name: Name, localizationContext: EntityLocalizationContext);
|
32
|
+
getName(): Name;
|
33
|
+
getContainingPackage(): PackageEntity;
|
34
|
+
getLocalization(): Localization;
|
35
|
+
getOriginalEntity(): PackageVariantTypeEntity;
|
36
|
+
getNaming(): EntityNaming;
|
37
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
38
|
+
getUnderlyingType(): types.Type;
|
39
|
+
getMembers(): TypeEntityMembers;
|
40
|
+
getDefinition(): VariantTypeEntityDefinition;
|
41
|
+
getArity(): number;
|
42
|
+
isHidden(): EntityHidingLevel | undefined;
|
43
|
+
getTags(): readonly Tag[];
|
44
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
45
|
+
getBaseObjectType(): BaseObjectType;
|
46
|
+
getContext(): EntityContext;
|
47
|
+
}
|
48
|
+
export declare class TranslatedAnonymousVariantTypeEntity implements AnonymousVariantTypeEntity {
|
49
|
+
readonly kind = EntityKind.Type;
|
50
|
+
readonly typeEntityKind = TypeEntityKind.Variant;
|
51
|
+
readonly subkind = "anonymous";
|
52
|
+
private readonly _originalEntity;
|
53
|
+
private readonly _translation;
|
54
|
+
private readonly _localizationContext;
|
55
|
+
private readonly _containingPackage;
|
56
|
+
private readonly _typeParameters;
|
57
|
+
private readonly _underlyingType;
|
58
|
+
private readonly _members;
|
59
|
+
private readonly _baseObjectType;
|
60
|
+
private readonly _context;
|
61
|
+
constructor(originalEntity: AnonymousVariantTypeEntity, translation: Translation, localizationContext: EntityLocalizationContext);
|
62
|
+
getContainingPackage(): PackageEntity;
|
63
|
+
getLocalization(): Localization;
|
64
|
+
getOriginalEntity(): AnonymousVariantTypeEntity;
|
65
|
+
getNaming(): EntityNaming;
|
66
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
67
|
+
getUnderlyingType(): types.Type;
|
68
|
+
getMembers(): TypeEntityMembers;
|
69
|
+
getDefinition(): VariantTypeEntityDefinition;
|
70
|
+
getArity(): number;
|
71
|
+
isHidden(): EntityHidingLevel | undefined;
|
72
|
+
getTags(): readonly Tag[];
|
73
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
74
|
+
getBaseObjectType(): BaseObjectType;
|
75
|
+
getContext(): EntityContext;
|
76
|
+
}
|
@@ -75,6 +75,7 @@ export declare class ProgramPackageConfiguration {
|
|
75
75
|
}
|
76
76
|
export declare class PackageName {
|
77
77
|
readonly segments: ReadonlyNonEmptyArray<Name>;
|
78
|
+
get key(): string;
|
78
79
|
constructor(segments: ReadonlyNonEmptyArray<Name>);
|
79
80
|
static parse(name: string): PackageName;
|
80
81
|
considerEqual(name: PackageName): boolean;
|
@@ -10,7 +10,6 @@ export declare class DefinitionService {
|
|
10
10
|
private getDefinitionOfReference;
|
11
11
|
private getReferenceTargetSourceLocation;
|
12
12
|
private getReferenceTargetEntity;
|
13
|
-
private createLocalizationContextForSourceGeneration;
|
14
13
|
private getSourceLocationsOfVariableEntity;
|
15
14
|
private getSourceLocationsOfSpecialVariable;
|
16
15
|
private getSourceLocationOfSubprogramNode;
|