@artel/artc 0.6.25229 → 0.6.25230

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 (44) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +2 -4
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +39 -39
  5. package/build/{chunk-4UBNOTKC.js → chunk-3LHZOXTJ.js} +2 -2
  6. package/build/{chunk-2FHW6RUS.js → chunk-WS3ILL2L.js} +1 -1
  7. package/build/{chunk-6YPLDA76.js → chunk-ZUIGWNN5.js} +713 -564
  8. package/build/types/analysis/Analyzer.d.ts +47 -8
  9. package/build/types/analysis/BaseExpressionMeaning.d.ts +1 -1
  10. package/build/types/analysis/DiagnosticCollector.d.ts +0 -1
  11. package/build/types/analysis/{OperationOverloadResolver.d.ts → FunctionOverloadResolver.d.ts} +2 -0
  12. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +2 -2
  13. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +4 -4
  14. package/build/types/analysis/ModifierFlags.d.ts +1 -1
  15. package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +2 -3
  16. package/build/types/analysis/control-flow/NarrowableReference.d.ts +4 -4
  17. package/build/types/analysis/control-flow/Nodes.d.ts +1 -1
  18. package/build/types/analysis/semantic-context/Declarations.d.ts +2 -2
  19. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +0 -1
  20. package/build/types/emitter/Entities.d.ts +3 -3
  21. package/build/types/entities/AliasTypeEntity.d.ts +1 -1
  22. package/build/types/entities/ConstructorEntity.d.ts +8 -8
  23. package/build/types/entities/DereferenceOperatorEntity.d.ts +7 -7
  24. package/build/types/entities/DestructorEntity.d.ts +3 -3
  25. package/build/types/entities/FunctionEntity.d.ts +14 -14
  26. package/build/types/entities/FunctionTypeEntity.d.ts +1 -1
  27. package/build/types/entities/GetterEntity.d.ts +4 -4
  28. package/build/types/entities/IndexerEntity.d.ts +8 -8
  29. package/build/types/entities/OperatorEntity.d.ts +7 -7
  30. package/build/types/entities/SetterEntity.d.ts +4 -4
  31. package/build/types/entities/StructuredTypeEntity.d.ts +1 -1
  32. package/build/types/entities/TypeExtensionEntity.d.ts +1 -1
  33. package/build/types/entities/VariableEntity.d.ts +28 -28
  34. package/build/types/entities/VariantTypeEntity.d.ts +1 -1
  35. package/build/types/entities/index.d.ts +28 -0
  36. package/build/types/services/DisplayService.d.ts +2 -2
  37. package/build/types/services/NodeSemanticInfo.d.ts +3 -3
  38. package/build/types/tree/KeywordKind.d.ts +1 -1
  39. package/build/types/tree/green/Nodes.d.ts +1 -1
  40. package/build/types/tree/red/Nodes.d.ts +1 -1
  41. package/build/types/ts-interop/Entities.d.ts +24 -24
  42. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
  43. package/build/types/types/TypeMembers.d.ts +5 -5
  44. package/package.json +4 -4
package/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-4UBNOTKC.js";
5
- import "./chunk-2FHW6RUS.js";
4
+ } from "./chunk-3LHZOXTJ.js";
5
+ import "./chunk-WS3ILL2L.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-6YPLDA76.js";
8
+ } from "./chunk-ZUIGWNN5.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-2FHW6RUS.js";
3
+ } from "../chunk-WS3ILL2L.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionValueParameter,
@@ -226,7 +226,6 @@ import {
226
226
  TypeMemberLookup,
227
227
  TypeMemberLookupOptions,
228
228
  TypeParameterConstraint,
229
- TypeUtils,
230
229
  UnfinishedIntrinsicAnonymousFunctionTypeEntity,
231
230
  UnfinishedIntrinsicAnonymousStructuredTypeEntity,
232
231
  UnfinishedIntrinsicPackageFunctionTypeEntity,
@@ -313,7 +312,7 @@ import {
313
312
  withoutQuotes,
314
313
  withoutTemplateQuotes,
315
314
  yieldExecution
316
- } from "../chunk-6YPLDA76.js";
315
+ } from "../chunk-ZUIGWNN5.js";
317
316
  export {
318
317
  AccessKind,
319
318
  AccessedFunctionValueParameter,
@@ -536,7 +535,6 @@ export {
536
535
  TypeMemberLookup,
537
536
  TypeMemberLookupOptions,
538
537
  TypeParameterConstraint,
539
- TypeUtils,
540
538
  UnfinishedIntrinsicAnonymousFunctionTypeEntity,
541
539
  UnfinishedIntrinsicAnonymousStructuredTypeEntity,
542
540
  UnfinishedIntrinsicPackageFunctionTypeEntity,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-4UBNOTKC.js";
10
- import "../chunk-2FHW6RUS.js";
11
- import "../chunk-6YPLDA76.js";
9
+ } from "../chunk-3LHZOXTJ.js";
10
+ import "../chunk-WS3ILL2L.js";
11
+ import "../chunk-ZUIGWNN5.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-6YPLDA76.js";
185
+ } from "../chunk-ZUIGWNN5.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -2166,7 +2166,7 @@ var modifierSortOrder = {
2166
2166
  [41 /* Static */]: 1,
