@artel/artc 0.6.25191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/build/Cli.js +20 -0
  2. package/build/api/Api.js +664 -0
  3. package/build/api/ApiNodeJS.js +20 -0
  4. package/build/api/ApiServices.js +12847 -0
  5. package/build/chunk-BQHCAH6D.js +588 -0
  6. package/build/chunk-O2JKESUU.js +63219 -0
  7. package/build/chunk-QRBDQKYM.js +94 -0
  8. package/build/types/Cli.d.ts +3 -0
  9. package/build/types/analysis/AccessedMethod.d.ts +53 -0
  10. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +191 -0
  11. package/build/types/analysis/Analyzer.d.ts +665 -0
  12. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +25 -0
  13. package/build/types/analysis/BaseExpressionMeaning.d.ts +47 -0
  14. package/build/types/analysis/BuiltInOperators.d.ts +14 -0
  15. package/build/types/analysis/CallArgumentToParameterMatchResult.d.ts +30 -0
  16. package/build/types/analysis/CallArgumentsToParametersMatcher.d.ts +44 -0
  17. package/build/types/analysis/CallExpressionMeaning.d.ts +39 -0
  18. package/build/types/analysis/ConstructorOverloadResolver.d.ts +34 -0
  19. package/build/types/analysis/DeclarationsUsageCounter.d.ts +18 -0
  20. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +23 -0
  21. package/build/types/analysis/DiagnosticCollector.d.ts +68 -0
  22. package/build/types/analysis/EntityLocalizationHelper.d.ts +15 -0
  23. package/build/types/analysis/FindModifier.d.ts +4 -0
  24. package/build/types/analysis/FoundDeclaration.d.ts +19 -0
  25. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +98 -0
  26. package/build/types/analysis/ImportedPackageNameTree.d.ts +22 -0
  27. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +26 -0
  28. package/build/types/analysis/IndexerAccess.d.ts +10 -0
  29. package/build/types/analysis/Localization.d.ts +54 -0
  30. package/build/types/analysis/LocalizationContext.d.ts +15 -0
  31. package/build/types/analysis/Lookup.d.ts +23 -0
  32. package/build/types/analysis/NamedTypeResolver.d.ts +42 -0
  33. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +20 -0
  34. package/build/types/analysis/NodeTypeUtils.d.ts +28 -0
  35. package/build/types/analysis/ObjectExpressionMeaning.d.ts +38 -0
  36. package/build/types/analysis/OperationOverloadResolver.d.ts +19 -0
  37. package/build/types/analysis/OverloadResolver.d.ts +12 -0
  38. package/build/types/analysis/PackageMemberLookup.d.ts +15 -0
  39. package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +27 -0
  40. package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +100 -0
  41. package/build/types/analysis/Scope.d.ts +309 -0
  42. package/build/types/analysis/SemanticContext.d.ts +320 -0
  43. package/build/types/analysis/SemanticContextBuilder.d.ts +54 -0
  44. package/build/types/analysis/SourceFileMembers.d.ts +92 -0
  45. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +41 -0
  46. package/build/types/analysis/SourcePackageMembersCreator.d.ts +6 -0
  47. package/build/types/analysis/StatementBlockScopeBuilder.d.ts +22 -0
  48. package/build/types/analysis/SubstitutedMethod.d.ts +49 -0
  49. package/build/types/analysis/TagMeaning.d.ts +26 -0
  50. package/build/types/analysis/Tags.d.ts +29 -0
  51. package/build/types/analysis/TargetTypeHint.d.ts +5 -0
  52. package/build/types/analysis/TypeInferrer.d.ts +9 -0
  53. package/build/types/analysis/TypeMemberLookup.d.ts +27 -0
  54. package/build/types/analysis/TypeOverloadResolver.d.ts +7 -0
  55. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +37 -0
  56. package/build/types/analysis/Utils.d.ts +17 -0
  57. package/build/types/analysis/VariableAccess.d.ts +10 -0
  58. package/build/types/analysis/VariantLookup.d.ts +20 -0
  59. package/build/types/analysis/Visitor.d.ts +7 -0
  60. package/build/types/analysis/WellKnownDeclarations.d.ts +34 -0
  61. package/build/types/analysis/index.d.ts +8 -0
  62. package/build/types/api/Api.d.ts +59 -0
  63. package/build/types/api/ApiNodeJS.d.ts +5 -0
  64. package/build/types/api/ApiServices.d.ts +3 -0
  65. package/build/types/common/AccessKind.d.ts +4 -0
  66. package/build/types/common/ArtelFileCheck.d.ts +2 -0
  67. package/build/types/common/Cached.d.ts +6 -0
  68. package/build/types/common/CancellationToken.d.ts +13 -0
  69. package/build/types/common/Constants.d.ts +19 -0
  70. package/build/types/common/Debug.d.ts +10 -0
  71. package/build/types/common/Delayed.d.ts +7 -0
  72. package/build/types/common/ErrorHandlingStrategy.d.ts +3 -0
  73. package/build/types/common/FormatString.d.ts +5 -0
  74. package/build/types/common/HelperPhrases.d.ts +11 -0
  75. package/build/types/common/Interner.d.ts +4 -0
  76. package/build/types/common/L10nConfig.d.ts +1 -0
  77. package/build/types/common/Lazy.d.ts +9 -0
  78. package/build/types/common/LocalizationHelper.d.ts +10 -0
  79. package/build/types/common/Logger.d.ts +10 -0
  80. package/build/types/common/Name.d.ts +83 -0
  81. package/build/types/common/NameFormatConversion.d.ts +12 -0
  82. package/build/types/common/NonEmptyArray.d.ts +8 -0
  83. package/build/types/common/Option.d.ts +28 -0
  84. package/build/types/common/PackageDialect.d.ts +5 -0
  85. package/build/types/common/PackageLocale.d.ts +15 -0
  86. package/build/types/common/PackageLocaleGuard.d.ts +1 -0
  87. package/build/types/common/Path.d.ts +8 -0
  88. package/build/types/common/PerformanceMeasurement.d.ts +20 -0
  89. package/build/types/common/Query.d.ts +39 -0
  90. package/build/types/common/Range.d.ts +10 -0
  91. package/build/types/common/Result.d.ts +13 -0
  92. package/build/types/common/SearchName.d.ts +13 -0
  93. package/build/types/common/ThrottledCancellationToken.d.ts +17 -0
  94. package/build/types/common/TreeQuery.d.ts +53 -0
  95. package/build/types/common/TreeTraversal.d.ts +13 -0
  96. package/build/types/common/Uri.d.ts +28 -0
  97. package/build/types/common/UriTree.d.ts +41 -0
  98. package/build/types/common/UserLocale.d.ts +2 -0
  99. package/build/types/common/WithDiagnostics.d.ts +19 -0
  100. package/build/types/common/YieldExecution.d.ts +1 -0
  101. package/build/types/common/index.d.ts +32 -0
  102. package/build/types/diagnostic/Diagnostic.d.ts +21 -0
  103. package/build/types/diagnostic/DiagnosticCode.d.ts +146 -0
  104. package/build/types/diagnostic/DiagnosticData.d.ts +20 -0
  105. package/build/types/diagnostic/DiagnosticFormatter.d.ts +8 -0
  106. package/build/types/diagnostic/RangeDiagnostic.d.ts +19 -0
  107. package/build/types/emitter/BlockStatementTransformationResult.d.ts +10 -0
  108. package/build/types/emitter/CustomModuleLoader.d.ts +1 -0
  109. package/build/types/emitter/DebugStack.d.ts +10 -0
  110. package/build/types/emitter/Emitter.d.ts +61 -0
  111. package/build/types/emitter/EmitterContext.d.ts +342 -0
  112. package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +36 -0
  113. package/build/types/emitter/EmitterPackage.d.ts +60 -0
  114. package/build/types/emitter/EntityNameProviders.d.ts +33 -0
  115. package/build/types/emitter/ExpressionTransformationResult.d.ts +17 -0
  116. package/build/types/emitter/GeneralLowering.d.ts +72 -0
  117. package/build/types/emitter/Internal.d.ts +10 -0
  118. package/build/types/emitter/IntrinsicEntities.d.ts +118 -0
  119. package/build/types/emitter/IrBuilder.d.ts +108 -0
  120. package/build/types/emitter/IrToJs.d.ts +113 -0
  121. package/build/types/emitter/JavaScriptName.d.ts +1 -0
  122. package/build/types/emitter/PackageMemberDeclarationTransformationResult.d.ts +17 -0
  123. package/build/types/emitter/SimpleTransformationResult.d.ts +14 -0
  124. package/build/types/emitter/StatementTransformationResult.d.ts +16 -0
  125. package/build/types/emitter/StructuredTypeMemberDeclarationTransformationResult.d.ts +13 -0
  126. package/build/types/emitter/TransformationContinuationAction.d.ts +4 -0
  127. package/build/types/emitter/Transformer.d.ts +282 -0
  128. package/build/types/emitter/TypeAccessExpressionTransformationResult.d.ts +12 -0
  129. package/build/types/emitter/error-boundary.d.ts +10 -0
  130. package/build/types/emitter/index.d.ts +1 -0
  131. package/build/types/emitter/ir/AccessedEntities.d.ts +19 -0
  132. package/build/types/emitter/ir/LoweringOptions.d.ts +34 -0
  133. package/build/types/emitter/ir/Nodes.d.ts +1585 -0
  134. package/build/types/emitter/ir/SourceLocation.d.ts +10 -0
  135. package/build/types/emitter/ir/index.d.ts +5 -0
  136. package/build/types/emitter/ir/types.d.ts +10 -0
  137. package/build/types/entities/AliasTypeEntity.d.ts +84 -0
  138. package/build/types/entities/BinaryOperatorEntity.d.ts +48 -0
  139. package/build/types/entities/ConstructorEntity.d.ts +99 -0
  140. package/build/types/entities/DereferenceOperatorEntity.d.ts +40 -0
  141. package/build/types/entities/DestructorEntity.d.ts +31 -0
  142. package/build/types/entities/EntityHiding.d.ts +27 -0
  143. package/build/types/entities/EntityNaming.d.ts +12 -0
  144. package/build/types/entities/GetterEntity.d.ts +86 -0
  145. package/build/types/entities/IndexerEntity.d.ts +51 -0
  146. package/build/types/entities/MethodEntity.d.ts +174 -0
  147. package/build/types/entities/MethodTypeEntity.d.ts +98 -0
  148. package/build/types/entities/PackageAliasEntity.d.ts +30 -0
  149. package/build/types/entities/PackageEntity.d.ts +56 -0
  150. package/build/types/entities/PackageMembers.d.ts +98 -0
  151. package/build/types/entities/SetterEntity.d.ts +78 -0
  152. package/build/types/entities/StructuredTypeEntity.d.ts +199 -0
  153. package/build/types/entities/SubstitutionApplicationMode.d.ts +4 -0
  154. package/build/types/entities/TypeEntityMembers.d.ts +36 -0
  155. package/build/types/entities/TypeExtensionEntity.d.ts +33 -0
  156. package/build/types/entities/TypeMemberContainer.d.ts +23 -0
  157. package/build/types/entities/TypeParameterEntity.d.ts +94 -0
  158. package/build/types/entities/UnaryOperatorEntity.d.ts +33 -0
  159. package/build/types/entities/VariableEntity.d.ts +423 -0
  160. package/build/types/entities/VariantEntity.d.ts +31 -0
  161. package/build/types/entities/VariantTypeEntity.d.ts +83 -0
  162. package/build/types/entities/Variants.d.ts +10 -0
  163. package/build/types/entities/index.d.ts +87 -0
  164. package/build/types/executor/CommandLineCompiler.d.ts +8 -0
  165. package/build/types/executor/Compiler.d.ts +15 -0
  166. package/build/types/executor/FileSystemUri.d.ts +5 -0
  167. package/build/types/executor/NodeCompiler.d.ts +39 -0
  168. package/build/types/executor/PhysicalFileSystem.d.ts +12 -0
  169. package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +12 -0
  170. package/build/types/generated/BuiltInSystemPackages.d.ts +3 -0
  171. package/build/types/old/Executor.d.ts +14 -0
  172. package/build/types/old/JavaScriptEmitter.d.ts +1 -0
  173. package/build/types/old/JavaScriptEmittingVisitor.d.ts +1 -0
  174. package/build/types/old/NzonParser.d.ts +1 -0
  175. package/build/types/old/NzonScanner.d.ts +1 -0
  176. package/build/types/old/NzonSyntax.d.ts +1 -0
  177. package/build/types/old/RemoteWorkspaceFileSystem.d.ts +1 -0
  178. package/build/types/parser/CharacterCodes.d.ts +21 -0
  179. package/build/types/parser/ConvertTokenKind.d.ts +3 -0
  180. package/build/types/parser/KeywordDictionary.d.ts +12 -0
  181. package/build/types/parser/ParseNumber.d.ts +5 -0
  182. package/build/types/parser/Parser.d.ts +7 -0
  183. package/build/types/parser/ParserDiagnostic.d.ts +7 -0
  184. package/build/types/parser/ReservedIdentifierDictionary.d.ts +12 -0
  185. package/build/types/parser/Scanner.d.ts +60 -0
  186. package/build/types/parser/TokenKind.d.ts +73 -0
  187. package/build/types/parser/UnescapeText.d.ts +2 -0
  188. package/build/types/project/Compilation.d.ts +21 -0
  189. package/build/types/project/CompilationLoader.d.ts +104 -0
  190. package/build/types/project/FileSystemTree.d.ts +70 -0
  191. package/build/types/project/PackageConfigurationSerializer.d.ts +1 -0
  192. package/build/types/project/Position.d.ts +5 -0
  193. package/build/types/project/SourceFile.d.ts +21 -0
  194. package/build/types/project/SourcePackage.d.ts +151 -0
  195. package/build/types/project/TextFile.d.ts +11 -0
  196. package/build/types/project/configuration/BuildPackageApi.d.ts +75 -0
  197. package/build/types/project/configuration/ConfigurationConverter.d.ts +25 -0
  198. package/build/types/project/configuration/ConfigurationFileParser.d.ts +26 -0
  199. package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +27 -0
  200. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +90 -0
  201. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +91 -0
  202. package/build/types/project/index.d.ts +12 -0
  203. package/build/types/services/AddPropertyAssignmentService.d.ts +15 -0
  204. package/build/types/services/CompletionService.d.ts +95 -0
  205. package/build/types/services/CustomCommand.d.ts +120 -0
  206. package/build/types/services/DefinitionService.d.ts +19 -0
  207. package/build/types/services/DisplayService.d.ts +830 -0
  208. package/build/types/services/DocumentHighlightsService.d.ts +18 -0
  209. package/build/types/services/EvaluatableExpressionService.d.ts +15 -0
  210. package/build/types/services/FileSystemTreeDisplayService.d.ts +7 -0
  211. package/build/types/services/HoverService.d.ts +17 -0
  212. package/build/types/services/LanguageServer.d.ts +125 -0
  213. package/build/types/services/NodeSemanticInfo.d.ts +132 -0
  214. package/build/types/services/ProjectItemsService.d.ts +6 -0
  215. package/build/types/services/ReferencesService.d.ts +30 -0
  216. package/build/types/services/RenameService.d.ts +16 -0
  217. package/build/types/services/SelectionRangeService.d.ts +12 -0
  218. package/build/types/services/SemanticTokensService.d.ts +40 -0
  219. package/build/types/services/SourceFileItemsService.d.ts +42 -0
  220. package/build/types/services/TranslationService.d.ts +23 -0
  221. package/build/types/services/TreeUtils.d.ts +58 -0
  222. package/build/types/services/TypeDefinitionService.d.ts +9 -0
  223. package/build/types/services/Types.d.ts +22 -0
  224. package/build/types/services/Utils.d.ts +5 -0
  225. package/build/types/services/signature-help/SignatureHelpService.d.ts +17 -0
  226. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +114 -0
  227. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +20 -0
  228. package/build/types/services/signature-help/ValueParametersSignatureHelpProvider.d.ts +15 -0
  229. package/build/types/services/signature-help/utils.d.ts +9 -0
  230. package/build/types/services/source-generation/EntityToSyntax.d.ts +47 -0
  231. package/build/types/services/source-generation/SourceGenerationService.d.ts +22 -0
  232. package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +41 -0
  233. package/build/types/services/workspace/CompilationController.d.ts +108 -0
  234. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +61 -0
  235. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +21 -0
  236. package/build/types/services/workspace/Workspace.d.ts +59 -0
  237. package/build/types/services/workspace/WorkspaceFileSystem.d.ts +5 -0
  238. package/build/types/services/workspace/WorkspaceFiles.d.ts +35 -0
  239. package/build/types/services/workspace/index.d.ts +7 -0
  240. package/build/types/tree/KeywordKind.d.ts +64 -0
  241. package/build/types/tree/NodeKind.d.ts +163 -0
  242. package/build/types/tree/TokenKind.d.ts +132 -0
  243. package/build/types/tree/TriviaKind.d.ts +7 -0
  244. package/build/types/tree/green/BaseNode.d.ts +12 -0
  245. package/build/types/tree/green/Nodes.d.ts +2235 -0
  246. package/build/types/tree/green/SyntaxFactory.d.ts +67 -0
  247. package/build/types/tree/green/SyntaxToCode.d.ts +116 -0
  248. package/build/types/tree/green/Token.d.ts +37 -0
  249. package/build/types/tree/green/Utils.d.ts +2 -0
  250. package/build/types/tree/green/index.d.ts +7 -0
  251. package/build/types/tree/index.d.ts +4 -0
  252. package/build/types/tree/red/BaseNode.d.ts +15 -0
  253. package/build/types/tree/red/Internal.d.ts +2 -0
  254. package/build/types/tree/red/NodePath.d.ts +10 -0
  255. package/build/types/tree/red/Nodes.d.ts +2237 -0
  256. package/build/types/tree/red/Token.d.ts +29 -0
  257. package/build/types/tree/red/Utils.d.ts +6 -0
  258. package/build/types/tree/red/index.d.ts +6 -0
  259. package/build/types/ts-interop/Entities.d.ts +634 -0
  260. package/build/types/ts-interop/TsInteropContext.d.ts +179 -0
  261. package/build/types/ts-interop/TsLibrariesProvider.d.ts +12 -0
  262. package/build/types/ts-interop/TsPackageContents.d.ts +64 -0
  263. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +69 -0
  264. package/build/types/ts-interop/TsProgramLoader.d.ts +38 -0
  265. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +45 -0
  266. package/build/types/ts-interop/Utils.d.ts +43 -0
  267. package/build/types/types/AliasType.d.ts +20 -0
  268. package/build/types/types/Internal.d.ts +1 -0
  269. package/build/types/types/MethodType.d.ts +23 -0
  270. package/build/types/types/ParameterType.d.ts +19 -0
  271. package/build/types/types/StandardTypes.d.ts +42 -0
  272. package/build/types/types/StructuredType.d.ts +25 -0
  273. package/build/types/types/Substitutions.d.ts +18 -0
  274. package/build/types/types/Type.d.ts +16 -0
  275. package/build/types/types/TypeFactory.d.ts +15 -0
  276. package/build/types/types/TypeMembers.d.ts +134 -0
  277. package/build/types/types/UnionType.d.ts +20 -0
  278. package/build/types/types/UnresolvedType.d.ts +16 -0
  279. package/build/types/types/VariantType.d.ts +19 -0
  280. package/build/types/types/index.d.ts +12 -0
  281. package/package.json +73 -0
