@artel/artc 0.6.25259 → 0.6.25261
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-HE4MTX63.js → chunk-66RH6JKB.js} +14377 -13458
- package/build/{chunk-VQI5PLBW.js → chunk-7OS2G5WZ.js} +1 -1
- package/build/{chunk-GVYF4DV5.js → chunk-UWQKBRAT.js} +11 -11
- 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
|
@@ -4,7 +4,7 @@ export declare class TextFile {
|
|
|
4
4
|
readonly text: string;
|
|
5
5
|
readonly uri: Uri;
|
|
6
6
|
readonly version: number;
|
|
7
|
-
private readonly
|
|
7
|
+
private readonly textDocument;
|
|
8
8
|
constructor(text: string, uri: Uri, version: number);
|
|
9
9
|
getPositionAt(offset: number): Position;
|
|
10
10
|
getOffsetAtPosition({ line, character }: Position): number;
|
|
@@ -4,7 +4,7 @@ import { Uri } from '../../common/Uri.js';
|
|
|
4
4
|
import * as origin from '../configuration/types/PackageConfigurationEn.js';
|
|
5
5
|
import { PackageConfiguration, ProgramPackageConfiguration, TextTranslationPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
|
|
6
6
|
export declare class ConfigurationConverter {
|
|
7
|
-
private static readonly
|
|
7
|
+
private static readonly uriRegexp;
|
|
8
8
|
static convert(configurations: readonly origin.Configuration[], packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ConvertedConfiguration;
|
|
9
9
|
static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
|
|
10
10
|
static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
|
|
@@ -2,7 +2,7 @@ import { PackageLocale } from '../../common/PackageLocale.js';
|
|
|
2
2
|
import { RangeDiagnosticAcceptor } from '../../diagnostic/RangeDiagnostic.js';
|
|
3
3
|
import * as configEn from '../configuration/types/PackageConfigurationEn.js';
|
|
4
4
|
export declare class ConfigurationFileParser {
|
|
5
|
-
private static
|
|
5
|
+
private static readonly configurationValidator_;
|
|
6
6
|
private static get configurationValidator();
|
|
7
7
|
/**
|
|
8
8
|
* Выполняет разбор и валидацию конфигурации (проверка соответствия JSON схеме), преобразует в конфигурацию на
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Analyzer } from '../analysis/Analyzer.js';
|
|
2
|
+
import { SubprogramDeclarationOrLiteral } from '../analysis/NodeTypeUtils.js';
|
|
3
|
+
import { SourceFile } from '../project/index.js';
|
|
4
|
+
import { SourceFileEdit } from './Types.js';
|
|
5
|
+
export declare class AssignFieldService {
|
|
6
|
+
private static readonly receiverVariableName;
|
|
7
|
+
createEditWithAssignment(analyzer: Analyzer, sourceFile: SourceFile, subprogramDeclaration: SubprogramDeclarationOrLiteral, fieldName: string, value: string): SourceFileEdit | undefined;
|
|
8
|
+
private findLastAssignmentToField;
|
|
9
|
+
private detectNewLine;
|
|
10
|
+
}
|
|
@@ -3,7 +3,7 @@ import { DiagnosticCode } from '../diagnostic/DiagnosticCode.js';
|
|
|
3
3
|
import { SourceFile } from '../project/SourceFile.js';
|
|
4
4
|
import { SourceFileEdit } from './Types.js';
|
|
5
5
|
export declare class CodeActionsService {
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly translationsGeneratorService;
|
|
7
7
|
getCodeActions(analyzer: Analyzer, sourceFile: SourceFile, offset: number, diagnosticCodes: readonly DiagnosticCode[] | undefined): CodeAction[] | undefined;
|
|
8
8
|
resolveEdits(analyzer: Analyzer, sourceFile: SourceFile, offset: number, name: string, data: any): SourceFileEdit[] | undefined;
|
|
9
9
|
}
|
|
@@ -2,12 +2,12 @@ import { Analyzer } from '../analysis/index.js';
|
|
|
2
2
|
import { Range } from '../common/index.js';
|
|
3
3
|
import { SourceFile } from '../project/index.js';
|
|
4
4
|
export declare class CompletionService {
|
|
5
|
-
private readonly
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private readonly
|
|
5
|
+
private readonly cache;
|
|
6
|
+
private sourceFile;
|
|
7
|
+
private analyzer;
|
|
8
|
+
private locale;
|
|
9
|
+
private dialect;
|
|
10
|
+
private readonly completionItemInfoContext_;
|
|
11
11
|
private get completionItemInfoContext();
|
|
12
12
|
getCompletions(analyzer: Analyzer, sourceFile: SourceFile, offset: number): readonly CompletionItem[];
|
|
13
13
|
resolveCompletionItem(cacheId: number, indexInCache: number): ResolutionResult;
|
|
@@ -31,7 +31,7 @@ export declare class CompletionService {
|
|
|
31
31
|
private isCaseKeywordContext;
|
|
32
32
|
private getExpressionCompletionItemInfos;
|
|
33
33
|
private prioritizeItemsFromUnionType;
|
|
34
|
-
private
|
|
34
|
+
private getCompletionItemInfosForTargetSignaturesParameters;
|
|
35
35
|
private getScopeCompletionItemInfos;
|
|
36
36
|
private getTypeCompletionItemInfos;
|
|
37
37
|
private getTypeCompletionItemInfosFromPackage;
|
|
@@ -77,7 +77,7 @@ export declare const enum CompletionItemKind {
|
|
|
77
77
|
PackageVariable = 7,
|
|
78
78
|
PackageFunction = 8,
|
|
79
79
|
LocalVariable = 9,
|
|
80
|
-
|
|
80
|
+
Parameter = 10,
|
|
81
81
|
NestedFunction = 11,
|
|
82
82
|
Variant = 12,
|
|
83
83
|
RefObjectType = 13,
|
|
@@ -39,7 +39,7 @@ export declare const customCommandName: {
|
|
|
39
39
|
/**
|
|
40
40
|
* Возвращает `void`.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
assignField: string;
|
|
43
43
|
};
|
|
44
44
|
export type GetLocalesAvailableForTranslationParams = {
|
|
45
45
|
textDocument: ls.TextDocumentIdentifier;
|
|
@@ -96,8 +96,15 @@ export type SyntaxNodeUri = ls.DocumentUri;
|
|
|
96
96
|
export type GetNodeRangeParams = {
|
|
97
97
|
uri: SyntaxNodeUri;
|
|
98
98
|
};
|
|
99
|
-
export type
|
|
100
|
-
|
|
99
|
+
export type AssignFieldParams = {
|
|
100
|
+
/**
|
|
101
|
+
* Путь к узлу функции, в котором нужно расположить присваивание.
|
|
102
|
+
*/
|
|
103
|
+
functionNodePath: SyntaxNodeUri;
|
|
104
|
+
/**
|
|
105
|
+
* Имя поля.
|
|
106
|
+
*/
|
|
107
|
+
fieldName: string;
|
|
101
108
|
/**
|
|
102
109
|
* Выражение, которое необходимо присвоить.
|
|
103
110
|
*
|
|
@@ -105,10 +112,9 @@ export type AddPropertyAssignmentParams = {
|
|
|
105
112
|
*/
|
|
106
113
|
value: string;
|
|
107
114
|
/**
|
|
108
|
-
*
|
|
109
|
-
* присваивании.
|
|
115
|
+
* Путь к синтаксическому узлу, соответствующему месту последнего присваивания значения.
|
|
110
116
|
*/
|
|
111
|
-
|
|
117
|
+
lastAssignmentLocation?: SyntaxNodeUri;
|
|
112
118
|
};
|
|
113
119
|
export declare function isProvideEvaluatableExpressionParams(value: unknown): value is ProvideEvaluatableExpressionParams;
|
|
114
120
|
export declare function isProvideServerOwnedDocumentContentParams(value: unknown): value is ProvideServerOwnedDocumentContentParams;
|
|
@@ -117,4 +123,4 @@ export declare function isDisplayFileSystemTreeParams(value: unknown): value is
|
|
|
117
123
|
export declare function isCreateOrUpdateSourceFileParams(value: unknown): value is CreateOrUpdateSourceFileParams;
|
|
118
124
|
export declare function isDeleteSourceFileParams(value: unknown): value is DeleteSourceFileParams;
|
|
119
125
|
export declare function isGetNodeRangeParams(value: unknown): value is GetNodeRangeParams;
|
|
120
|
-
export declare function
|
|
126
|
+
export declare function isAssignFieldParams(value: unknown): value is AssignFieldParams;
|
|
@@ -4,7 +4,7 @@ import { SourceFile } from '../project/index.js';
|
|
|
4
4
|
import { SourceGenerationService } from './source-generation/SourceGenerationService.js';
|
|
5
5
|
import { SourceLocation } from './Types.js';
|
|
6
6
|
export declare class DefinitionService {
|
|
7
|
-
private readonly
|
|
7
|
+
private readonly sourceGenerationService;
|
|
8
8
|
constructor(sourceGenerationService: SourceGenerationService | undefined);
|
|
9
9
|
getDefinition(analyzer: Analyzer, sourceFile: SourceFile, offset: number, cancellationToken: CancellationToken | undefined): Promise<DefinitionsAndReferenceInfo | undefined>;
|
|
10
10
|
private getDefinitionOfReference;
|
|
@@ -5,17 +5,17 @@ import { Analyzer } from '../analysis/index.js';
|
|
|
5
5
|
import { HelperPhraseKind } from '../common/HelperPhrases.js';
|
|
6
6
|
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
7
7
|
import * as e from '../entities/index.js';
|
|
8
|
-
import { NamedEntity } from '../entities/index.js';
|
|
8
|
+
import { NamedEntity, StructuredTypeKind } from '../entities/index.js';
|
|
9
9
|
import { SourceFile } from '../project/index.js';
|
|
10
10
|
import { KeywordKind } from '../tree/index.js';
|
|
11
11
|
import * as types from '../types/index.js';
|
|
12
12
|
export declare class DisplayService {
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
private readonly
|
|
17
|
-
private
|
|
18
|
-
constructor(
|
|
13
|
+
private readonly analyzer;
|
|
14
|
+
private readonly locale;
|
|
15
|
+
private readonly dialect;
|
|
16
|
+
private readonly contextualSourceFile?;
|
|
17
|
+
private packageNameShorteningMap;
|
|
18
|
+
constructor(analyzer: Analyzer | undefined, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile?: SourceFile | undefined);
|
|
19
19
|
displayVariableDeclaration(variable: VariableDeclaration): string;
|
|
20
20
|
displayType(type: types.Type): string;
|
|
21
21
|
getFunctionTypeBodyDisplayParts(type: types.FunctionType): FunctionTypeBodyDisplayParts;
|
|
@@ -23,8 +23,8 @@ export declare class DisplayService {
|
|
|
23
23
|
displayPackageAliasEntity(entity: e.PackageAliasEntity): string;
|
|
24
24
|
displayPackage(package_: e.PackageEntity): string;
|
|
25
25
|
displayPackageNameTreeNode(node: PackageNameTreeNode): string;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
displayParameterDeclaration(parameter: ParameterDeclaration, options?: TypeDisplayOptions): string;
|
|
27
|
+
getParameterDeclarationDisplayParts(parameter: ParameterDeclaration, options?: TypeDisplayOptions): ParameterDeclarationDisplayParts;
|
|
28
28
|
displayFunctionDeclaration(func: FunctionDeclaration): string;
|
|
29
29
|
getFunctionDeclarationDisplayParts(func: FunctionDeclaration): FunctionDeclarationDisplayParts;
|
|
30
30
|
displayOperatorDeclaration(operator: OperatorDeclaration): string;
|
|
@@ -70,13 +70,16 @@ export declare class DisplayService {
|
|
|
70
70
|
}
|
|
71
71
|
interface TypeDisplayOptions {
|
|
72
72
|
readonly unionAndAliasTypeDisplayKind: UnionAndAliasTypeDisplayKind;
|
|
73
|
-
readonly
|
|
73
|
+
readonly functionTypeDisplayKind: FunctionTypeDisplayKind;
|
|
74
74
|
readonly displayContainer: boolean;
|
|
75
75
|
}
|
|
76
76
|
declare const enum UnionAndAliasTypeDisplayKind {
|
|
77
77
|
Full = 0,
|
|
78
|
-
OnlyOriginalType = 1
|
|
79
|
-
|
|
78
|
+
OnlyOriginalType = 1
|
|
79
|
+
}
|
|
80
|
+
declare const enum FunctionTypeDisplayKind {
|
|
81
|
+
Full = 0,
|
|
82
|
+
OnlyOriginalType = 1
|
|
80
83
|
}
|
|
81
84
|
export type VariableDeclaration = VariableDeclaration_entity | VariableDeclaration_typeMember;
|
|
82
85
|
export declare class VariableDeclaration_entity implements IVariableDeclaration {
|
|
@@ -112,7 +115,7 @@ export declare class FunctionDeclaration_entity implements IFunctionDeclaration
|
|
|
112
115
|
constructor(func: e.FunctionEntity);
|
|
113
116
|
getEntity(): e.FunctionEntity;
|
|
114
117
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
115
|
-
|
|
118
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
116
119
|
getReturnType(): types.Type;
|
|
117
120
|
isAsync(): boolean;
|
|
118
121
|
getContainer(): DeclarationContainer | undefined;
|
|
@@ -123,7 +126,7 @@ export declare class FunctionDeclaration_typeMember implements IFunctionDeclarat
|
|
|
123
126
|
constructor(func: types.Method);
|
|
124
127
|
getEntity(): e.FunctionEntity;
|
|
125
128
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
126
|
-
|
|
129
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
127
130
|
getReturnType(): types.Type;
|
|
128
131
|
isAsync(): boolean;
|
|
129
132
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
@@ -134,7 +137,7 @@ export declare class FunctionDeclaration_substitutedFunction implements IFunctio
|
|
|
134
137
|
constructor(func: SubstitutedFunction);
|
|
135
138
|
getEntity(): e.FunctionEntity;
|
|
136
139
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
137
|
-
|
|
140
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
138
141
|
getReturnType(): types.Type;
|
|
139
142
|
isAsync(): boolean;
|
|
140
143
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
@@ -145,7 +148,7 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
|
|
|
145
148
|
constructor(func: AccessedFunction);
|
|
146
149
|
getEntity(): e.FunctionEntity;
|
|
147
150
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
148
|
-
|
|
151
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
149
152
|
getReturnType(): types.Type;
|
|
150
153
|
isAsync(): boolean;
|
|
151
154
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
@@ -153,7 +156,7 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
|
|
|
153
156
|
interface IFunctionDeclaration {
|
|
154
157
|
getEntity(): e.FunctionEntity;
|
|
155
158
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
156
|
-
|
|
159
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
157
160
|
getReturnType(): types.Type;
|
|
158
161
|
isAsync(): boolean;
|
|
159
162
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
@@ -164,34 +167,34 @@ export declare class ConstructorDeclaration_entity implements IConstructorDeclar
|
|
|
164
167
|
readonly value: e.ConstructorEntity;
|
|
165
168
|
constructor(value: e.ConstructorEntity);
|
|
166
169
|
getContainer(): TypeMemberDeclarationContainer;
|
|
167
|
-
|
|
170
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
168
171
|
}
|
|
169
172
|
export declare class ConstructorDeclaration_typeMember implements IConstructorDeclaration {
|
|
170
173
|
readonly value: types.Constructor;
|
|
171
174
|
readonly kind = "type-member";
|
|
172
175
|
constructor(value: types.Constructor);
|
|
173
176
|
getContainer(analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
|
|
174
|
-
|
|
177
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
175
178
|
}
|
|
176
179
|
interface IConstructorDeclaration {
|
|
177
180
|
getContainer(analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
|
|
178
|
-
|
|
181
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
179
182
|
}
|
|
180
183
|
export type DestructorDeclaration = DestructorDeclaration_entity | DestructorDeclaration_typeMember;
|
|
181
184
|
export declare class DestructorDeclaration_entity implements IDestructorDeclaration {
|
|
182
185
|
readonly kind = "entity";
|
|
183
186
|
readonly value: e.DestructorEntity;
|
|
184
187
|
constructor(value: e.DestructorEntity);
|
|
185
|
-
|
|
188
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
186
189
|
}
|
|
187
190
|
export declare class DestructorDeclaration_typeMember implements IDestructorDeclaration {
|
|
188
191
|
readonly value: types.Destructor;
|
|
189
192
|
readonly kind = "type-member";
|
|
190
193
|
constructor(value: types.Destructor);
|
|
191
|
-
|
|
194
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
192
195
|
}
|
|
193
196
|
interface IDestructorDeclaration {
|
|
194
|
-
|
|
197
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
195
198
|
}
|
|
196
199
|
export type DereferenceOperatorDeclaration = DereferenceOperatorDeclaration_entity | DereferenceOperatorDeclaration_typeMember;
|
|
197
200
|
export declare class DereferenceOperatorDeclaration_entity implements IDereferenceOperatorDeclaration {
|
|
@@ -217,7 +220,7 @@ export declare class IndexerDeclaration_entity implements IIndexerDeclaration {
|
|
|
217
220
|
readonly value: e.IndexerEntity;
|
|
218
221
|
readonly kind = "entity";
|
|
219
222
|
constructor(value: e.IndexerEntity);
|
|
220
|
-
|
|
223
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
221
224
|
getType(): types.Type;
|
|
222
225
|
getContainer(): DeclarationContainer | undefined;
|
|
223
226
|
}
|
|
@@ -225,17 +228,17 @@ export declare class IndexerDeclaration_typeMember implements IIndexerDeclaratio
|
|
|
225
228
|
readonly value: types.Indexer;
|
|
226
229
|
readonly kind = "type-member";
|
|
227
230
|
constructor(value: types.Indexer);
|
|
228
|
-
|
|
231
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
229
232
|
getType(): types.Type;
|
|
230
233
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
231
234
|
}
|
|
232
235
|
interface IIndexerDeclaration {
|
|
233
|
-
|
|
236
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
234
237
|
getType(): types.Type;
|
|
235
238
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
236
239
|
}
|
|
237
|
-
export type
|
|
238
|
-
export declare class
|
|
240
|
+
export type ParameterDeclaration = ParameterDeclaration_entity | ParameterDeclaration_typeMember | ParameterDeclaration_substitutedFunction | ParameterDeclaration_matchResultParameter | ParameterDeclaration_universal;
|
|
241
|
+
export declare class ParameterDeclaration_entity implements IParameter {
|
|
239
242
|
readonly value: e.VariableEntity;
|
|
240
243
|
readonly kind = "entity";
|
|
241
244
|
constructor(value: e.VariableEntity);
|
|
@@ -244,16 +247,16 @@ export declare class ValueParameterDeclaration_entity implements IValueParameter
|
|
|
244
247
|
isOptional(): boolean;
|
|
245
248
|
getType(): types.Type;
|
|
246
249
|
}
|
|
247
|
-
export declare class
|
|
248
|
-
readonly value: types.
|
|
250
|
+
export declare class ParameterDeclaration_typeMember implements IParameter {
|
|
251
|
+
readonly value: types.Parameter;
|
|
249
252
|
readonly kind = "type-member";
|
|
250
|
-
constructor(value: types.
|
|
253
|
+
constructor(value: types.Parameter);
|
|
251
254
|
getName(): Name;
|
|
252
255
|
getEntity(): e.VariableEntity;
|
|
253
256
|
isOptional(): boolean;
|
|
254
257
|
getType(): types.Type;
|
|
255
258
|
}
|
|
256
|
-
export declare class
|
|
259
|
+
export declare class ParameterDeclaration_substitutedFunction implements IParameter {
|
|
257
260
|
readonly entity: e.VariableEntity;
|
|
258
261
|
readonly type: types.Type;
|
|
259
262
|
constructor(entity: e.VariableEntity, type: types.Type);
|
|
@@ -262,7 +265,7 @@ export declare class ValueParameterDeclaration_substitutedFunction implements IV
|
|
|
262
265
|
isOptional(): boolean;
|
|
263
266
|
getType(): types.Type;
|
|
264
267
|
}
|
|
265
|
-
export declare class
|
|
268
|
+
export declare class ParameterDeclaration_matchResultParameter implements IParameter {
|
|
266
269
|
readonly parameter: {
|
|
267
270
|
entity: e.VariableEntity;
|
|
268
271
|
type: types.Type;
|
|
@@ -277,7 +280,7 @@ export declare class ValueParameterDeclaration_matchResultValueParameter impleme
|
|
|
277
280
|
isOptional(): boolean;
|
|
278
281
|
getType(): types.Type;
|
|
279
282
|
}
|
|
280
|
-
export declare class
|
|
283
|
+
export declare class ParameterDeclaration_universal implements IParameter {
|
|
281
284
|
readonly entity: e.VariableEntity;
|
|
282
285
|
readonly type: types.Type;
|
|
283
286
|
constructor(entity: e.VariableEntity, type: types.Type);
|
|
@@ -286,7 +289,7 @@ export declare class ValueParameterDeclaration_universal implements IValueParame
|
|
|
286
289
|
isOptional(): boolean;
|
|
287
290
|
getType(): types.Type;
|
|
288
291
|
}
|
|
289
|
-
interface
|
|
292
|
+
interface IParameter {
|
|
290
293
|
getName(): Name;
|
|
291
294
|
getEntity(): e.VariableEntity;
|
|
292
295
|
isOptional(): boolean;
|
|
@@ -319,9 +322,7 @@ export declare class TypeDeclarationStructured_entity implements ITypeDeclaratio
|
|
|
319
322
|
constructor(entity: e.StructuredTypeEntity);
|
|
320
323
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
321
324
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
322
|
-
|
|
323
|
-
isPlainObject(): boolean;
|
|
324
|
-
isAspect(): boolean;
|
|
325
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
325
326
|
getContainer(): DeclarationContainer | undefined;
|
|
326
327
|
}
|
|
327
328
|
export declare class TypeDeclarationStructured_type implements ITypeDeclarationStructured {
|
|
@@ -330,17 +331,13 @@ export declare class TypeDeclarationStructured_type implements ITypeDeclarationS
|
|
|
330
331
|
constructor(type: types.StructuredType);
|
|
331
332
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
332
333
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
333
|
-
|
|
334
|
-
isPlainObject(): boolean;
|
|
335
|
-
isAspect(): boolean;
|
|
334
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
336
335
|
getContainer(): DeclarationContainer | undefined;
|
|
337
336
|
}
|
|
338
337
|
interface ITypeDeclarationStructured {
|
|
339
338
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
340
339
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
341
|
-
|
|
342
|
-
isPlainObject(): boolean;
|
|
343
|
-
isAspect(): boolean;
|
|
340
|
+
getStructuredTypeKind(): StructuredTypeKind;
|
|
344
341
|
getContainer(): DeclarationContainer | undefined;
|
|
345
342
|
}
|
|
346
343
|
export declare class TypeDeclaration_function implements ITypeDeclaration {
|
|
@@ -358,7 +355,7 @@ export declare class TypeDeclarationFunction_entity implements ITypeDeclarationF
|
|
|
358
355
|
constructor(entity: e.FunctionTypeEntity);
|
|
359
356
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
360
357
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
361
|
-
|
|
358
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
362
359
|
getReturnType(): types.Type;
|
|
363
360
|
isAsync(): boolean;
|
|
364
361
|
getContainer(): DeclarationContainer | undefined;
|
|
@@ -369,7 +366,7 @@ export declare class TypeDeclarationFunction_type implements ITypeDeclarationFun
|
|
|
369
366
|
constructor(type: types.FunctionType);
|
|
370
367
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
371
368
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
372
|
-
|
|
369
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
373
370
|
getReturnType(): types.Type;
|
|
374
371
|
isAsync(): boolean;
|
|
375
372
|
getContainer(): DeclarationContainer | undefined;
|
|
@@ -377,7 +374,7 @@ export declare class TypeDeclarationFunction_type implements ITypeDeclarationFun
|
|
|
377
374
|
interface ITypeDeclarationFunction {
|
|
378
375
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
379
376
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
380
|
-
|
|
377
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
381
378
|
getReturnType(): types.Type;
|
|
382
379
|
isAsync(): boolean;
|
|
383
380
|
getContainer(): DeclarationContainer | undefined;
|
|
@@ -510,7 +507,7 @@ export declare class OperatorDeclaration_entity implements IOperatorDeclaration
|
|
|
510
507
|
readonly kind = "entity";
|
|
511
508
|
constructor(operator: e.OperatorEntity);
|
|
512
509
|
getOperatorKind(): e.OperatorKind;
|
|
513
|
-
|
|
510
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
514
511
|
getReturnType(): types.Type;
|
|
515
512
|
getContainer(): DeclarationContainer | undefined;
|
|
516
513
|
}
|
|
@@ -519,13 +516,13 @@ export declare class OperatorDeclaration_typeMember implements IOperatorDeclarat
|
|
|
519
516
|
readonly kind = "type-member";
|
|
520
517
|
constructor(operator: types.Operator);
|
|
521
518
|
getOperatorKind(): e.OperatorKind;
|
|
522
|
-
|
|
519
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
523
520
|
getReturnType(): types.Type;
|
|
524
521
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
525
522
|
}
|
|
526
523
|
interface IOperatorDeclaration {
|
|
527
524
|
getOperatorKind(): e.OperatorKind;
|
|
528
|
-
|
|
525
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
529
526
|
getReturnType(): types.Type;
|
|
530
527
|
getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
|
|
531
528
|
}
|
|
@@ -556,7 +553,6 @@ interface IStructuredTypeUsage {
|
|
|
556
553
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
557
554
|
getContainer(): DeclarationContainer | undefined;
|
|
558
555
|
}
|
|
559
|
-
type StructuredTypeKind = 'ref-object' | 'plain-object' | 'aspect';
|
|
560
556
|
export type VariantTypeUsage = VariantTypeUsage_type | VariantTypeUsage_entity;
|
|
561
557
|
export declare class VariantTypeUsage_type implements IVariantTypeUsage {
|
|
562
558
|
readonly type: types.VariantType;
|
|
@@ -585,7 +581,7 @@ export declare class FunctionTypeUsage_type implements IFunctionTypeUsage {
|
|
|
585
581
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
586
582
|
isAsync(): boolean;
|
|
587
583
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
588
|
-
|
|
584
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
589
585
|
getReturnType(): types.Type;
|
|
590
586
|
getContainer(): DeclarationContainer | undefined;
|
|
591
587
|
}
|
|
@@ -596,7 +592,7 @@ export declare class FunctionTypeUsage_entity implements IFunctionTypeUsage {
|
|
|
596
592
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
597
593
|
isAsync(): boolean;
|
|
598
594
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
599
|
-
|
|
595
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
600
596
|
getReturnType(): types.Type;
|
|
601
597
|
getContainer(): DeclarationContainer | undefined;
|
|
602
598
|
}
|
|
@@ -605,7 +601,7 @@ interface IFunctionTypeUsage {
|
|
|
605
601
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
606
602
|
isAsync(): boolean;
|
|
607
603
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
608
|
-
|
|
604
|
+
getParameters(): readonly ParameterDeclaration[];
|
|
609
605
|
getReturnType(): types.Type;
|
|
610
606
|
getContainer(): DeclarationContainer | undefined;
|
|
611
607
|
}
|
|
@@ -699,13 +695,13 @@ export declare class FunctionDeclarationDisplayParts {
|
|
|
699
695
|
readonly typeParameters: readonly string[];
|
|
700
696
|
readonly typeParameterSeparator: string;
|
|
701
697
|
readonly typeParametersEnd: string;
|
|
702
|
-
readonly
|
|
703
|
-
readonly
|
|
704
|
-
readonly
|
|
705
|
-
readonly
|
|
698
|
+
readonly parametersStart: string;
|
|
699
|
+
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
700
|
+
readonly parameterSeparator: string;
|
|
701
|
+
readonly parametersEnd: string;
|
|
706
702
|
readonly returnTypeAnnotationColon: string;
|
|
707
703
|
readonly returnType: string;
|
|
708
|
-
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string,
|
|
704
|
+
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
|
709
705
|
toString(): string;
|
|
710
706
|
}
|
|
711
707
|
export declare class OperatorDeclarationDisplayParts {
|
|
@@ -713,16 +709,16 @@ export declare class OperatorDeclarationDisplayParts {
|
|
|
713
709
|
readonly whitespaceAfterFunctionKeyword: string;
|
|
714
710
|
readonly container: string;
|
|
715
711
|
readonly name: string;
|
|
716
|
-
readonly
|
|
717
|
-
readonly
|
|
718
|
-
readonly
|
|
719
|
-
readonly
|
|
712
|
+
readonly parametersStart: string;
|
|
713
|
+
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
714
|
+
readonly parameterSeparator: string;
|
|
715
|
+
readonly parametersEnd: string;
|
|
720
716
|
readonly returnTypeAnnotationColon: string;
|
|
721
717
|
readonly returnType: string;
|
|
722
|
-
constructor(functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string,
|
|
718
|
+
constructor(functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
|
723
719
|
toString(): string;
|
|
724
720
|
}
|
|
725
|
-
export declare class
|
|
721
|
+
export declare class ParameterDeclarationDisplayParts {
|
|
726
722
|
readonly name: string;
|
|
727
723
|
readonly optionalityText: string;
|
|
728
724
|
readonly colonWithWhitespace: string;
|
|
@@ -747,22 +743,22 @@ export declare class TypeDeclarationDisplayParts {
|
|
|
747
743
|
}
|
|
748
744
|
export declare class ConstructorDeclarationDisplayParts {
|
|
749
745
|
readonly typeText: string;
|
|
750
|
-
readonly
|
|
751
|
-
readonly
|
|
752
|
-
readonly
|
|
753
|
-
readonly
|
|
754
|
-
constructor(typeText: string,
|
|
746
|
+
readonly parametersStart: string;
|
|
747
|
+
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
748
|
+
readonly parameterSeparator: string;
|
|
749
|
+
readonly parametersEnd: string;
|
|
750
|
+
constructor(typeText: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string);
|
|
755
751
|
toString(): string;
|
|
756
752
|
}
|
|
757
753
|
export declare class IndexerDeclarationDisplayParts {
|
|
758
754
|
readonly container: string;
|
|
759
|
-
readonly
|
|
760
|
-
readonly
|
|
761
|
-
readonly
|
|
762
|
-
readonly
|
|
755
|
+
readonly parametersStart: string;
|
|
756
|
+
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
757
|
+
readonly parameterSeparator: string;
|
|
758
|
+
readonly parametersEnd: string;
|
|
763
759
|
readonly typeAnnotationColon: string;
|
|
764
760
|
readonly type: string;
|
|
765
|
-
constructor(container: string,
|
|
761
|
+
constructor(container: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, typeAnnotationColon: string, type: string);
|
|
766
762
|
toString(): string;
|
|
767
763
|
}
|
|
768
764
|
export declare class DereferenceOperatorDeclarationDisplayParts {
|
|
@@ -783,13 +779,13 @@ export declare class NamedTypeDisplayParts {
|
|
|
783
779
|
export declare class FunctionTypeBodyDisplayParts {
|
|
784
780
|
readonly asyncKeywordWithWhitespace: string;
|
|
785
781
|
readonly functionKeyword: string;
|
|
786
|
-
readonly
|
|
787
|
-
readonly
|
|
788
|
-
readonly
|
|
789
|
-
readonly
|
|
782
|
+
readonly parametersStart: string;
|
|
783
|
+
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
784
|
+
readonly parameterSeparator: string;
|
|
785
|
+
readonly parametersEnd: string;
|
|
790
786
|
readonly returnTypeAnnotationColon: string;
|
|
791
787
|
readonly returnType: string;
|
|
792
|
-
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string,
|
|
788
|
+
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
|
793
789
|
toString(): string;
|
|
794
790
|
}
|
|
795
791
|
export {};
|
|
@@ -2,7 +2,7 @@ import { Analyzer } from '../analysis/index.js';
|
|
|
2
2
|
import { Range, CancellationToken } from '../common/index.js';
|
|
3
3
|
import { SourceFile } from '../project/index.js';
|
|
4
4
|
export declare class DocumentHighlightsService {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly referencesService;
|
|
6
6
|
getDocumentHighlights(analyzer: Analyzer, sourceFile: SourceFile, offset: number, cancellationToken: CancellationToken | undefined): Promise<Highlight[]>;
|
|
7
7
|
private static referenceKindToHighlightKind;
|
|
8
8
|
}
|
|
@@ -2,15 +2,15 @@ import { Analyzer } from '../analysis/index.js';
|
|
|
2
2
|
import { Range } from '../common/index.js';
|
|
3
3
|
import { SourceFile } from '../project/index.js';
|
|
4
4
|
export declare class HoverService {
|
|
5
|
-
private
|
|
5
|
+
private displayService;
|
|
6
6
|
getHover(analyzer: Analyzer, sourceFile: SourceFile, offset: number): Hover | undefined;
|
|
7
7
|
private createHoverForEntity;
|
|
8
8
|
private createHoverAtReference;
|
|
9
9
|
private createHoverAtAccessedFunction;
|
|
10
10
|
}
|
|
11
11
|
export declare class Hover {
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
12
|
+
private readonly contents_;
|
|
13
|
+
private readonly rawContents;
|
|
14
14
|
readonly range: Range;
|
|
15
15
|
get contents(): string;
|
|
16
16
|
constructor(rawContents: string, range: Range);
|