@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,151 @@
1
+ import { Name, PackageDialect, PackageLocale, ReadonlyNonEmptyArray, Uri } from '../common/index.js';
2
+ import { Compilation } from './Compilation.js';
3
+ import { SourceFile } from './SourceFile.js';
4
+ export type SourcePackage = ProgramPackage | TranslationPackage;
5
+ declare abstract class SourcePackageBase {
6
+ readonly uri: Uri;
7
+ readonly name: PackageName;
8
+ readonly sourceFiles: readonly SourceFile[];
9
+ private _compilation;
10
+ get compilation(): Compilation;
11
+ protected abstract get asPackage(): SourcePackage;
12
+ abstract get locale(): PackageLocale;
13
+ abstract get dialect(): PackageDialect | undefined;
14
+ constructor(uri: Uri, name: PackageName, sourceFiles: readonly SourceFile[]);
15
+ /**
16
+ * Данный метод должен вызываться только из конструктора компиляции (Compilation).
17
+ */
18
+ setCompilation(compilation: Compilation): void;
19
+ }
20
+ export declare class ProgramPackage extends SourcePackageBase {
21
+ readonly kind = "program";
22
+ readonly configuration: ProgramPackageConfiguration;
23
+ protected get asPackage(): SourcePackage;
24
+ get locale(): PackageLocale;
25
+ get dialect(): PackageDialect | undefined;
26
+ constructor(uri: Uri, configuration: ProgramPackageConfiguration, sourceFiles: readonly SourceFile[]);
27
+ }
28
+ export declare class TranslationPackage extends SourcePackageBase {
29
+ readonly kind = "translation";
30
+ readonly configuration: TranslationPackageConfiguration;
31
+ protected get asPackage(): SourcePackage;
32
+ get locale(): PackageLocale;
33
+ get dialect(): PackageDialect | undefined;
34
+ constructor(uri: Uri, configuration: TranslationPackageConfiguration, sourceFiles: SourceFile[]);
35
+ }
36
+ export type PackageConfiguration = ProgramPackageConfiguration | TranslationPackageConfiguration;
37
+ export declare class TranslationPackageConfiguration {
38
+ readonly targetPackageName: PackageName;
39
+ readonly translatedName: PackageName;
40
+ readonly translationLocale: PackageLocale;
41
+ constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale);
42
+ }
43
+ export declare class ProgramPackageConfiguration {
44
+ readonly name: PackageName;
45
+ readonly locale: PackageLocale;
46
+ readonly dialect?: PackageDialect | undefined;
47
+ readonly version?: string | undefined;
48
+ readonly targetPlatform: TargetPlatformConfig;
49
+ readonly requiredPackages: readonly RequiredPackageConfig[];
50
+ readonly implementedInterfacePackageName?: PackageName | undefined;
51
+ readonly jsProjectRootUri?: Uri | undefined;
52
+ readonly packageImportLocales: readonly PackageImportLocaleConfig[];
53
+ readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
54
+ constructor(name: PackageName, locale: PackageLocale, dialect?: PackageDialect | undefined, version?: string | undefined, targetPlatform?: TargetPlatformConfig, requiredPackages?: readonly RequiredPackageConfig[], implementedInterfacePackageName?: PackageName | undefined, jsProjectRootUri?: Uri | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
55
+ isInterfacePackage(): boolean;
56
+ }
57
+ export declare class PackageName {
58
+ readonly segments: ReadonlyNonEmptyArray<Name>;
59
+ get lastSegment(): Name;
60
+ constructor(segments: ReadonlyNonEmptyArray<Name>);
61
+ static fromOriginalSegments(segments: ReadonlyNonEmptyArray<string>): PackageName;
62
+ universallyEquals(name: PackageName): boolean;
63
+ toString(original?: boolean): string;
64
+ }
65
+ export type RequiredPackageConfig = RequiredPackageConfig.Npm | RequiredPackageConfig.NuGet;
66
+ export declare namespace RequiredPackageConfig {
67
+ class Npm {
68
+ readonly name: string;
69
+ readonly version: string;
70
+ readonly kind = "npm";
71
+ constructor(name: string, version: string);
72
+ }
73
+ class NuGet {
74
+ readonly name: string;
75
+ readonly version: string;
76
+ readonly kind = "nu-get";
77
+ constructor(name: string, version: string);
78
+ }
79
+ }
80
+ export type TargetPlatformConfig = TargetPlatformConfig.Any | TargetPlatformConfig.JavaScript | TargetPlatformConfig.DotNet;
81
+ export declare namespace TargetPlatformConfig {
82
+ class Any {
83
+ readonly isInterfacePackage: boolean;
84
+ readonly kind = "any";
85
+ constructor(isInterfacePackage?: boolean);
86
+ }
87
+ class JavaScript {
88
+ readonly interfacePackageImplementation?: JavaScriptInterfacePackageImplementationConfig | undefined;
89
+ readonly packagesLoadedFromDts: readonly PackageFromDtsConfig[];
90
+ readonly kind = "javascript";
91
+ constructor(interfacePackageImplementation?: JavaScriptInterfacePackageImplementationConfig | undefined, packagesLoadedFromDts?: readonly PackageFromDtsConfig[]);
92
+ }
93
+ class DotNet {
94
+ readonly isInterfacePackage: boolean;
95
+ readonly kind = "dotnet";
96
+ constructor(isInterfacePackage?: boolean);
97
+ }
98
+ }
99
+ export declare class JavaScriptInterfacePackageImplementationConfig {
100
+ readonly value: JavaScriptImplementationConfig;
101
+ readonly loadFromDts: boolean;
102
+ constructor(value: JavaScriptImplementationConfig, loadFromDts?: boolean);
103
+ }
104
+ export type JavaScriptImplementationConfig = JavaScriptImplementationConfig.Module | JavaScriptImplementationConfig.Globals | JavaScriptImplementationConfig.NamespaceOfSubModule;
105
+ export declare namespace JavaScriptImplementationConfig {
106
+ export class Module implements IJavaScriptImplementationConfig {
107
+ readonly moduleName: string;
108
+ readonly npmPackageName: string;
109
+ readonly moduleFormat: JavaScriptModuleFormat;
110
+ readonly kind = "module";
111
+ constructor(moduleName: string, npmPackageName: string, moduleFormat: JavaScriptModuleFormat);
112
+ }
113
+ export class Globals implements IJavaScriptImplementationConfig {
114
+ readonly npmPackageName: string;
115
+ readonly standardLibraryFiles: string[];
116
+ readonly kind = "globals";
117
+ constructor(npmPackageName: string, standardLibraryFiles?: string[]);
118
+ }
119
+ export class NamespaceOfSubModule implements IJavaScriptImplementationConfig {
120
+ readonly namespaceOrSubModuleName: string;
121
+ readonly owner: NamespaceOfSubModuleOwner;
122
+ readonly kind = "namespace-of-sub-module";
123
+ get npmPackageName(): string;
124
+ constructor(namespaceOrSubModuleName: string, owner: NamespaceOfSubModuleOwner);
125
+ }
126
+ export type NamespaceOfSubModuleOwner = Module | Globals;
127
+ interface IJavaScriptImplementationConfig {
128
+ npmPackageName: string;
129
+ }
130
+ export {};
131
+ }
132
+ export declare class PackageFromDtsConfig {
133
+ readonly artelPackageName: PackageName;
134
+ readonly implementation: JavaScriptImplementationConfig;
135
+ constructor(artelPackageName: PackageName, implementation: JavaScriptImplementationConfig);
136
+ }
137
+ export declare enum JavaScriptModuleFormat {
138
+ Esm = 0,
139
+ Cjs = 1
140
+ }
141
+ export declare class PackageImportLocaleConfig {
142
+ readonly packageName: PackageName;
143
+ readonly locale: PackageLocale;
144
+ constructor(packageName: PackageName, locale: PackageLocale);
145
+ }
146
+ export declare enum PlatformKind {
147
+ JavaScript = 0,
148
+ Browser = 1,
149
+ DotNet = 2
150
+ }
151
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Uri } from '../common/index.js';
2
+ import { Position } from './Position.js';
3
+ export declare class TextFile {
4
+ readonly text: string;
5
+ readonly uri: Uri;
6
+ readonly version: number;
7
+ private readonly _textDocument;
8
+ constructor(text: string, uri: Uri, version: number);
9
+ getPositionAt(offset: number): Position;
10
+ getOffsetAtPosition({ line, character }: Position): number;
11
+ }
@@ -0,0 +1,75 @@
1
+ export declare class Package {
2
+ name: string;
3
+ language?: Language | undefined;
4
+ dialect?: Dialect | undefined;
5
+ version?: string | undefined;
6
+ requiredPackages?: RequiredPackage[] | undefined;
7
+ externalImplementation?: ExternalImplementation | undefined;
8
+ implementedInterfacePackageName?: string | undefined;
9
+ supportedPlatforms?: TargetPlatform[] | undefined;
10
+ platformStorageFolder?: string | undefined;
11
+ jsProjectRootFolder?: string | undefined;
12
+ packageImportLanguages?: PackageImportLanguage[] | undefined;
13
+ constructor(name: string, language?: Language | undefined, dialect?: Dialect | undefined, version?: string | undefined, requiredPackages?: RequiredPackage[] | undefined, externalImplementation?: ExternalImplementation | undefined, implementedInterfacePackageName?: string | undefined, supportedPlatforms?: TargetPlatform[] | undefined, platformStorageFolder?: string | undefined, jsProjectRootFolder?: string | undefined, packageImportLanguages?: PackageImportLanguage[] | undefined);
14
+ onCreate(): void;
15
+ }
16
+ export declare enum Language {
17
+ Russian = 0,
18
+ English = 1
19
+ }
20
+ export declare enum Dialect {
21
+ Common = 0,
22
+ Special = 1
23
+ }
24
+ export declare enum TargetPlatform {
25
+ JavaScript = 0,
26
+ DotNet = 1
27
+ }
28
+ export type RequiredPackage = NpmPackage | NuGetPackage;
29
+ export declare class NpmPackage {
30
+ name: string;
31
+ version: string;
32
+ format: JavaScriptModuleFormat;
33
+ modulesLoadingFromDts?: NpmPackageModuleFromDts[] | undefined;
34
+ readonly kind = "npm-package";
35
+ constructor(name: string, version: string, format: JavaScriptModuleFormat, modulesLoadingFromDts?: NpmPackageModuleFromDts[] | undefined);
36
+ }
37
+ export declare class NpmPackageModuleFromDts {
38
+ name: string;
39
+ artelName: string;
40
+ areNamesGlobal: boolean;
41
+ constructor(name: string, artelName: string, areNamesGlobal?: boolean);
42
+ }
43
+ export declare class NuGetPackage {
44
+ name: string;
45
+ version: string;
46
+ readonly kind = "nuget-package";
47
+ constructor(name: string, version: string);
48
+ }
49
+ export type ExternalImplementation = JavaScriptModule | DotNetAssembly | AnotherArtelPackage;
50
+ export declare class JavaScriptModule {
51
+ moduleName: string;
52
+ packageName?: string | undefined;
53
+ areNamesGlobal: boolean;
54
+ loadFromDts: boolean;
55
+ standardLibraryFiles?: string[] | undefined;
56
+ readonly kind = "javascript-module";
57
+ constructor(moduleName: string, packageName?: string | undefined, areNamesGlobal?: boolean, loadFromDts?: boolean, standardLibraryFiles?: string[] | undefined);
58
+ }
59
+ export declare enum JavaScriptModuleFormat {
60
+ Esm = 0,
61
+ Cjs = 1
62
+ }
63
+ export declare class DotNetAssembly {
64
+ assembly: string;
65
+ readonly kind = "dotnet-assembly";
66
+ constructor(assembly: string);
67
+ }
68
+ export declare class AnotherArtelPackage {
69
+ readonly kind = "another-artel-package";
70
+ }
71
+ export declare class PackageImportLanguage {
72
+ packageName: string;
73
+ language: Language;
74
+ constructor(packageName: string, language: Language);
75
+ }
@@ -0,0 +1,25 @@
1
+ import { PackageDialect } from '../../common/index.js';
2
+ import { PackageLocale } from '../../common/PackageLocale.js';
3
+ import { Uri } from '../../common/Uri.js';
4
+ import * as origin from '../configuration/types/PackageConfigurationEn.js';
5
+ import { PackageConfiguration, PackageName, ProgramPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
6
+ export declare class ConfigurationConverter {
7
+ private static readonly _uriRegexp;
8
+ static convert(configurations: readonly origin.Configuration[], packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ConvertedConfiguration;
9
+ static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
10
+ static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
11
+ static convertTranslationsConfiguration(configuration: origin.Translations): TranslationPackageConfiguration | undefined;
12
+ private static convertJavaScriptImplementation;
13
+ private static convertLanguage;
14
+ private static convertDialect;
15
+ private static convertJavaScriptModuleFormat;
16
+ private static tryParseUri;
17
+ }
18
+ export interface ConvertedConfiguration {
19
+ packageConfiguration?: PackageConfiguration;
20
+ packageGroupConfiguration?: PackageGroupConfiguration;
21
+ }
22
+ export declare class PackageGroupConfiguration {
23
+ }
24
+ export declare function parsePackageName(text: string): PackageName | undefined;
25
+ export declare function createDefaultPackageConfiguration(packageUri: Uri | undefined, locale?: PackageLocale, dialect?: PackageDialect): ProgramPackageConfiguration;
@@ -0,0 +1,26 @@
1
+ import { PackageLocale } from '../../common/PackageLocale.js';
2
+ import { RangeDiagnosticAcceptor } from '../../diagnostic/RangeDiagnostic.js';
3
+ import * as configEn from '../configuration/types/PackageConfigurationEn.js';
4
+ export declare class ConfigurationFileParser {
5
+ private static _configurationValidator;
6
+ private static get configurationValidator();
7
+ /**
8
+ * Выполняет разбор и валидацию конфигурации (проверка соответствия JSON схеме), преобразует в конфигурацию на
9
+ * английском языке путём замены имён свойств.
10
+ *
11
+ * @returns Возвращает `ConfigurationArray`, если конфигурация была успешно разобрана, `undefined`, если содержала
12
+ * ошибки (ошибки в синтаксисе JSON, несоответствие JSON схеме).
13
+ *
14
+ * @example
15
+ * [{
16
+ * "тип": "Пакет",
17
+ * "имя": "МойПакет"
18
+ * }]
19
+ * ->
20
+ * [{
21
+ * "type": "Package",
22
+ * "name": "МойПакет"
23
+ * }]
24
+ */
25
+ static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<configEn.ConfigurationArray | undefined>;
26
+ }
@@ -0,0 +1,27 @@
1
+ import { Analyzer, TsInteropInputs } from '../../analysis/index.js';
2
+ import { CancellationToken, Result, Uri } from '../../common/index.js';
3
+ import { Diagnostic, DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
4
+ import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
5
+ import { Compilation } from '../Compilation.js';
6
+ import { CompilationLoadResult } from '../CompilationLoader.js';
7
+ import * as fsTree from '../FileSystemTree.js';
8
+ import * as buildScript from './BuildPackageApi.js';
9
+ export declare class PackageConfigurationInterpreter {
10
+ static readonly artelPackageUri: Uri;
11
+ static readonly buildPackageUri: Uri;
12
+ static readonly platformJavaScriptPackageUri: Uri;
13
+ static readonly availablePackageUris: Uri[];
14
+ static readonly asyncFunctionConstructor: any;
15
+ static interpret(configurationDirectory: fsTree.Directory, tsInteropInputs: TsInteropInputs, diagnostics: DiagnosticAcceptor | undefined, cancellationToken?: CancellationToken): Promise<Result<buildScript.Package | undefined, undefined>>;
16
+ static createTsInteropInputsForInterpretation(librariesProvider: TypeScriptLibrariesProvider): TsInteropInputs;
17
+ static loadConfigurationCompilation(configurationDirectory: fsTree.Directory, diagnostics: DiagnosticAcceptor | undefined, previousLoadResult?: CompilationLoadResult, cancellationToken?: CancellationToken): Promise<Compilation | undefined>;
18
+ static compileAndExecuteConfiguration(analyzer: Analyzer, diagnostics: DiagnosticAcceptor | undefined, cancellationToken?: CancellationToken): Promise<Result<buildScript.Package | undefined, undefined>>;
19
+ private static analyze;
20
+ private static executeConfigurationCode;
21
+ }
22
+ export declare class RawInterpretationResult {
23
+ readonly configuration: buildScript.Package | undefined;
24
+ readonly isSuccessful: boolean;
25
+ readonly diagnostics: readonly Diagnostic[];
26
+ constructor(configuration: buildScript.Package | undefined, isSuccessful: boolean, diagnostics: readonly Diagnostic[]);
27
+ }
@@ -0,0 +1,90 @@
1
+ export type ConfigurationArray = Configuration[];
2
+ export type Configuration = Package | PackageGroup | Translations;
3
+ export interface Package {
4
+ type: 'Package';
5
+ name: string;
6
+ language?: Language;
7
+ dialect?: Dialect;
8
+ version?: string;
9
+ targetPlatform?: TargetPlatform;
10
+ requiredPackages?: RequiredPackage[];
11
+ implementedInterfacePackageName?: string;
12
+ jsProjectRootFolder?: string;
13
+ packageImportLanguages?: PackageImportLanguage[];
14
+ automaticallyImportedPackages?: string[];
15
+ }
16
+ export interface PackageGroup {
17
+ type: 'PackageGroup';
18
+ }
19
+ export interface Translations {
20
+ type: 'Translations';
21
+ originalPackageName: string;
22
+ translatedPackageName: string;
23
+ translationLanguage: Language;
24
+ }
25
+ export declare enum Language {
26
+ Russian = "russian",
27
+ English = "english"
28
+ }
29
+ export declare enum Dialect {
30
+ Mixed = "mixed",
31
+ Usual = "usual",
32
+ Special = "special"
33
+ }
34
+ export type TargetPlatform = JavaScriptPlatform | DotNetPlatform | AnyPlatform;
35
+ export interface JavaScriptPlatform {
36
+ type: 'JavaScriptPlatform';
37
+ interfacePackageImplementation?: JavaScriptInterfacePackageImplementation;
38
+ packagesLoadedFromDts?: PackageFromDts[];
39
+ }
40
+ export type JavaScriptInterfacePackageImplementation = JavaScriptImplementation & {
41
+ loadFromDts?: boolean;
42
+ };
43
+ export type JavaScriptImplementation = JavaScriptModule | JavaScriptGlobals | JavaScriptNamespaceOrSubModule;
44
+ export interface JavaScriptModule {
45
+ type: 'JavaScriptModule';
46
+ moduleName: string;
47
+ npmPackageName: string;
48
+ moduleFormat: JavaScriptModuleFormat;
49
+ }
50
+ export declare enum JavaScriptModuleFormat {
51
+ Esm = "esm",
52
+ Cjs = "cjs"
53
+ }
54
+ export interface JavaScriptGlobals {
55
+ type: 'JavaScriptGlobals';
56
+ npmPackageName: string;
57
+ standardLibraryFiles?: string[];
58
+ }
59
+ export interface JavaScriptNamespaceOrSubModule {
60
+ type: 'JavaScriptNamespaceOrSubModule';
61
+ namespaceOrSubModule: string;
62
+ owningImplementation: JavaScriptNamespaceOrSubModuleOwner;
63
+ }
64
+ export type JavaScriptNamespaceOrSubModuleOwner = JavaScriptModule | JavaScriptGlobals;
65
+ export interface PackageFromDts {
66
+ artelPackageName: string;
67
+ implementation: JavaScriptImplementation;
68
+ }
69
+ export interface DotNetPlatform {
70
+ type: 'DotNetPlatform';
71
+ }
72
+ export interface AnyPlatform {
73
+ type: 'AnyPlatform';
74
+ isInterfacePackage?: boolean;
75
+ }
76
+ export type RequiredPackage = NpmPackage | NuGetPackage;
77
+ export interface NpmPackage {
78
+ type: 'NpmPackage';
79
+ name: string;
80
+ version: string;
81
+ }
82
+ export interface NuGetPackage {
83
+ type: 'NuGetPackage';
84
+ name: string;
85
+ version: string;
86
+ }
87
+ export interface PackageImportLanguage {
88
+ packageName: string;
89
+ language: Language;
90
+ }
@@ -0,0 +1,91 @@
1
+ export type МассивКонфигураций = Конфигурация[];
2
+ export type Конфигурация = Пакет | ГруппаПакетов | Переводы;
3
+ export interface Пакет {
4
+ тип: 'Пакет';
5
+ имя: string;
6
+ язык?: Язык;
7
+ диалект?: Диалект;
8
+ версия?: string;
9
+ целеваяПлатформа?: ЦелеваяПлатформа;
10
+ требуемыеПакеты?: ТребуемыйПакет[];
11
+ имяРеализуемогоИнтерфейсногоПакета?: string;
12
+ папкаПроектаJs?: string;
13
+ языкиПакетовПриПодключении?: ЯзыкПодключенияПакета[];
14
+ автоматическиПодключаемыеПакеты?: string[];
15
+ }
16
+ export interface ГруппаПакетов {
17
+ тип: 'ГруппаПакетов';
18
+ }
19
+ export interface Переводы {
20
+ тип: 'Переводы';
21
+ имяПакетаИсходное: string;
22
+ имяПакетаПереведённое: string;
23
+ языкПеревода: Язык;
24
+ }
25
+ export declare enum Язык {
26
+ Русский = "\u0440\u0443\u0441\u0441\u043A\u0438\u0439",
27
+ Английский = "\u0430\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u0438\u0439"
28
+ }
29
+ export declare enum Диалект {
30
+ Смешанный = "\u0441\u043C\u0435\u0448\u0430\u043D\u043D\u044B\u0439",
31
+ Привычный = "\u043F\u0440\u0438\u0432\u044B\u0447\u043D\u044B\u0439",
32
+ Особый = "\u043E\u0441\u043E\u0431\u044B\u0439"
33
+ }
34
+ export type ЦелеваяПлатформа = ПлатформаJavaScript | ПлатформаDotNet | ПлатформаЛюбая;
35
+ export interface ПлатформаJavaScript {
36
+ тип: 'ПлатформаJavaScript';
37
+ реализацияИнтерфейсногоПакета?: РеализацияИнтерфейсногоПакетаНаJavaScript;
38
+ пакетыЗагружаемыеИзDts?: ПакетИзDts[];
39
+ }
40
+ export type РеализацияИнтерфейсногоПакетаНаJavaScript = РеализацияНаJavaScript & {
41
+ загрузитьИзDts?: ДаНет;
42
+ };
43
+ export type РеализацияНаJavaScript = МодульJavaScript | ГлобальныеОбъявленияJavaScript | ОбластьИмёнИлиВложенныйМодульJavaScript;
44
+ export interface МодульJavaScript {
45
+ тип: 'МодульJavaScript';
46
+ имяМодуля: string;
47
+ имяПакетаNpm: string;
48
+ форматМодуля: ФорматМодуляJavaScript;
49
+ }
50
+ export declare enum ФорматМодуляJavaScript {
51
+ Esm = "esm",
52
+ Cjs = "cjs"
53
+ }
54
+ export interface ГлобальныеОбъявленияJavaScript {
55
+ тип: 'ГлобальныеОбъявленияJavaScript';
56
+ имяПакетаNpm: string;
57
+ файлыСтандартнойБиблиотеки?: string[];
58
+ }
59
+ export interface ОбластьИмёнИлиВложенныйМодульJavaScript {
60
+ тип: 'ОбластьИмёнИлиВложенныйМодульJavaScript';
61
+ областьИмёнИлиВложенныйМодуль: string;
62
+ реализацияВладельца: ВладелецОбластиИмёнИлиВложенногоМодуляJavaScript;
63
+ }
64
+ export type ВладелецОбластиИмёнИлиВложенногоМодуляJavaScript = МодульJavaScript | ГлобальныеОбъявленияJavaScript;
65
+ export interface ПакетИзDts {
66
+ имяПакетаАртель: string;
67
+ реализация: РеализацияНаJavaScript;
68
+ }
69
+ export interface ПлатформаDotNet {
70
+ тип: 'ПлатформаDotNet';
71
+ }
72
+ export interface ПлатформаЛюбая {
73
+ тип: 'ПлатформаЛюбая';
74
+ интерфейсныйПакет?: ДаНет;
75
+ }
76
+ export type ТребуемыйПакет = ПакетNpm | ПакетNuGet;
77
+ export interface ПакетNpm {
78
+ тип: 'ПакетNpm';
79
+ имя: string;
80
+ версия: string;
81
+ }
82
+ export interface ПакетNuGet {
83
+ тип: 'ПакетNuGet';
84
+ имя: string;
85
+ версия: string;
86
+ }
87
+ export interface ЯзыкПодключенияПакета {
88
+ имяПакета: string;
89
+ язык: Язык;
90
+ }
91
+ export type ДаНет = 'да' | 'нет';
@@ -0,0 +1,12 @@
1
+ export * from './Compilation.js';
2
+ export * from './CompilationLoader.js';
3
+ export * from './configuration/ConfigurationFileParser.js';
4
+ export * from './configuration/PackageConfigurationInterpreter.js';
5
+ export * from './configuration/ConfigurationConverter.js';
6
+ export * as config from './configuration/types/PackageConfigurationEn.js';
7
+ export * as configRu from './configuration/types/PackageConfigurationRu.js';
8
+ export * as fsTree from './FileSystemTree.js';
9
+ export * from './Position.js';
10
+ export * from './SourceFile.js';
11
+ export * from './SourcePackage.js';
12
+ export * from './TextFile.js';
@@ -0,0 +1,15 @@
1
+ import { SourceFile } from '../project/index.js';
2
+ import * as tree from '../tree/index.js';
3
+ import { SourceFileEdit } from './Types.js';
4
+ export declare class AddPropertyAssignmentService {
5
+ createEditWithAssignment(sourceFile: SourceFile, assignmentNode: tree.AssignmentStatement, value: string, propertyName: string | undefined): SourceFileEdit | undefined;
6
+ /**
7
+ * Метод определяет, где нужно расположить присваивание нового значение: сразу после присваивания предыдущего
8
+ * значения, или в конце подпрограммы.
9
+ * Если предыдущее присваивание не вложено ни в какие конструкции ветвления, присваивание нового значение можно
10
+ * расположить сразу после. Иначе присваивание необходимо расположить в конце подпрограммы (после всех ветвлений).
11
+ */
12
+ private ifShouldBeAssignedAtTheEndOfSubProgramThenBody;
13
+ private getContainingSubProgram;
14
+ private detectNewLine;
15
+ }
@@ -0,0 +1,95 @@
1
+ import { Analyzer } from '../analysis/index.js';
2
+ import { SourceFile } from '../project/index.js';
3
+ export declare class CompletionService {
4
+ private readonly _cache;
5
+ private _sourceFile;
6
+ private _analyzer;
7
+ private _locale;
8
+ private _dialect;
9
+ private readonly _completionItemInfoContext;
10
+ private get completionItemInfoContext();
11
+ getCompletions(analyzer: Analyzer, sourceFile: SourceFile, offset: number): readonly CompletionItem[];
12
+ resolveCompletionItem(cacheId: number, indexInCache: number): ResolutionResult;
13
+ private createSemanticContextAtPosition;
14
+ private createPositionDescription;
15
+ private getCompletionContext;
16
+ private tryGetTopLevelTranslationCompletionContext;
17
+ private tryGetTypeMemberTranslationCompletionContext;
18
+ private getTargetTypesAndTargetSignaturesParameters;
19
+ private getTargetTypesAndTargetSignaturesParametersFromSignatures;
20
+ private tokenOrKeywordIsPackageImportListChild;
21
+ private getCompletionItemInfos;
22
+ private getKeywordCompletionItemInfos;
23
+ private isRepeatWhileKeywordContext;
24
+ private isModifierLevelContext;
25
+ private isElseOrElseIfKeywordContext;
26
+ private isRunStatementAccessorListContext;
27
+ private isTypeKindCompletionContext;
28
+ private isFromKeywordContext;
29
+ private isCaseKeywordContext;
30
+ private getExpressionCompletionItemInfos;
31
+ private prioritizeItemsFromUnionType;
32
+ private getTargetVariantType;
33
+ private getCompletionItemInfosForTargetSignaturesValueParameters;
34
+ private getScopeCompletionItemInfos;
35
+ private getTypeCompletionItemInfos;
36
+ private getEntityFromType;
37
+ private getTypeCompletionItemInfosFromPackage;
38
+ private getTypeCompletionItemInfosFromPackageNameSegment;
39
+ private getTypeCompletionItemInfosFromScope;
40
+ private getPackageAliasMemberCompletionItemInfos;
41
+ private getPackageNameSegmentCompletionItemInfos;
42
+ private packageMemberToCompletionItemInfo;
43
+ private createTypeEntityCompletionItemInfo;
44
+ private getTypeMemberCompletionItemInfos;
45
+ private getPackageImportCompletionItemInfos;
46
+ private getTopLevelAliasListCompletionItemInfos;
47
+ private getTypeAliasMemberListItemInfos;
48
+ private mergeOverloadedMethods;
49
+ private removeCompletionItemsWithDuplicateLabels;
50
+ private convertCompletionItemInfos;
51
+ private convertCompletionItemInfo;
52
+ }
53
+ export declare class CompletionItem {
54
+ readonly label: string;
55
+ readonly kind: CompletionItemKind;
56
+ readonly details: string | undefined;
57
+ readonly insertText: string | undefined;
58
+ readonly sortText: string | undefined;
59
+ readonly cacheId: number;
60
+ readonly indexInCache: number;
61
+ constructor(label: string, kind: CompletionItemKind, details: string | undefined, insertText: string | undefined, sortText: string | undefined, cacheId: number, indexInCache: number);
62
+ }
63
+ export declare const enum CompletionItemKind {
64
+ PackageNameSegment = 0,
65
+ PackageAlias = 1,
66
+ TypeVariable = 2,
67
+ TypeMethod = 3,
68
+ TypeIndexer = 4,
69
+ TypeConstructor = 5,
70
+ PackageVariable = 6,
71
+ PackageMethod = 7,
72
+ LocalVariable = 8,
73
+ ParameterVariable = 9,
74
+ NestedMethod = 10,
75
+ Variant = 11,
76
+ RefObjectType = 12,
77
+ PlainObjectType = 13,
78
+ AspectType = 14,
79
+ VariantType = 15,
80
+ TypeParameter = 16,
81
+ MethodType = 17,
82
+ AliasType = 18,
83
+ InvalidType = 19,
84
+ Keyword = 20,
85
+ TargetSignatureParameter = 21
86
+ }
87
+ export type ResolutionResult = ResolutionResult_item | ResolutionResult_notInCache;
88
+ export declare class ResolutionResult_item {
89
+ readonly value: CompletionItem;
90
+ readonly kind = "item";
91
+ constructor(value: CompletionItem);
92
+ }
93
+ export declare class ResolutionResult_notInCache {
94
+ readonly kind = "not-in-cache";
95
+ }