@artel/artc 0.6.25207 → 0.6.25209

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 (101) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +36 -20
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +9923 -9250
  5. package/build/{chunk-FYWHIGGV.js → chunk-4EDLYSNW.js} +11 -8
  6. package/build/{chunk-F6DF37J3.js → chunk-5SWGY25I.js} +39172 -46399
  7. package/build/{chunk-OORYH37I.js → chunk-GKEW2LBL.js} +27 -14
  8. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +14 -10
  9. package/build/types/analysis/Analyzer.d.ts +27 -11
  10. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +17 -1
  11. package/build/types/analysis/BaseExpressionMeaning.d.ts +17 -1
  12. package/build/types/analysis/CallExpressionMeaning.d.ts +17 -1
  13. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +6 -1
  14. package/build/types/analysis/DereferencedVariableAccess.d.ts +14 -0
  15. package/build/types/analysis/DiagnosticCollector.d.ts +3 -0
  16. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +2 -5
  17. package/build/types/analysis/IndexedAccess.d.ts +14 -0
  18. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +6 -3
  19. package/build/types/analysis/ObjectExpressionMeaning.d.ts +19 -3
  20. package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +2 -4
  21. package/build/types/analysis/SemanticContext.d.ts +4 -4
  22. package/build/types/analysis/VariableAccess.d.ts +6 -2
  23. package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
  24. package/build/types/analysis/index.d.ts +4 -2
  25. package/build/types/api/Api.d.ts +2 -2
  26. package/build/types/common/AccessKind.d.ts +2 -1
  27. package/build/types/common/Constants.d.ts +1 -1
  28. package/build/types/common/JavaScriptIdentifier.d.ts +6 -0
  29. package/build/types/common/Logger.d.ts +1 -0
  30. package/build/types/common/Name.d.ts +18 -21
  31. package/build/types/common/Query.d.ts +6 -1
  32. package/build/types/common/TreeQuery.d.ts +0 -2
  33. package/build/types/common/index.d.ts +2 -1
  34. package/build/types/emitter/Emitter.d.ts +50 -16
  35. package/build/types/emitter/EmitterContext.d.ts +42 -337
  36. package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +55 -17
  37. package/build/types/emitter/Entities.d.ts +144 -0
  38. package/build/types/emitter/EntityMap.d.ts +45 -0
  39. package/build/types/emitter/ExpressionTransformationResult.d.ts +1 -1
  40. package/build/types/emitter/GeneralLowering.d.ts +4 -68
  41. package/build/types/emitter/Internal.d.ts +0 -1
  42. package/build/types/emitter/IrBuilder.d.ts +27 -17
  43. package/build/types/emitter/IrToJs.d.ts +17 -11
  44. package/build/types/emitter/StatementTransformationResult.d.ts +5 -2
  45. package/build/types/emitter/Transformer.d.ts +21 -93
  46. package/build/types/emitter/ir/AccessedEntities.d.ts +5 -11
  47. package/build/types/emitter/ir/ComputedAccess.d.ts +19 -0
  48. package/build/types/emitter/ir/LoweringState.d.ts +25 -0
  49. package/build/types/emitter/ir/Nodes.d.ts +531 -1109
  50. package/build/types/emitter/ir/index.d.ts +3 -1
  51. package/build/types/emitter/ir/types.d.ts +6 -7
  52. package/build/types/entities/BinaryOperatorEntity.d.ts +3 -0
  53. package/build/types/entities/ConstructorEntity.d.ts +17 -21
  54. package/build/types/entities/PackageMembers.d.ts +2 -2
  55. package/build/types/entities/TypeEntityMembers.d.ts +2 -2
  56. package/build/types/entities/UnaryOperatorEntity.d.ts +3 -0
  57. package/build/types/entities/Variants.d.ts +2 -2
  58. package/build/types/entities/index.d.ts +4 -2
  59. package/build/types/executor/Compiler.d.ts +6 -1
  60. package/build/types/executor/NodeCompiler.d.ts +7 -3
  61. package/build/types/parser/Scanner.d.ts +1 -0
  62. package/build/types/project/CompilationLoader.d.ts +17 -22
  63. package/build/types/project/PackageContent.d.ts +16 -0
  64. package/build/types/project/PackageContentCreator.d.ts +3 -0
  65. package/build/types/project/SourceFile.d.ts +1 -1
  66. package/build/types/project/SourcePackage.d.ts +3 -3
  67. package/build/types/project/configuration/ConfigurationConverter.d.ts +2 -3
  68. package/build/types/project/configuration/ConfigurationTranslator.d.ts +23 -0
  69. package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +1 -27
  70. package/build/types/project/index.d.ts +3 -1
  71. package/build/types/services/AddPropertyAssignmentService.d.ts +2 -2
  72. package/build/types/services/CodeActionsService.d.ts +22 -0
  73. package/build/types/services/DefinitionService.d.ts +2 -2
  74. package/build/types/services/LanguageServer.d.ts +11 -2
  75. package/build/types/services/NodeSemanticInfo.d.ts +13 -7
  76. package/build/types/services/ReferencesService.d.ts +1 -3
  77. package/build/types/services/TranslationsGenerationService.d.ts +7 -0
  78. package/build/types/services/Types.d.ts +10 -0
  79. package/build/types/services/source-generation/SourceGenerationService.d.ts +6 -4
  80. package/build/types/services/workspace/CompilationController.d.ts +4 -3
  81. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +5 -2
  82. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +1 -1
  83. package/build/types/services/workspace/Workspace.d.ts +6 -2
  84. package/build/types/services/workspace/WorkspaceFiles.d.ts +2 -2
  85. package/build/types/tree/KeywordKind.d.ts +47 -46
  86. package/build/types/tree/green/SyntaxToCode.d.ts +4 -3
  87. package/build/types/ts-interop/TsInteropContext.d.ts +2 -2
  88. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +3 -3
  89. package/build/types/ts-interop/Utils.d.ts +39 -33
  90. package/package.json +6 -6
  91. package/build/types/analysis/IndexerAccess.d.ts +0 -10
  92. package/build/types/emitter/EmitterPackage.d.ts +0 -60
  93. package/build/types/emitter/EntityNameProviders.d.ts +0 -33
  94. package/build/types/generated/BuiltInSystemPackages.d.ts +0 -3
  95. package/build/types/old/Executor.d.ts +0 -14
  96. package/build/types/old/JavaScriptEmittingVisitor.d.ts +0 -1
  97. package/build/types/old/NzonParser.d.ts +0 -1
  98. package/build/types/old/NzonScanner.d.ts +0 -1
  99. package/build/types/old/NzonSyntax.d.ts +0 -1
  100. package/build/types/old/RemoteWorkspaceFileSystem.d.ts +0 -1
  101. /package/build/types/{old/JavaScriptEmitter.d.ts → emitter/EmitterContextOld.d.ts} +0 -0
