@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.
Files changed (200) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +28 -20
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +1266 -1217
  5. package/build/{chunk-HE4MTX63.js → chunk-66RH6JKB.js} +14377 -13458
  6. package/build/{chunk-VQI5PLBW.js → chunk-7OS2G5WZ.js} +1 -1
  7. package/build/{chunk-GVYF4DV5.js → chunk-UWQKBRAT.js} +11 -11
  8. package/build/types/analysis/AccessedFunction.d.ts +11 -11
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
  10. package/build/types/analysis/Analyzer.d.ts +184 -168
  11. package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
  12. package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
  13. package/build/types/analysis/AssignmentChecker.d.ts +4 -4
  14. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
  15. package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
  16. package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
  17. package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
  18. package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
  19. package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
  20. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
  21. package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
  22. package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
  23. package/build/types/analysis/DisplayableEntity.d.ts +30 -30
  24. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
  25. package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
  26. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
  27. package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
  28. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
  29. package/build/types/analysis/ModifierValidator.d.ts +3 -3
  30. package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
  31. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
  32. package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
  33. package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
  34. package/build/types/analysis/OverloadResolver.d.ts +13 -13
  35. package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
  36. package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
  37. package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
  38. package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
  39. package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
  40. package/build/types/analysis/SourceFileMembers.d.ts +6 -6
  41. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
  42. package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
  43. package/build/types/analysis/TagMeaning.d.ts +4 -4
  44. package/build/types/analysis/Tags.d.ts +8 -7
  45. package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
  46. package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
  47. package/build/types/analysis/TypeInferrer.d.ts +4 -4
  48. package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
  49. package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
  50. package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
  51. package/build/types/analysis/TypeNarrower.d.ts +7 -7
  52. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
  53. package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
  54. package/build/types/analysis/Utils.d.ts +1 -2
  55. package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
  56. package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
  57. package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
  58. package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
  59. package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
  60. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
  61. package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
  62. package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
  63. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
  64. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
  65. package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
  66. package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
  67. package/build/types/api/Api.d.ts +2 -2
  68. package/build/types/common/Cached.d.ts +3 -3
  69. package/build/types/common/CancellationToken.d.ts +2 -2
  70. package/build/types/common/Delayed.d.ts +2 -2
  71. package/build/types/common/Displayable.d.ts +3 -3
  72. package/build/types/common/HelperPhrases.d.ts +2 -1
  73. package/build/types/common/Interner.d.ts +1 -1
  74. package/build/types/common/Lazy.d.ts +3 -3
  75. package/build/types/common/Option.d.ts +2 -2
  76. package/build/types/common/PerformanceMeasurement.d.ts +2 -2
  77. package/build/types/common/Query.d.ts +15 -0
  78. package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
  79. package/build/types/common/TreeQuery.d.ts +2 -5
  80. package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
  81. package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
  82. package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
  83. package/build/types/emitter/DebugStack.d.ts +2 -2
  84. package/build/types/emitter/Emitter.d.ts +5 -5
  85. package/build/types/emitter/EmitterContext.d.ts +21 -21
  86. package/build/types/emitter/EntityMap.d.ts +8 -8
  87. package/build/types/emitter/GeneralLowering.d.ts +2 -2
  88. package/build/types/emitter/IrBuilder.d.ts +10 -10
  89. package/build/types/emitter/IrToJs.d.ts +5 -5
  90. package/build/types/emitter/Transformer.d.ts +5 -5
  91. package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
  92. package/build/types/emitter/ir/Nodes.d.ts +28 -27
  93. package/build/types/emitter/ir/types.d.ts +2 -2
  94. package/build/types/entities/AliasTypeEntity.d.ts +15 -12
  95. package/build/types/entities/AliasedType.d.ts +2 -2
  96. package/build/types/entities/BaseAspectTypes.d.ts +31 -0
  97. package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
  98. package/build/types/entities/BaseObjectType.d.ts +31 -0
  99. package/build/types/entities/ConstructorEntity.d.ts +51 -38
  100. package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
  101. package/build/types/entities/DestructorEntity.d.ts +21 -14
  102. package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
  103. package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
  104. package/build/types/entities/FunctionEntity.d.ts +86 -70
  105. package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
  106. package/build/types/entities/GetterEntity.d.ts +51 -30
  107. package/build/types/entities/IEntity.d.ts +12 -0
  108. package/build/types/entities/IndexerEntity.d.ts +24 -24
  109. package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
  110. package/build/types/entities/OperatorEntity.d.ts +23 -16
  111. package/build/types/entities/PackageAliasEntity.d.ts +15 -9
  112. package/build/types/entities/PackageEntity.d.ts +15 -10
  113. package/build/types/entities/PackageMembers.d.ts +5 -5
  114. package/build/types/entities/SetterEntity.d.ts +50 -29
  115. package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
  116. package/build/types/entities/TypeEntity.d.ts +2 -1
  117. package/build/types/entities/TypeEntityMembers.d.ts +11 -11
  118. package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
  119. package/build/types/entities/TypeParameterEntity.d.ts +28 -21
  120. package/build/types/entities/VariableEntity.d.ts +236 -179
  121. package/build/types/entities/VariantTypeEntity.d.ts +28 -22
  122. package/build/types/entities/index.d.ts +5 -1
  123. package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
  124. package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
  125. package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
  126. package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
  127. package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
  128. package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
  129. package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
  130. package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
  131. package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
  132. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
  133. package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
  134. package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
  135. package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
  136. package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
  137. package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
  138. package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
  139. package/build/types/executor/NodeCompiler.d.ts +3 -3
  140. package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
  141. package/build/types/parser/Parser.d.ts +1 -1
  142. package/build/types/parser/TriviaInterner.d.ts +3 -3
  143. package/build/types/project/Compilation.d.ts +3 -3
  144. package/build/types/project/CompilationLoader.d.ts +5 -5
  145. package/build/types/project/FileSystemTree.d.ts +6 -6
  146. package/build/types/project/SourceFile.d.ts +2 -2
  147. package/build/types/project/SourcePackage.d.ts +1 -1
  148. package/build/types/project/TextFile.d.ts +1 -1
  149. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  150. package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
  151. package/build/types/services/AssignFieldService.d.ts +10 -0
  152. package/build/types/services/CodeActionsService.d.ts +1 -1
  153. package/build/types/services/CompletionService.d.ts +8 -8
  154. package/build/types/services/CustomCommand.d.ts +13 -7
  155. package/build/types/services/DefinitionService.d.ts +1 -1
  156. package/build/types/services/DisplayService.d.ts +76 -80
  157. package/build/types/services/DocumentHighlightsService.d.ts +1 -1
  158. package/build/types/services/HoverService.d.ts +3 -3
  159. package/build/types/services/LanguageServer.d.ts +32 -32
  160. package/build/types/services/NodeSemanticInfo.d.ts +9 -9
  161. package/build/types/services/ProjectItemsService.d.ts +1 -1
  162. package/build/types/services/RenameService.d.ts +1 -1
  163. package/build/types/services/SemanticTokensService.d.ts +1 -1
  164. package/build/types/services/SourceFileItemsService.d.ts +1 -1
  165. package/build/types/services/TranslationService.d.ts +1 -1
  166. package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
  167. package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
  168. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
  169. package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
  170. package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
  171. package/build/types/services/workspace/CompilationController.d.ts +22 -22
  172. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
  173. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
  174. package/build/types/services/workspace/Workspace.d.ts +7 -7
  175. package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
  176. package/build/types/tree/BaseNode.d.ts +12 -3
  177. package/build/types/tree/NodeKind.d.ts +56 -57
  178. package/build/types/tree/Nodes.d.ts +18 -20
  179. package/build/types/tree/SyntaxToCode.d.ts +11 -11
  180. package/build/types/ts-interop/Entities.d.ts +326 -263
  181. package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
  182. package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
  183. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
  184. package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
  185. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
  186. package/build/types/types/AliasType.d.ts +6 -5
  187. package/build/types/types/FunctionType.d.ts +8 -7
  188. package/build/types/types/IntersectionType.d.ts +3 -2
  189. package/build/types/types/ParameterType.d.ts +5 -4
  190. package/build/types/types/StandardTypes.d.ts +21 -21
  191. package/build/types/types/StructuredType.d.ts +9 -10
  192. package/build/types/types/Substitutions.d.ts +1 -1
  193. package/build/types/types/Type.d.ts +1 -0
  194. package/build/types/types/TypeMembers.d.ts +42 -42
  195. package/build/types/types/UnionType.d.ts +3 -2
  196. package/build/types/types/UnresolvedType.d.ts +3 -2
  197. package/build/types/types/VariantType.d.ts +5 -4
  198. package/package.json +1 -1
  199. package/build/types/entities/TypeMemberContainer.d.ts +0 -23
  200. 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 _textDocument;
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 _uriRegexp;
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 _configurationValidator;
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 _translationsGeneratorService;
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 _cache;
6
- private _sourceFile;
7
- private _analyzer;
8
- private _locale;
9
- private _dialect;
10
- private readonly _completionItemInfoContext;
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 getCompletionItemInfosForTargetSignaturesValueParameters;
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
- ParameterVariable = 10,
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
- addPropertyAssignment: string;
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 AddPropertyAssignmentParams = {
100
- previousAssignmentLocation: SyntaxNodeUri;
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
- propertyName?: string;
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 isAddPropertyAssignmentParams(value: unknown): value is AddPropertyAssignmentParams;
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 _sourceGenerationService;
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 _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);
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
- displayValueParameterDeclaration(parameter: ValueParameterDeclaration, typeDisplayOptions?: TypeDisplayOptions): string;
27
- getValueParameterDeclarationDisplayParts(parameter: ValueParameterDeclaration, typeDisplayOptions?: TypeDisplayOptions): ValueParameterDeclarationDisplayParts;
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 displayFullVersionOfNamedFunctionType: boolean;
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
- OnlyFlattenedUnaliasedTypes = 2
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
177
+ getParameters(): readonly ParameterDeclaration[];
175
178
  }
