@artel/artc 0.6.25228 → 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 (51) 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 +85 -86
  5. package/build/{chunk-FHJJX7JY.js → chunk-3LHZOXTJ.js} +2 -2
  6. package/build/{chunk-F5OW64UA.js → chunk-WS3ILL2L.js} +1 -1
  7. package/build/{chunk-5GSDYTF6.js → chunk-ZUIGWNN5.js} +1165 -986
  8. package/build/types/analysis/Analyzer.d.ts +50 -11
  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 +5 -6
  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/diagnostic/DiagnosticCode.d.ts +25 -26
  21. package/build/types/emitter/Entities.d.ts +7 -7
  22. package/build/types/entities/AliasTypeEntity.d.ts +1 -1
  23. package/build/types/entities/ConstructorEntity.d.ts +8 -8
  24. package/build/types/entities/DereferenceOperatorEntity.d.ts +7 -7
  25. package/build/types/entities/DestructorEntity.d.ts +3 -3
  26. package/build/types/entities/FunctionEntity.d.ts +15 -15
  27. package/build/types/entities/FunctionTypeEntity.d.ts +1 -1
  28. package/build/types/entities/GetterEntity.d.ts +4 -4
  29. package/build/types/entities/IndexerEntity.d.ts +8 -8
  30. package/build/types/entities/OperatorEntity.d.ts +7 -7
  31. package/build/types/entities/SetterEntity.d.ts +4 -4
  32. package/build/types/entities/StructuredTypeEntity.d.ts +1 -1
  33. package/build/types/entities/TypeExtensionEntity.d.ts +1 -1
  34. package/build/types/entities/VariableEntity.d.ts +28 -28
  35. package/build/types/entities/VariantTypeEntity.d.ts +1 -1
  36. package/build/types/entities/index.d.ts +28 -0
  37. package/build/types/project/SourcePackage.d.ts +3 -1
  38. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  39. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +2 -0
  40. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +2 -0
  41. package/build/types/services/DisplayService.d.ts +2 -2
  42. package/build/types/services/NodeSemanticInfo.d.ts +3 -3
  43. package/build/types/tree/KeywordKind.d.ts +21 -22
  44. package/build/types/tree/green/BaseNode.d.ts +3 -1
  45. package/build/types/tree/green/Nodes.d.ts +1 -1
  46. package/build/types/tree/red/BaseNode.d.ts +2 -1
  47. package/build/types/tree/red/Nodes.d.ts +1 -1
  48. package/build/types/ts-interop/Entities.d.ts +24 -24
  49. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
  50. package/build/types/types/TypeMembers.d.ts +5 -5
  51. 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-FHJJX7JY.js";