@@ -0,0 +1,665 @@
1
+ import ts from 'typescript';
2
+ import { AccessKind, CancellationToken, Name, PackageLocale, Range, SearchName, WithDiagnostics } from '../common/index.js';
3
+ import { Diagnostic, DiagnosticAcceptor, DiagnosticLocation } from '../diagnostic/Diagnostic.js';
4
+ import { DiagnosticCode } from '../diagnostic/DiagnosticCode.js';
5
+ import { DiagnosticFlags, DiagnosticKind } from '../diagnostic/DiagnosticData.js';
6
+ import * as packageMembers from '../entities/PackageMembers.js';
7
+ import * as entities from '../entities/index.js';
8
+ import { AliasTypeEntity, AnonymousMethodTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, BinaryOperatorEntity, BinaryOperatorKind, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, GetterEntity, IEntityHidingMatcher, LocalVariableEntity, MethodEntity, MethodTypeEntity, NamedTypeEntity, NestedMethodEntity, PackageAliasEntity, PackageEntity, PackageMethodEntity, PackageMethodTypeEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, SetterEntity, SourceIndexerEntity, StructuredTypeEntity, TypeEntity, TypeExtensionEntity, TypeMemberEntityContainer, TypeMethodEntity, TypeParameterEntity, TypeVariableEntity, UnaryOperatorEntity, VariableEntity, VariantEntity, VariantTypeEntity } from '../entities/index.js';
9
+ import { ReservedIdentifierKind } from '../parser/ReservedIdentifierDictionary.js';
10
+ import * as project from '../project/index.js';
11
+ import { PackageName, PlatformKind, SourcePackage } from '../project/index.js';
12
+ import * as tree from '../tree/index.js';
13
+ import { TsInteropContext, TsProgramState } from '../ts-interop/TsInteropContext.js';
14
+ import * as types from '../types/index.js';
15
+ import { TypeFactory } from '../types/index.js';
16
+ import { AccessedMethod } from './AccessedMethod.js';
17
+ import { AnalyzedTranslationPackage } from './AnalyzedTranslationPackage.js';
18
+ import * as autotypeCallExpressionMeaning from './AutotypeCallExpressionMeaning.js';
19
+ import * as baseExpressionMeaning from './BaseExpressionMeaning.js';
20
+ import { BuiltInOperators } from './BuiltInOperators.js';
21
+ import { CallArgumentToParameterMatchResult, MatchResultValueParameter } from './CallArgumentToParameterMatchResult.js';
22
+ import * as callExpressionMeaning from './CallExpressionMeaning.js';
23
+ import * as constructorOverloadResolver from './ConstructorOverloadResolver.js';
24
+ import { DeclarationsUsageCountResult } from './DeclarationsUsageCounter.js';
25
+ import * as dereferenceExpressionMeaning from './DereferenceExpressionMeaning.js';
26
+ import { FoundAnonymousDeclaration } from './FoundDeclaration.js';
27
+ import * as identifierExpressionResolution from './IdentifierExpressionMeaning.js';
28
+ import { ImportedPackageNameTree, PackageNameTreeNode } from './ImportedPackageNameTree.js';
29
+ import * as indexedAccessExpressionMeaning from './IndexedAccessExpressionMeaning.js';
30
+ import { WithLocalization } from './Localization.js';
31
+ import { LocalizationContext } from './LocalizationContext.js';
32
+ import { NamedTypeSpecifierResolutionResult } from './NamedTypeSpecifierResolver.js';
33
+ import { GetterDeclaration, MethodTypeDeclaration, PackageVariableAccessorDeclaration, SetterDeclaration, StructuredTypeDeclaration, TypeDereferencedVariableAccessorDeclaration, TypeIndexedAccessorDeclaration, TypeVariableAccessorDeclaration, VariantTypeDeclaration } from './NodeTypeUtils.js';
34
+ import * as objectExpressionMeaning from './ObjectExpressionMeaning.js';
35
+ import * as operationOverloadResolver from './OperationOverloadResolver.js';
36
+ import * as propertyAccessExpressionResolution from './PropertyAccessExpressionMeaning.js';
37
+ import * as scope from './Scope.js';
38
+ import { SemanticContextBuilder } from './SemanticContextBuilder.js';
39
+ import * as sourceFileMembers from './SourceFileMembers.js';
40
+ import * as tagMeaning from './TagMeaning.js';
41
+ import * as tags from './Tags.js';
42
+ import { TargetTypeHint } from './TargetTypeHint.js';
43
+ import * as typeOverloadResolver from './TypeOverloadResolver.js';
44
+ import { WellKnownDeclarations } from './index.js';
45
+ import { NamedTypeMemberEntity } from '../entities/TypeEntityMembers.js';
46
+ export declare class Analyzer {
47
+ static readonly enumeratorMethodName = "\u043F\u0435\u0440\u0435\u0431\u043E\u0440";
48
+ static readonly methodTypeInvokeMethodName = "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C";
49
+ readonly compilation: project.Compilation;
50
+ /**
51
+ * Пакет с именем 'Артель', содержащий стандартные типы.
52
+ */
53
+ readonly systemPackage: PackageEntity;
54
+ readonly wellKnownDeclarations: WellKnownDeclarations;
55
+ readonly standardTypes: types.StandardTypes;
56
+ readonly typeFactory: TypeFactory;
57
+ readonly type: Type;
58
+ readonly returnType: ReturnType;
59
+ readonly entity: Entity;
60
+ readonly resultLocalVariableEntity: ResultLocalVariableEntity;
61
+ readonly paramLocalVariableEntity: ParamLocalVariableEntity;
62
+ readonly valueLocalVariableEntity: ValueLocalVariableEntity;
63
+ readonly destructuredParameterLocalVariableEntities: DestructuredParameterLocalVariableEntities;
64
+ readonly scope: Scope;
65
+ readonly semanticContext: SemanticContextBuilder;
66
+ readonly callArgumentToParameterMatchResult: CallArgumentToParameterMatchResult;
67
+ readonly defaultConstructors: DefaultConstructors;
68
+ readonly overriddenMember: OverriddenMember;
69
+ readonly tags: Tags;
70
+ readonly linkedEntity: LinkedEntity;
71
+ readonly owningPlainObjectModificationCheck: OwningPlainObjectModificationCheck;
72
+ readonly builtInOperators: BuiltInOperators;
73
+ readonly packageImports: PackageImports;
74
+ private readonly _tsInteropInputs;
75
+ private readonly _targetType;
76
+ private readonly _typeAssignabilityCheck;
77
+ private readonly _tsInterop;
78
+ private readonly _propertyAccessExpressionResolutionResults;
79
+ private readonly _sourceFileMembers;
80
+ private readonly _callExpressionMeanings;
81
+ private readonly _indexedAccessExpressionMeanings;
82
+ private readonly _dereferenceExpressionMeanings;
83
+ private readonly _autotypeCallExpressionMeanings;
84
+ private readonly _identifierExpressionResolutionResults;
85
+ private readonly _tagMeanings;
86
+ private readonly _objectExpressionMeanings;
87
+ private readonly _baseExpressionMeanings;
88
+ private readonly _namedTypeSpecifierResolutionResults;
89
+ private readonly _prefixUnaryExpressionOperatorResolutionResults;
90
+ private readonly _notExpressionOperatorResolutionResults;
91
+ private readonly _binaryExpressionUserDefinableOperatorResolutionResults;
92
+ private readonly _assignmentStatementOperatorResolutionResults;
93
+ private readonly _methodEntitySignatureTypes;
94
+ private readonly _valueParametersOfMethodBlockLiterals;
95
+ private readonly _extendedTypes;
96
+ private readonly _analyzedTranslationPackages;
97
+ private readonly _linkedMultiPlatformPackagesByPlatform;
98
+ private readonly _bodyUsesYieldStatementCheckResults;
99
+ private readonly _namedDeclarationsUsageCountResults;
100
+ get tsInterop(): TsInteropContext;
101
+ constructor(compilation: project.Compilation, tsInteropInputs: TsInteropInputs);
102
+ getProjectSourceFile(node: tree.SourceFile): project.SourceFile;
103
+ ifTypeEnumerableThenItemType(type: types.Type): types.Type | undefined;
104
+ ifTypeEnumeratorThenItemType(type: types.Type): types.Type | undefined;
105
+ isTypeArrayOrReadonlyArray(type: types.Type): {
106
+ elementType: types.Type;
107
+ } | undefined;
108
+ isTypeReference(type: types.Type): {
109
+ referencedType: types.Type;
110
+ } | undefined;
111
+ isTypeAssignableTo(source: types.Type, target: types.Type): boolean;
112
+ checkStatementBlockInvokesAsyncMethods(node: tree.StatementBlock): boolean;
113
+ getExpressionAccessKind(node: tree.Expression): AccessKind;
114
+ getTypeMemberEntityContainer(node: tree.TypeMemberDeclaration): TypeMemberEntityContainer;
115
+ getTargetTypeOfExpression(node: tree.Expression, hint?: TargetTypeHint): types.Type | undefined;
116
+ getUnambiguousTargetMethodType(targetType: types.Type | undefined): types.MethodType | undefined;
117
+ getUnambiguousTargetVariantType(targetType: types.Type | undefined): types.VariantType | undefined;
118
+ getUnambiguousTargetArrayType(targetType: types.Type | undefined): types.Type | undefined;
119
+ getEnumeratorElementType(node: tree.Node): types.Type | undefined;
120
+ resolveMethodOverloadByCallExpression<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates: Iterable<TCandidate>, node: tree.CallExpression): Iterable<TCandidate>;
121
+ resolveMethodOverloadByTargetType<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates: Iterable<TCandidate>, targetType: types.MethodType): Iterable<TCandidate>;
122
+ resolveConstructorOverload<TCandidate extends constructorOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends constructorOverloadResolver.IValueParameter>(candidates: Iterable<TCandidate>, callArguments: Iterable<tree.CallArgument>): Iterable<TCandidate>;
123
+ resolveTypeOverloadByArgumentCount<TCandidate extends typeOverloadResolver.ICandidate>(candidates: Iterable<TCandidate>, argumentCount: number): Iterable<TCandidate>;
124
+ resolvePropertyAccessExpression(node: tree.PropertyAccessExpression, targetTypeHint?: TargetTypeHint): propertyAccessExpressionResolution.ResolutionResult;
125
+ enumeratePackageImports(packageImportDirectives: Iterable<tree.PackageImportDirective>): Iterable<tree.PackageImport>;
126
+ getSourceFileMembers(node: tree.SourceFile): sourceFileMembers.SourceFileMembers;
127
+ getCallExpressionMeaning(node: tree.CallExpression): callExpressionMeaning.Meaning;
128
+ getRespectiveParameter(node: tree.CallArgument): MatchResultValueParameter | undefined;
129
+ getIndexedAccessExpressionMeaning(node: tree.IndexedAccessExpression): indexedAccessExpressionMeaning.Meaning;
130
+ getDereferenceExpressionMeaning(node: tree.DereferenceExpression): dereferenceExpressionMeaning.Meaning;
131
+ getAutotypeCallExpressionMeaning(node: tree.AutotypeCallExpression, targetTypeHint?: TargetTypeHint): autotypeCallExpressionMeaning.Meaning;
132
+ resolveIdentifierExpression(node: tree.IdentifierExpression, targetTypeHint?: TargetTypeHint): identifierExpressionResolution.ResolutionResult;
133
+ getTagMeaning(node: tree.Tag): tagMeaning.Meaning;
134
+ getObjectExpressionMeaning(node: tree.ObjectExpression): objectExpressionMeaning.Meaning;
135
+ getBaseExpressionMeaning(node: tree.BaseExpression): baseExpressionMeaning.Meaning;
136
+ checkExpressionOptionalChaining(node: tree.Expression): boolean;
137
+ makeNoneAssignableToTypeIfExpressionOptionalChaining(type: types.Type, node: tree.Expression): types.Type;
138
+ checkIdentifierNameIsReserved(name: string, locale: PackageLocale): ReservedIdentifierKind | undefined;
139
+ getReservedIdentifierName(reservedIdentifierKind: ReservedIdentifierKind, locale: PackageLocale): string;
140
+ createNameFromIdentifier(node: tree.Identifier): Name;
141
+ createSearchNameFromIdentifier(identifier: tree.Identifier): SearchName;
142
+ createLocalizationContext(sourceFile: project.SourceFile): LocalizationContext;
143
+ typeIsValidBaseObjectType(type: types.Type): boolean;
144
+ typeIsValidBaseAspectType(type: types.Type): boolean;
145
+ getImplicitBaseTypeForStructuredType(entity: StructuredTypeEntity): types.StructuredType | undefined;
146
+ getImplicitBaseTypeForVariantType(): types.StructuredType;
147
+ getImplicitBaseTypeForMethodType(): types.StructuredType;
148
+ resolveNamedTypeSpecifier(node: tree.NamedTypeSpecifier): NamedTypeSpecifierResolutionResult;
149
+ checkExpressionDenotesType(expression: tree.Expression): {
150
+ type: types.Type | undefined;
151
+ } | undefined;
152
+ checkExpressionDenotesPackageAlias(expression: tree.Expression): {
153
+ packageAlias: PackageAliasEntity;
154
+ } | undefined;
155
+ checkExpressionDenotesMethod(expression: tree.Expression): ExpressionDenotesMethodCheckResult | undefined;
156
+ checkExpressionDenotesPackageNameSegment(expression: tree.Expression): {
157
+ packageTreeNode: PackageNameTreeNode;
158
+ } | undefined;
159
+ checkMethodBodyUsesYieldStatement(node: tree.StatementBlock): boolean;
160
+ enumerateAspects(type: types.Type): Iterable<types.StructuredType>;
161
+ checkTypeIsBasedOnAspect(type: types.Type, aspectEntity: StructuredTypeEntity): boolean;
162
+ resolvePrefixUnaryExpressionOperator(node: tree.PrefixUnaryExpression): WithDiagnostics<FoundAnonymousDeclaration<types.UnaryOperator>>;
163
+ resolveNotExpressionOperator(node: tree.NotExpression): WithDiagnostics<FoundAnonymousDeclaration<types.UnaryOperator>>;
164
+ resolveBinaryExpressionUserDefinableOperator(node: tree.BinaryExpression, operatorKind: BinaryOperatorKind): WithDiagnostics<FoundAnonymousDeclaration<types.BinaryOperator>>;
165
+ resolveCompoundAssignmentStatementOperator(node: tree.AssignmentStatement, operatorKind: BinaryOperatorKind): WithDiagnostics<FoundAnonymousDeclaration<types.BinaryOperator>>;
166
+ classifyBinaryExpressionOperator(operator: tree.BinaryExpressionOperator): BinaryExpressionOperatorClassificationResult;
167
+ getBinaryOperatorKindIfCompoundAssignmentOperator(operator: tree.AssignmentStatementOperator): BinaryOperatorKind | undefined;
168
+ getPackageEntities(): readonly PackageEntity[];
169
+ getPackageEntity(name: PackageName): PackageEntity | undefined;
170
+ createMethodTypeInvokeMethod(entity: MethodTypeEntity): TypeMethodEntity;
171
+ /**
172
+ * Преобразует тип таким образом, чтобы он не мог содержать значение `пусто`.
173
+ * После преобразования метод `canTypeBeNone` вернёт `true` для полученного типа.
174
+ * @example
175
+ * - Число -> Число
176
+ * - Число | Пусто -> Число
177
+ * - Т: Объект? -> Т: Объект? (с флагом isNoneExcluded === true)
178
+ * - Т: Объект -> Т: Объект (без изменения)
179
+ */
180
+ excludeNoneFromType(type: types.Type): types.Type;
181
+ /**
182
+ * Отвечает на вопрос "Может ли переменная данного типа иметь значение `пусто`?".
183
+ * @example Для следующих типов метод вернёт:
184
+ * - Число -> нет
185
+ * - Число | Пусто -> да
186
+ * - Т: Объект? -> да
187
+ * - Т: Объект -> нет
188
+ */
189
+ canTypeBeNone(type: types.Type): boolean;
190
+ canTypeParameterBeNone(type: types.ParameterType): boolean;
191
+ /**
192
+ * Делает тип `Пусто` совместимым с данным типом.
193
+ * @example
194
+ * - Число -> Число | Пусто
195
+ * - Число | Пусто -> Число | Пусто
196
+ * - Т: Объект? -> (Т: Объект?) | Пусто (см. метод isNoneAssignableToType)
197
+ * - Т: Объект -> (Т: Объект) | Пусто
198
+ */
199
+ makeNoneAssignableToType(type: types.Type): types.Type;
200
+ /**
201
+ * Отвечает на вопрос "Совместим ли тип `Пусто` с данным типом?" (Можно ли присвоить `пусто` в переменную с данным типом?).
202
+ * @example Для следующих типов метод вернёт:
203
+ * - Число -> нет
204
+ * - Число | Пусто -> да
205
+ * - Т: Объект? -> нет, поскольку в качестве конкретного типа, заменяющего параметр, может быть использован тип, исключающий `пусто`.
206
+ */
207
+ isNoneAssignableToType(type: types.Type): boolean;
208
+ isMethodValueParameterVariadic(entity: VariableEntity): boolean;
209
+ getDefaultTypeParameterConstraint(): types.Type;
210
+ getOriginalSignatureTypeOfMethodEntity(entity: MethodEntity): types.MethodType;
211
+ getMethodBlockLiteralValueParameters(node: tree.MethodBlockLiteral): readonly VariableEntity[];
212
+ getExtendedType(node: tree.TypeExtensionDeclaration): WithDiagnostics<NamedTypeEntity>;
213
+ getAnalyzedTranslationPackageIfTargetResolved(package_: project.TranslationPackage): AnalyzedTranslationPackage | undefined;
214
+ getAnalyzedTranslationPackageForPackage(entity: PackageEntity, locale: PackageLocale): AnalyzedTranslationPackage | undefined;
215
+ enumerateAnalyzedTranslationPackages(): Iterable<AnalyzedTranslationPackage>;
216
+ getCommonObjectAndAspectTypesOfUnion(_unionType: types.UnionType): readonly types.StructuredType[];
217
+ getLinkedMultiPlatformPackagesByPlatform(entity: PackageEntity): ReadonlyMap<PlatformKind, LinkedMultiPlatformPackage> | undefined;
218
+ getLinkedMultiPlatformPackage(entity: PackageEntity, platform: PlatformKind): LinkedMultiPlatformPackage | undefined;
219
+ createPackageMembers(pkg: SourcePackage): packageMembers.OriginalPackageMembers;
220
+ instantiateType(entity: entities.TypeEntity, typeArguments?: readonly types.Type[]): types.Type;
221
+ instantiateTypeByIdentitySubstitution(entity: entities.TypeEntity): types.Type;
222
+ createPackageMemberHiding(node: tree.PackageMemberDeclaration): entities.EntityHidingLevel | undefined;
223
+ createTypeMemberHiding(node: tree.TypeMemberDeclaration): entities.EntityHidingLevel | undefined;
224
+ getDeclarationsUsageCount(sourceFile: tree.SourceFile, cancellationToken: CancellationToken | undefined): Promise<DeclarationsUsageCountResult>;
225
+ isExpressionImplicitlyReturnedFromSubprogram(node: tree.ExpressionStatement): boolean;
226
+ createBackingPackageVariables(declaredVariables: readonly PackageVariableEntity[], pkg: PackageEntity): PackageVariableEntity[];
227
+ createBackingTypeVariables(declaredVariables: readonly TypeVariableEntity[], type: TypeEntity): TypeVariableEntity[];
228
+ createNodeDiagnostic(code: DiagnosticCode, node: tree.Node, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
229
+ createSourceFileRangeDiagnostic(code: DiagnosticCode, range: Range, nodeOrSourceFile: tree.Node | project.SourceFile, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
230
+ createDiagnostic(code: DiagnosticCode, location: DiagnosticLocation | undefined, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): Diagnostic;
231
+ createNodeDiagnosticLocation(node: tree.Node): DiagnosticLocation;
232
+ getDeclaredTypeMemberEntities(node: tree.TypeMemberDeclarationBlock): DeclaredTypeMemberEntities;
233
+ getRedefinableMethodOfOriginalTypeForRedefinableMethodOfAliasType(entity: TypeMethodEntity): TypeMethodEntity | undefined;
234
+ checkBodyOfRedefinableAliasTypeMethod(node: tree.TypeMethodDeclaration, diagnostics?: DiagnosticAcceptor): {
235
+ redefinableMethodOfOriginalType: TypeMethodEntity;
236
+ } | undefined;
237
+ private createTsInterop;
238
+ }
239
+ export declare class TsInteropInputs {
240
+ readonly programState: TsProgramState;
241
+ readonly standardLibraryFileByName: ReadonlyMap<string, ts.SourceFile>;
242
+ readonly rootFileByGlobalLibraryName: ReadonlyMap<string, ts.SourceFile>;
243
+ readonly moduleSymbolByName: ReadonlyMap<string, ts.Symbol>;
244
+ constructor(programState: TsProgramState, standardLibraryFileByName: ReadonlyMap<string, ts.SourceFile>, rootFileByGlobalLibraryName: ReadonlyMap<string, ts.SourceFile>, moduleSymbolByName: ReadonlyMap<string, ts.Symbol>);
245
+ }
246
+ export type BinaryExpressionOperatorClassificationResult = {
247
+ kind: 'user-definable';
248
+ operatorKind: BinaryOperatorKind;
249
+ } | {
250
+ kind: 'question-question';
251
+ };
252
+ declare class Type {
253
+ private readonly _analyzer;
254
+ private readonly _unionTypeSpecifierTypes;
255
+ private readonly _methodLiteralTypes;
256
+ private readonly _methodBlockLiteralTypes;
257
+ constructor(_analyzer: Analyzer);
258
+ ofExpression(node: tree.Expression, targetTypeHint?: TargetTypeHint): types.Type;
259
+ ofTypeSpecifier(node: tree.TypeSpecifier): types.Type;
260
+ ofAccessedMethod(accessedMethod: WithLocalization<AccessedMethod>): types.Type;
261
+ ofMethodBlockLiteral(node: tree.MethodBlockLiteral, targetTypeHint?: TargetTypeHint): types.MethodType;
262
+ ofMethodLiteral(node: tree.MethodLiteral, targetTypeHint?: TargetTypeHint): types.MethodType;
263
+ private ofArrayLiteral;
264
+ private ofAssertionExpression;
265
+ private ofAssumptionExpression;
266
+ private ofAsExpression;
267
+ private ofBinaryExpression;
268
+ private ofCallExpression;
269
+ private ofAutotypeCallExpression;
270
+ private ofIndexedAccessExpression;
271
+ private ofInvalidExpression;
272
+ private ofIsExpression;
273
+ private ofUnobservableExpression;
274
+ private ofNotExpression;
275
+ private ofParenthesizedExpression;
276
+ private ofPrefixUnaryExpression;
277
+ private ofPropertyAccessExpression;
278
+ private ofReferenceExpression;
279
+ private ofDereferenceExpression;
280
+ private ofWhenTernaryExpression;
281
+ private ofTextTemplateLiteral;
282
+ private ofTransactionalExpression;
283
+ private ofIdentifierExpression;
284
+ private ofTokenExpression;
285
+ private ofKeywordExpression;
286
+ private ofObjectExpression;
287
+ private ofBaseExpression;
288
+ private ofGenericSpecializationExpression;
289
+ private ofDefaultMatchExpression;
290
+ private ofAnonymousTypeSpecifier;
291
+ private ofNamedTypeSpecifier;
292
+ private ofParenthesizedTypeSpecifier;
293
+ private ofNullableTypeSpecifier;
294
+ private ofUnionTypeSpecifier;
295
+ private ofInvalidTypeSpecifier;
296
+ private getTargetlessMethodBlockLiteralType;
297
+ private inferMethodLiteralTypeFromNodeWithFallbackToTargetType;
298
+ private inferMethodLiteralTypeFromNode;
299
+ }
300
+ declare class ReturnType {
301
+ private readonly _analyzer;
302
+ constructor(_analyzer: Analyzer);
303
+ ofAnonymousMethodTypeDeclaration(node: tree.AnonymousMethodTypeDeclaration): types.Type;
304
+ ofMethodBlockLiteral(node: tree.MethodBlockLiteral): types.Type;
305
+ ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): types.Type;
306
+ ofPackageMethodTypeDeclaration(node: tree.PackageMethodTypeDeclaration): types.Type;
307
+ ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): types.Type;
308
+ ofMethodLiteral(node: tree.MethodLiteral): types.Type;
309
+ ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): types.Type;
310
+ }
311
+ declare class Entity {
312
+ private readonly _analyzer;
313
+ private readonly _packageEntities;
314
+ private readonly _packageVariableEntities;
315
+ private readonly _typeVariableEntities;
316
+ private readonly _parameterVariableEntities;
317
+ private readonly _localVariableEntities;
318
+ private readonly _typeParameterEntities;
319
+ private readonly _indexerEntities;
320
+ private readonly _referenceOperatorEntities;
321
+ private readonly _packageStructuredTypeEntities;
322
+ private readonly _anonymousStructuredTypeEntities;
323
+ private readonly _packageVariantTypeEntities;
324
+ private readonly _anonymousVariantTypeEntities;
325
+ private readonly _packageMethodTypeEntities;
326
+ private readonly _anonymousMethodTypeEntities;
327
+ private readonly _aliasTypeEntities;
328
+ private readonly _packageMethodEntities;
329
+ private readonly _typeMethodEntities;
330
+ private readonly _nestedMethodEntities;
331
+ private readonly _constructorEntities;
332
+ private readonly _destructorEntities;
333
+ private readonly _getterEntities;
334
+ private readonly _setterEntities;
335
+ private readonly _variantEntities;
336
+ private readonly _typeExtensionEntities;
337
+ private readonly _packageAliasEntities;
338
+ constructor(_analyzer: Analyzer);
339
+ ofPackage(pkg: SourcePackage): PackageEntity;
340
+ ofPackageVariableDeclaration(node: tree.PackageVariableDeclaration): entities.PackageVariableEntity;
341
+ ofComputedPackageVariableDeclaration(node: PackageVariableAccessorDeclaration): entities.PackageVariableEntity;
342
+ ofTypeVariableDeclaration(node: tree.TypeVariableDeclaration): entities.TypeVariableEntity;
343
+ ofComputedTypeVariableDeclaration(node: TypeVariableAccessorDeclaration): entities.TypeVariableEntity;
344
+ ofLocalVariableDeclaration(node: tree.LocalVariableDeclaration): entities.LocalVariableEntity;
345
+ ofEnumerationVariableDeclaration(node: tree.EnumerationVariableDeclaration): entities.LocalVariableEntity;
346
+ ofErrorVariableDeclaration(node: tree.ErrorVariableDeclaration): entities.LocalVariableEntity;
347
+ ofParameterDeclaration(node: tree.ParameterDeclaration): entities.ParameterVariableEntity;
348
+ ofSetterParameterDeclaration(node: tree.SetterParameterDeclaration): entities.ParameterVariableEntity;
349
+ ofTypeParameterDeclaration(node: tree.TypeParameterDeclaration): TypeParameterEntity;
350
+ ofTypeIndexerDeclaration(node: TypeIndexedAccessorDeclaration): entities.SourceIndexerEntity;
351
+ ofTypeDereferenceOperatorDeclaration(node: TypeDereferencedVariableAccessorDeclaration): entities.DereferenceOperatorEntity;
352
+ ofPackageStructuredTypeDeclaration(node: tree.PackageStructuredTypeDeclaration): PackageStructuredTypeEntity;
353
+ ofAnonymousStructuredTypeDeclaration(node: tree.AnonymousStructuredTypeDeclaration): AnonymousStructuredTypeEntity;
354
+ ofStructuredTypeDeclaration(node: StructuredTypeDeclaration): StructuredTypeEntity;
355
+ ofPackageMethodTypeDeclaration(node: tree.PackageMethodTypeDeclaration): PackageMethodTypeEntity;
356
+ ofAnonymousMethodTypeDeclaration(node: tree.AnonymousMethodTypeDeclaration): AnonymousMethodTypeEntity;
357
+ ofMethodTypeDeclaration(node: MethodTypeDeclaration): MethodTypeEntity;
358
+ ofPackageVariantTypeDeclaration(node: tree.PackageVariantTypeDeclaration): PackageVariantTypeEntity;
359
+ ofAnonymousVariantTypeDeclaration(node: tree.AnonymousVariantTypeDeclaration): AnonymousVariantTypeEntity;
360
+ ofVariantTypeDeclaration(node: VariantTypeDeclaration): VariantTypeEntity;
361
+ ofPackageAliasTypeDeclaration(node: tree.PackageAliasTypeDeclaration): AliasTypeEntity;
362
+ ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): PackageMethodEntity;
363
+ ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): TypeMethodEntity;
364
+ ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): NestedMethodEntity;
365
+ ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): GetterEntity;
366
+ ofTypeVariableGetterDeclaration(node: tree.TypeVariableGetterDeclaration): GetterEntity;
367
+ ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): GetterEntity;
368
+ ofTypeDereferencedVariableGetterDeclaration(node: tree.TypeDereferencedVariableGetterDeclaration): GetterEntity;
369
+ ofGetterDeclaration(node: GetterDeclaration): GetterEntity;
370
+ ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): SetterEntity;
371
+ ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): SetterEntity;
372
+ ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): SetterEntity;
373
+ ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): SetterEntity;
374
+ ofSetterDeclaration(node: SetterDeclaration): SetterEntity;
375
+ ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): ConstructorEntity;
376
+ ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): DestructorEntity;
377
+ ofVariantDeclaration(node: tree.VariantDeclaration): VariantEntity;
378
+ ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): TypeExtensionEntity;
379
+ ofPackageImport(node: tree.PackageImport): PackageAliasEntity;
380
+ private getContainingPackageLoadedFromDts;
381
+ private createComputedTypeVariableEntities;
382
+ private createTypeDereferenceOperatorEntities;
383
+ private createTypeIndexerEntities;
384
+ private areTypeIndexedAccessorDeclarationsEqual;
385
+ }
386
+ declare class ResultLocalVariableEntity {
387
+ private readonly _analyzer;
388
+ private readonly _entities;
389
+ constructor(_analyzer: Analyzer);
390
+ ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): LocalVariableEntity | undefined;
391
+ ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): LocalVariableEntity | undefined;
392
+ ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): LocalVariableEntity | undefined;
393
+ ofMethodLiteral(node: tree.MethodLiteral): LocalVariableEntity | undefined;
394
+ ofMethodBlockLiteral(node: tree.MethodBlockLiteral): LocalVariableEntity | undefined;
395
+ ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): LocalVariableEntity;
396
+ ofTypeVariableGetterDeclaration(node: tree.TypeVariableGetterDeclaration): LocalVariableEntity;
397
+ ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): LocalVariableEntity;
398
+ ofTypeDereferencedVariableGetterDeclaration(node: tree.TypeDereferencedVariableGetterDeclaration): LocalVariableEntity;
399
+ private createResultLocalVariableEntity;
400
+ }
401
+ declare class ParamLocalVariableEntity {
402
+ private readonly _analyzer;
403
+ private readonly _optionalEntities;
404
+ private readonly _entities;
405
+ constructor(_analyzer: Analyzer);
406
+ ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): VariableEntity;
407
+ ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): VariableEntity;
408
+ ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): VariableEntity;
409
+ ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): VariableEntity;
410
+ ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): VariableEntity;
411
+ ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): VariableEntity | undefined;
412
+ ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): VariableEntity | undefined;
413
+ ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): VariableEntity | undefined;
414
+ ofMethodLiteral(node: tree.MethodLiteral): VariableEntity | undefined;
415
+ ofMethodBlockLiteral(node: tree.MethodBlockLiteral): VariableEntity | undefined;
416
+ ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): VariableEntity | undefined;
417
+ private createParamLocalVariableEntity;
418
+ private createAccessorParamLocalVariableEntity;
419
+ }
420
+ declare class ValueLocalVariableEntity {
421
+ private readonly _analyzer;
422
+ private readonly _entities;
423
+ constructor(_analyzer: Analyzer);
424
+ ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): VariableEntity | undefined;
425
+ ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): VariableEntity | undefined;
426
+ ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): VariableEntity | undefined;
427
+ ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): VariableEntity | undefined;
428
+ }
429
+ declare class DestructuredParameterLocalVariableEntities {
430
+ private readonly _analyzer;
431
+ private readonly _entities;
432
+ constructor(_analyzer: Analyzer);
433
+ ofMethodBlockLiteral(node: tree.MethodBlockLiteral): readonly VariableEntity[];
434
+ ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): readonly VariableEntity[];
435
+ ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): readonly VariableEntity[];
436
+ ofMethodLiteral(node: tree.MethodLiteral): readonly VariableEntity[];
437
+ ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): readonly VariableEntity[];
438
+ ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): readonly VariableEntity[];
439
+ private createVariableEntitiesBasedOnValueParameters;
440
+ }
441
+ declare class Scope {
442
+ private readonly _analyzer;
443
+ private readonly _sourceFileScopes;
444
+ private readonly _methodBlockLiteralScopes;
445
+ private readonly _packageMethodDeclarationTypeParametersScopes;
446
+ private readonly _packageMethodDeclarationValueParametersScopes;
447
+ private readonly _structuredTypeMethodDeclarationTypeParametersScopes;
448
+ private readonly _structuredTypeMethodDeclarationValueParametersScopes;
449
+ private readonly _nestedMethodDeclarationTypeParametersScopes;
450
+ private readonly _nestedMethodDeclarationValueParametersScopes;
451
+ private readonly _methodLiteralScopes;
452
+ private readonly _statementBlockScopes;
453
+ private readonly _forEachStatementScopes;
454
+ private readonly _onErrorClauseScopes;
455
+ private readonly _packageStructuredTypeDeclarationTypeParametersScopes;
456
+ private readonly _structuredTypeDeclarationBodyScopes;
457
+ private readonly _packageMethodTypeDeclarationTypeParametersScopes;
458
+ private readonly _methodTypeDeclarationBodyScopes;
459
+ private readonly _packageVariantTypeDeclarationTypeParametersScopes;
460
+ private readonly _variantTypeDeclarationBodyScopes;
461
+ private readonly _aliasTypeDeclarationBodyScopes;
462
+ private readonly _packageAliasTypeDeclarationTypeParametersScopes;
463
+ private readonly _structuredTypeConstructorDeclarationScopes;
464
+ private readonly _structuredTypeDestructorDeclarationScopes;
465
+ private readonly _typeIndexedAccessorDeclarationParametersScopes;
466
+ private readonly _typeExtensionDeclarationScopes;
467
+ private readonly _setterParameterClauseScopes;
468
+ constructor(_analyzer: Analyzer);
469
+ ofSourceFile(node: tree.SourceFile): scope.IScope;
470
+ ofMethodBlockLiteral(node: tree.MethodBlockLiteral): scope.IScope;
471
+ ofPackageMethodDeclarationTypeParameters(node: tree.PackageMethodDeclaration): scope.IScope;
472
+ ofPackageMethodDeclarationValueParameters(node: tree.PackageMethodDeclaration): scope.IScope;
473
+ ofTypeMethodDeclarationTypeParameters(node: tree.TypeMethodDeclaration): scope.IScope;
474
+ ofTypeMethodDeclarationValueParameters(node: tree.TypeMethodDeclaration): scope.IScope;
475
+ ofNestedMethodDeclarationTypeParameters(node: tree.NestedMethodDeclaration): scope.IScope;
476
+ ofNestedMethodDeclarationValueParameters(node: tree.NestedMethodDeclaration): scope.IScope;
477
+ ofMethodLiteral(node: tree.MethodLiteral): scope.IScope;
478
+ ofStatementBlock(node: tree.StatementBlock): scope.IScope;
479
+ ofForStatement(node: tree.ForStatement): scope.IScope;
480
+ ofOnErrorClause(node: tree.OnErrorClause): scope.IScope;
481
+ ofPackageStructuredTypeDeclarationTypeParameters(node: tree.PackageStructuredTypeDeclaration): scope.IScope;
482
+ ofStructuredTypeDeclarationBody(node: tree.StructuredTypeDeclarationBody): scope.IScope;
483
+ ofPackageMethodTypeDeclarationTypeParameters(node: tree.PackageMethodTypeDeclaration): scope.IScope;
484
+ ofMethodTypeDeclarationBody(node: tree.MethodTypeDeclarationBody): scope.IScope;
485
+ ofPackageVariantTypeDeclarationTypeParameters(node: tree.PackageVariantTypeDeclaration): scope.IScope;
486
+ ofVariantTypeDeclarationBody(node: tree.VariantTypeDeclarationBody): scope.IScope;
487
+ ofAliasTypeDeclarationBody(node: tree.AliasTypeDeclarationBody): scope.IScope;
488
+ ofPackageAliasTypeDeclarationTypeParameters(node: tree.PackageAliasTypeDeclaration): scope.IScope;
489
+ ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): scope.IScope;
490
+ ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): scope.IScope;
491
+ ofTypeIndexedAccessorDeclarationParameters(node: TypeIndexedAccessorDeclaration): scope.IScope;
492
+ ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): scope.IScope;
493
+ ofSetterParameterClause(node: tree.SetterParameterClause): scope.IScope;
494
+ }
495
+ declare class DefaultConstructors {
496
+ private readonly _analyzer;
497
+ private readonly _defaultConstructorEntities;
498
+ constructor(_analyzer: Analyzer);
499
+ ofStructuredType(type: StructuredTypeDeclaration): readonly ConstructorEntity[];
500
+ createAliasTypeDefaultConstructors(aliasTypeEntity: AliasTypeEntity, hasDeclaredConstructors: boolean): readonly ConstructorEntity[];
501
+ private createDefaultConstructors;
502
+ private getPublicInstanceStoredVariables;
503
+ }
504
+ declare class OverriddenMember {
505
+ private readonly _analyzer;
506
+ constructor(_analyzer: Analyzer);
507
+ getOverriddenMethod(method: TypeMethodEntity): types.Method | undefined;
508
+ getTheMostBaseOverriddenMethod(method: TypeMethodEntity): types.Method | undefined;
509
+ getOverriddenVariable(variable: entities.TypeVariableEntity): types.Variable | undefined;
510
+ getTheMostBaseOverriddenVariable(variable: entities.TypeVariableEntity): types.Variable | undefined;
511
+ checkMethodOverridesMethod(methodInDerivedType: TypeMethodEntity, methodInBaseType: types.Method): boolean;
512
+ checkVariableOverridesVariable(variableInDerivedType: entities.TypeVariableEntity, variableInBaseType: types.Variable): boolean;
513
+ private findOverriddenVariableInType;
514
+ private findOverriddenMethodInType;
515
+ private methodSignatureTypesAreEqual;
516
+ }
517
+ declare class Tags {
518
+ readonly _analyzer: Analyzer;
519
+ private readonly _tags;
520
+ constructor(_analyzer: Analyzer);
521
+ ofTagList(tagList: tree.TagList): readonly tags.Tag[];
522
+ private createTags;
523
+ private callArgumentToTagArgument;
524
+ }
525
+ declare class LinkedEntity {
526
+ private readonly _analyzer;
527
+ constructor(_analyzer: Analyzer);
528
+ ofType(entity: TypeEntity, platform: PlatformKind): TypeEntity | undefined;
529
+ ofTypeWithMembers(entity: entities.TypeEntityWithMembers, platform: PlatformKind): entities.TypeEntityWithMembers | undefined;
530
+ ofParameterType(entity: TypeParameterEntity, platform: PlatformKind): TypeParameterEntity | undefined;
531
+ ofPackageVariable(entity: PackageVariableEntity, platform: PlatformKind): PackageVariableEntity | undefined;
532
+ ofPackageMethod(entity: PackageMethodEntity, platform: PlatformKind): PackageMethodEntity | undefined;
533
+ ofTypeVariable(entity: entities.TypeVariableEntity, platform: PlatformKind): entities.TypeVariableEntity | undefined;
534
+ ofTypeMethod(entity: entities.TypeMethodEntity, platform: PlatformKind): entities.TypeMethodEntity | undefined;
535
+ ofConstructor(entity: entities.ConstructorEntity, platform: PlatformKind): entities.ConstructorEntity | undefined;
536
+ ofIndexer(entity: entities.IndexerEntity, platform: PlatformKind): entities.IndexerEntity | undefined;
537
+ ofDereferenceOperator(entity: entities.DereferenceOperatorEntity, platform: PlatformKind): entities.DereferenceOperatorEntity | undefined;
538
+ }
539
+ export declare class LinkedMultiPlatformPackage {
540
+ readonly analyzer: Analyzer;
541
+ readonly pkg: PackageEntity;
542
+ readonly implementationPackage: PackageEntity;
543
+ readonly targetPlatform: PlatformKind;
544
+ private readonly _memberLookup;
545
+ private readonly _linkedTypesWithMembers;
546
+ private readonly _linkedParameterTypes;
547
+ private get memberLookup();
548
+ constructor(analyzer: Analyzer, pkg: PackageEntity, implementationPackage: PackageEntity, targetPlatform: PlatformKind);
549
+ getLinkedVariable(entity: PackageVariableEntity): PackageVariableEntity | undefined;
550
+ getLinkedMethod(entity: PackageMethodEntity): PackageMethodEntity | undefined;
551
+ getLinkedTypeWithMembers(entity: entities.TypeEntityWithMembers): LinkedTypeWithMembers | undefined;
552
+ getLinkedParameterType(entity: TypeParameterEntity): TypeParameterEntity | undefined;
553
+ /**
554
+ * Используется для сравнения типов при связывании объявления из многоплатформенного пакета с объявлением из
555
+ * реализационного пакета. В частности, при сравнении типов параметров для выбора правильной перегрузки
556
+ * метода (конструктора, индексатора).
557
+ */
558
+ compareTypesDuringLinking(type1: types.Type, type2: types.Type): boolean;
559
+ private findPackageType;
560
+ private compareSubstitutionsDuringLinking;
561
+ }
562
+ export declare class LinkedTypeWithMembers {
563
+ readonly analyzer: Analyzer;
564
+ readonly externalType: entities.TypeEntityWithMembers;
565
+ readonly targetType: entities.TypeEntityWithMembers;
566
+ readonly linkedPackage: LinkedMultiPlatformPackage;
567
+ private readonly _memberLookup;
568
+ private get memberLookup();
569
+ constructor(analyzer: Analyzer, externalType: entities.TypeEntityWithMembers, targetType: entities.TypeEntityWithMembers, linkedPackage: LinkedMultiPlatformPackage);
570
+ getLinkedVariable(entity: entities.TypeVariableEntity): entities.TypeVariableEntity | undefined;
571
+ getLinkedMethod(entity: entities.TypeMethodEntity): entities.TypeMethodEntity | undefined;
572
+ getLinkedConstructor(entity: entities.ConstructorEntity): entities.ConstructorEntity | undefined;
573
+ getLinkedIndexerEntity(entity: entities.IndexerEntity): entities.IndexerEntity | undefined;
574
+ getLinkedDereferenceOperatorEntity(entity: entities.DereferenceOperatorEntity): entities.DereferenceOperatorEntity | undefined;
575
+ }
576
+ declare class OwningPlainObjectModificationCheck {
577
+ private _analyzer;
578
+ private readonly _owningPlainObjectModificationCheckResult;
579
+ constructor(_analyzer: Analyzer);
580
+ ofDeclarationBody(node: tree.StatementBlock): boolean;
581
+ private checkMethodBodyModifiesPlainObject;
582
+ private checkReceiverModifiesPlainObjectRecursively;
583
+ private nodeBelongsToPlainObjectDeclaration;
584
+ }
585
+ declare class PackageImports {
586
+ private readonly _analyzer;
587
+ private readonly _packagesAvailableForImport;
588
+ private readonly _analyzedPackageImports;
589
+ private readonly _importedPackages;
590
+ private readonly _automaticallyImportedPackages;
591
+ private readonly _importedPackageNameTrees;
592
+ constructor(_analyzer: Analyzer);
593
+ analyzeExplicitPackageImports(sourceFile: project.SourceFile): AnalyzedPackageImports;
594
+ getPackagesAvailableForImport(pkg: project.SourcePackage): readonly AvailablePackage[];
595
+ getUniqueImportedPackages(sourceFile: project.SourceFile): readonly PackageImportInfo[];
596
+ getImportedPackageNameTree(node: tree.SourceFile): ImportedPackageNameTree;
597
+ private getAutomaticallyImportedPackages;
598
+ }
599
+ export declare class AnalyzedPackageImport {
600
+ readonly entity: PackageEntity | undefined;
601
+ readonly translationPackage: AnalyzedTranslationPackage | undefined;
602
+ readonly isAliasedImport: PackageAliasEntity | undefined;
603
+ constructor(entity: PackageEntity | undefined, translationPackage: AnalyzedTranslationPackage | undefined, isAliasedImport: PackageAliasEntity | undefined);
604
+ }
605
+ export declare class AnalyzedPackageImports {
606
+ readonly packageImportInfos: Map<tree.PackageImport, AnalyzedPackageImport>;
607
+ readonly diagnostics: readonly Diagnostic[];
608
+ constructor(packageImportInfos: Map<tree.PackageImport, AnalyzedPackageImport>, diagnostics: readonly Diagnostic[]);
609
+ }
610
+ export declare class PackageImportInfo {
611
+ readonly entity: PackageEntity;
612
+ readonly translationPackage: AnalyzedTranslationPackage | undefined;
613
+ readonly isAliasedImport: PackageAliasEntity | undefined;
614
+ constructor(entity: PackageEntity, translationPackage: AnalyzedTranslationPackage | undefined, isAliasedImport: PackageAliasEntity | undefined);
615
+ }
616
+ export declare class ExpressionDenotesMethodCheckResult {
617
+ readonly candidates: readonly WithLocalization<AccessedMethod>[];
618
+ readonly suitableMethods: readonly WithLocalization<AccessedMethod>[];
619
+ get singleSuitableMethod(): WithLocalization<AccessedMethod> | undefined;
620
+ constructor(candidates: readonly WithLocalization<AccessedMethod>[], suitableMethods: readonly WithLocalization<AccessedMethod>[]);
621
+ }
622
+ export declare class NonHiddenEntityHidingMatcher implements IEntityHidingMatcher {
623
+ matches(_hiding: entities.EntityHidingLevel): boolean;
624
+ }
625
+ type AvailablePackage = AvailablePackage.Original | AvailablePackage.Translated;
626
+ declare namespace AvailablePackage {
627
+ export class Original implements IAvailablePackage {
628
+ readonly value: PackageEntity;
629
+ readonly kind = "original";
630
+ constructor(value: PackageEntity);
631
+ getImportName(): PackageName;
632
+ getLocale(): PackageLocale;
633
+ getEntity(): PackageEntity;
634
+ getTranslationPackage(): AnalyzedTranslationPackage | undefined;
635
+ }
636
+ export class Translated implements IAvailablePackage {
637
+ readonly value: AnalyzedTranslationPackage;
638
+ readonly kind = "translated";
639
+ constructor(value: AnalyzedTranslationPackage);
640
+ getImportName(): PackageName;
641
+ getLocale(): PackageLocale;
642
+ getEntity(): PackageEntity;
643
+ getTranslationPackage(): AnalyzedTranslationPackage | undefined;
644
+ }
645
+ interface IAvailablePackage {
646
+ getImportName(): PackageName;
647
+ getLocale(): PackageLocale;
648
+ getEntity(): PackageEntity;
649
+ getTranslationPackage(): AnalyzedTranslationPackage | undefined;
650
+ }
651
+ export {};
652
+ }
653
+ export declare class DeclaredTypeMemberEntities {
654
+ readonly variables: readonly TypeVariableEntity[];
655
+ readonly methods: readonly TypeMethodEntity[];
656
+ readonly constructors: readonly ConstructorEntity[];
657
+ readonly destructors: readonly DestructorEntity[];
658
+ readonly indexers: readonly SourceIndexerEntity[];
659
+ readonly dereferenceOperators: readonly DereferenceOperatorEntity[];
660
+ readonly unaryOperators: readonly UnaryOperatorEntity[];
661
+ readonly binaryOperators: readonly BinaryOperatorEntity[];
662
+ get namedMembers(): NamedTypeMemberEntity[];
663
+ constructor(variables: readonly TypeVariableEntity[], methods: readonly TypeMethodEntity[], constructors: readonly ConstructorEntity[], destructors: readonly DestructorEntity[], indexers: readonly SourceIndexerEntity[], dereferenceOperators: readonly DereferenceOperatorEntity[], unaryOperators: readonly UnaryOperatorEntity[], binaryOperators: readonly BinaryOperatorEntity[]);
664
+ }
665
+ export {};