2167
2167
  [17 /* Basic */]: 2,
2168
2168
  [38 /* Abstract */]: 3,
2169
- [39 /* Redefined */]: 4,
2169
+ [39 /* Override */]: 4,
2170
2170
  [40 /* Async */]: 5,
2171
2171
  [36 /* Const */]: 6
2172
2172
  };
@@ -3652,7 +3652,7 @@ var CompletionService = class {
3652
3652
  kinds.add(18 /* Import */).add(7 /* Run */).add(31 /* Creation */).add(12 /* Function */).add(17 /* Basic */).add(16 /* Type */).add(58 /* Get */).add(59 /* Set */).add(55 /* Translations */);
3653
3653
  }
3654
3654
  if (syntaxContext.isPackageMemberDeclarationListContext || syntaxContext.isTypeMemberDeclarationListContext) {
3655
- kinds.add(37 /* Hidden */).add(41 /* Static */).add(17 /* Basic */).add(38 /* Abstract */).add(39 /* Redefined */).add(40 /* Async */).add(36 /* Const */);
3655
+ kinds.add(37 /* Hidden */).add(41 /* Static */).add(17 /* Basic */).add(38 /* Abstract */).add(39 /* Override */).add(40 /* Async */).add(36 /* Const */);
3656
3656
  }
3657
3657
  if (syntaxContext.isTypeMemberDeclarationListContext) {
3658
3658
  kinds.add(31 /* Creation */).add(12 /* Function */).add(47 /* Destruction */).add(58 /* Get */).add(59 /* Set */);
@@ -4069,7 +4069,7 @@ var CompletionService = class {
4069
4069
  m.name,
4070
4070
  m.requiresExplicitOriginalName
4071
4071
  );
4072
- case "variable":
4072
+ case "field":
4073
4073
  return new FieldCompletionItemInfo(
4074
4074
  this.completionItemInfoContext,
4075
4075
  m.value,
@@ -4604,22 +4604,22 @@ var PackageAliasEntityCompletionItemInfo = class {
4604
4604
  }
4605
4605
  };
4606
4606
  var FieldCompletionItemInfo = class {
4607
- constructor(ctx, variable, name, isNameExplicitlyOriginal) {
4607
+ constructor(ctx, field, name, isNameExplicitlyOriginal) {
4608
4608
  this.ctx = ctx;
4609
- this.variable = variable;
4609
+ this.field = field;
4610
4610
  this.name = name;
4611
4611
  this.isNameExplicitlyOriginal = isNameExplicitlyOriginal;
4612
- this.kind = "type-variable";
4612
+ this.kind = "field";
4613
4613
  }
4614
4614
  getLabel() {
4615
4615
  return `${this.isNameExplicitlyOriginal ? "~" : ""}${this.ctx.getInsertTextForName(this.name.value)}`;
4616
4616
  }
4617
4617
  getCompletionItemKind() {
4618
- return this.variable.isVariant() ? 12 /* Variant */ : 2 /* Field */;
4618
+ return this.field.isVariant() ? 12 /* Variant */ : 2 /* Field */;
4619
4619
  }
4620
4620
  getDetails() {
4621
4621
  return this.ctx.displayService.displayVariableDeclaration(
4622
- new VariableDeclaration_typeMember(this.variable, this.name.localization)
4622
+ new VariableDeclaration_typeMember(this.field, this.name.localization)
4623
4623
  );
4624
4624
  }
4625
4625
  getInsertText() {
@@ -6077,10 +6077,10 @@ var NodeSemanticInfoService = class {
6077
6077
  narrowedType = analyzer.type.ofExpression(node);
6078
6078
  }
6079
6079
  const target = new SimpleWithLocalization(new FieldReferenceTarget(
6080
- meaning.variable.value,
6080
+ meaning.field.value,
6081
6081
  meaning.accessKind,
6082
6082
  narrowedType
6083
- ), meaning.variable.localization);
6083
+ ), meaning.field.localization);
6084
6084
  result = new ReferenceNodeSemanticInfo([target], false);
6085
6085
  break;
6086
6086
  }
@@ -6090,10 +6090,10 @@ var NodeSemanticInfoService = class {
6090
6090
  narrowedType = analyzer.type.ofExpression(node);
6091
6091
  }
6092
6092
  const target = new SimpleWithLocalization(new FieldReferenceTarget(
6093
- meaning.variable.value,
6093
+ meaning.field.value,
6094
6094
  meaning.accessKind,
6095
6095
  narrowedType
6096
- ), meaning.variable.localization);
6096
+ ), meaning.field.localization);
6097
6097
  result = new ReferenceNodeSemanticInfo([target], false);
