@artel/artc 0.6.25191
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 +20 -0
- package/build/api/Api.js +664 -0
- package/build/api/ApiNodeJS.js +20 -0
- package/build/api/ApiServices.js +12847 -0
- package/build/chunk-BQHCAH6D.js +588 -0
- package/build/chunk-O2JKESUU.js +63219 -0
- package/build/chunk-QRBDQKYM.js +94 -0
- package/build/types/Cli.d.ts +3 -0
- package/build/types/analysis/AccessedMethod.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +191 -0
- package/build/types/analysis/Analyzer.d.ts +665 -0
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +25 -0
- package/build/types/analysis/BaseExpressionMeaning.d.ts +47 -0
- package/build/types/analysis/BuiltInOperators.d.ts +14 -0
- package/build/types/analysis/CallArgumentToParameterMatchResult.d.ts +30 -0
- package/build/types/analysis/CallArgumentsToParametersMatcher.d.ts +44 -0
- package/build/types/analysis/CallExpressionMeaning.d.ts +39 -0
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +34 -0
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +18 -0
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +23 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +68 -0
- package/build/types/analysis/EntityLocalizationHelper.d.ts +15 -0
- package/build/types/analysis/FindModifier.d.ts +4 -0
- package/build/types/analysis/FoundDeclaration.d.ts +19 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +98 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +22 -0
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +26 -0
- package/build/types/analysis/IndexerAccess.d.ts +10 -0
- package/build/types/analysis/Localization.d.ts +54 -0
- package/build/types/analysis/LocalizationContext.d.ts +15 -0
- package/build/types/analysis/Lookup.d.ts +23 -0
- package/build/types/analysis/NamedTypeResolver.d.ts +42 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +20 -0
- package/build/types/analysis/NodeTypeUtils.d.ts +28 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +38 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +19 -0
- package/build/types/analysis/OverloadResolver.d.ts +12 -0
- package/build/types/analysis/PackageMemberLookup.d.ts +15 -0
- package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +27 -0
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +100 -0
- package/build/types/analysis/Scope.d.ts +309 -0
- package/build/types/analysis/SemanticContext.d.ts +320 -0
- package/build/types/analysis/SemanticContextBuilder.d.ts +54 -0
- package/build/types/analysis/SourceFileMembers.d.ts +92 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +41 -0
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +6 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +22 -0
- package/build/types/analysis/SubstitutedMethod.d.ts +49 -0
- package/build/types/analysis/TagMeaning.d.ts +26 -0
- package/build/types/analysis/Tags.d.ts +29 -0
- package/build/types/analysis/TargetTypeHint.d.ts +5 -0
- package/build/types/analysis/TypeInferrer.d.ts +9 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +27 -0
- package/build/types/analysis/TypeOverloadResolver.d.ts +7 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +37 -0
- package/build/types/analysis/Utils.d.ts +17 -0
- package/build/types/analysis/VariableAccess.d.ts +10 -0
- package/build/types/analysis/VariantLookup.d.ts +20 -0
- package/build/types/analysis/Visitor.d.ts +7 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +34 -0
- package/build/types/analysis/index.d.ts +8 -0
- package/build/types/api/Api.d.ts +59 -0
- package/build/types/api/ApiNodeJS.d.ts +5 -0
- package/build/types/api/ApiServices.d.ts +3 -0
- package/build/types/common/AccessKind.d.ts +4 -0
- package/build/types/common/ArtelFileCheck.d.ts +2 -0
- package/build/types/common/Cached.d.ts +6 -0
- package/build/types/common/CancellationToken.d.ts +13 -0
- package/build/types/common/Constants.d.ts +19 -0
- package/build/types/common/Debug.d.ts +10 -0
- package/build/types/common/Delayed.d.ts +7 -0
- package/build/types/common/ErrorHandlingStrategy.d.ts +3 -0
- package/build/types/common/FormatString.d.ts +5 -0
- package/build/types/common/HelperPhrases.d.ts +11 -0
- package/build/types/common/Interner.d.ts +4 -0
- package/build/types/common/L10nConfig.d.ts +1 -0
- package/build/types/common/Lazy.d.ts +9 -0
- package/build/types/common/LocalizationHelper.d.ts +10 -0
- package/build/types/common/Logger.d.ts +10 -0
- package/build/types/common/Name.d.ts +83 -0
- package/build/types/common/NameFormatConversion.d.ts +12 -0
- package/build/types/common/NonEmptyArray.d.ts +8 -0
- package/build/types/common/Option.d.ts +28 -0
- package/build/types/common/PackageDialect.d.ts +5 -0
- package/build/types/common/PackageLocale.d.ts +15 -0
- package/build/types/common/PackageLocaleGuard.d.ts +1 -0
- package/build/types/common/Path.d.ts +8 -0
- package/build/types/common/PerformanceMeasurement.d.ts +20 -0
- package/build/types/common/Query.d.ts +39 -0
- package/build/types/common/Range.d.ts +10 -0
- package/build/types/common/Result.d.ts +13 -0
- package/build/types/common/SearchName.d.ts +13 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +17 -0
- package/build/types/common/TreeQuery.d.ts +53 -0
- package/build/types/common/TreeTraversal.d.ts +13 -0
- package/build/types/common/Uri.d.ts +28 -0
- package/build/types/common/UriTree.d.ts +41 -0
- package/build/types/common/UserLocale.d.ts +2 -0
- package/build/types/common/WithDiagnostics.d.ts +19 -0
- package/build/types/common/YieldExecution.d.ts +1 -0
- package/build/types/common/index.d.ts +32 -0
- package/build/types/diagnostic/Diagnostic.d.ts +21 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +146 -0
- package/build/types/diagnostic/DiagnosticData.d.ts +20 -0
- package/build/types/diagnostic/DiagnosticFormatter.d.ts +8 -0
- package/build/types/diagnostic/RangeDiagnostic.d.ts +19 -0
- package/build/types/emitter/BlockStatementTransformationResult.d.ts +10 -0
- package/build/types/emitter/CustomModuleLoader.d.ts +1 -0
- package/build/types/emitter/DebugStack.d.ts +10 -0
- package/build/types/emitter/Emitter.d.ts +61 -0
- package/build/types/emitter/EmitterContext.d.ts +342 -0
- package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +36 -0
- package/build/types/emitter/EmitterPackage.d.ts +60 -0
- package/build/types/emitter/EntityNameProviders.d.ts +33 -0
- package/build/types/emitter/ExpressionTransformationResult.d.ts +17 -0
- package/build/types/emitter/GeneralLowering.d.ts +72 -0
- package/build/types/emitter/Internal.d.ts +10 -0
- package/build/types/emitter/IntrinsicEntities.d.ts +118 -0
- package/build/types/emitter/IrBuilder.d.ts +108 -0
- package/build/types/emitter/IrToJs.d.ts +113 -0
- package/build/types/emitter/JavaScriptName.d.ts +1 -0
- package/build/types/emitter/PackageMemberDeclarationTransformationResult.d.ts +17 -0
- package/build/types/emitter/SimpleTransformationResult.d.ts +14 -0
- package/build/types/emitter/StatementTransformationResult.d.ts +16 -0
- package/build/types/emitter/StructuredTypeMemberDeclarationTransformationResult.d.ts +13 -0
- package/build/types/emitter/TransformationContinuationAction.d.ts +4 -0
- package/build/types/emitter/Transformer.d.ts +282 -0
- package/build/types/emitter/TypeAccessExpressionTransformationResult.d.ts +12 -0
- package/build/types/emitter/error-boundary.d.ts +10 -0
- package/build/types/emitter/index.d.ts +1 -0
- package/build/types/emitter/ir/AccessedEntities.d.ts +19 -0
- package/build/types/emitter/ir/LoweringOptions.d.ts +34 -0
- package/build/types/emitter/ir/Nodes.d.ts +1585 -0
- package/build/types/emitter/ir/SourceLocation.d.ts +10 -0
- package/build/types/emitter/ir/index.d.ts +5 -0
- package/build/types/emitter/ir/types.d.ts +10 -0
- package/build/types/entities/AliasTypeEntity.d.ts +84 -0
- package/build/types/entities/BinaryOperatorEntity.d.ts +48 -0
- package/build/types/entities/ConstructorEntity.d.ts +99 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +40 -0
- package/build/types/entities/DestructorEntity.d.ts +31 -0
- package/build/types/entities/EntityHiding.d.ts +27 -0
- package/build/types/entities/EntityNaming.d.ts +12 -0
- package/build/types/entities/GetterEntity.d.ts +86 -0
- package/build/types/entities/IndexerEntity.d.ts +51 -0
- package/build/types/entities/MethodEntity.d.ts +174 -0
- package/build/types/entities/MethodTypeEntity.d.ts +98 -0
- package/build/types/entities/PackageAliasEntity.d.ts +30 -0
- package/build/types/entities/PackageEntity.d.ts +56 -0
- package/build/types/entities/PackageMembers.d.ts +98 -0
- package/build/types/entities/SetterEntity.d.ts +78 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +199 -0
- package/build/types/entities/SubstitutionApplicationMode.d.ts +4 -0
- package/build/types/entities/TypeEntityMembers.d.ts +36 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +33 -0
- package/build/types/entities/TypeMemberContainer.d.ts +23 -0
- package/build/types/entities/TypeParameterEntity.d.ts +94 -0
- package/build/types/entities/UnaryOperatorEntity.d.ts +33 -0
- package/build/types/entities/VariableEntity.d.ts +423 -0
- package/build/types/entities/VariantEntity.d.ts +31 -0
- package/build/types/entities/VariantTypeEntity.d.ts +83 -0
- package/build/types/entities/Variants.d.ts +10 -0
- package/build/types/entities/index.d.ts +87 -0
- package/build/types/executor/CommandLineCompiler.d.ts +8 -0
- package/build/types/executor/Compiler.d.ts +15 -0
- package/build/types/executor/FileSystemUri.d.ts +5 -0
- package/build/types/executor/NodeCompiler.d.ts +39 -0
- package/build/types/executor/PhysicalFileSystem.d.ts +12 -0
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +12 -0
- package/build/types/generated/BuiltInSystemPackages.d.ts +3 -0
- package/build/types/old/Executor.d.ts +14 -0
- package/build/types/old/JavaScriptEmitter.d.ts +1 -0
- package/build/types/old/JavaScriptEmittingVisitor.d.ts +1 -0
- package/build/types/old/NzonParser.d.ts +1 -0
- package/build/types/old/NzonScanner.d.ts +1 -0
- package/build/types/old/NzonSyntax.d.ts +1 -0
- package/build/types/old/RemoteWorkspaceFileSystem.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +21 -0
- package/build/types/parser/ConvertTokenKind.d.ts +3 -0
- package/build/types/parser/KeywordDictionary.d.ts +12 -0
- package/build/types/parser/ParseNumber.d.ts +5 -0
- package/build/types/parser/Parser.d.ts +7 -0
- package/build/types/parser/ParserDiagnostic.d.ts +7 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +12 -0
- package/build/types/parser/Scanner.d.ts +60 -0
- package/build/types/parser/TokenKind.d.ts +73 -0
- package/build/types/parser/UnescapeText.d.ts +2 -0
- package/build/types/project/Compilation.d.ts +21 -0
- package/build/types/project/CompilationLoader.d.ts +104 -0
- package/build/types/project/FileSystemTree.d.ts +70 -0
- package/build/types/project/PackageConfigurationSerializer.d.ts +1 -0
- package/build/types/project/Position.d.ts +5 -0
- package/build/types/project/SourceFile.d.ts +21 -0
- package/build/types/project/SourcePackage.d.ts +151 -0
- package/build/types/project/TextFile.d.ts +11 -0
- package/build/types/project/configuration/BuildPackageApi.d.ts +75 -0
- package/build/types/project/configuration/ConfigurationConverter.d.ts +25 -0
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +26 -0
- package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +27 -0
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +90 -0
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +91 -0
- package/build/types/project/index.d.ts +12 -0
- package/build/types/services/AddPropertyAssignmentService.d.ts +15 -0
- package/build/types/services/CompletionService.d.ts +95 -0
- package/build/types/services/CustomCommand.d.ts +120 -0
- package/build/types/services/DefinitionService.d.ts +19 -0
- package/build/types/services/DisplayService.d.ts +830 -0
- package/build/types/services/DocumentHighlightsService.d.ts +18 -0
- package/build/types/services/EvaluatableExpressionService.d.ts +15 -0
- package/build/types/services/FileSystemTreeDisplayService.d.ts +7 -0
- package/build/types/services/HoverService.d.ts +17 -0
- package/build/types/services/LanguageServer.d.ts +125 -0
- package/build/types/services/NodeSemanticInfo.d.ts +132 -0
- package/build/types/services/ProjectItemsService.d.ts +6 -0
- package/build/types/services/ReferencesService.d.ts +30 -0
- package/build/types/services/RenameService.d.ts +16 -0
- package/build/types/services/SelectionRangeService.d.ts +12 -0
- package/build/types/services/SemanticTokensService.d.ts +40 -0
- package/build/types/services/SourceFileItemsService.d.ts +42 -0
- package/build/types/services/TranslationService.d.ts +23 -0
- package/build/types/services/TreeUtils.d.ts +58 -0
- package/build/types/services/TypeDefinitionService.d.ts +9 -0
- package/build/types/services/Types.d.ts +22 -0
- package/build/types/services/Utils.d.ts +5 -0
- package/build/types/services/signature-help/SignatureHelpService.d.ts +17 -0
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +114 -0
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +20 -0
- package/build/types/services/signature-help/ValueParametersSignatureHelpProvider.d.ts +15 -0
- package/build/types/services/signature-help/utils.d.ts +9 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +47 -0
- package/build/types/services/source-generation/SourceGenerationService.d.ts +22 -0
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +41 -0
- package/build/types/services/workspace/CompilationController.d.ts +108 -0
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +61 -0
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +21 -0
- package/build/types/services/workspace/Workspace.d.ts +59 -0
- package/build/types/services/workspace/WorkspaceFileSystem.d.ts +5 -0
- package/build/types/services/workspace/WorkspaceFiles.d.ts +35 -0
- package/build/types/services/workspace/index.d.ts +7 -0
- package/build/types/tree/KeywordKind.d.ts +64 -0
- package/build/types/tree/NodeKind.d.ts +163 -0
- package/build/types/tree/TokenKind.d.ts +132 -0
- package/build/types/tree/TriviaKind.d.ts +7 -0
- package/build/types/tree/green/BaseNode.d.ts +12 -0
- package/build/types/tree/green/Nodes.d.ts +2235 -0
- package/build/types/tree/green/SyntaxFactory.d.ts +67 -0
- package/build/types/tree/green/SyntaxToCode.d.ts +116 -0
- package/build/types/tree/green/Token.d.ts +37 -0
- package/build/types/tree/green/Utils.d.ts +2 -0
- package/build/types/tree/green/index.d.ts +7 -0
- package/build/types/tree/index.d.ts +4 -0
- package/build/types/tree/red/BaseNode.d.ts +15 -0
- package/build/types/tree/red/Internal.d.ts +2 -0
- package/build/types/tree/red/NodePath.d.ts +10 -0
- package/build/types/tree/red/Nodes.d.ts +2237 -0
- package/build/types/tree/red/Token.d.ts +29 -0
- package/build/types/tree/red/Utils.d.ts +6 -0
- package/build/types/tree/red/index.d.ts +6 -0
- package/build/types/ts-interop/Entities.d.ts +634 -0
- package/build/types/ts-interop/TsInteropContext.d.ts +179 -0
- package/build/types/ts-interop/TsLibrariesProvider.d.ts +12 -0
- package/build/types/ts-interop/TsPackageContents.d.ts +64 -0
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +69 -0
- package/build/types/ts-interop/TsProgramLoader.d.ts +38 -0
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +45 -0
- package/build/types/ts-interop/Utils.d.ts +43 -0
- package/build/types/types/AliasType.d.ts +20 -0
- package/build/types/types/Internal.d.ts +1 -0
- package/build/types/types/MethodType.d.ts +23 -0
- package/build/types/types/ParameterType.d.ts +19 -0
- package/build/types/types/StandardTypes.d.ts +42 -0
- package/build/types/types/StructuredType.d.ts +25 -0
- package/build/types/types/Substitutions.d.ts +18 -0
- package/build/types/types/Type.d.ts +16 -0
- package/build/types/types/TypeFactory.d.ts +15 -0
- package/build/types/types/TypeMembers.d.ts +134 -0
- package/build/types/types/UnionType.d.ts +20 -0
- package/build/types/types/UnresolvedType.d.ts +16 -0
- package/build/types/types/VariantType.d.ts +19 -0
- package/build/types/types/index.d.ts +12 -0
- package/package.json +73 -0
@@ -0,0 +1,423 @@
|
|
1
|
+
import { Tag } from '../analysis/Tags.js';
|
2
|
+
import { Analyzer } from '../analysis/index.js';
|
3
|
+
import { Lazy, Name } from '../common/index.js';
|
4
|
+
import { EnumerationVariableDeclaration, ErrorVariableDeclaration, LocalVariableDeclaration, MethodLiteral, PackageVariableDeclaration, PackageVariableGetterDeclaration, PackageVariableSetterDeclaration, ParameterDeclaration, SetterParameterDeclaration, TypeVariableDeclaration, TypeVariableGetterDeclaration, TypeVariableSetterDeclaration } from '../tree/index.js';
|
5
|
+
import * as types from '../types/index.js';
|
6
|
+
import type { Entity, IndexerEntity, PackageEntity } from './index.js';
|
7
|
+
import { Entity as ActualEntity, ConstructorEntity, DefinitionKind, DestructorEntity, EntityHidingLevel, EntityKind, GetterEntity, MethodEntity, MethodTypeEntity, SetterEntity, TypeMemberEntityContainer } from './index.js';
|
8
|
+
export type VariableEntity = PackageVariableEntity | TypeVariableEntity | ParameterVariableEntity | LocalVariableEntity;
|
9
|
+
export interface PackageVariableEntity extends IVariableEntity {
|
10
|
+
readonly subkind: 'package';
|
11
|
+
getContainingPackage(): PackageEntity;
|
12
|
+
}
|
13
|
+
export interface TypeVariableEntity extends IVariableEntity {
|
14
|
+
readonly subkind: 'type';
|
15
|
+
getContainer(): TypeMemberEntityContainer;
|
16
|
+
isStatic(): boolean;
|
17
|
+
isRedefinable(): boolean;
|
18
|
+
isRedefined(): boolean;
|
19
|
+
isAbstract(): boolean;
|
20
|
+
isConsistent(): boolean;
|
21
|
+
isObservable(): boolean;
|
22
|
+
}
|
23
|
+
export interface ParameterVariableEntity extends IVariableEntity {
|
24
|
+
readonly subkind: 'parameter';
|
25
|
+
getContainer(): ParameterVariableEntityContainer;
|
26
|
+
isOptional(): boolean;
|
27
|
+
isVariadic(): boolean;
|
28
|
+
}
|
29
|
+
export interface LocalVariableEntity extends IVariableEntity {
|
30
|
+
readonly subkind: 'local';
|
31
|
+
getContainingEntity(): Entity;
|
32
|
+
}
|
33
|
+
interface IVariableEntity {
|
34
|
+
readonly kind: EntityKind.Variable;
|
35
|
+
getName(): Name;
|
36
|
+
getType(): types.Type;
|
37
|
+
getDefinition(): VariableEntityDefinition;
|
38
|
+
getGetter(): GetterEntity | undefined;
|
39
|
+
getSetter(): SetterEntity | undefined;
|
40
|
+
isConstant(): boolean;
|
41
|
+
isHidden(): EntityHidingLevel | undefined;
|
42
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
43
|
+
getTags(): readonly Tag[];
|
44
|
+
}
|
45
|
+
export type ParameterVariableEntityContainer = ParameterVariableEntityContainer.Entity | ParameterVariableEntityContainer.MethodLiteral;
|
46
|
+
export declare namespace ParameterVariableEntityContainer {
|
47
|
+
class Entity {
|
48
|
+
readonly entity: EntityContainingValueParameter;
|
49
|
+
readonly kind = "entity";
|
50
|
+
constructor(entity: EntityContainingValueParameter);
|
51
|
+
}
|
52
|
+
class MethodLiteral {
|
53
|
+
readonly entityContainingMethod: ActualEntity;
|
54
|
+
readonly kind = "method-literal";
|
55
|
+
constructor(entityContainingMethod: ActualEntity);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
export type EntityContainingValueParameter = MethodEntity | IndexerEntity | ConstructorEntity | DestructorEntity | MethodTypeEntity | SetterEntity;
|
59
|
+
export declare function isEntityContainingValueParameter(entity: Entity): entity is EntityContainingValueParameter;
|
60
|
+
export type VariableEntityDefinition = {
|
61
|
+
kind: DefinitionKind.Source;
|
62
|
+
value: SourceVariableEntityDefinition;
|
63
|
+
} | {
|
64
|
+
kind: DefinitionKind.Intrinsic;
|
65
|
+
} | {
|
66
|
+
kind: DefinitionKind.TypeScript;
|
67
|
+
};
|
68
|
+
export type SourceVariableEntityDefinition = SingleSourceVariableEntityDefinition | MultiSourceVariableEntityDefinition;
|
69
|
+
export type SingleSourceVariableEntityDefinition = {
|
70
|
+
kind: 'single';
|
71
|
+
node: PackageVariableDeclaration | TypeVariableDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ErrorVariableDeclaration | ParameterDeclaration | SetterParameterDeclaration;
|
72
|
+
};
|
73
|
+
export type MultiSourceVariableEntityDefinition = {
|
74
|
+
kind: 'multi';
|
75
|
+
nodes: ReadonlyArray<PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | ParameterDeclaration>;
|
76
|
+
};
|
77
|
+
export declare class ImplicitMethodBlockParameterSpecialVariableEntityInfo {
|
78
|
+
readonly targetTypeParameter: types.ValueParameter;
|
79
|
+
readonly kind = "implicit-method-block-parameter";
|
80
|
+
constructor(targetTypeParameter: types.ValueParameter);
|
81
|
+
}
|
82
|
+
export type SpecialVariableEntityInfo = ResultSpecialVariableEntityInfo | ParamSpecialVariableEntityInfo | ValueSpecialVariableEntityInfo | BackingSpecialVariableEntityInfo | ParamObjectMemberSpecialVariableEntityInfo | ImplicitMethodBlockParameterSpecialVariableEntityInfo;
|
83
|
+
export declare class ResultSpecialVariableEntityInfo {
|
84
|
+
readonly kind = "result";
|
85
|
+
}
|
86
|
+
export declare class ParamSpecialVariableEntityInfo {
|
87
|
+
readonly kind = "param";
|
88
|
+
}
|
89
|
+
export declare class ValueSpecialVariableEntityInfo {
|
90
|
+
readonly kind = "value";
|
91
|
+
}
|
92
|
+
export declare class BackingSpecialVariableEntityInfo {
|
93
|
+
readonly computedVariable: PackageVariableEntity | TypeVariableEntity;
|
94
|
+
readonly kind = "backing";
|
95
|
+
constructor(computedVariable: PackageVariableEntity | TypeVariableEntity);
|
96
|
+
}
|
97
|
+
export declare class ParamObjectMemberSpecialVariableEntityInfo {
|
98
|
+
readonly correspondingParameter: VariableEntity;
|
99
|
+
readonly kind = "param-object-member";
|
100
|
+
constructor(correspondingParameter: VariableEntity);
|
101
|
+
}
|
102
|
+
export declare class PackageVariableDeclarationEntity implements PackageVariableEntity {
|
103
|
+
private readonly _analyzer;
|
104
|
+
private readonly _node;
|
105
|
+
readonly kind = EntityKind.Variable;
|
106
|
+
readonly subkind = "package";
|
107
|
+
private readonly _typeInferrer;
|
108
|
+
constructor(_analyzer: Analyzer, _node: PackageVariableDeclaration);
|
109
|
+
getName(): Name;
|
110
|
+
getContainingPackage(): PackageEntity;
|
111
|
+
getType(): types.Type;
|
112
|
+
getDefinition(): VariableEntityDefinition;
|
113
|
+
getGetter(): GetterEntity | undefined;
|
114
|
+
getSetter(): SetterEntity | undefined;
|
115
|
+
isConstant(): boolean;
|
116
|
+
isHidden(): EntityHidingLevel | undefined;
|
117
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
118
|
+
getTags(): readonly Tag[];
|
119
|
+
}
|
120
|
+
export declare class ComputedPackageVariableDeclarationEntity implements PackageVariableEntity {
|
121
|
+
readonly kind = EntityKind.Variable;
|
122
|
+
readonly subkind = "package";
|
123
|
+
private readonly _analyzer;
|
124
|
+
private readonly _getterDeclaration;
|
125
|
+
private readonly _setterDeclaration;
|
126
|
+
private readonly _getterOrSetterDeclaration;
|
127
|
+
constructor(analyzer: Analyzer, getterDeclaration: PackageVariableGetterDeclaration | undefined, setterDeclaration: PackageVariableSetterDeclaration | undefined);
|
128
|
+
getName(): Name;
|
129
|
+
getType(): types.Type;
|
130
|
+
getContainingPackage(): PackageEntity;
|
131
|
+
isHidden(): EntityHidingLevel | undefined;
|
132
|
+
isConstant(): boolean;
|
133
|
+
getDefinition(): VariableEntityDefinition;
|
134
|
+
getGetter(): GetterEntity | undefined;
|
135
|
+
getSetter(): SetterEntity | undefined;
|
136
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
137
|
+
getTags(): readonly Tag[];
|
138
|
+
}
|
139
|
+
export declare class TypeVariableDeclarationEntity implements TypeVariableEntity {
|
140
|
+
readonly kind = EntityKind.Variable;
|
141
|
+
readonly subkind = "type";
|
142
|
+
private readonly _analyzer;
|
143
|
+
private readonly _node;
|
144
|
+
private readonly _typeInferrer;
|
145
|
+
constructor(analyzer: Analyzer, node: TypeVariableDeclaration);
|
146
|
+
getName(): Name;
|
147
|
+
getType(): types.Type;
|
148
|
+
getDefinition(): VariableEntityDefinition;
|
149
|
+
getGetter(): GetterEntity | undefined;
|
150
|
+
getSetter(): SetterEntity | undefined;
|
151
|
+
isConstant(): boolean;
|
152
|
+
isHidden(): EntityHidingLevel | undefined;
|
153
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
154
|
+
getTags(): readonly Tag[];
|
155
|
+
getContainer(): TypeMemberEntityContainer;
|
156
|
+
isStatic(): boolean;
|
157
|
+
isRedefinable(): boolean;
|
158
|
+
isRedefined(): boolean;
|
159
|
+
isAbstract(): boolean;
|
160
|
+
isConsistent(): boolean;
|
161
|
+
isObservable(): boolean;
|
162
|
+
}
|
163
|
+
export declare class ComputedTypeVariableDeclarationEntity implements TypeVariableEntity {
|
164
|
+
readonly kind = EntityKind.Variable;
|
165
|
+
readonly subkind = "type";
|
166
|
+
private readonly _analyzer;
|
167
|
+
private readonly _getterDeclaration;
|
168
|
+
private readonly _setterDeclaration;
|
169
|
+
private readonly _getterOrSetterDeclaration;
|
170
|
+
constructor(analyzer: Analyzer, getterDeclaration: TypeVariableGetterDeclaration | undefined, setterDeclaration: TypeVariableSetterDeclaration | undefined);
|
171
|
+
getName(): Name;
|
172
|
+
getType(): types.Type;
|
173
|
+
getContainer(): TypeMemberEntityContainer;
|
174
|
+
isHidden(): EntityHidingLevel | undefined;
|
175
|
+
isConstant(): boolean;
|
176
|
+
isStatic(): boolean;
|
177
|
+
isRedefinable(): boolean;
|
178
|
+
isRedefined(): boolean;
|
179
|
+
isAbstract(): boolean;
|
180
|
+
isConsistent(): boolean;
|
181
|
+
isObservable(): boolean;
|
182
|
+
getDefinition(): VariableEntityDefinition;
|
183
|
+
getGetter(): GetterEntity | undefined;
|
184
|
+
getSetter(): SetterEntity | undefined;
|
185
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
186
|
+
getTags(): readonly Tag[];
|
187
|
+
}
|
188
|
+
export declare class LocalVariableDeclarationEntity implements LocalVariableEntity {
|
189
|
+
private readonly _analyzer;
|
190
|
+
private readonly _node;
|
191
|
+
readonly kind = EntityKind.Variable;
|
192
|
+
readonly subkind = "local";
|
193
|
+
private readonly _typeInferrer;
|
194
|
+
constructor(_analyzer: Analyzer, _node: LocalVariableDeclaration);
|
195
|
+
getName(): Name;
|
196
|
+
getType(): types.Type;
|
197
|
+
getDefinition(): VariableEntityDefinition;
|
198
|
+
getGetter(): GetterEntity | undefined;
|
199
|
+
getSetter(): SetterEntity | undefined;
|
200
|
+
isConstant(): boolean;
|
201
|
+
isHidden(): EntityHidingLevel | undefined;
|
202
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
203
|
+
getTags(): readonly Tag[];
|
204
|
+
getContainingEntity(): Entity;
|
205
|
+
}
|
206
|
+
export declare class EnumerationVariableDeclarationEntity implements LocalVariableEntity {
|
207
|
+
private readonly _analyzer;
|
208
|
+
private readonly _node;
|
209
|
+
readonly kind = EntityKind.Variable;
|
210
|
+
readonly subkind = "local";
|
211
|
+
private readonly _typeInferrer;
|
212
|
+
constructor(_analyzer: Analyzer, _node: EnumerationVariableDeclaration);
|
213
|
+
getName(): Name;
|
214
|
+
getType(): types.Type;
|
215
|
+
getDefinition(): VariableEntityDefinition;
|
216
|
+
getGetter(): GetterEntity | undefined;
|
217
|
+
getSetter(): SetterEntity | undefined;
|
218
|
+
isConstant(): boolean;
|
219
|
+
isHidden(): EntityHidingLevel | undefined;
|
220
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
221
|
+
getTags(): readonly Tag[];
|
222
|
+
getContainingEntity(): Entity;
|
223
|
+
}
|
224
|
+
export declare class ErrorVariableDeclarationEntity implements LocalVariableEntity {
|
225
|
+
private readonly _analyzer;
|
226
|
+
private readonly _node;
|
227
|
+
readonly kind = EntityKind.Variable;
|
228
|
+
readonly subkind = "local";
|
229
|
+
constructor(_analyzer: Analyzer, _node: ErrorVariableDeclaration);
|
230
|
+
getName(): Name;
|
231
|
+
getType(): types.Type;
|
232
|
+
getDefinition(): VariableEntityDefinition;
|
233
|
+
getGetter(): GetterEntity | undefined;
|
234
|
+
getSetter(): SetterEntity | undefined;
|
235
|
+
isConstant(): boolean;
|
236
|
+
isHidden(): EntityHidingLevel | undefined;
|
237
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
238
|
+
getTags(): readonly Tag[];
|
239
|
+
getContainingEntity(): Entity;
|
240
|
+
}
|
241
|
+
export declare class ParameterDeclarationEntity implements ParameterVariableEntity {
|
242
|
+
private readonly _analyzer;
|
243
|
+
private readonly _node;
|
244
|
+
readonly kind = EntityKind.Variable;
|
245
|
+
readonly subkind = "parameter";
|
246
|
+
private readonly _typeInferrer;
|
247
|
+
constructor(_analyzer: Analyzer, _node: ParameterDeclaration);
|
248
|
+
getName(): Name;
|
249
|
+
getType(): types.Type;
|
250
|
+
getDefinition(): VariableEntityDefinition;
|
251
|
+
getGetter(): GetterEntity | undefined;
|
252
|
+
getSetter(): SetterEntity | undefined;
|
253
|
+
isConstant(): boolean;
|
254
|
+
isHidden(): EntityHidingLevel | undefined;
|
255
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
256
|
+
getTags(): readonly Tag[];
|
257
|
+
getContainer(): ParameterVariableEntityContainer;
|
258
|
+
isOptional(): boolean;
|
259
|
+
isVariadic(): boolean;
|
260
|
+
}
|
261
|
+
export declare class TypeIndexerParameterDeclarationEntity implements ParameterVariableEntity {
|
262
|
+
private readonly _analyzer;
|
263
|
+
private readonly _getterParameterDeclaration;
|
264
|
+
private readonly _setterParameterDeclaration;
|
265
|
+
private readonly _indexerEntity;
|
266
|
+
readonly kind = EntityKind.Variable;
|
267
|
+
readonly subkind = "parameter";
|
268
|
+
private readonly _getterOrSetterParameterDeclaration;
|
269
|
+
private readonly _typeInferrer;
|
270
|
+
constructor(_analyzer: Analyzer, _getterParameterDeclaration: ParameterDeclaration | undefined, _setterParameterDeclaration: ParameterDeclaration | undefined, _indexerEntity: IndexerEntity);
|
271
|
+
getName(): Name;
|
272
|
+
getType(): types.Type;
|
273
|
+
getDefinition(): VariableEntityDefinition;
|
274
|
+
getGetter(): GetterEntity | undefined;
|
275
|
+
getSetter(): SetterEntity | undefined;
|
276
|
+
isConstant(): boolean;
|
277
|
+
isHidden(): EntityHidingLevel | undefined;
|
278
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
279
|
+
getTags(): readonly Tag[];
|
280
|
+
getContainer(): ParameterVariableEntityContainer;
|
281
|
+
isOptional(): boolean;
|
282
|
+
isVariadic(): boolean;
|
283
|
+
}
|
284
|
+
export declare class MethodLiteralParameterDeclarationEntity implements ParameterVariableEntity {
|
285
|
+
private readonly _analyzer;
|
286
|
+
private readonly _node;
|
287
|
+
private readonly _methodLiteral;
|
288
|
+
readonly kind = EntityKind.Variable;
|
289
|
+
readonly subkind = "parameter";
|
290
|
+
private readonly _parameterIndex;
|
291
|
+
constructor(_analyzer: Analyzer, _node: ParameterDeclaration, _methodLiteral: MethodLiteral);
|
292
|
+
getName(): Name;
|
293
|
+
getType(): types.Type;
|
294
|
+
getDefinition(): VariableEntityDefinition;
|
295
|
+
getGetter(): GetterEntity | undefined;
|
296
|
+
getSetter(): SetterEntity | undefined;
|
297
|
+
isConstant(): boolean;
|
298
|
+
isHidden(): EntityHidingLevel | undefined;
|
299
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
300
|
+
getTags(): readonly Tag[];
|
301
|
+
getContainer(): ParameterVariableEntityContainer;
|
302
|
+
isOptional(): boolean;
|
303
|
+
isVariadic(): boolean;
|
304
|
+
}
|
305
|
+
export declare class SetterParameterDeclarationEntity implements ParameterVariableEntity {
|
306
|
+
private readonly _analyzer;
|
307
|
+
private readonly _node;
|
308
|
+
readonly kind = EntityKind.Variable;
|
309
|
+
readonly subkind = "parameter";
|
310
|
+
constructor(_analyzer: Analyzer, _node: SetterParameterDeclaration);
|
311
|
+
getName(): Name;
|
312
|
+
getType(): types.Type;
|
313
|
+
getDefinition(): VariableEntityDefinition;
|
314
|
+
getGetter(): GetterEntity | undefined;
|
315
|
+
getSetter(): SetterEntity | undefined;
|
316
|
+
isConstant(): boolean;
|
317
|
+
isHidden(): EntityHidingLevel | undefined;
|
318
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
319
|
+
getTags(): readonly Tag[];
|
320
|
+
getContainer(): ParameterVariableEntityContainer;
|
321
|
+
isOptional(): boolean;
|
322
|
+
isVariadic(): boolean;
|
323
|
+
}
|
324
|
+
export declare class IntrinsicPackageVariableEntity implements PackageVariableEntity {
|
325
|
+
private readonly _name;
|
326
|
+
private readonly _type;
|
327
|
+
private readonly _containingPackage;
|
328
|
+
private readonly _isSpecial;
|
329
|
+
private readonly _isHidden;
|
330
|
+
private readonly _getter;
|
331
|
+
private readonly _setter;
|
332
|
+
readonly kind = EntityKind.Variable;
|
333
|
+
readonly subkind = "package";
|
334
|
+
constructor(_name: Name, _type: types.Type | Lazy<types.Type>, _containingPackage: PackageEntity, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined);
|
335
|
+
getName(): Name;
|
336
|
+
getType(): types.Type;
|
337
|
+
getDefinition(): VariableEntityDefinition;
|
338
|
+
getGetter(): GetterEntity | undefined;
|
339
|
+
getSetter(): SetterEntity | undefined;
|
340
|
+
isConstant(): boolean;
|
341
|
+
isHidden(): EntityHidingLevel | undefined;
|
342
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
343
|
+
getTags(): readonly Tag[];
|
344
|
+
getContainingPackage(): PackageEntity;
|
345
|
+
}
|
346
|
+
export declare class IntrinsicTypeVariableEntity implements TypeVariableEntity {
|
347
|
+
private readonly _name;
|
348
|
+
private readonly _type;
|
349
|
+
private readonly _container;
|
350
|
+
private readonly _isStatic;
|
351
|
+
private readonly _isRedefinable;
|
352
|
+
private readonly _isRedefined;
|
353
|
+
private readonly _isAbstract;
|
354
|
+
private readonly _isConsistent;
|
355
|
+
private readonly _isObservable;
|
356
|
+
private readonly _isSpecial;
|
357
|
+
private readonly _isHidden;
|
358
|
+
private readonly _getter;
|
359
|
+
private readonly _setter;
|
360
|
+
readonly kind = EntityKind.Variable;
|
361
|
+
readonly subkind = "type";
|
362
|
+
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _isRedefinable: boolean, _isRedefined: boolean, _isAbstract: boolean, _isConsistent: boolean, _isObservable: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined);
|
363
|
+
getName(): Name;
|
364
|
+
getType(): types.Type;
|
365
|
+
getDefinition(): VariableEntityDefinition;
|
366
|
+
getGetter(): GetterEntity | undefined;
|
367
|
+
getSetter(): SetterEntity | undefined;
|
368
|
+
isConstant(): boolean;
|
369
|
+
isHidden(): EntityHidingLevel | undefined;
|
370
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
371
|
+
getTags(): readonly Tag[];
|
372
|
+
getContainer(): TypeMemberEntityContainer;
|
373
|
+
isStatic(): boolean;
|
374
|
+
isRedefinable(): boolean;
|
375
|
+
isRedefined(): boolean;
|
376
|
+
isAbstract(): boolean;
|
377
|
+
isConsistent(): boolean;
|
378
|
+
isObservable(): boolean;
|
379
|
+
}
|
380
|
+
export declare class IntrinsicParameterVariableEntity implements ParameterVariableEntity {
|
381
|
+
private readonly _name;
|
382
|
+
private readonly _type;
|
383
|
+
private readonly _container;
|
384
|
+
private readonly _isOptional;
|
385
|
+
private readonly _isVariadic;
|
386
|
+
private readonly _isSpecial;
|
387
|
+
readonly kind = EntityKind.Variable;
|
388
|
+
readonly subkind = "parameter";
|
389
|
+
constructor(_name: Name, _type: types.Type, _container: ParameterVariableEntityContainer, _isOptional: boolean, _isVariadic: boolean, _isSpecial: SpecialVariableEntityInfo | undefined);
|
390
|
+
getName(): Name;
|
391
|
+
getType(): types.Type;
|
392
|
+
getDefinition(): VariableEntityDefinition;
|
393
|
+
getGetter(): GetterEntity | undefined;
|
394
|
+
getSetter(): SetterEntity | undefined;
|
395
|
+
isConstant(): boolean;
|
396
|
+
isHidden(): EntityHidingLevel | undefined;
|
397
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
398
|
+
getTags(): readonly Tag[];
|
399
|
+
getContainer(): ParameterVariableEntityContainer;
|
400
|
+
isOptional(): boolean;
|
401
|
+
isVariadic(): boolean;
|
402
|
+
}
|
403
|
+
export declare class IntrinsicLocalVariableEntity implements LocalVariableEntity {
|
404
|
+
private readonly _name;
|
405
|
+
private readonly _type;
|
406
|
+
private readonly _isConstant;
|
407
|
+
private readonly _containingEntity;
|
408
|
+
private readonly _isSpecial;
|
409
|
+
readonly kind = EntityKind.Variable;
|
410
|
+
readonly subkind = "local";
|
411
|
+
constructor(_name: Name, _type: types.Type, _isConstant: boolean, _containingEntity: Entity, _isSpecial: SpecialVariableEntityInfo | undefined);
|
412
|
+
getName(): Name;
|
413
|
+
getType(): types.Type;
|
414
|
+
getDefinition(): VariableEntityDefinition;
|
415
|
+
getGetter(): GetterEntity | undefined;
|
416
|
+
getSetter(): SetterEntity | undefined;
|
417
|
+
isConstant(): boolean;
|
418
|
+
isHidden(): EntityHidingLevel | undefined;
|
419
|
+
isSpecial(): SpecialVariableEntityInfo | undefined;
|
420
|
+
getTags(): readonly Tag[];
|
421
|
+
getContainingEntity(): Entity;
|
422
|
+
}
|
423
|
+
export {};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Tag } from '../analysis/Tags.js';
|
2
|
+
import { Analyzer } from '../analysis/index.js';
|
3
|
+
import { Name } from '../common/index.js';
|
4
|
+
import { VariantDeclaration } from '../tree/index.js';
|
5
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, VariantTypeEntity } from './index.js';
|
6
|
+
export interface VariantEntity {
|
7
|
+
readonly kind: EntityKind.Variant;
|
8
|
+
getName(): Name;
|
9
|
+
getDefinition(): VariantEntityDefinition;
|
10
|
+
getContainingEntity(): VariantTypeEntity;
|
11
|
+
isHidden(): EntityHidingLevel | undefined;
|
12
|
+
getTags(): readonly Tag[];
|
13
|
+
}
|
14
|
+
export type VariantEntityDefinition = {
|
15
|
+
kind: DefinitionKind.Source;
|
16
|
+
node: VariantDeclaration;
|
17
|
+
} | {
|
18
|
+
kind: DefinitionKind.TypeScript;
|
19
|
+
};
|
20
|
+
export declare class VariantDeclarationEntity implements VariantEntity {
|
21
|
+
private readonly _analyzer;
|
22
|
+
private readonly _node;
|
23
|
+
readonly kind = EntityKind.Variant;
|
24
|
+
private readonly _variantTypeDeclaration;
|
25
|
+
constructor(_analyzer: Analyzer, _node: VariantDeclaration);
|
26
|
+
getName(): Name;
|
27
|
+
getDefinition(): VariantEntityDefinition;
|
28
|
+
getContainingEntity(): VariantTypeEntity;
|
29
|
+
isHidden(): EntityHidingLevel | undefined;
|
30
|
+
getTags(): readonly Tag[];
|
31
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { Tag } from '../analysis/Tags.js';
|
2
|
+
import { Analyzer } from '../analysis/index.js';
|
3
|
+
import { Name } from '../common/index.js';
|
4
|
+
import { AnonymousVariantTypeDeclaration, PackageVariantTypeDeclaration } from '../tree/index.js';
|
5
|
+
import * as types from '../types/index.js';
|
6
|
+
import { EntityNaming } from './EntityNaming.js';
|
7
|
+
import { OriginalTypeEntityMembers } from './TypeEntityMembers.js';
|
8
|
+
import { OriginalVariants } from './Variants.js';
|
9
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, PackageEntity, SubstitutionApplicationMode, TypeParameterEntity } from './index.js';
|
10
|
+
export type VariantTypeEntity = PackageVariantTypeEntity | AnonymousVariantTypeEntity;
|
11
|
+
export interface PackageVariantTypeEntity extends IVariantTypeEntity {
|
12
|
+
readonly subkind: 'package';
|
13
|
+
getName(): Name;
|
14
|
+
getContainingPackage(): PackageEntity;
|
15
|
+
}
|
16
|
+
export interface AnonymousVariantTypeEntity extends IVariantTypeEntity {
|
17
|
+
readonly subkind: 'anonymous';
|
18
|
+
getContainingPackage(): PackageEntity;
|
19
|
+
}
|
20
|
+
interface IVariantTypeEntity {
|
21
|
+
readonly kind: EntityKind.VariantType;
|
22
|
+
getVariants(): OriginalVariants;
|
23
|
+
getMembers(): OriginalTypeEntityMembers;
|
24
|
+
getUnderlyingType(): types.Type;
|
25
|
+
getDefinition(): VariantTypeEntityDefinition;
|
26
|
+
getNaming(): EntityNaming;
|
27
|
+
getArity(): number;
|
28
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
29
|
+
isHidden(): EntityHidingLevel | undefined;
|
30
|
+
getTags(): readonly Tag[];
|
31
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
32
|
+
}
|
33
|
+
export type VariantTypeEntityDefinition = {
|
34
|
+
kind: DefinitionKind.Source;
|
35
|
+
node: PackageVariantTypeDeclaration | AnonymousVariantTypeDeclaration;
|
36
|
+
} | {
|
37
|
+
kind: DefinitionKind.TypeScript;
|
38
|
+
};
|
39
|
+
export declare class PackageVariantTypeDeclarationEntity implements PackageVariantTypeEntity {
|
40
|
+
private readonly _analyzer;
|
41
|
+
private readonly _node;
|
42
|
+
readonly kind = EntityKind.VariantType;
|
43
|
+
readonly subkind = "package";
|
44
|
+
private readonly _typeParameters;
|
45
|
+
private readonly _variants;
|
46
|
+
private readonly _members;
|
47
|
+
private readonly _underlyingType;
|
48
|
+
constructor(_analyzer: Analyzer, _node: PackageVariantTypeDeclaration);
|
49
|
+
getNaming(): EntityNaming;
|
50
|
+
getName(): Name;
|
51
|
+
getContainingPackage(): PackageEntity;
|
52
|
+
getVariants(): OriginalVariants;
|
53
|
+
getMembers(): OriginalTypeEntityMembers;
|
54
|
+
getUnderlyingType(): types.Type;
|
55
|
+
getDefinition(): VariantTypeEntityDefinition;
|
56
|
+
getArity(): number;
|
57
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
58
|
+
isHidden(): EntityHidingLevel | undefined;
|
59
|
+
getTags(): readonly Tag[];
|
60
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
61
|
+
}
|
62
|
+
export declare class AnonymousVariantTypeDeclarationEntity implements AnonymousVariantTypeEntity {
|
63
|
+
private readonly _analyzer;
|
64
|
+
private readonly _node;
|
65
|
+
readonly kind = EntityKind.VariantType;
|
66
|
+
readonly subkind = "anonymous";
|
67
|
+
private readonly _variants;
|
68
|
+
private readonly _underlyingType;
|
69
|
+
private readonly _members;
|
70
|
+
constructor(_analyzer: Analyzer, _node: AnonymousVariantTypeDeclaration);
|
71
|
+
getVariants(): OriginalVariants;
|
72
|
+
getMembers(): OriginalTypeEntityMembers;
|
73
|
+
getUnderlyingType(): types.Type;
|
74
|
+
getDefinition(): VariantTypeEntityDefinition;
|
75
|
+
getNaming(): EntityNaming;
|
76
|
+
getArity(): number;
|
77
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
78
|
+
isHidden(): EntityHidingLevel | undefined;
|
79
|
+
getTags(): readonly Tag[];
|
80
|
+
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
81
|
+
getContainingPackage(): PackageEntity;
|
82
|
+
}
|
83
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Name } from '../common/index.js';
|
2
|
+
import { VariantEntity } from './VariantEntity.js';
|
3
|
+
export declare class OriginalVariants {
|
4
|
+
private readonly _variants;
|
5
|
+
private readonly _variantsByUniversalName;
|
6
|
+
private get variantsByUniversalName();
|
7
|
+
constructor(_variants: readonly VariantEntity[]);
|
8
|
+
get(): readonly VariantEntity[];
|
9
|
+
getByName(name: Name): readonly VariantEntity[];
|
10
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { AliasTypeEntity } from './AliasTypeEntity.js';
|
2
|
+
import { ConstructorEntity } from './ConstructorEntity.js';
|
3
|
+
import { DestructorEntity } from './DestructorEntity.js';
|
4
|
+
import { GetterEntity } from './GetterEntity.js';
|
5
|
+
import { IndexerEntity } from './IndexerEntity.js';
|
6
|
+
import { DereferenceOperatorEntity } from './DereferenceOperatorEntity.js';
|
7
|
+
import { MethodEntity, PackageMethodEntity, TypeMethodEntity } from './MethodEntity.js';
|
8
|
+
import { AnonymousMethodTypeEntity, MethodTypeEntity, PackageMethodTypeEntity } from './MethodTypeEntity.js';
|
9
|
+
import { PackageAliasEntity } from './PackageAliasEntity.js';
|
10
|
+
import { PackageEntity } from './PackageEntity.js';
|
11
|
+
import { SetterEntity } from './SetterEntity.js';
|
12
|
+
import { AnonymousStructuredTypeEntity, PackageStructuredTypeEntity, StructuredTypeEntity } from './StructuredTypeEntity.js';
|
13
|
+
import { TypeExtensionEntity } from './TypeExtensionEntity.js';
|
14
|
+
import { TypeParameterEntity } from './TypeParameterEntity.js';
|
15
|
+
import { UnaryOperatorEntity } from './UnaryOperatorEntity.js';
|
16
|
+
import { PackageVariableEntity, TypeVariableEntity, VariableEntity } from './VariableEntity.js';
|
17
|
+
import { VariantEntity } from './VariantEntity.js';
|
18
|
+
import { AnonymousVariantTypeEntity, PackageVariantTypeEntity, VariantTypeEntity } from './VariantTypeEntity.js';
|
19
|
+
import { BinaryOperatorEntity } from './index.js';
|
20
|
+
export * from './AliasTypeEntity.js';
|
21
|
+
export * from './BinaryOperatorEntity.js';
|
22
|
+
export * from './ConstructorEntity.js';
|
23
|
+
export * from './DestructorEntity.js';
|
24
|
+
export * from './EntityHiding.js';
|
25
|
+
export * from './EntityNaming.js';
|
26
|
+
export * from './GetterEntity.js';
|
27
|
+
export * from './IndexerEntity.js';
|
28
|
+
export * from './DereferenceOperatorEntity.js';
|
29
|
+
export * from './MethodEntity.js';
|
30
|
+
export * from './MethodTypeEntity.js';
|
31
|
+
export * from './PackageAliasEntity.js';
|
32
|
+
export * from './PackageEntity.js';
|
33
|
+
export * from './SetterEntity.js';
|
34
|
+
export * from './StructuredTypeEntity.js';
|
35
|
+
export * from './SubstitutionApplicationMode.js';
|
36
|
+
export * from './TypeExtensionEntity.js';
|
37
|
+
export * from './TypeMemberContainer.js';
|
38
|
+
export * from './TypeParameterEntity.js';
|
39
|
+
export * from './UnaryOperatorEntity.js';
|
40
|
+
export * from './VariableEntity.js';
|
41
|
+
export * from './VariantEntity.js';
|
42
|
+
export * from './VariantTypeEntity.js';
|
43
|
+
export declare const enum DefinitionKind {
|
44
|
+
Source = 0,
|
45
|
+
Intrinsic = 1,
|
46
|
+
TypeScript = 2
|
47
|
+
}
|
48
|
+
export declare const enum EntityKind {
|
49
|
+
Variable = 0,
|
50
|
+
Variant = 1,
|
51
|
+
VariantType = 2,
|
52
|
+
Getter = 3,
|
53
|
+
Setter = 4,
|
54
|
+
Method = 5,
|
55
|
+
TypeParameter = 6,
|
56
|
+
Indexer = 7,
|
57
|
+
DereferenceOperator = 8,
|
58
|
+
Constructor = 9,
|
59
|
+
Destructor = 10,
|
60
|
+
MethodType = 11,
|
61
|
+
StructuredType = 12,
|
62
|
+
PackageAlias = 13,
|
63
|
+
AliasType = 14,
|
64
|
+
UnaryOperator = 15,
|
65
|
+
BinaryOperator = 16,
|
66
|
+
Package = 17,
|
67
|
+
TypeExtension = 18
|
68
|
+
}
|
69
|
+
export type Entity = PackageEntity | VariableEntity | VariantEntity | VariantTypeEntity | GetterEntity | SetterEntity | MethodEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | MethodTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity | UnaryOperatorEntity | BinaryOperatorEntity;
|
70
|
+
export type TypeEntity = MethodTypeEntity | StructuredTypeEntity | TypeParameterEntity | VariantTypeEntity | AliasTypeEntity;
|
71
|
+
export type PackageTypeEntity = PackageMethodTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity;
|
72
|
+
export declare function isPackageTypeEntity(entity: TypeEntity): entity is PackageTypeEntity;
|
73
|
+
export type NamedTypeEntity = PackageMethodTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
74
|
+
export type TypeEntityWithMembers = MethodTypeEntity | StructuredTypeEntity | VariantTypeEntity | AliasTypeEntity;
|
75
|
+
export declare function isTypeEntityWithMembers(entity: TypeEntity): entity is TypeEntityWithMembers;
|
76
|
+
export declare function isTypeEntity(entity: Entity): entity is TypeEntity;
|
77
|
+
export declare function isNamedTypeEntity(entity: TypeEntity): entity is NamedTypeEntity;
|
78
|
+
export type PackageMemberEntity = PackageVariableEntity | PackageMethodEntity | PackageTypeEntity;
|
79
|
+
export type EntityWithTags = AliasTypeEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity | MethodEntity | MethodTypeEntity | StructuredTypeEntity | VariableEntity | VariantEntity | VariantTypeEntity;
|
80
|
+
export declare function isEntityWithTags(entity: Entity): entity is EntityWithTags;
|
81
|
+
export type TypeMemberEntity = TypeVariableEntity | TypeMethodEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity | UnaryOperatorEntity | BinaryOperatorEntity;
|
82
|
+
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
83
|
+
export type AnonymousTypeEntity = AnonymousStructuredTypeEntity | AnonymousMethodTypeEntity | AnonymousVariantTypeEntity;
|
84
|
+
export declare function isAnonymousTypeEntity(entity: Entity): entity is AnonymousTypeEntity;
|
85
|
+
export declare function entityToStringDecorator<T extends {
|
86
|
+
new (...args: any[]): Entity;
|
87
|
+
}>(constructor: T): void;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare class CommandLineCompiler {
|
2
|
+
static readonly successExitCode = 0;
|
3
|
+
static readonly errorExitCode = 1;
|
4
|
+
static run(args: readonly string[]): Promise<number>;
|
5
|
+
private static displayUsageMessage;
|
6
|
+
private static displayPerformanceMeasurementResults;
|
7
|
+
private static execute;
|
8
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Analyzer } from '../analysis/Analyzer.js';
|
2
|
+
import { CancellationToken, Uri } from '../common/index.js';
|
3
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
4
|
+
import { EmitOptions, OutputAcceptor } from '../emitter/index.js';
|
5
|
+
import { Compilation } from '../project/Compilation.js';
|
6
|
+
import { SourcesProvider } from '../project/CompilationLoader.js';
|
7
|
+
import { TypeScriptLibrariesProvider } from '../ts-interop/TsLibrariesProvider.js';
|
8
|
+
export type LaunchUri = Uri;
|
9
|
+
export declare class Compiler {
|
10
|
+
static loadCompilation(projectUri: Uri, sourcesProvider: SourcesProvider, tsLibrariesProvider: TypeScriptLibrariesProvider, diagnostics: DiagnosticAcceptor | undefined, workspaceUri?: Uri, standardPackagesUri?: Uri, cancellationToken?: CancellationToken): Promise<Compilation | undefined>;
|
11
|
+
static createAnalyzer(compilation: Compilation, tsLibrariesProvider: TypeScriptLibrariesProvider, diagnostics: DiagnosticAcceptor | undefined, _cancellationToken?: CancellationToken): Promise<Analyzer | undefined>;
|
12
|
+
static analyze(analyzer: Analyzer, diagnostics: DiagnosticAcceptor | undefined, cancellationToken?: CancellationToken): Promise<boolean>;
|
13
|
+
static emit(analyzer: Analyzer, outputUri: Uri, outputAcceptor: OutputAcceptor, _diagnostics: DiagnosticAcceptor | undefined, emitOptions?: EmitOptions, cancellationToken?: CancellationToken): Promise<LaunchUri | undefined>;
|
14
|
+
static emitToString(analyzer: Analyzer, _diagnostics: DiagnosticAcceptor | undefined, emitOptions?: EmitOptions, cancellationToken?: CancellationToken): Promise<string>;
|
15
|
+
}
|