@@ -10,22 +10,23 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-F6DF37J3.js";
13
+ } from "./chunk-5SWGY25I.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
17
- static loadCompilation(projectUri, sourcesProvider, tsLibrariesProvider, diagnostics, workspaceUri, standardPackagesUri, cancellationToken) {
17
+ static loadCompilation(projectUri, sourcesProvider, tsLibrariesProvider, diagnostics, options, cancellationToken) {
18
18
  return __async(this, null, function* () {
19
- const config = {
19
+ const loaderOptions = {
20
20
  treatRootAsPackageIfConfigIsMissing: true,
21
- standardPackagesUri
21
+ userStandardPackagesUri: options?.userStandardPackagesUri,
22
+ builtInStandardPackagesUri: options?.builtInsStandardPackagesUri
22
23
  };
23
24
  const { loadResult } = yield CompilationLoader.loadUsingSourcesProvider(
24
25
  projectUri,
25
26
  sourcesProvider,
26
- config,
27
+ loaderOptions,
27
28
  diagnostics,
28
- workspaceUri,
29
+ options?.workspaceUri,
29
30
  DefaultNamesOfDirectoriesToIgnore,
30
31
  cancellationToken
31
32
  );
@@ -71,7 +72,8 @@ var Compiler = class {
71
72
  ), void 0));
72
73
  return void 0;
73
74
  }
74
- yield Emitter.emitToFileSystem(analyzer, outputUri, outputAcceptor, emitOptions, cancellationToken);
75
+ const emitter = yield Emitter.create(analyzer, emitOptions, cancellationToken);
76
+ yield emitter.emitToFileSystem(outputUri, outputAcceptor);
75
77
  const launchUri = outputUri.append(Emitter.LaunchFileName);
76
78
  return launchUri;
77
79
  });
@@ -84,7 +86,8 @@ var Compiler = class {
84
86
  ), void 0));
85
87
  return "";
86
88
  }
87
- return yield Emitter.emitToString(analyzer, emitOptions, cancellationToken);
89
+ const emitter = yield Emitter.create(analyzer, emitOptions, cancellationToken);
90
+ return emitter.emitToString();
88
91
  });
89
92
  }
90
93
  };