176
179
  interface IConstructorDeclaration {
177
180
  getContainer(analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
178
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
194
+ getParameters(): readonly ParameterDeclaration[];
192
195
  }
193
196
  interface IDestructorDeclaration {
194
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
231
+ getParameters(): readonly ParameterDeclaration[];
229
232
  getType(): types.Type;
230
233
  getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
231
234
  }
232
235
  interface IIndexerDeclaration {
233
- getValueParameters(): readonly ValueParameterDeclaration[];
236
+ getParameters(): readonly ParameterDeclaration[];
234
237
  getType(): types.Type;
235
238
  getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
236
239
  }
237
- export type ValueParameterDeclaration = ValueParameterDeclaration_entity | ValueParameterDeclaration_typeMember | ValueParameterDeclaration_substitutedFunction | ValueParameterDeclaration_matchResultValueParameter | ValueParameterDeclaration_universal;
238
- export declare class ValueParameterDeclaration_entity implements IValueParameter {
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 ValueParameterDeclaration_typeMember implements IValueParameter {
248
- readonly value: types.ValueParameter;
250
+ export declare class ParameterDeclaration_typeMember implements IParameter {
251
+ readonly value: types.Parameter;
249
252
  readonly kind = "type-member";
250
- constructor(value: types.ValueParameter);
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 ValueParameterDeclaration_substitutedFunction implements IValueParameter {
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 ValueParameterDeclaration_matchResultValueParameter implements IValueParameter {
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 ValueParameterDeclaration_universal implements IValueParameter {
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 IValueParameter {
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
- isRefObject(): boolean;
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
- isRefObject(): boolean;
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
- isRefObject(): boolean;
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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
- getValueParameters(): readonly ValueParameterDeclaration[];
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 valueParametersStart: string;
703
- readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
704
- readonly valueParameterSeparator: string;
705
- readonly valueParametersEnd: string;
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, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: 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 valueParametersStart: string;
717
- readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
718
- readonly valueParameterSeparator: string;
719
- readonly valueParametersEnd: string;
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, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: 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 ValueParameterDeclarationDisplayParts {
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 valueParametersStart: string;
751
- readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
752
- readonly valueParameterSeparator: string;
753
- readonly valueParametersEnd: string;
754
- constructor(typeText: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: 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 valueParametersStart: string;
760
- readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
761
- readonly valueParameterSeparator: string;
762
- readonly valueParametersEnd: string;
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, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, typeAnnotationColon: string, type: 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 valueParametersStart: string;
787
- readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
788
- readonly valueParameterSeparator: string;
789
- readonly valueParametersEnd: string;
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, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: 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 _referencesService;
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 _displayService;
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 _contents;
13
- private readonly _rawContents;
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);