@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,11 +1,13 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { Tag } from '../analysis/Tags.js';
|
|
3
|
+
import { Translation } from '../analysis/Translation.js';
|
|
3
4
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
5
|
import type { JavaScriptImplementationConfig, SourcePackage } from '../project/index.js';
|
|
5
6
|
import { PackageName, PlatformKind } from '../project/index.js';
|
|
7
|
+
import { IEntity } from './IEntity.js';
|
|
6
8
|
import { DefinitionKind, EntityKind } from './index.js';
|
|
7
9
|
import { PackageEntityMembers } from './PackageMembers.js';
|
|
8
|
-
export interface PackageEntity {
|
|
10
|
+
export interface PackageEntity extends IEntity {
|
|
9
11
|
readonly kind: EntityKind.Package;
|
|
10
12
|
getName(): PackageName;
|
|
11
13
|
getLocale(): PackageLocale;
|
|
@@ -15,8 +17,9 @@ export interface PackageEntity {
|
|
|
15
17
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
|
16
18
|
getSupportedPlatforms(): readonly PlatformKind[];
|
|
17
19
|
getDefinition(): PackageEntityDefinition;
|
|
18
|
-
|
|
20
|
+
getTranslation(): Translation | undefined;
|
|
19
21
|
getOriginalEntity(): PackageEntity;
|
|
22
|
+
getTags(): readonly Tag[];
|
|
20
23
|
}
|
|
21
24
|
export type PackageEntityDefinition = {
|
|
22
25
|
kind: DefinitionKind.Source;
|
|
@@ -43,13 +46,13 @@ export declare namespace InterfacePackageEntityInfo {
|
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
export declare class SourcePackageEntity implements PackageEntity {
|
|
46
|
-
private readonly
|
|
47
|
-
private readonly
|
|
49
|
+
private readonly analyzer;
|
|
50
|
+
private readonly package_;
|
|
48
51
|
readonly kind = EntityKind.Package;
|
|
49
|
-
private readonly
|
|
50
|
-
private readonly
|
|
51
|
-
private readonly
|
|
52
|
-
constructor(
|
|
52
|
+
private readonly members;
|
|
53
|
+
private readonly isInterface_;
|
|
54
|
+
private readonly implementedInterfacePackage;
|
|
55
|
+
constructor(analyzer: Analyzer, package_: SourcePackage);
|
|
53
56
|
getName(): PackageName;
|
|
54
57
|
getLocale(): PackageLocale;
|
|
55
58
|
getDialect(): PackageDialect;
|
|
@@ -57,7 +60,9 @@ export declare class SourcePackageEntity implements PackageEntity {
|
|
|
57
60
|
isInterface(): InterfacePackageEntityInfo | undefined;
|
|
58
61
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
|
59
62
|
getSupportedPlatforms(): readonly PlatformKind[];
|
|
63
|
+
getContainingPackage(): PackageEntity;
|
|
60
64
|
getDefinition(): PackageEntityDefinition;
|
|
61
|
-
|
|
65
|
+
getTranslation(): Translation | undefined;
|
|
62
66
|
getOriginalEntity(): PackageEntity;
|
|
67
|
+
getTags(): readonly Tag[];
|
|
63
68
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Name } from '../common/index.js';
|
|
2
2
|
import { NamedPackageMemberEntity, TypeEntity, TypeExtensionEntity } from '../entities/index.js';
|
|
3
3
|
export declare class PackageEntityMembers {
|
|
4
|
-
private readonly
|
|
5
|
-
private readonly
|
|
6
|
-
private static readonly
|
|
7
|
-
private readonly
|
|
4
|
+
private readonly namedMembers;
|
|
5
|
+
private readonly typeExtensions;
|
|
6
|
+
private static readonly emptyNamedMembers;
|
|
7
|
+
private readonly membersByNameKey_;
|
|
8
8
|
private get membersByNameKey();
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(namedMembers: readonly NamedPackageMemberEntity[], typeExtensions: readonly TypeExtensionEntity[]);
|
|
10
10
|
getNamedMembers(): readonly NamedPackageMemberEntity[];
|
|
11
11
|
getNamedMembersByName(name: Name): readonly NamedPackageMemberEntity[];
|
|
12
12
|
getTypeExtensions(): readonly TypeExtensionEntity[];
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
|
-
import { Localization } from '../analysis/Localization.js';
|
|
3
2
|
import { SetterDeclaration } 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 { DereferencedVariableSetterDeclaration, FieldSetterDeclaration, IndexedElementSetterDeclaration, PackageVariableSetterDeclaration } from '../tree/index.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
7
|
+
import { IEntity } from './IEntity.js';
|
|
8
|
+
import { DefinitionKind, DereferenceOperatorEntity, EntityHidingLevel, EntityKind, FieldEntity, IndexerEntity, PackageEntity, PackageVariableEntity } from './index.js';
|
|
9
|
+
export interface SetterEntity extends IEntity {
|
|
8
10
|
readonly kind: EntityKind.Setter;
|
|
9
11
|
getDefinition(): SetterEntityDefinition;
|
|
10
12
|
isModifyingOwningPlainObject(): boolean;
|
|
11
13
|
getOwningEntity(): EntityOwningSetter;
|
|
12
14
|
isHidden(): EntityHidingLevel | undefined;
|
|
13
15
|
getTags(): readonly Tag[];
|
|
14
|
-
|
|
16
|
+
getTranslation(): Translation | undefined;
|
|
15
17
|
getOriginalEntity(): SetterEntity;
|
|
16
18
|
}
|
|
17
19
|
export type SetterEntityDefinition = {
|
|
@@ -24,76 +26,95 @@ export type SetterEntityDefinition = {
|
|
|
24
26
|
};
|
|
25
27
|
export type EntityOwningSetter = PackageVariableEntity | FieldEntity | IndexerEntity | DereferenceOperatorEntity;
|
|
26
28
|
export declare class PackageVariableSetterDeclarationEntity implements SetterEntity {
|
|
27
|
-
private readonly
|
|
28
|
-
private readonly
|
|
29
|
+
private readonly analyzer;
|
|
30
|
+
private readonly node;
|
|
29
31
|
readonly kind = EntityKind.Setter;
|
|
30
|
-
private
|
|
32
|
+
private readonly hiding;
|
|
33
|
+
private modifierFlags_;
|
|
31
34
|
private get modifierFlags();
|
|
32
|
-
constructor(
|
|
35
|
+
constructor(analyzer: Analyzer, node: PackageVariableSetterDeclaration);
|
|
33
36
|
getDefinition(): SetterEntityDefinition;
|
|
34
37
|
isModifyingOwningPlainObject(): boolean;
|
|
35
38
|
getOwningEntity(): EntityOwningSetter;
|
|
39
|
+
getContainingPackage(): PackageEntity;
|
|
36
40
|
isHidden(): EntityHidingLevel | undefined;
|
|
37
41
|
getTags(): readonly Tag[];
|
|
38
|
-
|
|
42
|
+
getTranslation(): Translation | undefined;
|
|
43
|
+
getLocale(): PackageLocale;
|
|
44
|
+
getDialect(): PackageDialect;
|
|
39
45
|
getOriginalEntity(): SetterEntity;
|
|
40
46
|
}
|
|
41
47
|
export declare class FieldSetterDeclarationEntity implements SetterEntity {
|
|
42
|
-
private readonly
|
|
43
|
-
private readonly
|
|
48
|
+
private readonly analyzer;
|
|
49
|
+
private readonly node;
|
|
44
50
|
readonly kind = EntityKind.Setter;
|
|
45
|
-
private
|
|
51
|
+
private readonly hiding;
|
|
52
|
+
private modifierFlags_;
|
|
46
53
|
private get modifierFlags();
|
|
47
|
-
constructor(
|
|
54
|
+
constructor(analyzer: Analyzer, node: FieldSetterDeclaration);
|
|
48
55
|
getDefinition(): SetterEntityDefinition;
|
|
49
56
|
isModifyingOwningPlainObject(): boolean;
|
|
50
57
|
getOwningEntity(): EntityOwningSetter;
|
|
58
|
+
getContainingPackage(): PackageEntity;
|
|
51
59
|
isHidden(): EntityHidingLevel | undefined;
|
|
52
60
|
getTags(): readonly Tag[];
|
|
53
|
-
|
|
61
|
+
getTranslation(): Translation | undefined;
|
|
62
|
+
getLocale(): PackageLocale;
|
|
63
|
+
getDialect(): PackageDialect;
|
|
54
64
|
getOriginalEntity(): SetterEntity;
|
|
55
65
|
}
|
|
56
66
|
export declare class IndexedElementSetterDeclarationEntity implements SetterEntity {
|
|
57
|
-
private readonly
|
|
58
|
-
private readonly
|
|
67
|
+
private readonly analyzer;
|
|
68
|
+
private readonly node;
|
|
59
69
|
readonly kind = EntityKind.Setter;
|
|
60
|
-
private
|
|
70
|
+
private readonly hiding;
|
|
71
|
+
private modifierFlags_;
|
|
61
72
|
private get modifierFlags();
|
|
62
|
-
constructor(
|
|
73
|
+
constructor(analyzer: Analyzer, node: IndexedElementSetterDeclaration);
|
|
63
74
|
getDefinition(): SetterEntityDefinition;
|
|
64
75
|
isModifyingOwningPlainObject(): boolean;
|
|
65
76
|
getOwningEntity(): EntityOwningSetter;
|
|
77
|
+
getContainingPackage(): PackageEntity;
|
|
66
78
|
isHidden(): EntityHidingLevel | undefined;
|
|
67
79
|
getTags(): readonly Tag[];
|
|
68
|
-
|
|
80
|
+
getTranslation(): Translation | undefined;
|
|
81
|
+
getLocale(): PackageLocale;
|
|
82
|
+
getDialect(): PackageDialect;
|
|
69
83
|
getOriginalEntity(): SetterEntity;
|
|
70
84
|
}
|
|
71
85
|
export declare class DereferencedVariableSetterDeclarationEntity implements SetterEntity {
|
|
72
|
-
private readonly
|
|
73
|
-
private readonly
|
|
86
|
+
private readonly analyzer;
|
|
87
|
+
private readonly node;
|
|
74
88
|
readonly kind = EntityKind.Setter;
|
|
75
|
-
private
|
|
89
|
+
private readonly hiding;
|
|
90
|
+
private modifierFlags_;
|
|
76
91
|
private get modifierFlags();
|
|
77
|
-
constructor(
|
|
92
|
+
constructor(analyzer: Analyzer, node: DereferencedVariableSetterDeclaration);
|
|
78
93
|
getDefinition(): SetterEntityDefinition;
|
|
79
94
|
isModifyingOwningPlainObject(): boolean;
|
|
80
95
|
getOwningEntity(): EntityOwningSetter;
|
|
96
|
+
getContainingPackage(): PackageEntity;
|
|
81
97
|
isHidden(): EntityHidingLevel | undefined;
|
|
82
98
|
getTags(): readonly Tag[];
|
|
83
|
-
|
|
99
|
+
getTranslation(): Translation | undefined;
|
|
100
|
+
getLocale(): PackageLocale;
|
|
101
|
+
getDialect(): PackageDialect;
|
|
84
102
|
getOriginalEntity(): SetterEntity;
|
|
85
103
|
}
|
|
86
104
|
export declare class IntrinsicSetterEntity implements SetterEntity {
|
|
87
|
-
private readonly
|
|
88
|
-
private readonly
|
|
89
|
-
private readonly
|
|
105
|
+
private readonly owningEntity;
|
|
106
|
+
private readonly isHidden_;
|
|
107
|
+
private readonly isModifyingPlainObject_;
|
|
90
108
|
readonly kind = EntityKind.Setter;
|
|
91
|
-
constructor(
|
|
109
|
+
constructor(owningEntity: EntityOwningSetter, isHidden_: EntityHidingLevel | undefined, isModifyingPlainObject_: boolean);
|
|
92
110
|
getDefinition(): SetterEntityDefinition;
|
|
93
111
|
isModifyingOwningPlainObject(): boolean;
|
|
94
112
|
getOwningEntity(): EntityOwningSetter;
|
|
113
|
+
getContainingPackage(): PackageEntity;
|
|
95
114
|
isHidden(): EntityHidingLevel | undefined;
|
|
96
115
|
getTags(): readonly Tag[];
|
|
97
|
-
|
|
116
|
+
getTranslation(): Translation | undefined;
|
|
117
|
+
getLocale(): PackageLocale;
|
|
118
|
+
getDialect(): PackageDialect;
|
|
98
119
|
getOriginalEntity(): SetterEntity;
|
|
99
120
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
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 * as tree from '../tree/index.js';
|
|
6
6
|
import * as types from '../types/index.js';
|
|
7
|
+
import { BaseAspectTypes } from './BaseAspectTypes.js';
|
|
8
|
+
import { BaseObjectType } from './BaseObjectType.js';
|
|
7
9
|
import { EntityNaming } from './EntityNaming.js';
|
|
8
10
|
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
9
11
|
import type { PackageEntity } from './index.js';
|
|
@@ -13,13 +15,13 @@ export interface PackageStructuredTypeEntity extends IStructuredTypeEntity {
|
|
|
13
15
|
readonly subkind: 'package';
|
|
14
16
|
getName(): Name;
|
|
15
17
|
getContainingPackage(): PackageEntity;
|
|
16
|
-
|
|
18
|
+
getTranslation(): Translation | undefined;
|
|
17
19
|
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
18
20
|
}
|
|
19
21
|
export interface AnonymousStructuredTypeEntity extends IStructuredTypeEntity {
|
|
20
22
|
readonly subkind: 'anonymous';
|
|
21
23
|
getContainingPackage(): PackageEntity;
|
|
22
|
-
|
|
24
|
+
getTranslation(): Translation | undefined;
|
|
23
25
|
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
|
24
26
|
}
|
|
25
27
|
interface IStructuredTypeEntity extends ITypeEntity {
|
|
@@ -31,9 +33,7 @@ interface IStructuredTypeEntity extends ITypeEntity {
|
|
|
31
33
|
getDefinition(): StructuredTypeEntityDefinition;
|
|
32
34
|
markedBasic(): boolean;
|
|
33
35
|
isAbstract(): boolean;
|
|
34
|
-
|
|
35
|
-
isRefObject(): boolean;
|
|
36
|
-
isPlainObject(): boolean;
|
|
36
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
37
37
|
getArity(): number;
|
|
38
38
|
/**
|
|
39
39
|
* При каждом вызове метод должен возвращать один и тот же экземпляр класса BaseObjectType.
|
|
@@ -47,6 +47,11 @@ interface IStructuredTypeEntity extends ITypeEntity {
|
|
|
47
47
|
getTags(): readonly Tag[];
|
|
48
48
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
49
49
|
}
|
|
50
|
+
export declare enum StructuredTypeKind {
|
|
51
|
+
RefObject = 0,
|
|
52
|
+
PlainObject = 1,
|
|
53
|
+
Aspect = 2
|
|
54
|
+
}
|
|
50
55
|
export type StructuredTypeEntityDefinition = {
|
|
51
56
|
kind: DefinitionKind.Source;
|
|
52
57
|
node: StructuredTypeEntityDefinitionNode;
|
|
@@ -56,41 +61,12 @@ export type StructuredTypeEntityDefinition = {
|
|
|
56
61
|
kind: DefinitionKind.TypeScript;
|
|
57
62
|
};
|
|
58
63
|
type StructuredTypeEntityDefinitionNode = tree.PackageStructuredTypeDeclaration | tree.AnonymousStructuredTypeDeclaration;
|
|
59
|
-
/**
|
|
60
|
-
* Класс позволяет работать с базовым объектным типом, исключая циклы наследования.
|
|
61
|
-
*
|
|
62
|
-
* Пример цикла наследования:
|
|
63
|
-
* ```artel
|
|
64
|
-
* тип А = объект Б { }
|
|
65
|
-
* тип Б = объект А { }
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - `undefined`.
|
|
69
|
-
*/
|
|
70
|
-
export declare abstract class BaseObjectType {
|
|
71
|
-
/**
|
|
72
|
-
* Базовый объектный тип, указанный пользователем (либо базовый тип по умолчанию).
|
|
73
|
-
*/
|
|
74
|
-
abstract readonly declared: types.Type | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Базовый объектный тип, указанный пользователем, либо `undefined`, если указанный тип приводит к циклу.
|
|
77
|
-
*/
|
|
78
|
-
abstract readonly cycleFree: types.Type | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Приводит ли указанный базовый объектный тип к циклу?
|
|
81
|
-
*/
|
|
82
|
-
abstract readonly causesCycle: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
85
|
-
*/
|
|
86
|
-
abstract resolveBaseObjectType(circularityTrackingStack: boolean[]): CycleFreeBaseObjectTypeResolutionResult;
|
|
87
|
-
}
|
|
88
64
|
export declare class OriginalBaseObjectType extends BaseObjectType {
|
|
89
65
|
/**
|
|
90
66
|
* Базовый объектный тип, указанный пользователем (либо базовый тип по умолчанию).
|
|
91
67
|
*/
|
|
92
68
|
readonly declared: types.Type | undefined;
|
|
93
|
-
private
|
|
69
|
+
private state;
|
|
94
70
|
get cycleFree(): types.Type | undefined;
|
|
95
71
|
get causesCycle(): boolean;
|
|
96
72
|
constructor(declared: types.Type | undefined);
|
|
@@ -105,41 +81,12 @@ export declare class CycleFreeBaseObjectTypeResolutionResult {
|
|
|
105
81
|
readonly causesCycle: boolean;
|
|
106
82
|
constructor(type: types.Type | undefined, causesCycle: boolean);
|
|
107
83
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Класс позволяет работать с базовыми аспектными типами, исключая циклы наследования.
|
|
110
|
-
*
|
|
111
|
-
* Пример цикла наследования:
|
|
112
|
-
* ```artel
|
|
113
|
-
* тип А = аспект Б { }
|
|
114
|
-
* тип Б = аспект А { }
|
|
115
|
-
* ```
|
|
116
|
-
*
|
|
117
|
-
* Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - `undefined`.
|
|
118
|
-
*/
|
|
119
|
-
export declare abstract class BaseAspectTypes {
|
|
120
|
-
/**
|
|
121
|
-
* Базовые аспектные типы, указанные пользователем.
|
|
122
|
-
*/
|
|
123
|
-
abstract readonly declared: readonly types.Type[];
|
|
124
|
-
/**
|
|
125
|
-
* Базовые аспектные типы, указанные пользователем, которые не приводят к циклу.
|
|
126
|
-
*/
|
|
127
|
-
abstract cycleFree: readonly types.Type[];
|
|
128
|
-
/**
|
|
129
|
-
* Приводит ли хотя бы один базовый аспектный тип, указанный пользователем, к циклу?
|
|
130
|
-
*/
|
|
131
|
-
abstract causesCycle: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
134
|
-
*/
|
|
135
|
-
abstract resolveBaseAspectTypes(circularityTrackingStack: boolean[]): CycleFreeBaseAspectTypesResolutionResult;
|
|
136
|
-
}
|
|
137
84
|
export declare class OriginalBaseAspectTypes extends BaseAspectTypes {
|
|
138
85
|
/**
|
|
139
86
|
* Базовые аспектные типы, указанные пользователем.
|
|
140
87
|
*/
|
|
141
88
|
readonly declared: readonly types.Type[];
|
|
142
|
-
private
|
|
89
|
+
private state;
|
|
143
90
|
/**
|
|
144
91
|
* Базовые аспектные типы, указанные пользователем, которые не приводят к циклу.
|
|
145
92
|
*/
|
|
@@ -164,9 +111,9 @@ export declare class PackageStructuredTypeDeclarationEntity implements PackageSt
|
|
|
164
111
|
readonly kind = EntityKind.Type;
|
|
165
112
|
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
166
113
|
readonly subkind = "package";
|
|
167
|
-
private readonly
|
|
168
|
-
private readonly
|
|
169
|
-
private readonly
|
|
114
|
+
private readonly analyzer;
|
|
115
|
+
private readonly node;
|
|
116
|
+
private readonly data;
|
|
170
117
|
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration);
|
|
171
118
|
getNaming(): EntityNaming;
|
|
172
119
|
getName(): Name;
|
|
@@ -176,9 +123,7 @@ export declare class PackageStructuredTypeDeclarationEntity implements PackageSt
|
|
|
176
123
|
getDefinition(): StructuredTypeEntityDefinition;
|
|
177
124
|
markedBasic(): boolean;
|
|
178
125
|
isAbstract(): boolean;
|
|
179
|
-
|
|
180
|
-
isRefObject(): boolean;
|
|
181
|
-
isPlainObject(): boolean;
|
|
126
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
182
127
|
getArity(): number;
|
|
183
128
|
getBaseObjectType(): BaseObjectType;
|
|
184
129
|
getBaseAspectTypes(): BaseAspectTypes;
|
|
@@ -186,79 +131,95 @@ export declare class PackageStructuredTypeDeclarationEntity implements PackageSt
|
|
|
186
131
|
getTags(): readonly Tag[];
|
|
187
132
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
188
133
|
getContext(): EntityContext;
|
|
189
|
-
|
|
134
|
+
getTranslation(): Translation | undefined;
|
|
135
|
+
getLocale(): PackageLocale;
|
|
136
|
+
getDialect(): PackageDialect;
|
|
190
137
|
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
191
138
|
}
|
|
192
|
-
export declare class
|
|
193
|
-
private readonly
|
|
194
|
-
private readonly
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
private readonly
|
|
199
|
-
|
|
200
|
-
private _modifierFlags;
|
|
201
|
-
private get modifierFlags();
|
|
202
|
-
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration, entity: PackageStructuredTypeEntity);
|
|
139
|
+
export declare class AnonymousStructuredTypeDeclarationEntity implements AnonymousStructuredTypeEntity {
|
|
140
|
+
private readonly analyzer;
|
|
141
|
+
private readonly node;
|
|
142
|
+
readonly kind = EntityKind.Type;
|
|
143
|
+
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
144
|
+
readonly subkind = "anonymous";
|
|
145
|
+
private readonly data;
|
|
146
|
+
constructor(analyzer: Analyzer, node: tree.AnonymousStructuredTypeDeclaration);
|
|
203
147
|
getNaming(): EntityNaming;
|
|
204
|
-
getName(): Name;
|
|
205
|
-
getContainingPackage(): PackageEntity;
|
|
206
148
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
149
|
+
getArity(): number;
|
|
207
150
|
getMembers(): TypeEntityMembers;
|
|
208
151
|
getDefinition(): StructuredTypeEntityDefinition;
|
|
209
152
|
markedBasic(): boolean;
|
|
210
153
|
isAbstract(): boolean;
|
|
211
|
-
|
|
212
|
-
isRefObject(): boolean;
|
|
213
|
-
isPlainObject(): boolean;
|
|
214
|
-
getArity(): number;
|
|
154
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
215
155
|
getBaseObjectType(): BaseObjectType;
|
|
216
156
|
getBaseAspectTypes(): BaseAspectTypes;
|
|
217
157
|
isHidden(): EntityHidingLevel | undefined;
|
|
218
158
|
getTags(): readonly Tag[];
|
|
219
159
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
160
|
+
getContainingPackage(): PackageEntity;
|
|
161
|
+
getContext(): EntityContext;
|
|
162
|
+
getTranslation(): Translation | undefined;
|
|
163
|
+
getLocale(): PackageLocale;
|
|
164
|
+
getDialect(): PackageDialect;
|
|
165
|
+
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
|
166
|
+
}
|
|
167
|
+
export declare abstract class SourceStructuredTypeDeclarationData {
|
|
168
|
+
protected readonly analyzer: Analyzer;
|
|
169
|
+
protected abstract get body(): tree.StructuredTypeDeclarationBody;
|
|
170
|
+
protected abstract get entity(): StructuredTypeEntity;
|
|
171
|
+
private readonly baseTypes;
|
|
172
|
+
private readonly members;
|
|
173
|
+
constructor(analyzer: Analyzer);
|
|
174
|
+
getContainingPackage(): PackageEntity;
|
|
175
|
+
getMembers(): TypeEntityMembers;
|
|
176
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
177
|
+
getBaseObjectType(): BaseObjectType;
|
|
178
|
+
getBaseAspectTypes(): BaseAspectTypes;
|
|
220
179
|
private getBaseTypes;
|
|
221
180
|
}
|
|
222
|
-
export declare class
|
|
223
|
-
|
|
224
|
-
private readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
readonly
|
|
228
|
-
private
|
|
229
|
-
|
|
230
|
-
|
|
181
|
+
export declare class SourcePackageStructuredTypeDeclarationData extends SourceStructuredTypeDeclarationData {
|
|
182
|
+
protected readonly entity: PackageStructuredTypeEntity;
|
|
183
|
+
private readonly node;
|
|
184
|
+
private readonly name;
|
|
185
|
+
private readonly typeParameters;
|
|
186
|
+
private readonly hiding;
|
|
187
|
+
private modifierFlags_;
|
|
188
|
+
protected get body(): tree.StructuredTypeDeclarationBody;
|
|
189
|
+
private get modifierFlags();
|
|
190
|
+
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration, entity: PackageStructuredTypeEntity);
|
|
231
191
|
getNaming(): EntityNaming;
|
|
192
|
+
getName(): Name;
|
|
232
193
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
233
|
-
getMembers(): TypeEntityMembers;
|
|
234
194
|
getDefinition(): StructuredTypeEntityDefinition;
|
|
235
195
|
markedBasic(): boolean;
|
|
236
196
|
isAbstract(): boolean;
|
|
237
|
-
isAspect(): boolean;
|
|
238
|
-
isRefObject(): boolean;
|
|
239
|
-
isPlainObject(): boolean;
|
|
240
197
|
getArity(): number;
|
|
241
|
-
getBaseObjectType(): BaseObjectType;
|
|
242
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
243
198
|
isHidden(): EntityHidingLevel | undefined;
|
|
244
199
|
getTags(): readonly Tag[];
|
|
245
200
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
201
|
+
}
|
|
202
|
+
export declare class SourceAnonymousStructuredTypeDeclarationData extends SourceStructuredTypeDeclarationData {
|
|
203
|
+
protected readonly entity: AnonymousStructuredTypeEntity;
|
|
204
|
+
private readonly node;
|
|
205
|
+
protected get body(): tree.StructuredTypeDeclarationBody;
|
|
206
|
+
constructor(analyzer: Analyzer, node: tree.AnonymousStructuredTypeDeclaration, entity: AnonymousStructuredTypeEntity);
|
|
207
|
+
getNaming(): EntityNaming;
|
|
208
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
209
|
+
getArity(): number;
|
|
210
|
+
getDefinition(): StructuredTypeEntityDefinition;
|
|
211
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
251
212
|
}
|
|
252
213
|
export declare class UnfinishedIntrinsicPackageStructuredTypeEntity {
|
|
253
|
-
private readonly
|
|
214
|
+
private readonly unfinishedValue_;
|
|
254
215
|
get unfinishedValue(): PackageStructuredTypeEntity;
|
|
255
|
-
constructor(analyzer: Analyzer, name: Name, containingPackage: PackageEntity, typeParameters: readonly TypeParameterEntity[], isBasic: boolean, isAbstract: boolean,
|
|
216
|
+
constructor(analyzer: Analyzer, name: Name, containingPackage: PackageEntity, typeParameters: readonly TypeParameterEntity[], isBasic: boolean, isAbstract: boolean, structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode, context: EntityContext | undefined);
|
|
256
217
|
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownOperators: readonly OperatorEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): PackageStructuredTypeEntity;
|
|
257
218
|
}
|
|
258
219
|
export declare class UnfinishedIntrinsicAnonymousStructuredTypeEntity {
|
|
259
|
-
private readonly
|
|
220
|
+
private readonly unfinishedValue_;
|
|
260
221
|
get unfinishedValue(): AnonymousStructuredTypeEntity;
|
|
261
|
-
constructor(analyzer: Analyzer, typeParameters: readonly TypeParameterEntity[],
|
|
222
|
+
constructor(analyzer: Analyzer, typeParameters: readonly TypeParameterEntity[], structuredTypeKind: StructuredTypeKind, baseObjectType: types.StructuredType | undefined, baseAspectTypes: readonly types.StructuredType[], isHidden: EntityHidingLevel | undefined, substitutionApplicationMode: SubstitutionApplicationMode, containingPackage: PackageEntity, context: EntityContext | undefined);
|
|
262
223
|
finish(ownNamedMembers: readonly NamedTypeMemberEntity[], ownOperators: readonly OperatorEntity[], ownConstructors: readonly ConstructorEntity[], ownDestructors: readonly DestructorEntity[], ownIndexers: readonly IndexerEntity[], ownDereferenceOperators: readonly DereferenceOperatorEntity[]): AnonymousStructuredTypeEntity;
|
|
263
224
|
}
|
|
264
225
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Tag } from '../analysis/Tags.js';
|
|
2
|
+
import { IEntity } from './IEntity.js';
|
|
2
3
|
import { AliasTypeEntity, EntityContext, EntityKind, FunctionTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from './index.js';
|
|
3
4
|
export type TypeEntity = StructuredTypeEntity | FunctionTypeEntity | VariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
|
4
5
|
export declare namespace TypeEntity {
|
|
5
6
|
function isAbstract(entity: TypeEntity): boolean;
|
|
6
7
|
}
|
|
7
|
-
export interface ITypeEntity {
|
|
8
|
+
export interface ITypeEntity extends IEntity {
|
|
8
9
|
readonly kind: EntityKind.Type;
|
|
9
10
|
readonly typeEntityKind: TypeEntityKind;
|
|
10
11
|
getContext(): EntityContext;
|
|
@@ -7,19 +7,19 @@ import { OperatorEntity } from './OperatorEntity.js';
|
|
|
7
7
|
import { OperatorKind } from './OperatorKind.js';
|
|
8
8
|
import { NamedTypeMemberEntity, TypeMemberEntity } from './index.js';
|
|
9
9
|
export declare class TypeEntityMembers {
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
private static readonly
|
|
17
|
-
private static readonly
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly
|
|
10
|
+
private readonly namedMembers;
|
|
11
|
+
private readonly operators;
|
|
12
|
+
private readonly constructors;
|
|
13
|
+
private readonly destructors;
|
|
14
|
+
private readonly indexers;
|
|
15
|
+
private readonly dereferenceOperators;
|
|
16
|
+
private static readonly emptyNamedMembers;
|
|
17
|
+
private static readonly emptyOperators;
|
|
18
|
+
private readonly membersByNameKey_;
|
|
19
|
+
private readonly operatorsByKind_;
|
|
20
20
|
private get membersByNameKey();
|
|
21
21
|
private get operatorByKind();
|
|
22
|
-
constructor(
|
|
22
|
+
constructor(namedMembers: readonly NamedTypeMemberEntity[], operators: readonly OperatorEntity[], constructors: readonly ConstructorEntity[], destructors: readonly DestructorEntity[], indexers: readonly IndexerEntity[], dereferenceOperators: readonly DereferenceOperatorEntity[]);
|
|
23
23
|
getNamedMembers(): readonly NamedTypeMemberEntity[];
|
|
24
24
|
getNamedMembersByName(name: Name): readonly NamedTypeMemberEntity[];
|
|
25
25
|
getOperators(): readonly OperatorEntity[];
|
|
@@ -1,10 +1,12 @@
|
|
|
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 { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
5
|
import { TypeExtensionDeclaration } from '../tree/index.js';
|
|
6
|
+
import { IEntity } from './IEntity.js';
|
|
5
7
|
import { TypeEntityMembers } from './TypeEntityMembers.js';
|
|
6
8
|
import { DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, NamedTypeEntity, PackageEntity } from './index.js';
|
|
7
|
-
export interface TypeExtensionEntity {
|
|
9
|
+
export interface TypeExtensionEntity extends IEntity {
|
|
8
10
|
readonly kind: EntityKind.TypeExtension;
|
|
9
11
|
getMembers(): TypeEntityMembers;
|
|
10
12
|
getContainingPackage(): PackageEntity;
|
|
@@ -13,7 +15,7 @@ export interface TypeExtensionEntity {
|
|
|
13
15
|
isHidden(): EntityHidingLevel | undefined;
|
|
14
16
|
getTags(): readonly Tag[];
|
|
15
17
|
getContext(): EntityContext;
|
|
16
|
-
|
|
18
|
+
getTranslation(): Translation | undefined;
|
|
17
19
|
getOriginalEntity(): TypeExtensionEntity;
|
|
18
20
|
}
|
|
19
21
|
export type TypeExtensionEntityDefinition = {
|
|
@@ -22,10 +24,11 @@ export type TypeExtensionEntityDefinition = {
|
|
|
22
24
|
};
|
|
23
25
|
export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
24
26
|
readonly kind = EntityKind.TypeExtension;
|
|
25
|
-
private readonly
|
|
26
|
-
private readonly
|
|
27
|
-
private readonly
|
|
28
|
-
private
|
|
27
|
+
private readonly analyzer;
|
|
28
|
+
private readonly node;
|
|
29
|
+
private readonly members;
|
|
30
|
+
private readonly hiding;
|
|
31
|
+
private modifierFlags_;
|
|
29
32
|
private get modifierFlags();
|
|
30
33
|
constructor(analyzer: Analyzer, node: TypeExtensionDeclaration);
|
|
31
34
|
getMembers(): TypeEntityMembers;
|
|
@@ -35,6 +38,8 @@ export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
|
35
38
|
isHidden(): EntityHidingLevel | undefined;
|
|
36
39
|
getTags(): readonly Tag[];
|
|
37
40
|
getContext(): EntityContext;
|
|
38
|
-
|
|
41
|
+
getTranslation(): Translation | undefined;
|
|
42
|
+
getLocale(): PackageLocale;
|
|
43
|
+
getDialect(): PackageDialect;
|
|
39
44
|
getOriginalEntity(): TypeExtensionEntity;
|
|
40
45
|
}
|