@artel/artc 0.6.25258 → 0.6.25260
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 +1266 -1217
- package/build/{chunk-642CVYPB.js → chunk-7FERF2MU.js} +11 -11
- package/build/{chunk-QAOTQQD7.js → chunk-RIIOVQBM.js} +14371 -13456
- package/build/{chunk-B5Z42ZT6.js → chunk-ZNXSVPQT.js} +1 -1
- package/build/types/analysis/AccessedFunction.d.ts +11 -11
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
- package/build/types/analysis/Analyzer.d.ts +184 -168
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
- package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
- package/build/types/analysis/AssignmentChecker.d.ts +4 -4
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
- package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
- package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
- package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
- package/build/types/analysis/DisplayableEntity.d.ts +30 -30
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ModifierValidator.d.ts +3 -3
- package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +13 -13
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
- package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
- package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
- package/build/types/analysis/SourceFileMembers.d.ts +6 -6
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
- package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/Tags.d.ts +8 -7
- package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
- package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
- package/build/types/analysis/TypeInferrer.d.ts +4 -4
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
- package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
- package/build/types/analysis/TypeNarrower.d.ts +7 -7
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
- package/build/types/analysis/Utils.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
- package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
- package/build/types/api/Api.d.ts +2 -2
- package/build/types/common/Cached.d.ts +3 -3
- package/build/types/common/CancellationToken.d.ts +2 -2
- package/build/types/common/Delayed.d.ts +2 -2
- package/build/types/common/Displayable.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/Interner.d.ts +1 -1
- package/build/types/common/Lazy.d.ts +3 -3
- package/build/types/common/Option.d.ts +2 -2
- package/build/types/common/PerformanceMeasurement.d.ts +2 -2
- package/build/types/common/Query.d.ts +15 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
- package/build/types/common/TreeQuery.d.ts +2 -5
- package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
- package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
- package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
- package/build/types/emitter/DebugStack.d.ts +2 -2
- package/build/types/emitter/Emitter.d.ts +5 -5
- package/build/types/emitter/EmitterContext.d.ts +21 -21
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/GeneralLowering.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +10 -10
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
- package/build/types/emitter/ir/Nodes.d.ts +28 -27
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/AliasTypeEntity.d.ts +15 -12
- package/build/types/entities/AliasedType.d.ts +2 -2
- package/build/types/entities/BaseAspectTypes.d.ts +31 -0
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +31 -0
- package/build/types/entities/ConstructorEntity.d.ts +51 -38
- package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
- package/build/types/entities/DestructorEntity.d.ts +21 -14
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
- package/build/types/entities/FunctionEntity.d.ts +86 -70
- package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
- package/build/types/entities/GetterEntity.d.ts +51 -30
- package/build/types/entities/IEntity.d.ts +12 -0
- package/build/types/entities/IndexerEntity.d.ts +24 -24
- package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
- package/build/types/entities/OperatorEntity.d.ts +23 -16
- package/build/types/entities/PackageAliasEntity.d.ts +15 -9
- package/build/types/entities/PackageEntity.d.ts +15 -10
- package/build/types/entities/PackageMembers.d.ts +5 -5
- package/build/types/entities/SetterEntity.d.ts +50 -29
- package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeEntityMembers.d.ts +11 -11
- package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
- package/build/types/entities/TypeParameterEntity.d.ts +28 -21
- package/build/types/entities/VariableEntity.d.ts +236 -179
- package/build/types/entities/VariantTypeEntity.d.ts +28 -22
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
- package/build/types/executor/NodeCompiler.d.ts +3 -3
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
- package/build/types/parser/Parser.d.ts +1 -1
- package/build/types/parser/TriviaInterner.d.ts +3 -3
- package/build/types/project/Compilation.d.ts +3 -3
- package/build/types/project/CompilationLoader.d.ts +5 -5
- package/build/types/project/FileSystemTree.d.ts +6 -6
- package/build/types/project/SourceFile.d.ts +2 -2
- package/build/types/project/SourcePackage.d.ts +1 -1
- package/build/types/project/TextFile.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
- package/build/types/services/AssignFieldService.d.ts +10 -0
- package/build/types/services/CodeActionsService.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/CustomCommand.d.ts +13 -7
- package/build/types/services/DefinitionService.d.ts +1 -1
- package/build/types/services/DisplayService.d.ts +76 -80
- package/build/types/services/DocumentHighlightsService.d.ts +1 -1
- package/build/types/services/HoverService.d.ts +3 -3
- package/build/types/services/LanguageServer.d.ts +32 -32
- package/build/types/services/NodeSemanticInfo.d.ts +9 -9
- package/build/types/services/ProjectItemsService.d.ts +1 -1
- package/build/types/services/RenameService.d.ts +1 -1
- package/build/types/services/SemanticTokensService.d.ts +1 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
- package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
- package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +22 -22
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +7 -7
- package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
- package/build/types/tree/BaseNode.d.ts +12 -3
- package/build/types/tree/NodeKind.d.ts +56 -57
- package/build/types/tree/Nodes.d.ts +18 -20
- package/build/types/tree/SyntaxToCode.d.ts +11 -11
- package/build/types/ts-interop/Entities.d.ts +326 -263
- package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
- package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
- package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
- package/build/types/types/AliasType.d.ts +6 -5
- package/build/types/types/FunctionType.d.ts +8 -7
- package/build/types/types/IntersectionType.d.ts +3 -2
- package/build/types/types/ParameterType.d.ts +5 -4
- package/build/types/types/StandardTypes.d.ts +21 -21
- package/build/types/types/StructuredType.d.ts +9 -10
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -0
- package/build/types/types/TypeMembers.d.ts +42 -42
- package/build/types/types/UnionType.d.ts +3 -2
- package/build/types/types/UnresolvedType.d.ts +3 -2
- package/build/types/types/VariantType.d.ts +5 -4
- package/package.json +1 -1
- package/build/types/entities/TypeMemberContainer.d.ts +0 -23
- package/build/types/services/AddPropertyAssignmentService.d.ts +0 -8
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { Localization } from '../analysis/Localization.js';
|
|
2
1
|
import { Tag } from '../analysis/Tags.js';
|
|
2
|
+
import { Translation } from '../analysis/Translation.js';
|
|
3
3
|
import { Analyzer } from '../analysis/index.js';
|
|
4
|
-
import { Name } from '../common/index.js';
|
|
4
|
+
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
5
|
import { AnonymousFunctionTypeDeclaration, PackageFunctionTypeDeclaration } from '../tree/index.js';
|
|
6
6
|
import * as types from '../types/index.js';
|
|
7
|
+
import { BaseObjectType } from './BaseObjectType.js';
|
|
7
8
|
import { EntityNaming } from './EntityNaming.js';
|
|
8
9
|
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
9
10
|
import type { PackageEntity } from './index.js';
|
|
10
|
-
import {
|
|
11
|
+
import { DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, ParameterEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
|
|
11
12
|
export type FunctionTypeEntity = PackageFunctionTypeEntity | AnonymousFunctionTypeEntity;
|
|
12
13
|
export interface PackageFunctionTypeEntity extends IFunctionTypeEntity {
|
|
13
14
|
readonly subkind: 'package';
|
|
14
15
|
getName(): Name;
|
|
15
16
|
getContainingPackage(): PackageEntity;
|
|
16
|
-
|
|
17
|
+
getTranslation(): Translation | undefined;
|
|
17
18
|
getOriginalEntity(): PackageFunctionTypeEntity;
|
|
18
19
|
}
|
|
19
20
|
export interface AnonymousFunctionTypeEntity extends IFunctionTypeEntity {
|
|
20
21
|
readonly subkind: 'anonymous';
|
|
21
22
|
getContainingPackage(): PackageEntity;
|
|
22
|
-
|
|
23
|
+
getTranslation(): Translation | undefined;
|
|
23
24
|
getOriginalEntity(): AnonymousFunctionTypeEntity;
|
|
24
25
|
}
|
|
25
26
|
interface IFunctionTypeEntity extends ITypeEntity {
|
|
@@ -27,7 +28,7 @@ interface IFunctionTypeEntity extends ITypeEntity {
|
|
|
27
28
|
readonly typeEntityKind: TypeEntityKind.Function;
|
|
28
29
|
getNaming(): EntityNaming;
|
|
29
30
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
30
|
-
|
|
31
|
+
getParameters(): readonly ParameterEntity[];
|
|
31
32
|
getReturnType(): types.Type;
|
|
32
33
|
getMembers(): TypeEntityMembers;
|
|
33
34
|
getDefinition(): FunctionTypeEntityDefinition;
|
|
@@ -50,25 +51,26 @@ export type FunctionTypeEntityDefinition = {
|
|
|
50
51
|
kind: DefinitionKind.TypeScript;
|
|
51
52
|
};
|
|
52
53
|
export declare class PackageFunctionTypeDeclarationEntity implements PackageFunctionTypeEntity {
|
|
53
|
-
private readonly
|
|
54
|
-
private readonly
|
|
54
|
+
private readonly analyzer;
|
|
55
|
+
private readonly node;
|
|
55
56
|
readonly kind = EntityKind.Type;
|
|
56
57
|
readonly typeEntityKind = TypeEntityKind.Function;
|
|
57
58
|
readonly subkind = "package";
|
|
58
|
-
private readonly
|
|
59
|
-
private readonly
|
|
60
|
-
private readonly
|
|
61
|
-
private readonly
|
|
62
|
-
private readonly
|
|
63
|
-
private readonly
|
|
64
|
-
private
|
|
59
|
+
private readonly name;
|
|
60
|
+
private readonly typeParameters;
|
|
61
|
+
private readonly parameters;
|
|
62
|
+
private readonly returnType;
|
|
63
|
+
private readonly members;
|
|
64
|
+
private readonly baseObjectType;
|
|
65
|
+
private readonly hiding;
|
|
66
|
+
private modifierFlags_;
|
|
65
67
|
private get modifierFlags();
|
|
66
|
-
constructor(
|
|
68
|
+
constructor(analyzer: Analyzer, node: PackageFunctionTypeDeclaration);
|
|
67
69
|
getNaming(): EntityNaming;
|
|
68
70
|
getName(): Name;
|
|
69
71
|
getContainingPackage(): PackageEntity;
|
|
70
72
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
71
|
-
|
|
73
|
+
getParameters(): readonly ParameterEntity[];
|
|
72
74
|
getReturnType(): types.Type;
|
|
73
75
|
getMembers(): TypeEntityMembers;
|
|
74
76
|
getDefinition(): FunctionTypeEntityDefinition;
|
|
@@ -79,23 +81,25 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
|
79
81
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
80
82
|
getBaseObjectType(): BaseObjectType;
|
|
81
83
|
getContext(): EntityContext;
|
|
82
|
-
|
|
84
|
+
getTranslation(): Translation | undefined;
|
|
85
|
+
getLocale(): PackageLocale;
|
|
86
|
+
getDialect(): PackageDialect;
|
|
83
87
|
getOriginalEntity(): PackageFunctionTypeEntity;
|
|
84
88
|
}
|
|
85
89
|
export declare class AnonymousFunctionTypeDeclarationEntity implements AnonymousFunctionTypeEntity {
|
|
86
|
-
private readonly
|
|
87
|
-
private readonly
|
|
90
|
+
private readonly analyzer;
|
|
91
|
+
private readonly node;
|
|
88
92
|
readonly kind = EntityKind.Type;
|
|
89
93
|
readonly typeEntityKind = TypeEntityKind.Function;
|
|
90
94
|
readonly subkind = "anonymous";
|
|
91
|
-
private readonly
|
|
92
|
-
private readonly
|
|
93
|
-
private readonly
|
|
94
|
-
private readonly
|
|
95
|
-
constructor(
|
|
95
|
+
private readonly parameters;
|
|
96
|
+
private readonly returnType;
|
|
97
|
+
private readonly members;
|
|
98
|
+
private readonly baseObjectType;
|
|
99
|
+
constructor(analyzer: Analyzer, node: AnonymousFunctionTypeDeclaration);
|
|
96
100
|
getNaming(): EntityNaming;
|
|
97
101
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
98
|
-
|
|
102
|
+
getParameters(): readonly ParameterEntity[];
|
|
99
103
|
getReturnType(): types.Type;
|
|
100
104
|
getMembers(): TypeEntityMembers;
|
|
101
105
|
getDefinition(): FunctionTypeEntityDefinition;
|
|
@@ -107,19 +111,21 @@ export declare class AnonymousFunctionTypeDeclarationEntity implements Anonymous
|
|
|
107
111
|
getContainingPackage(): PackageEntity;
|
|
108
112
|
getBaseObjectType(): BaseObjectType;
|
|
109
113
|
getContext(): EntityContext;
|
|
110
|
-
|
|
114
|
+
getTranslation(): Translation | undefined;
|
|
115
|
+
getLocale(): PackageLocale;
|
|
116
|
+
getDialect(): PackageDialect;
|
|
111
117
|
getOriginalEntity(): AnonymousFunctionTypeEntity;
|
|
112
118
|
}
|
|
113
119
|
export declare class UnfinishedIntrinsicAnonymousFunctionTypeEntity {
|
|
114
|
-
private readonly
|
|
120
|
+
private readonly unfinishedValue_;
|
|
115
121
|
get unfinishedValue(): AnonymousFunctionTypeEntity;
|
|
116
122
|
constructor(analyzer: Analyzer, returnType: types.Type, isAsync: boolean, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined, context: EntityContext | undefined);
|
|
117
|
-
finish(typeParameters: readonly TypeParameterEntity[],
|
|
123
|
+
finish(typeParameters: readonly TypeParameterEntity[], parameters: readonly ParameterEntity[]): AnonymousFunctionTypeEntity;
|
|
118
124
|
}
|
|
119
125
|
export declare class UnfinishedIntrinsicPackageFunctionTypeEntity {
|
|
120
|
-
private readonly
|
|
126
|
+
private readonly unfinishedValue_;
|
|
121
127
|
get unfinishedValue(): PackageFunctionTypeEntity;
|
|
122
128
|
constructor(analyzer: Analyzer, name: Name, returnType: types.Type, isAsync: boolean, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined, context: EntityContext | undefined);
|
|
123
|
-
finish(typeParameters: readonly TypeParameterEntity[],
|
|
129
|
+
finish(typeParameters: readonly TypeParameterEntity[], parameters: readonly ParameterEntity[]): PackageFunctionTypeEntity;
|
|
124
130
|
}
|
|
125
131
|
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import { Localization } from '../analysis/Localization.js';
|
|
3
2
|
import { GetterDeclaration } from '../analysis/NodeTypeUtils.js';
|
|
4
3
|
import { Tag } from '../analysis/Tags.js';
|
|
4
|
+
import { Translation } from '../analysis/Translation.js';
|
|
5
|
+
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
6
|
import { DereferencedVariableGetterDeclaration, FieldGetterDeclaration, IndexedElementGetterDeclaration, PackageVariableGetterDeclaration } from '../tree/index.js';
|
|
6
7
|
import * as types from '../types/index.js';
|
|
7
|
-
import {
|
|
8
|
-
|
|
8
|
+
import { IEntity } from './IEntity.js';
|
|
9
|
+
import { DefinitionKind, DereferenceOperatorEntity, EntityHidingLevel, EntityKind, FieldEntity, IndexerEntity, PackageEntity, PackageVariableEntity } from './index.js';
|
|
10
|
+
export interface GetterEntity extends IEntity {
|
|
9
11
|
readonly kind: EntityKind.Getter;
|
|
10
12
|
getReturnType(): types.Type;
|
|
11
13
|
getDefinition(): GetterEntityDefinition;
|
|
@@ -13,7 +15,7 @@ export interface GetterEntity {
|
|
|
13
15
|
getOwningEntity(): EntityOwningGetter;
|
|
14
16
|
isHidden(): EntityHidingLevel | undefined;
|
|
15
17
|
getTags(): readonly Tag[];
|
|
16
|
-
|
|
18
|
+
getTranslation(): Translation | undefined;
|
|
17
19
|
getOriginalEntity(): GetterEntity;
|
|
18
20
|
}
|
|
19
21
|
export type GetterEntityDefinition = {
|
|
@@ -26,82 +28,101 @@ export type GetterEntityDefinition = {
|
|
|
26
28
|
};
|
|
27
29
|
export type EntityOwningGetter = PackageVariableEntity | FieldEntity | IndexerEntity | DereferenceOperatorEntity;
|
|
28
30
|
export declare class PackageVariableGetterDeclarationEntity implements GetterEntity {
|
|
29
|
-
private readonly
|
|
30
|
-
private readonly
|
|
31
|
+
private readonly analyzer;
|
|
32
|
+
private readonly node;
|
|
31
33
|
readonly kind = EntityKind.Getter;
|
|
32
|
-
private
|
|
34
|
+
private modifierFlags_;
|
|
35
|
+
private readonly hiding;
|
|
33
36
|
private get modifierFlags();
|
|
34
|
-
constructor(
|
|
37
|
+
constructor(analyzer: Analyzer, node: PackageVariableGetterDeclaration);
|
|
35
38
|
getReturnType(): types.Type;
|
|
36
39
|
getDefinition(): GetterEntityDefinition;
|
|
37
40
|
isModifyingOwningPlainObject(): boolean;
|
|
38
41
|
getOwningEntity(): EntityOwningGetter;
|
|
42
|
+
getContainingPackage(): PackageEntity;
|
|
39
43
|
isHidden(): EntityHidingLevel | undefined;
|
|
40
44
|
getTags(): readonly Tag[];
|
|
41
|
-
|
|
45
|
+
getTranslation(): Translation | undefined;
|
|
46
|
+
getLocale(): PackageLocale;
|
|
47
|
+
getDialect(): PackageDialect;
|
|
42
48
|
getOriginalEntity(): GetterEntity;
|
|
43
49
|
}
|
|
44
50
|
export declare class FieldGetterDeclarationEntity implements GetterEntity {
|
|
45
|
-
private readonly
|
|
46
|
-
private readonly
|
|
51
|
+
private readonly analyzer;
|
|
52
|
+
private readonly node;
|
|
47
53
|
readonly kind = EntityKind.Getter;
|
|
48
|
-
private
|
|
54
|
+
private readonly hiding;
|
|
55
|
+
private modifierFlags_;
|
|
49
56
|
private get modifierFlags();
|
|
50
|
-
constructor(
|
|
57
|
+
constructor(analyzer: Analyzer, node: FieldGetterDeclaration);
|
|
51
58
|
getReturnType(): types.Type;
|
|
52
59
|
getDefinition(): GetterEntityDefinition;
|
|
53
60
|
isModifyingOwningPlainObject(): boolean;
|
|
54
61
|
getOwningEntity(): EntityOwningGetter;
|
|
62
|
+
getContainingPackage(): PackageEntity;
|
|
55
63
|
isHidden(): EntityHidingLevel | undefined;
|
|
56
64
|
getTags(): readonly Tag[];
|
|
57
|
-
|
|
65
|
+
getTranslation(): Translation | undefined;
|
|
66
|
+
getLocale(): PackageLocale;
|
|
67
|
+
getDialect(): PackageDialect;
|
|
58
68
|
getOriginalEntity(): GetterEntity;
|
|
59
69
|
}
|
|
60
70
|
export declare class IndexedElementGetterDeclarationEntity implements GetterEntity {
|
|
61
|
-
private readonly
|
|
62
|
-
private readonly
|
|
71
|
+
private readonly analyzer;
|
|
72
|
+
private readonly node;
|
|
63
73
|
readonly kind = EntityKind.Getter;
|
|
64
|
-
private
|
|
74
|
+
private readonly hiding;
|
|
75
|
+
private modifierFlags_;
|
|
65
76
|
private get modifierFlags();
|
|
66
|
-
constructor(
|
|
77
|
+
constructor(analyzer: Analyzer, node: IndexedElementGetterDeclaration);
|
|
67
78
|
getReturnType(): types.Type;
|
|
68
79
|
getDefinition(): GetterEntityDefinition;
|
|
69
80
|
isModifyingOwningPlainObject(): boolean;
|
|
70
81
|
getOwningEntity(): EntityOwningGetter;
|
|
82
|
+
getContainingPackage(): PackageEntity;
|
|
71
83
|
isHidden(): EntityHidingLevel | undefined;
|
|
72
84
|
getTags(): readonly Tag[];
|
|
73
|
-
|
|
85
|
+
getTranslation(): Translation | undefined;
|
|
86
|
+
getLocale(): PackageLocale;
|
|
87
|
+
getDialect(): PackageDialect;
|
|
74
88
|
getOriginalEntity(): GetterEntity;
|
|
75
89
|
}
|
|
76
90
|
export declare class DereferencedVariableGetterDeclarationEntity implements GetterEntity {
|
|
77
|
-
private readonly
|
|
78
|
-
private readonly
|
|
91
|
+
private readonly analyzer;
|
|
92
|
+
private readonly node;
|
|
79
93
|
readonly kind = EntityKind.Getter;
|
|
80
|
-
private
|
|
94
|
+
private readonly hiding;
|
|
95
|
+
private modifierFlags_;
|
|
81
96
|
private get modifierFlags();
|
|
82
|
-
constructor(
|
|
97
|
+
constructor(analyzer: Analyzer, node: DereferencedVariableGetterDeclaration);
|
|
83
98
|
getReturnType(): types.Type;
|
|
84
99
|
getDefinition(): GetterEntityDefinition;
|
|
85
100
|
isModifyingOwningPlainObject(): boolean;
|
|
86
101
|
getOwningEntity(): EntityOwningGetter;
|
|
102
|
+
getContainingPackage(): PackageEntity;
|
|
87
103
|
isHidden(): EntityHidingLevel | undefined;
|
|
88
104
|
getTags(): readonly Tag[];
|
|
89
|
-
|
|
105
|
+
getTranslation(): Translation | undefined;
|
|
106
|
+
getLocale(): PackageLocale;
|
|
107
|
+
getDialect(): PackageDialect;
|
|
90
108
|
getOriginalEntity(): GetterEntity;
|
|
91
109
|
}
|
|
92
110
|
export declare class IntrinsicGetterEntity implements GetterEntity {
|
|
93
|
-
private readonly
|
|
94
|
-
private readonly
|
|
95
|
-
private readonly
|
|
96
|
-
private readonly
|
|
111
|
+
private readonly returnType;
|
|
112
|
+
private readonly owningEntity;
|
|
113
|
+
private readonly isHidden_;
|
|
114
|
+
private readonly isModifyingOwningPlainObject_;
|
|
97
115
|
readonly kind = EntityKind.Getter;
|
|
98
|
-
constructor(
|
|
116
|
+
constructor(returnType: types.Type, owningEntity: EntityOwningGetter, isHidden_: EntityHidingLevel | undefined, isModifyingOwningPlainObject_: boolean);
|
|
99
117
|
getReturnType(): types.Type;
|
|
100
118
|
getDefinition(): GetterEntityDefinition;
|
|
101
119
|
isModifyingOwningPlainObject(): boolean;
|
|
102
120
|
getOwningEntity(): EntityOwningGetter;
|
|
121
|
+
getContainingPackage(): PackageEntity;
|
|
103
122
|
isHidden(): EntityHidingLevel | undefined;
|
|
104
123
|
getTags(): readonly Tag[];
|
|
105
|
-
|
|
124
|
+
getTranslation(): Translation | undefined;
|
|
125
|
+
getLocale(): PackageLocale;
|
|
126
|
+
getDialect(): PackageDialect;
|
|
106
127
|
getOriginalEntity(): GetterEntity;
|
|
107
128
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Tag } from '../analysis/Tags.js';
|
|
2
|
+
import { Translation } from '../analysis/Translation.js';
|
|
3
|
+
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
|
+
import { EntityKind, PackageEntity } from './index.js';
|
|
5
|
+
export interface IEntity {
|
|
6
|
+
readonly kind: EntityKind;
|
|
7
|
+
getContainingPackage(): PackageEntity;
|
|
8
|
+
getTranslation(): Translation | undefined;
|
|
9
|
+
getLocale(): PackageLocale;
|
|
10
|
+
getDialect(): PackageDialect;
|
|
11
|
+
getTags(): readonly Tag[];
|
|
12
|
+
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import { Localization } from '../analysis/Localization.js';
|
|
3
2
|
import { Tag } from '../analysis/Tags.js';
|
|
4
|
-
import {
|
|
3
|
+
import { Translation } from '../analysis/Translation.js';
|
|
4
|
+
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
5
|
+
import { IndexedElementGetterDeclaration, IndexedElementSetterDeclaration } from '../tree/index.js';
|
|
5
6
|
import * as types from '../types/index.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
7
|
+
import { IEntity } from './IEntity.js';
|
|
8
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, GetterEntity, PackageEntity, ParameterEntity, SetterEntity, TypeWithMembersOrExtensionEntity } from './index.js';
|
|
9
|
+
export interface IndexerEntity extends IEntity {
|
|
8
10
|
readonly kind: EntityKind.Indexer;
|
|
9
|
-
|
|
11
|
+
getParameters(): readonly ParameterEntity[];
|
|
10
12
|
getType(): types.Type;
|
|
11
13
|
getGetter(): GetterEntity | undefined;
|
|
12
14
|
getSetter(): SetterEntity | undefined;
|
|
13
15
|
getDefinition(): IndexerEntityDefinition;
|
|
14
|
-
|
|
16
|
+
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
15
17
|
isStatic(): boolean;
|
|
16
18
|
isHidden(): EntityHidingLevel | undefined;
|
|
17
19
|
isOverride(): boolean;
|
|
@@ -19,7 +21,7 @@ export interface IndexerEntity {
|
|
|
19
21
|
markedAbstract(): boolean;
|
|
20
22
|
getTags(): readonly Tag[];
|
|
21
23
|
getOverriddenMembers(): readonly types.Indexer[];
|
|
22
|
-
|
|
24
|
+
getTranslation(): Translation | undefined;
|
|
23
25
|
getOriginalEntity(): IndexerEntity;
|
|
24
26
|
ensureAllDiagnosticsReported?(): void;
|
|
25
27
|
}
|
|
@@ -31,28 +33,25 @@ export type IndexerEntityDefinition = {
|
|
|
31
33
|
} | {
|
|
32
34
|
kind: DefinitionKind.TypeScript;
|
|
33
35
|
};
|
|
34
|
-
export
|
|
35
|
-
getParameter(node: ParameterDeclaration): ParameterVariableEntity;
|
|
36
|
-
}
|
|
37
|
-
export declare class IndexerDeclarationEntity implements SourceIndexerEntity {
|
|
36
|
+
export declare class IndexerDeclarationEntity implements IndexerEntity {
|
|
38
37
|
readonly kind = EntityKind.Indexer;
|
|
39
|
-
private readonly
|
|
40
|
-
private readonly
|
|
41
|
-
private readonly
|
|
42
|
-
private readonly
|
|
43
|
-
private readonly
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
38
|
+
private readonly analyzer;
|
|
39
|
+
private readonly getterDeclaration;
|
|
40
|
+
private readonly setterDeclaration;
|
|
41
|
+
private readonly getterOrSetterDeclaration;
|
|
42
|
+
private readonly parameters;
|
|
43
|
+
private containingEntity;
|
|
44
|
+
private modifierFlags_;
|
|
45
|
+
private hasReportedAllDiagnostics;
|
|
47
46
|
private get modifierFlags();
|
|
48
47
|
constructor(analyzer: Analyzer, getterDeclaration: IndexedElementGetterDeclaration | undefined, setterDeclaration: IndexedElementSetterDeclaration | undefined);
|
|
49
|
-
|
|
50
|
-
getValueParameters(): readonly ParameterVariableEntity[];
|
|
48
|
+
getParameters(): readonly ParameterEntity[];
|
|
51
49
|
getType(): types.Type;
|
|
52
50
|
getGetter(): GetterEntity | undefined;
|
|
53
51
|
getSetter(): SetterEntity | undefined;
|
|
54
52
|
getDefinition(): IndexerEntityDefinition;
|
|
55
|
-
|
|
53
|
+
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
54
|
+
getContainingPackage(): PackageEntity;
|
|
56
55
|
isStatic(): boolean;
|
|
57
56
|
isHidden(): EntityHidingLevel | undefined;
|
|
58
57
|
markedBasic(): boolean;
|
|
@@ -60,8 +59,9 @@ export declare class IndexerDeclarationEntity implements SourceIndexerEntity {
|
|
|
60
59
|
markedAbstract(): boolean;
|
|
61
60
|
getTags(): readonly Tag[];
|
|
62
61
|
getOverriddenMembers(): readonly types.Indexer[];
|
|
63
|
-
|
|
62
|
+
getTranslation(): Translation | undefined;
|
|
63
|
+
getLocale(): PackageLocale;
|
|
64
|
+
getDialect(): PackageDialect;
|
|
64
65
|
getOriginalEntity(): IndexerEntity;
|
|
65
66
|
ensureAllDiagnosticsReported(): void;
|
|
66
|
-
private createParameters;
|
|
67
67
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
|
2
|
+
import { Tag } from '../analysis/Tags.js';
|
|
3
|
+
import { Translation } from '../analysis/Translation.js';
|
|
4
|
+
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
1
5
|
import * as tree from '../tree/index.js';
|
|
2
6
|
import * as types from '../types/index.js';
|
|
3
|
-
import {
|
|
4
|
-
import { Tag } from '../analysis/Tags.js';
|
|
7
|
+
import { IEntity } from './IEntity.js';
|
|
5
8
|
import { DefinitionKind, EntityKind, PackageEntity } from './index.js';
|
|
6
|
-
import { Analyzer } from '../analysis/index.js';
|
|
7
|
-
import { Name } from '../common/index.js';
|
|
8
9
|
export type LocalizableTextEntity = LocalizableSimpleTextEntity | LocalizableTextTemplateEntity;
|
|
9
|
-
interface LocalizableTextEntityBase {
|
|
10
|
+
interface LocalizableTextEntityBase extends IEntity {
|
|
10
11
|
readonly kind: EntityKind.LocalizableText;
|
|
11
12
|
getKey(): string;
|
|
12
13
|
getComment(): string | undefined;
|
|
13
14
|
getContainingPackage(): PackageEntity;
|
|
14
15
|
getDefinition(): LocalizableTextEntityDefinition;
|
|
15
16
|
getTags(): readonly Tag[];
|
|
16
|
-
|
|
17
|
+
getTranslation(): Translation | undefined;
|
|
17
18
|
getOriginalEntity(): LocalizableTextEntityBase;
|
|
18
19
|
}
|
|
19
20
|
export interface LocalizableSimpleTextEntity extends LocalizableTextEntityBase {
|
|
@@ -35,33 +36,35 @@ export type LocalizableTextEntityDefinition = {
|
|
|
35
36
|
nodes: readonly (tree.TextLiteral | tree.TextTemplateLiteral)[];
|
|
36
37
|
};
|
|
37
38
|
export declare class TextLiteralEntity implements LocalizableSimpleTextEntity {
|
|
38
|
-
private readonly
|
|
39
|
-
private readonly
|
|
39
|
+
private readonly analyzer;
|
|
40
|
+
private readonly nodes;
|
|
40
41
|
readonly kind = EntityKind.LocalizableText;
|
|
41
42
|
readonly subkind = "simple";
|
|
42
|
-
private readonly
|
|
43
|
-
private readonly
|
|
44
|
-
private readonly
|
|
45
|
-
constructor(
|
|
43
|
+
private readonly key;
|
|
44
|
+
private readonly text;
|
|
45
|
+
private readonly comment;
|
|
46
|
+
constructor(analyzer: Analyzer, nodes: readonly tree.TextLiteral[]);
|
|
46
47
|
getKey(): string;
|
|
47
48
|
getText(): string;
|
|
48
49
|
getComment(): string | undefined;
|
|
49
50
|
getContainingPackage(): PackageEntity;
|
|
50
51
|
getDefinition(): LocalizableTextEntityDefinition;
|
|
51
52
|
getTags(): readonly Tag[];
|
|
52
|
-
|
|
53
|
+
getTranslation(): Translation | undefined;
|
|
54
|
+
getLocale(): PackageLocale;
|
|
55
|
+
getDialect(): PackageDialect;
|
|
53
56
|
getOriginalEntity(): LocalizableTextEntityBase;
|
|
54
57
|
}
|
|
55
58
|
export declare class TextTemplateLiteralEntity implements LocalizableTextTemplateEntity {
|
|
56
|
-
private readonly
|
|
57
|
-
private readonly
|
|
59
|
+
private readonly analyzer;
|
|
60
|
+
private readonly nodes;
|
|
58
61
|
readonly kind = EntityKind.LocalizableText;
|
|
59
62
|
readonly subkind = "template";
|
|
60
|
-
private readonly
|
|
61
|
-
private readonly
|
|
62
|
-
private readonly
|
|
63
|
-
private readonly
|
|
64
|
-
constructor(
|
|
63
|
+
private readonly key;
|
|
64
|
+
private readonly textFragments;
|
|
65
|
+
private readonly parameters;
|
|
66
|
+
private readonly comment;
|
|
67
|
+
constructor(analyzer: Analyzer, nodes: readonly tree.TextTemplateLiteral[]);
|
|
65
68
|
getKey(): string;
|
|
66
69
|
getTextFragments(): readonly string[];
|
|
67
70
|
getParameters(): readonly LocalizableTextTemplateEntityParameter[];
|
|
@@ -69,7 +72,9 @@ export declare class TextTemplateLiteralEntity implements LocalizableTextTemplat
|
|
|
69
72
|
getContainingPackage(): PackageEntity;
|
|
70
73
|
getDefinition(): LocalizableTextEntityDefinition;
|
|
71
74
|
getTags(): readonly Tag[];
|
|
72
|
-
|
|
75
|
+
getTranslation(): Translation | undefined;
|
|
76
|
+
getLocale(): PackageLocale;
|
|
77
|
+
getDialect(): PackageDialect;
|
|
73
78
|
getOriginalEntity(): LocalizableTextEntityBase;
|
|
74
79
|
}
|
|
75
80
|
export {};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import { Localization } from '../analysis/Localization.js';
|
|
3
2
|
import { Tag } from '../analysis/Tags.js';
|
|
3
|
+
import { Translation } from '../analysis/Translation.js';
|
|
4
|
+
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
5
|
import * as tree from '../tree/index.js';
|
|
5
6
|
import * as types from '../types/index.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
7
|
+
import { IEntity } from './IEntity.js';
|
|
8
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, OperatorKind, PackageEntity, ParameterEntity, TypeWithMembersOrExtensionEntity } from './index.js';
|
|
9
|
+
export interface OperatorEntity extends IEntity {
|
|
8
10
|
readonly kind: EntityKind.Operator;
|
|
9
11
|
getOperatorKind(): OperatorKind;
|
|
10
|
-
|
|
12
|
+
getParameters(): readonly ParameterEntity[];
|
|
11
13
|
getReturnType(): types.Type;
|
|
12
14
|
getDefinition(): OperatorEntityDefinition;
|
|
13
|
-
|
|
15
|
+
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
14
16
|
isStatic(): boolean;
|
|
15
17
|
isOverride(): boolean;
|
|
16
18
|
markedBasic(): boolean;
|
|
@@ -18,7 +20,7 @@ export interface OperatorEntity {
|
|
|
18
20
|
isHidden(): EntityHidingLevel | undefined;
|
|
19
21
|
getTags(): readonly Tag[];
|
|
20
22
|
getOverriddenMembers(): readonly types.Operator[];
|
|
21
|
-
|
|
23
|
+
getTranslation(): Translation | undefined;
|
|
22
24
|
getOriginalEntity(): OperatorEntity;
|
|
23
25
|
}
|
|
24
26
|
export type OperatorEntityDefinition = {
|
|
@@ -26,20 +28,23 @@ export type OperatorEntityDefinition = {
|
|
|
26
28
|
node: tree.OperatorDeclaration;
|
|
27
29
|
};
|
|
28
30
|
export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
29
|
-
private readonly
|
|
30
|
-
private readonly
|
|
31
|
+
private readonly analyzer;
|
|
32
|
+
private readonly node;
|
|
31
33
|
readonly kind = EntityKind.Operator;
|
|
32
|
-
private readonly
|
|
33
|
-
private readonly
|
|
34
|
-
private readonly
|
|
35
|
-
private
|
|
34
|
+
private readonly operatorKind;
|
|
35
|
+
private readonly parameters;
|
|
36
|
+
private readonly returnType;
|
|
37
|
+
private readonly hiding;
|
|
38
|
+
private containingEntity;
|
|
39
|
+
private modifierFlags_;
|
|
36
40
|
private get modifierFlags();
|
|
37
|
-
constructor(
|
|
41
|
+
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration);
|
|
38
42
|
getOperatorKind(): OperatorKind;
|
|
39
|
-
|
|
43
|
+
getParameters(): readonly ParameterEntity[];
|
|
40
44
|
getReturnType(): types.Type;
|
|
41
45
|
getDefinition(): OperatorEntityDefinition;
|
|
42
|
-
|
|
46
|
+
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
47
|
+
getContainingPackage(): PackageEntity;
|
|
43
48
|
isStatic(): boolean;
|
|
44
49
|
markedBasic(): boolean;
|
|
45
50
|
isOverride(): boolean;
|
|
@@ -47,7 +52,9 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
|
47
52
|
isHidden(): EntityHidingLevel | undefined;
|
|
48
53
|
getTags(): readonly Tag[];
|
|
49
54
|
getOverriddenMembers(): readonly types.Operator[];
|
|
50
|
-
|
|
55
|
+
getTranslation(): Translation | undefined;
|
|
56
|
+
getLocale(): PackageLocale;
|
|
57
|
+
getDialect(): PackageDialect;
|
|
51
58
|
getOriginalEntity(): OperatorEntity;
|
|
52
59
|
private convertSyntaxOperatorKind;
|
|
53
60
|
}
|
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Tag } from '../analysis/Tags.js';
|
|
3
|
+
import { Translation } from '../analysis/Translation.js';
|
|
4
|
+
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
5
|
import type { Identifier } from '../tree/index.js';
|
|
5
6
|
import { PackageImport } from '../tree/index.js';
|
|
7
|
+
import { IEntity } from './IEntity.js';
|
|
6
8
|
import { DefinitionKind, EntityHidingLevel, EntityKind, PackageEntity } from './index.js';
|
|
7
|
-
export interface PackageAliasEntity {
|
|
9
|
+
export interface PackageAliasEntity extends IEntity {
|
|
8
10
|
readonly kind: EntityKind.PackageAlias;
|
|
9
11
|
getName(): Name;
|
|
10
12
|
getDefinition(): PackageAliasEntityDefinition;
|
|
11
13
|
getPackage(): PackageEntity | undefined;
|
|
12
14
|
isHidden(): EntityHidingLevel | undefined;
|
|
13
15
|
getContainingPackage(): PackageEntity;
|
|
14
|
-
|
|
16
|
+
getTranslation(): Translation | undefined;
|
|
15
17
|
getOriginalEntity(): PackageAliasEntity;
|
|
18
|
+
getTags(): readonly Tag[];
|
|
16
19
|
}
|
|
17
20
|
type PackageAliasEntityDefinition = {
|
|
18
21
|
kind: DefinitionKind.Source;
|
|
19
22
|
node: PackageImport;
|
|
20
23
|
};
|
|
21
24
|
export declare class AliasedPackageImportEntity implements PackageAliasEntity {
|
|
22
|
-
private readonly
|
|
23
|
-
private readonly
|
|
25
|
+
private readonly analyzer;
|
|
26
|
+
private readonly node;
|
|
24
27
|
readonly kind = EntityKind.PackageAlias;
|
|
25
|
-
private readonly
|
|
26
|
-
constructor(
|
|
28
|
+
private readonly name;
|
|
29
|
+
constructor(analyzer: Analyzer, node: PackageImport, alias: Identifier);
|
|
27
30
|
getName(): Name;
|
|
28
31
|
getDefinition(): PackageAliasEntityDefinition;
|
|
29
32
|
getPackage(): PackageEntity | undefined;
|
|
30
33
|
isHidden(): EntityHidingLevel | undefined;
|
|
31
34
|
getContainingPackage(): PackageEntity;
|
|
32
|
-
|
|
35
|
+
getTranslation(): Translation | undefined;
|
|
36
|
+
getLocale(): PackageLocale;
|
|
37
|
+
getDialect(): PackageDialect;
|
|
33
38
|
getOriginalEntity(): PackageAliasEntity;
|
|
39
|
+
getTags(): readonly Tag[];
|
|
34
40
|
}
|
|
35
41
|
export {};
|