@artel/artc 0.6.25280 → 0.6.25282

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 (86) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +16 -10
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +315 -219
  5. package/build/{chunk-YIFO3FBO.js → chunk-3DN3M64Y.js} +3 -3
  6. package/build/{chunk-W3UL6UED.js → chunk-DURHSZYF.js} +5 -4
  7. package/build/{chunk-LLI2DYRX.js → chunk-VVFLEWSA.js} +3236 -3331
  8. package/build/types/analysis/AccessedFunction.d.ts +4 -0
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
  10. package/build/types/analysis/Analyzer.d.ts +35 -48
  11. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
  12. package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
  13. package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
  14. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
  15. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
  16. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
  17. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
  18. package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
  19. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
  20. package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
  21. package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
  22. package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +8 -4
  23. package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
  24. package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
  25. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
  26. package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
  27. package/build/types/analysis/TagMeaning.d.ts +4 -4
  28. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
  29. package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
  30. package/build/types/analysis/Utils.d.ts +1 -0
  31. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
  32. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -4
  33. package/build/types/api/Api.d.ts +4 -5
  34. package/build/types/common/ArrayUtils.d.ts +3 -1
  35. package/build/types/common/Displayable.d.ts +4 -4
  36. package/build/types/common/FormatString.d.ts +1 -1
  37. package/build/types/common/index.d.ts +3 -0
  38. package/build/types/diagnostic/DiagnosticCode.d.ts +238 -238
  39. package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
  40. package/build/types/emitter/IrBuilder.d.ts +3 -1
  41. package/build/types/emitter/IrFactory.d.ts +2 -2
  42. package/build/types/emitter/Transformer.d.ts +3 -3
  43. package/build/types/emitter/ir/Nodes.d.ts +6 -6
  44. package/build/types/emitter/ir/types.d.ts +2 -2
  45. package/build/types/entities/Entity.d.ts +1 -1
  46. package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
  47. package/build/types/entities/PackageEntityMembers.d.ts +22 -0
  48. package/build/types/entities/index.d.ts +1 -1
  49. package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
  50. package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
  51. package/build/types/entities/interfaces/VariableEntity.d.ts +1 -1
  52. package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
  53. package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
  54. package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
  55. package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
  56. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
  57. package/build/types/project/PackageContent.d.ts +1 -1
  58. package/build/types/project/SourcePackage.d.ts +3 -1
  59. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  60. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +4 -4
  61. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +4 -4
  62. package/build/types/services/AddBlockToScriptService.d.ts +17 -0
  63. package/build/types/services/CustomRequests.d.ts +11 -2
  64. package/build/types/services/DisplayService.d.ts +1 -2
  65. package/build/types/services/EvaluatableExpressionService.d.ts +1 -1
  66. package/build/types/services/LanguageServer.d.ts +3 -1
  67. package/build/types/services/SourceFileItemsService.d.ts +1 -1
  68. package/build/types/tree/NodeKind.d.ts +1 -1
  69. package/build/types/tree/Nodes.d.ts +6 -6
  70. package/build/types/tree/SyntaxFactory.d.ts +1 -1
  71. package/build/types/tree/SyntaxToCode.d.ts +1 -1
  72. package/build/types/tree/Token.d.ts +4 -3
  73. package/build/types/tree/TokenKind.d.ts +58 -60
  74. package/build/types/types/AliasType.d.ts +1 -1
  75. package/build/types/types/FunctionType.d.ts +2 -2
  76. package/build/types/types/IntersectionType.d.ts +1 -1
  77. package/build/types/types/ParameterType.d.ts +1 -1
  78. package/build/types/types/Substitutions.d.ts +1 -1
  79. package/build/types/types/Type.d.ts +1 -4
  80. package/build/types/types/TypeMembers.d.ts +8 -8
  81. package/build/types/types/UnionType.d.ts +1 -1
  82. package/build/types/types/VariantType.d.ts +1 -1
  83. package/package.json +1 -1
  84. package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
  85. package/build/types/analysis/SourceFileMembers.d.ts +0 -22
  86. package/build/types/entities/PackageMembers.d.ts +0 -15
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-W3UL6UED.js";
3
+ } from "./chunk-DURHSZYF.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -15,7 +15,7 @@ import {
15
15
  __async,
16
16
  performanceMeasurementStageNames,
17
17
  performanceMeasurementStages
18
- } from "./chunk-LLI2DYRX.js";
18
+ } from "./chunk-VVFLEWSA.js";
19
19
 
20
20
  // source/executor/FileSystemUri.ts
21
21
  import { platform } from "os";
@@ -217,7 +217,7 @@ var NodeCompiler = class {
217
217
  const standardLibraryUri = yield this.findStandardTypeScriptLibrary(nodeModulesSearchPaths, defaultTsLibraryPath);
218
218
  if (standardLibraryUri === void 0) {
219
219
  const diagnostic = new Diagnostic(DiagnosticData.withCode(
220
- 401 /* CannotFindTsLibDirectoryBaseSearchPaths0 */,
220
+ 3e3 /* CannotFindTsLibDirectoryBaseSearchPaths0 */,
221
221
  [nodeModulesSearchPaths.map((p) => `'${p}'`).join(", ")]
222
222
  ), void 0);
223
223
  diagnostics?.addDiagnostic(diagnostic);
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-LLI2DYRX.js";
13
+ } from "./chunk-VVFLEWSA.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
@@ -54,12 +54,13 @@ var Compiler = class {
54
54
  const sourcePackageGraph = new SourcePackageDependencyGraph(analyzer);
55
55
  const packages = Array.from(sourcePackageGraph.packagesForTargetPlatform(0 /* JavaScript */));
56
56
  for (const pkg of packages) {
57
+ const isProgramOrTextTranslationPackage = pkg.kind === "program" || pkg.kind === "text-translation";
57
58
  for (const sourceFile of pkg.sourceFiles) {
58
59
  const sourceFileAnalyzer = new SourceFileAnalyzer(analyzer, sourceFile);
59
60
  const fileDiagnostics = yield sourceFileAnalyzer.analyze(taskController);
60
61
  for (const diagnostic of fileDiagnostics) {
61
62
  diagnostics?.addDiagnostic(diagnostic);
62
- hasErrorsPreventingCompilation ||= pkg.kind === "program" && fileDiagnostics.some((d) => d.data.kind === 0 /* Error */);
63
+ hasErrorsPreventingCompilation ||= isProgramOrTextTranslationPackage && diagnostic.data.kind === 0 /* Error */;
63
64
  }
64
65
  }
65
66
  }
@@ -70,7 +71,7 @@ var Compiler = class {
70
71
  return __async(this, null, function* () {
71
72
  if (analyzer.compilation.mainPackage === void 0) {
72
73
  diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
73
- 403 /* ProgramWithoutMainPackageCannotBeCompiled */
74
+ 3002 /* ProgramWithoutMainPackageCannotBeCompiled */
74
75
  ), void 0));
75
76
  return void 0;
76
77
  }
@@ -84,7 +85,7 @@ var Compiler = class {
84
85
  return __async(this, null, function* () {
85
86
  if (analyzer.compilation.mainPackage === void 0) {
86
87
  _diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
87
- 403 /* ProgramWithoutMainPackageCannotBeCompiled */
88
+ 3002 /* ProgramWithoutMainPackageCannotBeCompiled */
88
89
  ), void 0));
89
90
  return "";
90
91
  }