5
- import "./chunk-F5OW64UA.js";
4
+ } from "./chunk-3LHZOXTJ.js";
5
+ import "./chunk-WS3ILL2L.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-5GSDYTF6.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-F5OW64UA.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-5GSDYTF6.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-FHJJX7JY.js";
10
- import "../chunk-F5OW64UA.js";
11
- import "../chunk-5GSDYTF6.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-5GSDYTF6.js";
185
+ } from "../chunk-ZUIGWNN5.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -545,7 +545,7 @@ var SyntaxFactory = class {
545
545
  static packageVariableGetterDeclaration(tags, modifiers, name, typeSpecifier, body) {
546
546
  const tagList = new TagList(tags);
547
547
  const modifierList = new ModifierList(modifiers);
548
- const getKeyword = this.keyword(59 /* Get */);
548
+ const getKeyword = this.keyword(58 /* Get */);
549
549
  const nameIdentifier = this.createIdentifier(name);
550
550
  const typeAnnotation = this.typeAnnotation(typeSpecifier);
551
551
  return new PackageVariableGetterDeclaration(
@@ -560,7 +560,7 @@ var SyntaxFactory = class {
560
560
  static packageVariableSetterDeclaration(tags, modifiers, name, body) {
561
561
  const tagList = new TagList(tags);
562
562
  const modifierList = new ModifierList(modifiers);
563
- const setKeyword = this.keyword(60 /* Set */);
563
+ const setKeyword = this.keyword(59 /* Set */);
564
564
  const nameIdentifier = this.createIdentifier(name);
565
565
  return new PackageVariableSetterDeclaration(tagList, modifierList, setKeyword, nameIdentifier, body);
566
566
  }
@@ -607,7 +607,7 @@ var SyntaxFactory = class {
607
607
  static fieldGetterDeclaration(tags, modifiers, name, typeSpecifier, body) {
608
608
  const tagList = new TagList(tags);
609
609
  const modifierList = new ModifierList(modifiers);
610
- const getKeyword = this.keyword(59 /* Get */);
610
+ const getKeyword = this.keyword(58 /* Get */);
611
611
  const nameIdentifier = this.createIdentifier(name);
612
612
  const typeAnnotation = this.typeAnnotation(typeSpecifier);
613
613
  return new FieldGetterDeclaration(
@@ -622,7 +622,7 @@ var SyntaxFactory = class {
622
622
  static fieldSetterDeclaration(tags, modifiers, name, body) {
623
623
  const tagList = new TagList(tags);
624
624
  const modifierList = new ModifierList(modifiers);
625
- const setKeyword = this.keyword(60 /* Set */);
625
+ const setKeyword = this.keyword(59 /* Set */);
626
626
  const nameIdentifier = this.createIdentifier(name);
627
627
  return new FieldSetterDeclaration(tagList, modifierList, setKeyword, nameIdentifier, body);
628
628
  }
@@ -655,14 +655,14 @@ var SyntaxFactory = class {
655
655
  static destructorDeclaration(tags, modifiers, parameters, body) {
656
656
  const tagList = new TagList(tags);
657
657
  const modifierList = new ModifierList(modifiers);
658
- const destructionKeyword = this.keyword(48 /* Destruction */);
658
+ const destructionKeyword = this.keyword(47 /* Destruction */);
659
659
  const parameterClause = this.parameterClause(parameters);
660
660
  return new DestructorDeclaration(tagList, modifierList, destructionKeyword, parameterClause, body);
661
661
  }
662
662
  static indexedElementGetterDeclaration(tags, modifiers, parameters, typeSpecifier, body) {
663
663
  const tagList = new TagList(tags);
664
664
  const modifierList = new ModifierList(modifiers);
665
- const getKeyword = this.keyword(59 /* Get */);
665
+ const getKeyword = this.keyword(58 /* Get */);
666
666
  const parameterClause = this.indexParameterClause(parameters);
667
667
  const typeAnnotation = this.typeAnnotation(typeSpecifier);
668
668
  return new IndexedElementGetterDeclaration(
@@ -677,7 +677,7 @@ var SyntaxFactory = class {
677
677
  static indexedElementSetterDeclaration(tags, modifiers, parameters, body) {
678
678
  const tagList = new TagList(tags);
679
679
  const modifierList = new ModifierList(modifiers);
680
- const getKeyword = this.keyword(60 /* Set */);
680
+ const getKeyword = this.keyword(59 /* Set */);
681
681
  const parameterClause = this.indexParameterClause(parameters);
682
682
  return new IndexedElementSetterDeclaration(tagList, modifierList, getKeyword, parameterClause, body);
683
683
  }
@@ -845,7 +845,7 @@ var SyntaxFactory = class {
845
845
  return new FunctionBlock(openBraceToken, statementList, closeBraceToken);
846
846
  }
847
847
  static noneLiteral() {
848
- return new KeywordExpression(this.keyword(58 /* None */));
848
+ return new KeywordExpression(this.keyword(57 /* None */));
849
849
  }
850
850
  static integerLiteral(value) {
851
851
  return new TokenExpression(this.token(2 /* IntegerLiteral */, value.toString()));
@@ -853,7 +853,7 @@ var SyntaxFactory = class {
853
853
  static translationsDeclaration(translations) {
854
854
  const tagList = new TagList([]);
855
855
  const modifierList = new ModifierList([]);
856
- const translationsKeyword = this.keyword(56 /* Translations */);
856
+ const translationsKeyword = this.keyword(55 /* Translations */);
857
857
  const openBraceToken = this.token(43 /* OpenBrace */);
858
858
  const translationList = new TopLevelTranslationList(translations);
859
859
  const closeBraceToken = this.token(20 /* CloseBrace */);
@@ -2163,13 +2163,12 @@ var SyntaxToCode = class _SyntaxToCode {
2163
2163
  };
2164
2164
  var modifierSortOrder = {
2165
2165
  [37 /* Hidden */]: 0,
2166
- [42 /* Static */]: 1,
2166
+ [41 /* Static */]: 1,
2167
2167
  [17 /* Basic */]: 2,
2168
- [39 /* Redefinable */]: 3,
2169
- [38 /* Abstract */]: 4,
2170
- [40 /* Redefined */]: 5,
2171
- [41 /* Async */]: 6,
2172
- [36 /* Const */]: 7
2168
+ [38 /* Abstract */]: 3,
2169
+ [39 /* Override */]: 4,
2170
+ [40 /* Async */]: 5,
2171
+ [36 /* Const */]: 6
2173
2172
  };
2174
2173
 
2175
2174
  // source/services/TreeUtils.ts
@@ -2349,7 +2348,7 @@ var TranslationsGenerationService = class {
2349
2348
  result = generator.generateMissingTypeMemberTranslations(tokenOrKeyword.parent);
2350
2349
  }
2351
2350
  }
2352
- if (result === void 0 && tokenOrKeyword.isKeyword(56 /* Translations */) && tokenOrKeyword.parent.kind === 21 /* TranslationsDeclaration */) {
2351
+ if (result === void 0 && tokenOrKeyword.isKeyword(55 /* Translations */) && tokenOrKeyword.parent.kind === 21 /* TranslationsDeclaration */) {
2353
2352
  const translationPackage = analyzer.getAnalyzedTranslationPackageIfTargetResolved(sourceFile.package);
2354
2353
  if (translationPackage !== void 0) {
2355
2354
  const generator = new TranslationsGenerator(
@@ -2375,7 +2374,7 @@ var TranslationsGenerationService = class {
2375
2374
  if (tokenOrKeyword === void 0) {
2376
2375
  return false;
2377
2376
  }
2378
- if (!(tokenOrKeyword.isKeyword(56 /* Translations */) && tokenOrKeyword.parent.kind === 21 /* TranslationsDeclaration */)) {
2377
+ if (!(tokenOrKeyword.isKeyword(55 /* Translations */) && tokenOrKeyword.parent.kind === 21 /* TranslationsDeclaration */)) {
2379
2378
  return false;
2380
2379
  }
2381
2380
  const translationPackage = analyzer.getAnalyzedTranslationPackageIfTargetResolved(sourceFile.package);
@@ -3650,22 +3649,22 @@ var CompletionService = class {
3650
3649
  }
3651
3650
  const kinds = /* @__PURE__ */ new Set();
3652
3651
  if (syntaxContext.isPackageMemberDeclarationListContext) {
3653
- kinds.add(18 /* Import */).add(7 /* Run */).add(31 /* Creation */).add(12 /* Function */).add(17 /* Basic */).add(16 /* Type */).add(59 /* Get */).add(60 /* Set */).add(56 /* Translations */);
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 */);
3654
3653
  }
3655
3654
  if (syntaxContext.isPackageMemberDeclarationListContext || syntaxContext.isTypeMemberDeclarationListContext) {
3656
- kinds.add(37 /* Hidden */).add(42 /* Static */).add(39 /* Redefinable */).add(38 /* Abstract */).add(40 /* Redefined */).add(41 /* 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 */);
3657
3656
  }
3658
3657
  if (syntaxContext.isTypeMemberDeclarationListContext) {
3659
- kinds.add(31 /* Creation */).add(12 /* Function */).add(48 /* Destruction */).add(59 /* Get */).add(60 /* Set */);
3658
+ kinds.add(31 /* Creation */).add(12 /* Function */).add(47 /* Destruction */).add(58 /* Get */).add(59 /* Set */);
3660
3659
  }
3661
3660
  if (syntaxContext.isStatementContext) {
3662
- kinds.add(7 /* Run */).add(35 /* For */).add(25 /* While */).add(26 /* Loop */).add(15 /* Return */).add(20 /* Error */).add(19 /* Important */).add(28 /* Yield */).add(33 /* BreakLoop */).add(34 /* ContinueLoop */).add(13 /* If */).add(45 /* Switch */).add(1 /* Let */).add(36 /* Const */).add(47 /* Dispose */).add(8 /* Try */).add(12 /* Function */).add(41 /* Async */);
3661
+ kinds.add(7 /* Run */).add(35 /* For */).add(25 /* While */).add(26 /* Loop */).add(15 /* Return */).add(20 /* Error */).add(19 /* Important */).add(28 /* Yield */).add(33 /* BreakLoop */).add(34 /* ContinueLoop */).add(13 /* If */).add(44 /* Switch */).add(1 /* Let */).add(36 /* Const */).add(46 /* Dispose */).add(8 /* Try */).add(12 /* Function */).add(40 /* Async */);
3663
3662
  }
3664
3663
  if (this.isFromKeywordContext(positionDescription)) {
3665
3664
  kinds.add(9 /* From */);
3666
3665
  }
3667
3666
  if (syntaxContext.isExpressionContext !== void 0) {
3668
- kinds.add(44 /* Not */).add(53 /* Yes */).add(54 /* No */).add(58 /* None */).add(41 /* Async */).add(12 /* Function */).add(55 /* Reference */).add(2 /* Autotype */).add(30 /* Cond */);
3667
+ kinds.add(43 /* Not */).add(52 /* Yes */).add(53 /* No */).add(57 /* None */).add(40 /* Async */).add(12 /* Function */).add(54 /* Reference */).add(2 /* Autotype */).add(30 /* Cond */);
3669
3668
  if (positionDescription.kind === "after-token-or-keyword") {
3670
3669
  const container = semanticContext.getContainingTypeOrTypeExtension();
3671
3670
  if (container !== void 0) {
@@ -3673,17 +3672,17 @@ var CompletionService = class {
3673
3672
  if (container.kind === "type") {
3674
3673
  const typeEntity = container.value;
3675
3674
  if (typeEntity?.typeEntityKind === 1 /* Structured */ && typeEntity.getBaseObjectType() !== void 0 || typeEntity?.typeEntityKind === 3 /* Variant */ || typeEntity?.typeEntityKind === 4 /* Alias */) {
3676
- kinds.add(57 /* Base */);
3675
+ kinds.add(56 /* Base */);
3677
3676
  }
3678
3677
  }
3679
3678
  }
3680
3679
  }
3681
3680
  }
3682
3681
  if (this.isTypeKindCompletionContext(positionDescription)) {
3683
- kinds.add(4 /* Object */).add(5 /* PlainObject */).add(3 /* Aspect */).add(6 /* Variant */).add(12 /* Function */).add(41 /* Async */);
3682
+ kinds.add(4 /* Object */).add(5 /* PlainObject */).add(3 /* Aspect */).add(6 /* Variant */).add(12 /* Function */).add(40 /* Async */);
3684
3683
  }
3685
3684
  if (this.isCaseKeywordContext(positionDescription, syntaxContext)) {
3686
- kinds.add(46 /* Case */);
3685
+ kinds.add(45 /* Case */);
3687
3686
  }
3688
3687
  if (this.isCatchKeywordContext(positionDescription)) {
3689
3688
  kinds.add(32 /* Catch */);
@@ -3695,18 +3694,18 @@ var CompletionService = class {
3695
3694
  kinds.add(10 /* Else */).add(11 /* ElseIf */);
3696
3695
  }
3697
3696
  if (syntaxContext.precedingExpression !== void 0) {
3698
- kinds.add(43 /* As */).add(14 /* Is */).add(22 /* And */).add(23 /* Or */).add(24 /* Xor */).add(29 /* When */);
3697
+ kinds.add(42 /* As */).add(14 /* Is */).add(22 /* And */).add(23 /* Or */).add(24 /* Xor */).add(29 /* When */);
3699
3698
  }
3700
3699
  if (this.isModifierLevelContext(positionDescription)) {
3701
- kinds.add(52 /* InType */).add(49 /* InHierarchy */).add(50 /* InFile */).add(51 /* InPackage */);
3700
+ kinds.add(51 /* InType */).add(48 /* InHierarchy */).add(49 /* InFile */).add(50 /* InPackage */);
3702
3701
  }
3703
3702
  if (this.isRepeatWhileKeywordContext(positionDescription)) {
3704
3703
  kinds.add(27 /* RepeatWhile */);
3705
3704
  }
3706
3705
  if (syntaxContext.isUnqualifiedTypeContext?.allowsAnonymousTypes === true) {
3707
- kinds.add(5 /* PlainObject */).add(4 /* Object */).add(6 /* Variant */).add(3 /* Aspect */).add(12 /* Function */).add(41 /* Async */);
3706
+ kinds.add(5 /* PlainObject */).add(4 /* Object */).add(6 /* Variant */).add(3 /* Aspect */).add(12 /* Function */).add(40 /* Async */);
3708
3707
  }
3709
- if (positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isKeyword(41 /* Async */) && (positionDescription.tokenOrKeyword.parent.kind === 58 /* NestedFunctionDeclaration */ || positionDescription.tokenOrKeyword.parent.kind === 74 /* FunctionLiteral */ || positionDescription.tokenOrKeyword.parent.kind === 29 /* FunctionTypeDeclarationBody */)) {
3708
+ if (positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isKeyword(40 /* Async */) && (positionDescription.tokenOrKeyword.parent.kind === 58 /* NestedFunctionDeclaration */ || positionDescription.tokenOrKeyword.parent.kind === 74 /* FunctionLiteral */ || positionDescription.tokenOrKeyword.parent.kind === 29 /* FunctionTypeDeclarationBody */)) {
3710
3709
  kinds.add(12 /* Function */);
3711
3710
  }
3712
3711
  return Query.from(kinds.values()).map(
@@ -4070,7 +4069,7 @@ var CompletionService = class {
4070
4069
  m.name,
4071
4070
  m.requiresExplicitOriginalName
4072
4071
  );
4073
- case "variable":
4072
+ case "field":
4074
4073
  return new FieldCompletionItemInfo(
4075
4074
  this.completionItemInfoContext,
4076
4075
  m.value,
@@ -4605,22 +4604,22 @@ var PackageAliasEntityCompletionItemInfo = class {
4605
4604
  }
4606
4605
  };
4607
4606
  var FieldCompletionItemInfo = class {
4608
- constructor(ctx, variable, name, isNameExplicitlyOriginal) {
4607
+ constructor(ctx, field, name, isNameExplicitlyOriginal) {
4609
4608
  this.ctx = ctx;
4610
- this.variable = variable;
4609
+ this.field = field;
4611
4610
  this.name = name;
4612
4611
  this.isNameExplicitlyOriginal = isNameExplicitlyOriginal;
4613
- this.kind = "type-variable";
4612
+ this.kind = "field";
4614
4613
  }
4615
4614
  getLabel() {
4616
4615
  return `${this.isNameExplicitlyOriginal ? "~" : ""}${this.ctx.getInsertTextForName(this.name.value)}`;
4617
4616
  }
4618
4617
  getCompletionItemKind() {
4619
- return this.variable.isVariant() ? 12 /* Variant */ : 2 /* Field */;
4618
+ return this.field.isVariant() ? 12 /* Variant */ : 2 /* Field */;
4620
4619
  }
4621
4620
  getDetails() {
4622
4621
  return this.ctx.displayService.displayVariableDeclaration(
4623
- new VariableDeclaration_typeMember(this.variable, this.name.localization)
4622
+ new VariableDeclaration_typeMember(this.field, this.name.localization)
4624
4623
  );
4625
4624
  }
4626
4625
  getInsertText() {
@@ -5423,7 +5422,7 @@ var SyntaxContextFactory = class {
5423
5422
  return { isExpressionContext: void 0, isStatementContext: false };
5424
5423
  }
5425
5424
  }
5426
- if (tokenOrKeyword.isKeyword(46 /* Case */) && tokenOrKeyword.parent.kind === 121 /* CaseClause */) {
5425
+ if (tokenOrKeyword.isKeyword(45 /* Case */) && tokenOrKeyword.parent.kind === 121 /* CaseClause */) {
5427
5426
  const expressionRole = new ExpressionRole_matchListElement(tokenOrKeyword.parent.parent.parent);
5428
5427
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5429
5428
  }
@@ -5439,7 +5438,7 @@ var SyntaxContextFactory = class {
5439
5438
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5440
5439
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5441
5440
  }
5442
- if (tokenOrKeyword.isKeyword(45 /* Switch */) && tokenOrKeyword.parent.kind === 119 /* SwitchStatement */) {
5441
+ if (tokenOrKeyword.isKeyword(44 /* Switch */) && tokenOrKeyword.parent.kind === 119 /* SwitchStatement */) {
5443
5442
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5444
5443
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5445
5444
  }
@@ -5609,7 +5608,7 @@ var SyntaxContextFactory = class {
5609
5608
  if (tokenOrKeyword.isKeyword(14 /* Is */) && tokenOrKeyword.parent.kind === 73 /* IsExpression */) {
5610
5609
  return { allowsAnonymousTypes: true };
5611
5610
  }
5612
- if (tokenOrKeyword.isKeyword(43 /* As */) && tokenOrKeyword.parent.kind === 65 /* AsExpression */) {
5611
+ if (tokenOrKeyword.isKeyword(42 /* As */) && tokenOrKeyword.parent.kind === 65 /* AsExpression */) {
5613
5612
  return { allowsAnonymousTypes: true };
5614
5613
  }
5615
5614
  if (tokenOrKeyword.isToken(17 /* Bar */) && tokenOrKeyword.parent.kind === 11 /* UnionTypeSpecifier */) {
@@ -5822,7 +5821,7 @@ var NodeSemanticInfoService = class {
5822
5821
  return this.ofDefaultMatchExpression(analyzer, tokenOrKeyword.parent);
5823
5822
  } else if (tokenOrKeyword.isKeyword(4 /* Object */) && tokenOrKeyword.parent.kind === 86 /* ObjectExpression */) {
5824
5823
  return this.ofObjectExpression(analyzer, tokenOrKeyword.parent, options6);
5825
- } else if (tokenOrKeyword.isKeyword(57 /* Base */) && tokenOrKeyword.parent.kind === 87 /* BaseExpression */) {
5824
+ } else if (tokenOrKeyword.isKeyword(56 /* Base */) && tokenOrKeyword.parent.kind === 87 /* BaseExpression */) {
5826
5825
  return this.ofBaseExpression(analyzer, tokenOrKeyword.parent, options6);
5827
5826
  } else if ((tokenOrKeyword.isToken(45 /* OpenSquareBracket */) || tokenOrKeyword.isToken(22 /* CloseSquareBracket */)) && tokenOrKeyword.parent.kind === 49 /* IndexParameterClause */) {
5828
5827
  return this.ofIndexedElementAccessorDeclaration(analyzer, tokenOrKeyword.parent.parent);
@@ -6078,10 +6077,10 @@ var NodeSemanticInfoService = class {
6078
6077
  narrowedType = analyzer.type.ofExpression(node);
6079
6078
  }
6080
6079
  const target = new SimpleWithLocalization(new FieldReferenceTarget(
6081
- meaning.variable.value,
6080
+ meaning.field.value,
6082
6081
  meaning.accessKind,
6083
6082
  narrowedType
6084
- ), meaning.variable.localization);
6083
+ ), meaning.field.localization);
6085
6084
  result = new ReferenceNodeSemanticInfo([target], false);
6086
6085
  break;
6087
6086
  }
@@ -6091,10 +6090,10 @@ var NodeSemanticInfoService = class {
6091
6090
  narrowedType = analyzer.type.ofExpression(node);
6092
6091
  }
6093
6092
  const target = new SimpleWithLocalization(new FieldReferenceTarget(
6094
- meaning.variable.value,
6093
+ meaning.field.value,
6095
6094
  meaning.accessKind,
6096
6095
  narrowedType
6097
- ), meaning.variable.localization);
6096
+ ), meaning.field.localization);
6098
6097
  result = new ReferenceNodeSemanticInfo([target], false);
6099
6098
  break;
6100
6099
  }
@@ -6802,11 +6801,11 @@ var EntityReferenceTarget = class {
6802
6801
  }
6803
6802
  };
6804
6803
  var FieldReferenceTarget = class {
6805
- constructor(variable, accessKind, narrowedType) {
6806
- this.variable = variable;
6804
+ constructor(field, accessKind, narrowedType) {
6805
+ this.field = field;
6807
6806
  this.accessKind = accessKind;
6808
6807
  this.narrowedType = narrowedType;
6809
- this.kind = "type-variable";
6808
+ this.kind = "field";
6810
6809
  }
6811
6810
  };
6812
6811
  var TypeValueParameterReferenceTarget = class {
@@ -7106,8 +7105,8 @@ var DefinitionService = class {
7106
7105
  return this.getSourceLocationsOfVariableEntity(analyzer, target.entity);
7107
7106
  }
7108
7107
  return getEntitySourceLocations(analyzer, target.entity);
7109
- case "type-variable":
7110
- return this.getSourceLocationsOfVariableEntity(analyzer, target.variable.getEntity());
7108
+ case "field":
7109
+ return this.getSourceLocationsOfVariableEntity(analyzer, target.field.getEntity());
7111
7110
  case "type-constructor":
7112
7111
  return getEntitySourceLocations(analyzer, target.constructor_.getEntity());
7113
7112
  case "accessed-function":
@@ -7144,8 +7143,8 @@ var DefinitionService = class {
7144
7143
  switch (target.kind) {
7145
7144
  case "entity":
7146
7145
  return target.entity;
7147
- case "type-variable":
7148
- return target.variable.getEntity();
7146
+ case "field":
7147
+ return target.field.getEntity();
7149
7148
  case "type-value-parameter":
7150
7149
  return target.parameter.getEntity();
7151
7150
  case "type-constructor":
@@ -7558,9 +7557,9 @@ var ReferencesService = class {
7558
7557
  target.localization,
7559
7558
  accessKindToReferenceKind(target.value.accessKind)
7560
7559
  );
7561
- case "type-variable":
7560
+ case "field":
7562
7561
  return new DefinitionInfo(
7563
- target.value.variable.getEntity(),
7562
+ target.value.field.getEntity(),
7564
7563
  target.localization,
7565
7564
  accessKindToReferenceKind(target.value.accessKind)
7566
7565
  );
@@ -8024,9 +8023,9 @@ var HoverService = class {
8024
8023
  firstTarget.value.narrowedType,
8025
8024
  range
8026
8025
  );
8027
- case "type-variable": {
8026
+ case "field": {
8028
8027
  const declaration = new VariableDeclaration_typeMember(
8029
- firstTarget.value.variable,
8028
+ firstTarget.value.field,
8030
8029
  firstTarget.localization,
8031
8030
  firstTarget.value.narrowedType
8032
8031
  );
@@ -8076,7 +8075,7 @@ var HoverService = class {
8076
8075
  const typeText = this._displayService.displayType(firstTarget.value.type);
8077
8076
  return new Hover(`${keywordText}: ${typeText}`, range);
8078
8077
  } else if (firstTarget.value.typeContextKind === "base") {
8079
- const keywordText = this._displayService.displayKeyword(57 /* Base */);
8078
+ const keywordText = this._displayService.displayKeyword(56 /* Base */);
8080
8079
  const typeText = this._displayService.displayType(firstTarget.value.type);
8081
8080
  return new Hover(`${keywordText}: ${typeText}`, range);
8082
8081
  } else {
@@ -8403,21 +8402,21 @@ var SourceFileItemsService = class {
8403
8402
  case 10 /* Constructor */:
8404
8403
  return name ?? LocalizationHelper.localizeKeywordAndTakeFirst(31 /* Creation */, this.locale, this.dialect);
8405
8404
  case 11 /* Destructor */:
8406
- return name ?? LocalizationHelper.localizeKeywordAndTakeFirst(48 /* Destruction */, this.locale, this.dialect);
8405
+ return name ?? LocalizationHelper.localizeKeywordAndTakeFirst(47 /* Destruction */, this.locale, this.dialect);
8407
8406
  case 9 /* Variant */:
8408
8407
  return name ?? `<${LocalizationHelper.localizeKeywordAndTakeFirst(6 /* Variant */, this.locale, this.dialect)}>`;
8409
8408
  case 18 /* TypeParameter */:
8410
8409
  return name ?? `<${LocalizationHelper.localizeHelperPhrase(2 /* TypeParameter */, this.locale)}>`;
8411
8410
  case 2 /* PackageVariableGetter */:
8412
8411
  case 13 /* FieldGetter */:
8413
- return `${LocalizationHelper.localizeKeywordAndTakeFirst(59 /* Get */, this.locale, this.dialect)} ${name ?? ""}`;
8412
+ return `${LocalizationHelper.localizeKeywordAndTakeFirst(58 /* Get */, this.locale, this.dialect)} ${name ?? ""}`;
8414
8413
  case 3 /* PackageVariableSetter */:
8415
8414
  case 14 /* FieldSetter */:
8416
- return `${LocalizationHelper.localizeKeywordAndTakeFirst(60 /* Set */, this.locale, this.dialect)} ${name ?? ""}`;
8415
+ return `${LocalizationHelper.localizeKeywordAndTakeFirst(59 /* Set */, this.locale, this.dialect)} ${name ?? ""}`;
8417
8416
  case 16 /* IndexedElementGetter */:
8418
- return `${LocalizationHelper.localizeKeywordAndTakeFirst(59 /* Get */, this.locale, this.dialect)} []`;
8417
+ return `${LocalizationHelper.localizeKeywordAndTakeFirst(58 /* Get */, this.locale, this.dialect)} []`;
8419
8418
  case 17 /* IndexedElementSetter */:
8420
- return `${LocalizationHelper.localizeKeywordAndTakeFirst(60 /* Set */, this.locale, this.dialect)} []`;
8419
+ return `${LocalizationHelper.localizeKeywordAndTakeFirst(59 /* Set */, this.locale, this.dialect)} []`;
8421
8420
  default:
8422
8421
  Debug.never(kind);
8423
8422
  }
@@ -8512,8 +8511,8 @@ var RenameService = class {
8512
8511
  case "entity":
8513
8512
  canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.entity);
8514
8513
  break;
8515
- case "type-variable":
8516
- canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.variable.getEntity());
8514
+ case "field":
8515
+ canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.field.getEntity());
8517
8516
  break;
8518
8517
  case "type-value-parameter":
8519
8518
  canBeRenamed = this.entityCanBeRenamed(analyzer, target.value.parameter.getEntity());
@@ -8716,7 +8715,7 @@ var SemanticTokensService = class {
8716
8715
  if (node.kind === 78 /* MemberAccessExpression */) {
8717
8716
  const meaning = analyzer.resolveMemberAccessExpression(node).meaning;
8718
8717
  if (meaning.kind === "static-field-access") {
8719
- const entity = meaning.variable.value.getEntity();
8718
+ const entity = meaning.field.value.getEntity();
8720
8719
  if (entity.subkind === "field" && entity.isVariant()) {
8721
8720
  result.push(
8722
8721
  new SemanticToken(
@@ -11902,7 +11901,7 @@ var EntityToSyntax = class {
11902
11901
  const tags = this.convertTags(entity.getTags());
11903
11902
  const modifiers = new Array();
11904
11903
  if (entity.isAsync()) {
11905
- modifiers.push(SyntaxFactory.modifier(41 /* Async */));
11904
+ modifiers.push(SyntaxFactory.modifier(40 /* Async */));
11906
11905
  }
11907
11906
  const isHidden = entity.isHidden();
11908
11907
  if (isHidden !== void 0) {
@@ -11987,16 +11986,16 @@ var EntityToSyntax = class {
11987
11986
  commonModifiers.push(SyntaxFactory.modifier(36 /* Const */));
11988
11987
  }
11989
11988
  if (entity.isStatic()) {
11990
- commonModifiers.push(SyntaxFactory.modifier(42 /* Static */));
11989
+ commonModifiers.push(SyntaxFactory.modifier(41 /* Static */));
11991
11990
  }
11992
- if (entity.isAbstract()) {
11991
+ if (entity.markedAbstract()) {
11993
11992
  commonModifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
11994
11993
  }
11995
- if (entity.isRedefinable()) {
11996
- commonModifiers.push(SyntaxFactory.modifier(39 /* Redefinable */));
11994
+ if (entity.markedBasic()) {
11995
+ commonModifiers.push(SyntaxFactory.modifier(17 /* Basic */));
11997
11996
  }
11998
- if (entity.isRedefined()) {
11999
- commonModifiers.push(SyntaxFactory.modifier(40 /* Redefined */));
11997
+ if (entity.isOverride()) {
11998
+ commonModifiers.push(SyntaxFactory.modifier(39 /* Override */));
12000
11999
  }
12001
12000
  const name = this.getEntityName(entity);
12002
12001
  const type = this.convertType(entity.getType());
@@ -12042,16 +12041,16 @@ var EntityToSyntax = class {
12042
12041
  modifiers.push(this.createHidingModifier(isHidden));
12043
12042
  }
12044
12043
  if (entity.isStatic()) {
12045
- modifiers.push(SyntaxFactory.modifier(42 /* Static */));
12044
+ modifiers.push(SyntaxFactory.modifier(41 /* Static */));
12046
12045
  }
12047
- if (entity.isAbstract()) {
12046
+ if (entity.markedAbstract()) {
12048
12047
  modifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12049
12048
  }
12050
- if (entity.isRedefinable()) {
12051
- modifiers.push(SyntaxFactory.modifier(39 /* Redefinable */));
12049
+ if (entity.markedBasic()) {
12050
+ modifiers.push(SyntaxFactory.modifier(17 /* Basic */));
12052
12051
  }
12053
- if (entity.isRedefined()) {
12054
- modifiers.push(SyntaxFactory.modifier(40 /* Redefined */));
12052
+ if (entity.isOverride()) {
12053
+ modifiers.push(SyntaxFactory.modifier(39 /* Override */));
12055
12054
  }
12056
12055
  const name = this.getEntityName(entity);
12057
12056
  const typeParameters = this.convertTypeParameters(entity.getTypeParameters());
@@ -12066,7 +12065,7 @@ var EntityToSyntax = class {
12066
12065
  if (isHidden !== void 0) {
12067
12066
  modifiers.push(this.createHidingModifier(isHidden));
12068
12067
  }
12069
- if (entity.isAbstract()) {
12068
+ if (entity.markedAbstract()) {
12070
12069
  modifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12071
12070
  }
12072
12071
  const parameters = this.convertValueParameters(entity.getValueParameters());
@@ -12079,7 +12078,7 @@ var EntityToSyntax = class {
12079
12078
  if (isHidden !== void 0) {
12080
12079
  modifiers.push(this.createHidingModifier(isHidden));
12081
12080
  }
12082
- if (entity.isAbstract()) {
12081
+ if (entity.markedAbstract()) {
12083
12082
  modifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12084
12083
  }
12085
12084
  const parameters = this.convertValueParameters(entity.getValueParameters());
@@ -12088,9 +12087,9 @@ var EntityToSyntax = class {
12088
12087
  convertIndexer(entity) {
12089
12088
  const commonModifiers = new Array();
12090
12089
  if (entity.isStatic()) {
12091
- commonModifiers.push(SyntaxFactory.modifier(42 /* Static */));
12090
+ commonModifiers.push(SyntaxFactory.modifier(41 /* Static */));
12092
12091
  }
12093
- if (entity.isAbstract()) {
12092
+ if (entity.markedAbstract()) {
12094
12093
  commonModifiers.push(SyntaxFactory.modifier(38 /* Abstract */));
12095
12094
  }
12096
12095
  const parameters = this.convertValueParameters(entity.getValueParameters());
@@ -12205,16 +12204,16 @@ var EntityToSyntax = class {
12205
12204
  let levelKeyword;
12206
12205
  switch (hiding.kind) {
12207
12206
  case "type":
12208
- levelKeyword = 52 /* InType */;
12207
+ levelKeyword = 51 /* InType */;
12209
12208
  break;
12210
12209
  case "type-hierarchy":
12211
- levelKeyword = 49 /* InHierarchy */;
12210
+ levelKeyword = 48 /* InHierarchy */;
12212
12211
  break;
12213
12212
  case "file":
12214
- levelKeyword = 50 /* InFile */;
12213
+ levelKeyword = 49 /* InFile */;
12215
12214
  break;
12216
12215
  case "package":
12217
- levelKeyword = 51 /* InPackage */;
12216
+ levelKeyword = 50 /* InPackage */;
12218
12217
  break;
12219
12218
  default:
12220
12219
  Debug.never(hiding);
@@ -12930,7 +12929,7 @@ var LanguageServer = class {
12930
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.");
12931
12930
  const initializeStartTime = performance.now();
12932
12931
  this._clientCapabilities = params.capabilities;
12933
- setUserLocale("ru");
12932
+ setUserLocale(params.initializationOptions?.localeOverride ?? params.locale ?? "en");
12934
12933
  let workspaceFolderUris;
12935
12934
  if (params.initializationOptions?.workspaceFoldersOverride !== void 0) {
12936
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-F5OW64UA.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-5GSDYTF6.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-5GSDYTF6.js";
13
+ } from "./chunk-ZUIGWNN5.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {