@artel/artc 0.6.25208 → 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.
package/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-LZ4IJBSA.js";
5
- import "./chunk-FABHNF5H.js";
4
+ } from "./chunk-GKEW2LBL.js";
5
+ import "./chunk-4EDLYSNW.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-PNUVVKWZ.js";
8
+ } from "./chunk-5SWGY25I.js";
9
9
 
10
10
  // source/Cli.ts
11
11
  function main() {
package/build/api/Api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "../chunk-FABHNF5H.js";
3
+ } from "../chunk-4EDLYSNW.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedMethodValueParameter,
@@ -38,11 +38,13 @@ import {
38
38
  ConfigurationDirectoryNameSet,
39
39
  ConfigurationDirectoryNamesByLocale,
40
40
  ConfigurationFileParser,
41
+ ConstructorParameterInitializingFieldInfo,
41
42
  ConstructorSemanticContext,
42
43
  Debug,
43
44
  DeclaredTypeMemberEntities,
44
45
  DefaultConstructorEntity,
45
46
  DefaultConstructorEntityInfo,
47
+ DefaultConstructorParameterForBaseConstructorInfo,
46
48
  DefaultDialect,
47
49
  DefaultLocale,
48
50
  DefaultNamesOfDirectoriesToIgnore,
@@ -205,7 +207,6 @@ import {
205
207
  SubstitutedMethod_typeMember,
206
208
  SubstitutionApplicationMode,
207
209
  SyntacticAccessKind,
208
- SynthesizedAliasTypeConstructor,
209
210
  Tag2 as Tag,
210
211
  TagArgument_boolean,
211
212
  TagArgument_invalid,
@@ -337,7 +338,7 @@ import {
337
338
  visitChildrenRecursively,
338
339
  withoutQuotes,
339
340
  yieldExecution
340
- } from "../chunk-PNUVVKWZ.js";
341
+ } from "../chunk-5SWGY25I.js";
341
342
  export {
342
343
  AccessKind,
343
344
  AccessedMethodValueParameter,
@@ -376,11 +377,13 @@ export {
376
377
  ConfigurationDirectoryNameSet,
377
378
  ConfigurationDirectoryNamesByLocale,
378
379
  ConfigurationFileParser,
380
+ ConstructorParameterInitializingFieldInfo,
379
381
  ConstructorSemanticContext,
380
382
  Debug,
381
383
  DeclaredTypeMemberEntities,
382
384
  DefaultConstructorEntity,
383
385
  DefaultConstructorEntityInfo,
386
+ DefaultConstructorParameterForBaseConstructorInfo,
384
387
  DefaultDialect,
385
388
  DefaultLocale,
386
389
  DefaultNamesOfDirectoriesToIgnore,
@@ -538,7 +541,6 @@ export {
538
541
  SubstitutedMethod_typeMember,
539
542
  SubstitutionApplicationMode,
540
543
  SyntacticAccessKind,
541
- SynthesizedAliasTypeConstructor,
542
544
  Tag,
543
545
  TagArgument_boolean,
544
546
  TagArgument_invalid,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-LZ4IJBSA.js";
10
- import "../chunk-FABHNF5H.js";
11
- import "../chunk-PNUVVKWZ.js";
9
+ } from "../chunk-GKEW2LBL.js";
10
+ import "../chunk-4EDLYSNW.js";
11
+ import "../chunk-5SWGY25I.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -181,7 +181,7 @@ import {
181
181
  unwrapParenthesizedExpressions,
182
182
  visitChildren,
183
183
  yieldExecution
184
- } from "../chunk-PNUVVKWZ.js";
184
+ } from "../chunk-5SWGY25I.js";
185
185
 
186
186
  // source/services/CustomCommand.ts
187
187
  import * as ls from "vscode-languageserver";
@@ -2468,6 +2468,9 @@ var TranslationsGenerator = class {
2468
2468
  if (constructor.isHidden() !== void 0) {
2469
2469
  continue;
2470
2470
  }
2471
+ if (constructor.isDefault() !== void 0) {
2472
+ continue;
2473
+ }
2471
2474
  if (constructor.getValueParameters().length > 0 && this._translationPackage.getConstructorSignature(constructor) === void 0) {
2472
2475
  result.push(constructor);
2473
2476
  }
@@ -2545,41 +2548,6 @@ var TranslationsGenerator = class {
2545
2548
  }
2546
2549
  return result;
2547
2550
  }
2548
- collectTranslatableTypeMembers(entity) {
2549
- const result = new Array();
2550
- const members = entity.getMembers();
2551
- for (const member of members.getNamedMembers()) {
2552
- if (member.isHidden() !== void 0) {
2553
- continue;
2554
- }
2555
- result.push(member);
2556
- }
2557
- for (const constructor of members.getConstructors()) {
2558
- if (constructor.isHidden() !== void 0) {
2559
- continue;
2560
- }
2561
- if (constructor.getValueParameters().length > 0) {
2562
- result.push(constructor);
2563
- }
2564
- }
2565
- for (const indexer of members.getIndexers()) {
2566
- if (indexer.isHidden() !== void 0) {
2567
- continue;
2568
- }
2569
- if (indexer.getValueParameters().length > 0) {
2570
- result.push(indexer);
2571
- }
2572
- }
2573
- if (entity.kind === 2 /* VariantType */) {
2574
- for (const variant of entity.getVariants().get()) {
2575
- if (variant.isHidden() !== void 0) {
2576
- continue;
2577
- }
2578
- result.push(variant);
2579
- }
2580
- }
2581
- return result;
2582
- }
2583
2551
  createPackageMemberTranslationNode(entity) {
2584
2552
  switch (entity.kind) {
2585
2553
  case 0 /* Variable */:
@@ -2611,7 +2579,7 @@ var TranslationsGenerator = class {
2611
2579
  createPackageTypeWithMembersTranslation(entity) {
2612
2580
  const name = this.getNameText(entity.getName());
2613
2581
  const typeParameters = entity.getTypeParameters().map((p) => this.getNameText(p.getName()));
2614
- const members = Query.from(this.collectTranslatableTypeMembers(entity)).mapAndFilter((e) => this.createTypeMemberTranslationNode(e)).filter((n) => n !== void 0).uniqueWithComparator(compareNodes).toArray();
2582
+ const members = Query.from(this.collectNotTranslatedTypeMembers(entity)).mapAndFilter((e) => this.createTypeMemberTranslationNode(e)).filter((n) => n !== void 0).uniqueWithComparator(compareNodes).toArray();
2615
2583
  return SyntaxFactory.typeTranslation(name, typeParameters, name, typeParameters, members);
2616
2584
  }
2617
2585
  createPackageMethodTypeTranslation(entity) {
@@ -11000,7 +10968,8 @@ var _Workspace = class _Workspace extends ObservableObject6 {
11000
10968
  namesOfDirectoriesToIgnore: config.namesOfDirectoriesToIgnore ?? DefaultNamesOfDirectoriesToIgnore,
11001
10969
  standardPackagesUri: config.standardPackagesUri,
11002
10970
  showErrorMessage: config.showErrorMessage,
11003
- builtInStandardPackagesUri: config.builtInStandardPackagesUri
10971
+ builtInStandardPackagesUri: config.builtInStandardPackagesUri,
10972
+ additionalPackageContents: config.additionalPackageContents
11004
10973
  };
11005
10974
  const workspace = new _Workspace(configInternal);
11006
10975
  return workspace;
@@ -11185,7 +11154,8 @@ var _Workspace = class _Workspace extends ObservableObject6 {
11185
11154
  getTreatRootAsPackageIfConfigIsMissing: () => this.workspaceFolderUris.length === 1,
11186
11155
  standardPackagesUri: this._config.standardPackagesUri,
11187
11156
  showErrorMessage: this._config.showErrorMessage,
11188
- builtInStandardPackagesUri: this._config.builtInStandardPackagesUri
11157
+ builtInStandardPackagesUri: this._config.builtInStandardPackagesUri,
11158
+ additionalPackageContents: this._config.additionalPackageContents
11189
11159
  };
11190
11160
  return new CompilationController(config);
11191
11161
  }
@@ -12408,7 +12378,8 @@ var LanguageServer = class {
12408
12378
  showErrorMessage: (message) => __async(this, null, function* () {
12409
12379
  this._connection.window.showErrorMessage(message);
12410
12380
  }),
12411
- builtInStandardPackagesUri
12381
+ builtInStandardPackagesUri,
12382
+ additionalPackageContents: this._config.additionalPackageContents
12412
12383
  };
12413
12384
  this._workspace = yield atomicRun3(() => Workspace.create(config));
12414
12385
  this._workspace.addWorkspaceFolders(workspaceFolderUris);
@@ -10,22 +10,23 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-PNUVVKWZ.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
19
  const loaderOptions = {
20
20
  treatRootAsPackageIfConfigIsMissing: true,
21
- userStandardPackagesUri: 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
27
  loaderOptions,
27
28
  diagnostics,
28
- workspaceUri,
29
+ options?.workspaceUri,
29
30
  DefaultNamesOfDirectoriesToIgnore,
30
31
  cancellationToken
31
32
  );