6098
6098
  break;
6099
6099
  }
@@ -6801,11 +6801,11 @@ var EntityReferenceTarget = class {
6801
6801
  }
6802
6802
  };
6803
6803
  var FieldReferenceTarget = class {
6804
- constructor(variable, accessKind, narrowedType) {
6805
- this.variable = variable;
6804
+ constructor(field, accessKind, narrowedType) {
6805
+ this.field = field;
6806
6806
  this.accessKind = accessKind;
6807
6807
  this.narrowedType = narrowedType;
6808
- this.kind = "type-variable";
6808
+ this.kind = "field";
6809
6809
  }
6810
6810
  };
6811
6811
  var TypeValueParameterReferenceTarget = class {
@@ -7105,8 +7105,8 @@ var DefinitionService = class {
7105
7105
  return this.getSourceLocationsOfVariableEntity(analyzer, target.entity);
7106
7106
  }
7107
7107
  return getEntitySourceLocations(analyzer, target.entity);
7108
- case "type-variable":
7109
- return this.getSourceLocationsOfVariableEntity(analyzer, target.variable.getEntity());
7108
+ case "field":
7109
+ return this.getSourceLocationsOfVariableEntity(analyzer, target.field.getEntity());
7110
7110
  case "type-constructor":
7111
7111
  return getEntitySourceLocations(analyzer, target.constructor_.getEntity());
7112
7112
  case "accessed-function":
@@ -7143,8 +7143,8 @@ var DefinitionService = class {
7143
7143
  switch (target.kind) {
7144
7144
  case "entity":
7145
7145
  return target.entity;
7146
- case "type-variable":
7147
- return target.variable.getEntity();
7146
+ case "field":
7147
+ return target.field.getEntity();
7148
7148
  case "type-value-parameter":
7149
7149
  return target.parameter.getEntity();
7150
7150
  case "type-constructor":
@@ -7557,9 +7557,9 @@ var ReferencesService = class {
7557
7557
  target.localization,
7558
7558
  accessKindToReferenceKind(target.value.accessKind)
7559
7559
  );
7560
- case "type-variable":
7560
+ case "field":
7561
7561
  return new DefinitionInfo(
7562
- target.value.variable.getEntity(),
7562
+ target.value.field.getEntity(),
7563
7563
  target.localization,
7564
7564
  accessKindToReferenceKind(target.value.accessKind)
7565
7565
  );
@@ -8023,9 +8023,9 @@ var HoverService = class {
8023
8023
  firstTarget.value.narrowedType,
8024
8024
  range
8025
8025
  );
8026
- case "type-variable": {
8026
+ case "field": {
8027
8027
  const declaration = new VariableDeclaration_typeMember(
8028
- firstTarget.value.variable,
8028
+ firstTarget.value.field,
8029
8029
  firstTarget.localization,
8030
8030
  firstTarget.value.narrowedType
8031
8031
  );
@@ -8511,8 +8511,8 @@ var RenameService = class {
8511
8511
  case "entity":
8512
8512
  canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.entity);
8513
8513
  break;
8514
- case "type-variable":
8515
- canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.variable.getEntity());
8514
+ case "field":
8515
+ canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.field.getEntity());
8516
8516
  break;
8517
8517
  case "type-value-parameter":
8518
8518
  canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.parameter.getEntity());
@@ -8715,7 +8715,7 @@ var SemanticTokensService = class {
8715
8715
  if (node.kind === 78 /* MemberAccessExpression */) {
8716
8716
  const meaning = analyzer.resolveMemberAccessExpression(node).meaning;
8717
8717
  if (meaning.kind === "static-field-access") {
8718
- const entity = meaning.variable.value.getEntity();
8718
+ const entity = meaning.field.value.getEntity();
8719
8719
  if (entity.subkind === "field" && entity.isVariant()) {
8720
8720
  result.push(
8721
8721
  new SemanticToken(
@@ -11988,14 +11988,14 @@ var EntityToSyntax = class {
11988
11988
  if (entity.isStatic()) {
11989
11989
  commonModifiers.push(SyntaxFactory.modifier(41 /* Static */));
11990
11990
  }
11991
- if (entity.isAbstract()) {
11991
+ if (entity.markedAbstract()) {
11992
11992
  commonModifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
11993
11993
  }
11994
- if (entity.isBasic()) {
11994
+ if (entity.markedBasic()) {
11995
11995
  commonModifiers.push(SyntaxFactory.modifier(17 /* Basic */));
11996
11996
  }
11997
- if (entity.isOverridden()) {
11998
- commonModifiers.push(SyntaxFactory.modifier(39 /* Redefined */));
11997
+ if (entity.isOverride()) {
11998
+ commonModifiers.push(SyntaxFactory.modifier(39 /* Override */));
11999
11999
  }
12000
12000
  const name = this.getEntityName(entity);
12001
12001
  const type = this.convertType(entity.getType());
@@ -12043,14 +12043,14 @@ var EntityToSyntax = class {
12043
12043
  if (entity.isStatic()) {
12044
12044
  modifiers.push(SyntaxFactory.modifier(41 /* Static */));
12045
12045
  }
12046
- if (entity.isAbstract()) {
12046
+ if (entity.markedAbstract()) {
12047
12047
  modifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12048
12048
  }
12049
- if (entity.isBasic()) {
12049
+ if (entity.markedBasic()) {
12050
12050
  modifiers.push(SyntaxFactory.modifier(17 /* Basic */));
12051
12051
  }
12052
- if (entity.isOverridden()) {
12053
- modifiers.push(SyntaxFactory.modifier(39 /* Redefined */));
12052
+ if (entity.isOverride()) {
12053
+ modifiers.push(SyntaxFactory.modifier(39 /* Override */));
12054
12054
  }
12055
12055
  const name = this.getEntityName(entity);
12056
12056
  const typeParameters = this.convertTypeParameters(entity.getTypeParameters());
@@ -12065,7 +12065,7 @@ var EntityToSyntax = class {
12065
12065
  if (isHidden !== void 0) {
12066
12066
  modifiers.push(this.createHidingModifier(isHidden));
12067
12067
  }
12068
- if (entity.isAbstract()) {
12068
+ if (entity.markedAbstract()) {
12069
12069
  modifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12070
12070
  }
12071
12071
  const parameters = this.convertValueParameters(entity.getValueParameters());
@@ -12078,7 +12078,7 @@ var EntityToSyntax = class {
12078
12078
  if (isHidden !== void 0) {
12079
12079
  modifiers.push(this.createHidingModifier(isHidden));
12080
12080
  }
12081
- if (entity.isAbstract()) {
12081
+ if (entity.markedAbstract()) {
12082
12082
  modifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12083
12083
  }
12084
12084
  const parameters = this.convertValueParameters(entity.getValueParameters());
@@ -12089,7 +12089,7 @@ var EntityToSyntax = class {
12089
12089
  if (entity.isStatic()) {
12090
12090
  commonModifiers.push(SyntaxFactory.modifier(41 /* Static */));
12091
12091
  }
12092
- if (entity.isAbstract()) {
12092
+ if (entity.markedAbstract()) {
12093
12093
  commonModifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12094
12094
  }
12095
12095
  const parameters = this.convertValueParameters(entity.getValueParameters());
@@ -12929,7 +12929,7 @@ var LanguageServer = class {
12929
12929
  Logger.info("\u041D\u0430\u0447\u0430\u0442\u0430 \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432.");
12930
12930
  const initializeStartTime = performance.now();
12931
12931
  this._clientCapabilities = params.capabilities;
12932
- setUserLocale("ru");
12932
+ setUserLocale(params.initializationOptions?.localeOverride ?? params.locale ?? "en");
12933
12933
  let workspaceFolderUris;
12934
12934
  if (params.initializationOptions?.workspaceFoldersOverride !== void 0) {
12935
12935
  workspaceFolderUris = params.initializationOptions.workspaceFoldersOverride.map((f) => this.convertVscodeUriToUri(URI2.parse(f.uri)));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-2FHW6RUS.js";
3
+ } from "./chunk-WS3ILL2L.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -14,7 +14,7 @@ import {
14
14
  __async,
15
15
  performanceMeasurementStageNames,
16
16
  performanceMeasurementStages
17
- } from "./chunk-6YPLDA76.js";
17
+ } from "./chunk-ZUIGWNN5.js";
18
18
 
19
19
  // source/executor/FileSystemUri.ts
20
20
  import { platform } from "os";
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-6YPLDA76.js";
13
+ } from "./chunk-ZUIGWNN5.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {