@artel/artc 0.9.26058-pre-release → 0.9.26060-pre-release

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 -2
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +93 -96
  5. package/build/{chunk-ZIMYE6DP.js → chunk-CSGFLTKZ.js} +1 -1
  6. package/build/{chunk-ZHYZVIOA.js → chunk-ETOGWBIL.js} +2 -2
  7. package/build/{chunk-VU7MVXGK.js → chunk-OBK4F7TH.js} +2594 -2076
  8. package/build/types/analysis/WellKnownDeclarations.d.ts +6 -6
  9. package/build/types/analysis/a/Analyzer.d.ts +2 -3
  10. package/build/types/analysis/a/FindModifier.d.ts +2 -3
  11. package/build/types/analysis/a/ModifierValidator.d.ts +1 -1
  12. package/build/types/analysis/m/BaseExpressionMeaning.d.ts +0 -1
  13. package/build/types/analysis/m/SourceFileAnalyzer.d.ts +2 -0
  14. package/build/types/diagnostic/DiagnosticCode.d.ts +256 -254
  15. package/build/types/entities/interfaces/BaseOrdinaryPackageFunctionEntity.d.ts +1 -0
  16. package/build/types/entities/interfaces/BasePackageMemberAccessorEntity.d.ts +1 -0
  17. package/build/types/entities/interfaces/FunctionEntity.d.ts +2 -0
  18. package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +2 -0
  19. package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +10 -4
  20. package/build/types/entities/source/a/SourceConstructorEntity.d.ts +2 -0
  21. package/build/types/entities/source/a/SourceDestructorEntity.d.ts +1 -0
  22. package/build/types/entities/source/a/SourceFunctionEntity.d.ts +6 -0
  23. package/build/types/entities/source/a/SourceGetterEntity.d.ts +4 -0
  24. package/build/types/entities/source/a/SourceSetterEntity.d.ts +4 -0
  25. package/build/types/entities/source/m/SourceConstructorEntity.d.ts +2 -0
  26. package/build/types/entities/source/m/SourceDestructorEntity.d.ts +1 -0
  27. package/build/types/entities/source/m/SourceFunctionEntity.d.ts +6 -0
  28. package/build/types/entities/source/m/SourceGetterEntity.d.ts +5 -1
  29. package/build/types/entities/source/m/SourceSetterEntity.d.ts +5 -1
  30. package/build/types/entities/translated/BaseTranslatedTypeMemberAccessorEntity.d.ts +42 -0
  31. package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +1 -1
  32. package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +2 -0
  33. package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +5 -7
  34. package/build/types/entities/translated/TranslatedPackageMemberAccessorEntity.d.ts +1 -0
  35. package/build/types/entities/translated/TranslatedTypeMemberAccessorEntity.d.ts +5 -40
  36. package/build/types/entities/translated/TranslatedTypeMemberAccessorStandaloneEntity.d.ts +13 -0
  37. package/build/types/entities/translated/index.d.ts +1 -0
  38. package/build/types/entities/translated/source/a/SourceTranslatedIndexerEntity.d.ts +6 -2
  39. package/build/types/entities/translated/source/m/SourceTranslatedConstructorEntity.d.ts +24 -0
  40. package/build/types/entities/translated/source/m/SourceTranslatedDestructorEntity.d.ts +13 -0
  41. package/build/types/entities/translated/source/m/SourceTranslatedIndexerEntity.d.ts +4 -6
  42. package/build/types/entities/translated/source/m/index.d.ts +2 -1
  43. package/build/types/{analysis → tree}/a/ModifierFlags.d.ts +4 -3
  44. package/build/types/tree/a/index.d.ts +1 -0
  45. package/build/types/tree/m/KeywordKind.d.ts +32 -31
  46. package/build/types/tree/m/Nodes.d.ts +9 -9
  47. package/build/types/tree/m/SyntaxFactory.d.ts +2 -2
  48. package/build/types/tree/m/WellKnownTagFlags.d.ts +8 -8
  49. package/build/types/ts-interop/Entities.d.ts +5 -0
  50. package/package.json +1 -1
  51. package/build/types/entities/translated/source/m/SourceTranslatedIndexedElementAccessorEntity.d.ts +0 -13
package/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-ZHYZVIOA.js";
5
- import "./chunk-ZIMYE6DP.js";
4
+ } from "./chunk-ETOGWBIL.js";
5
+ import "./chunk-CSGFLTKZ.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-VU7MVXGK.js";
8
+ } from "./chunk-OBK4F7TH.js";
9
9
 
10
10
  // source/Cli.ts
11
11
  function main() {
package/build/api/Api.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Compiler,
3
3
  DiagnosticFormatter
4
- } from "../chunk-ZIMYE6DP.js";
4
+ } from "../chunk-CSGFLTKZ.js";
5
5
  import {
6
6
  AccessKind,
7
7
  AccessedFunction_entity,
@@ -318,7 +318,7 @@ import {
318
318
  withoutQuotes,
319
319
  withoutTemplateQuotes,
320
320
  yieldTask
321
- } from "../chunk-VU7MVXGK.js";
321
+ } from "../chunk-OBK4F7TH.js";
322
322
  export {
323
323
  AccessKind,
324
324
  AccessedFunction_entity,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-ZHYZVIOA.js";
10
- import "../chunk-ZIMYE6DP.js";
11
- import "../chunk-VU7MVXGK.js";
9
+ } from "../chunk-ETOGWBIL.js";
10
+ import "../chunk-CSGFLTKZ.js";
11
+ import "../chunk-OBK4F7TH.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -146,7 +146,7 @@ import {
146
146
  traverseTreeAsync,
147
147
  traverseTreeAsync2,
148
148
  yieldTask
149
- } from "../chunk-VU7MVXGK.js";
149
+ } from "../chunk-OBK4F7TH.js";
150
150
 
151
151
  // source/services/common/Types.ts
152
152
  import * as ls from "vscode-languageserver";
@@ -1063,7 +1063,7 @@ var CodeActionsServiceA = class {
1063
1063
  getCodeActions(analyzer, sourceFile, offset, diagnosticCodes) {
1064
1064
  const result = new Array();
1065
1065
  const diagnosticCodeSet = new Set(diagnosticCodes ?? []);
1066
- if (diagnosticCodeSet.has(2097 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(2098 /* TheFollowingDeclarationsAreNotTranslated0And1More */)) {
1066
+ if (diagnosticCodeSet.has(2098 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(2099 /* TheFollowingDeclarationsAreNotTranslated0And1More */)) {
1067
1067
  const data = { onlyTypeMembers: false };
1068
1068
  result.push(CodeAction.unresolved(
1069
1069
  "\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u044E\u0449\u0438\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B.",
@@ -6716,15 +6716,15 @@ var NodeSemanticInfoServiceM = class extends NodeSemanticInfoService {
6716
6716
  return this.ofAssignmentStatementOperator(analyzer, tokenOrKeyword.parent, options7);
6717
6717
  } else if (tokenOrKeyword.isToken(1004 /* Asterisk */) && tokenOrKeyword.parent.kind === 1018 /* DefaultMatchExpression */) {
6718
6718
  return this.ofDefaultMatchExpression(analyzer, tokenOrKeyword.parent);
6719
- } else if (tokenOrKeyword.isKeyword(1017 /* Function */) && tokenOrKeyword.parent.kind === 1039 /* FunctionLiteral */) {
6719
+ } else if (tokenOrKeyword.isKeyword(1018 /* Function */) && tokenOrKeyword.parent.kind === 1039 /* FunctionLiteral */) {
6720
6720
  return this.ofRegularOrBlockFunctionLiteral(analyzer, tokenOrKeyword.parent);
6721
6721
  } else if (tokenOrKeyword.isToken(1048 /* OpenBrace */) && tokenOrKeyword.parent.kind === 1037 /* FunctionBlock */ && tokenOrKeyword.parent.parent.kind === 1038 /* FunctionBlockLiteral */) {
6722
6722
  return this.ofRegularOrBlockFunctionLiteral(analyzer, tokenOrKeyword.parent.parent);
6723
- } else if (tokenOrKeyword.isKeyword(1025 /* Object */) && tokenOrKeyword.parent.kind === 1075 /* ObjectExpression */) {
6723
+ } else if (tokenOrKeyword.isKeyword(1026 /* Object */) && tokenOrKeyword.parent.kind === 1075 /* ObjectExpression */) {
6724
6724
  return this.ofObjectExpression(analyzer, tokenOrKeyword.parent, options7);
6725
6725
  } else if (tokenOrKeyword.isKeyword(1002 /* Base */) && tokenOrKeyword.parent.kind === 1007 /* BaseExpression */) {
6726
6726
  return this.ofBaseExpression(analyzer, tokenOrKeyword.parent, options7);
6727
- } else if (tokenOrKeyword.isKeyword(1025 /* Object */) && tokenOrKeyword.parent.kind === 1092 /* ParameterDeclaration */) {
6727
+ } else if (tokenOrKeyword.isKeyword(1026 /* Object */) && tokenOrKeyword.parent.kind === 1092 /* ParameterDeclaration */) {
6728
6728
  return this.ofObjectParameterDeclaration(analyzer, tokenOrKeyword.parent, tokenOrKeyword.value);
6729
6729
  } else if (tokenOrKeyword.parent.kind === 1064 /* MethodDeclaration */ && tokenOrKeyword.value === tokenOrKeyword.parent.name) {
6730
6730
  return this.ofOperatorDeclaration(analyzer, tokenOrKeyword.parent);
@@ -7856,7 +7856,7 @@ var ReferencesFinderM = class extends ReferencesFinder {
7856
7856
  result.push(new Reference(sourceFile, node.rangeWithoutTrivia, referenceKind));
7857
7857
  }
7858
7858
  }
7859
- if (isKeyword2(node, 1025 /* Object */) && node.parent.kind === 1092 /* ParameterDeclaration */ && this.restrictions.canBeObjectParameter) {
7859
+ if (isKeyword2(node, 1026 /* Object */) && node.parent.kind === 1092 /* ParameterDeclaration */ && this.restrictions.canBeObjectParameter) {
7860
7860
  const semanticInfo = NodeSemanticInfoServiceM.ofObjectParameterDeclaration(this.analyzer.dialectM, node.parent, node);
7861
7861
  const referenceKind = this.ifReferenceToSomeOfDefinitionsThenKind(semanticInfo);
7862
7862
  if (referenceKind !== void 0) {
@@ -10551,7 +10551,7 @@ var EntityToSyntax2 = class {
10551
10551
  result.push(SyntaxFactory2.packageVariableSetterDeclaration(tags, name, parameters, body));
10552
10552
  }
10553
10553
  } else {
10554
- result = SyntaxFactory2.packageVariableDeclaration(tags, name, type, void 0);
10554
+ result = SyntaxFactory2.packageVariableDeclaration(tags, entity.isConstant(), name, type, void 0);
10555
10555
  }
10556
10556
  return result;
10557
10557
  }
@@ -10656,7 +10656,7 @@ var EntityToSyntax2 = class {
10656
10656
  const name = this.getEntityName(entity);
10657
10657
  const type = this.convertType(entity.getType());
10658
10658
  const tags = this.convertTags(entity);
10659
- result = SyntaxFactory2.fieldDeclaration(tags, name, type, void 0);
10659
+ result = SyntaxFactory2.fieldDeclaration(tags, entity.isConstant(), name, type, void 0);
10660
10660
  }
10661
10661
  return result;
10662
10662
  }
@@ -10833,16 +10833,16 @@ var EntityToSyntax2 = class {
10833
10833
  switch (entity.kind) {
10834
10834
  case 2 /* Type */: {
10835
10835
  if (entity.typeEntityKind === 1 /* Structured */ && entity.structuredTypeKind === 1 /* Structure */) {
10836
- wkTagFlags.add(2048 /* Plain */);
10836
+ wkTagFlags.add(32768 /* Plain */);
10837
10837
  }
10838
10838
  if (entity.typeEntityKind === 1 /* Structured */ && entity.structuredTypeKind === 2 /* Aspect */) {
10839
- wkTagFlags.add(4096 /* Aspect */);
10839
+ wkTagFlags.add(65536 /* Aspect */);
10840
10840
  }
10841
10841
  if (entity.typeEntityKind === 6 /* Extension */) {
10842
- wkTagFlags.add(8192 /* Extension */);
10842
+ wkTagFlags.add(262144 /* Extension */);
10843
10843
  }
10844
10844
  if (TypeEntity.isWrapperType(entity)) {
10845
- wkTagFlags.add(16384 /* Wrapper */);
10845
+ wkTagFlags.add(131072 /* Wrapper */);
10846
10846
  }
10847
10847
  if (entity.typeEntityKind === 1 /* Structured */ && entity.isAbstract()) {
10848
10848
  wkTagFlags.add(32 /* Abstract */);
@@ -10862,9 +10862,6 @@ var EntityToSyntax2 = class {
10862
10862
  if (entity.subkind === "field" && entity.isOverride()) {
10863
10863
  wkTagFlags.add(128 /* Override */);
10864
10864
  }
10865
- if (entity.subkind !== "parameter" && entity.isConstant()) {
10866
- wkTagFlags.add(512 /* Const */);
10867
- }
10868
10865
  break;
10869
10866
  }
10870
10867
  case 1 /* Function */: {
@@ -14052,32 +14049,32 @@ var SourceFileItemsServiceM = class {
14052
14049
  case 4 /* PackageFunction */:
14053
14050
  case 17 /* Method */:
14054
14051
  case 21 /* NestedFunction */:
14055
- return name ?? `<${LocalizationHelperM.localizeKeywordAndTakeFirst(1017 /* Function */, this.locale)}>`;
14052
+ return name ?? `<${LocalizationHelperM.localizeKeywordAndTakeFirst(1018 /* Function */, this.locale)}>`;
14056
14053
  case 5 /* StructuredType */:
14057
14054
  case 6 /* FunctionType */:
14058
14055
  case 7 /* VariantType */:
14059
14056
  case 8 /* ReducedType */:
14060
14057
  case 10 /* InvalidType */:
14061
14058
  case 9 /* AliasType */:
14062
- return name ?? `<${LocalizationHelperM.localizeKeywordAndTakeFirst(1033 /* Type */, this.locale)}>`;
14059
+ return name ?? `<${LocalizationHelperM.localizeKeywordAndTakeFirst(1034 /* Type */, this.locale)}>`;
14063
14060
  case 12 /* Constructor */:
14064
- return name ?? LocalizationHelperM.localizeKeywordAndTakeFirst(1017 /* Function */, this.locale);
14061
+ return name ?? LocalizationHelperM.localizeKeywordAndTakeFirst(1018 /* Function */, this.locale);
14065
14062
  case 13 /* Destructor */:
14066
- return name ?? LocalizationHelperM.localizeKeywordAndTakeFirst(1017 /* Function */, this.locale);
14063
+ return name ?? LocalizationHelperM.localizeKeywordAndTakeFirst(1018 /* Function */, this.locale);
14067
14064
  case 11 /* VariantValue */:
14068
14065
  return name ?? `<${LocalizationHelperM.localizeKeywordAndTakeFirst(1004 /* Case */, this.locale)}>`;
14069
14066
  case 20 /* TypeParameter */:
14070
14067
  return name ?? `<${LocalizationHelperM.localizeHelperPhrase(2 /* TypeParameter */, this.locale)}>`;
14071
14068
  case 2 /* PackageVariableGetter */:
14072
14069
  case 15 /* FieldGetter */:
14073
- return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1034 /* Var */, this.locale)} ${name ?? ""}`;
14070
+ return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1035 /* Var */, this.locale)} ${name ?? ""}`;
14074
14071
  case 3 /* PackageVariableSetter */:
14075
14072
  case 16 /* FieldSetter */:
14076
- return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1034 /* Var */, this.locale)} ${name ?? ""}`;
14073
+ return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1035 /* Var */, this.locale)} ${name ?? ""}`;
14077
14074
  case 18 /* IndexedElementGetter */:
14078
- return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1017 /* Function */, this.locale)} []`;
14075
+ return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1018 /* Function */, this.locale)} []`;
14079
14076
  case 19 /* IndexedElementSetter */:
14080
- return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1017 /* Function */, this.locale)} []`;
14077
+ return `${LocalizationHelperM.localizeKeywordAndTakeFirst(1018 /* Function */, this.locale)} []`;
14081
14078
  default:
14082
14079
  Debug.never(kind);
14083
14080
  }
@@ -14135,7 +14132,7 @@ var TranslationsGenerationServiceM = class {
14135
14132
  result = generator.generateMissingTypeMemberTranslations(tokenOrKeyword.parent);
14136
14133
  }
14137
14134
  }
14138
- if (result === void 0 && tokenOrKeyword.isKeyword(1031 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
14135
+ if (result === void 0 && tokenOrKeyword.isKeyword(1032 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
14139
14136
  const translationPackage = analyzer.entity.ofNameTranslationPackage(sourceFile.package).getResolvedNameTranslationPackage();
14140
14137
  if (translationPackage !== void 0) {
14141
14138
  const generator = new TranslationsGenerator2(analyzer, sourceFile, translationPackage, sourceFile.locale);
@@ -14156,7 +14153,7 @@ var TranslationsGenerationServiceM = class {
14156
14153
  if (tokenOrKeyword === void 0) {
14157
14154
  return false;
14158
14155
  }
14159
- if (!(tokenOrKeyword.isKeyword(1031 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */)) {
14156
+ if (!(tokenOrKeyword.isKeyword(1032 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */)) {
14160
14157
  return false;
14161
14158
  }
14162
14159
  const translationPackage = analyzer.entity.ofNameTranslationPackage(sourceFile.package).getResolvedNameTranslationPackage();
@@ -14625,7 +14622,7 @@ var TranslationsSortingServiceM = class {
14625
14622
  }
14626
14623
  let typeTranslation;
14627
14624
  let translationsDeclaration;
14628
- if (tokenOrKeyword.isKeyword(1031 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
14625
+ if (tokenOrKeyword.isKeyword(1032 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
14629
14626
  translationsDeclaration = tokenOrKeyword.parent;
14630
14627
  } else if (tokenOrKeyword.isToken(1039 /* Identifier */) && tokenOrKeyword.parent.kind === 1134 /* TypeTranslationDeclaration */ && tokenOrKeyword.value === tokenOrKeyword.parent.sourceName) {
14631
14628
  typeTranslation = tokenOrKeyword.parent;
@@ -14786,7 +14783,7 @@ var CodeActionsServiceM = class {
14786
14783
  getCodeActions(analyzer, sourceFile, offset, diagnosticCodes) {
14787
14784
  const result = new Array();
14788
14785
  const diagnosticCodeSet = new Set(diagnosticCodes ?? []);
14789
- if (diagnosticCodeSet.has(2097 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(2098 /* TheFollowingDeclarationsAreNotTranslated0And1More */)) {
14786
+ if (diagnosticCodeSet.has(2098 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(2099 /* TheFollowingDeclarationsAreNotTranslated0And1More */)) {
14790
14787
  const data = { onlyTypeMembers: false };
14791
14788
  result.push(CodeAction.unresolved(
14792
14789
  "\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u044E\u0449\u0438\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B.",
@@ -15268,10 +15265,10 @@ var CompletionServiceM = class {
15268
15265
  return new OperatorNameCompletionContext2(syntaxContext.quotedIdentifier);
15269
15266
  }
15270
15267
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
15271
- if (tokenOrKeyword.isKeyword(1019 /* Import */) && tokenOrKeyword.parent.kind === 1080 /* PackageImportDirective */) {
15268
+ if (tokenOrKeyword.isKeyword(1020 /* Import */) && tokenOrKeyword.parent.kind === 1080 /* PackageImportDirective */) {
15272
15269
  return new PackageImportCompletionContext2([], void 0);
15273
15270
  }
15274
- if (tokenOrKeyword.isKeyword(1017 /* Function */) && (tokenOrKeyword.parent.kind === 1064 /* MethodDeclaration */ || tokenOrKeyword.parent.kind === 1047 /* IndexedElementGetterDeclaration */ || tokenOrKeyword.parent.kind === 1049 /* IndexedElementSetterDeclaration */ || tokenOrKeyword.parent.kind === 1020 /* DereferencedVariableGetterDeclaration */ || tokenOrKeyword.parent.kind === 1021 /* DereferencedVariableSetterDeclaration */)) {
15271
+ if (tokenOrKeyword.isKeyword(1018 /* Function */) && (tokenOrKeyword.parent.kind === 1064 /* MethodDeclaration */ || tokenOrKeyword.parent.kind === 1047 /* IndexedElementGetterDeclaration */ || tokenOrKeyword.parent.kind === 1049 /* IndexedElementSetterDeclaration */ || tokenOrKeyword.parent.kind === 1020 /* DereferencedVariableGetterDeclaration */ || tokenOrKeyword.parent.kind === 1021 /* DereferencedVariableSetterDeclaration */)) {
15275
15272
  return new OperatorNameCompletionContext2(void 0);
15276
15273
  }
15277
15274
  if (tokenOrKeyword.isToken(1032 /* Equals */) && tokenOrKeyword.parent.kind === 1079 /* PackageImport */) {
@@ -15497,17 +15494,17 @@ var CompletionServiceM = class {
15497
15494
  translationKind = 0 /* Any */;
15498
15495
  hasPrecedingKeyword = false;
15499
15496
  }
15500
- if (tokenOrKeyword.isKeyword(1033 /* Type */) && (tokenOrKeyword.parent.kind === 1134 /* TypeTranslationDeclaration */ || tokenOrKeyword.parent.kind === 1040 /* FunctionTypeTranslationDeclaration */)) {
15497
+ if (tokenOrKeyword.isKeyword(1034 /* Type */) && (tokenOrKeyword.parent.kind === 1134 /* TypeTranslationDeclaration */ || tokenOrKeyword.parent.kind === 1040 /* FunctionTypeTranslationDeclaration */)) {
15501
15498
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
15502
15499
  translationKind = 3 /* Type */;
15503
15500
  hasPrecedingKeyword = true;
15504
15501
  }
15505
- if (tokenOrKeyword.isKeyword(1017 /* Function */) && tokenOrKeyword.parent.kind === 1078 /* PackageFunctionTranslationDeclaration */) {
15502
+ if (tokenOrKeyword.isKeyword(1018 /* Function */) && tokenOrKeyword.parent.kind === 1078 /* PackageFunctionTranslationDeclaration */) {
15506
15503
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
15507
15504
  translationKind = 1 /* Function */;
15508
15505
  hasPrecedingKeyword = true;
15509
15506
  }
15510
- if (tokenOrKeyword.isKeyword(1034 /* Var */) && tokenOrKeyword.parent.kind === 1090 /* PackageVariableTranslationDeclaration */) {
15507
+ if (tokenOrKeyword.isKeyword(1035 /* Var */) && tokenOrKeyword.parent.kind === 1090 /* PackageVariableTranslationDeclaration */) {
15511
15508
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
15512
15509
  translationKind = 2 /* Variable */;
15513
15510
  hasPrecedingKeyword = true;
@@ -15541,12 +15538,12 @@ var CompletionServiceM = class {
15541
15538
  translationKind = 0 /* Any */;
15542
15539
  hasPrecedingKeyword = false;
15543
15540
  }
15544
- if (tokenOrKeyword.isKeyword(1017 /* Function */) && (tokenOrKeyword.parent.kind === 1065 /* MethodTranslation */ || tokenOrKeyword.parent.kind === 1048 /* IndexedElementGetterTranslation */ || tokenOrKeyword.parent.kind === 1050 /* IndexedElementSetterTranslation */)) {
15541
+ if (tokenOrKeyword.isKeyword(1018 /* Function */) && (tokenOrKeyword.parent.kind === 1065 /* MethodTranslation */ || tokenOrKeyword.parent.kind === 1048 /* IndexedElementGetterTranslation */ || tokenOrKeyword.parent.kind === 1050 /* IndexedElementSetterTranslation */)) {
15545
15542
  typeTranslation = tokenOrKeyword.parent.parent.parent;
15546
15543
  translationKind = 1 /* Method */;
15547
15544
  hasPrecedingKeyword = true;
15548
15545
  }
15549
- if (tokenOrKeyword.isKeyword(1034 /* Var */) && tokenOrKeyword.parent.kind === 1033 /* FieldTranslation */) {
15546
+ if (tokenOrKeyword.isKeyword(1035 /* Var */) && tokenOrKeyword.parent.kind === 1033 /* FieldTranslation */) {
15550
15547
  typeTranslation = tokenOrKeyword.parent.parent.parent;
15551
15548
  translationKind = 2 /* Field */;
15552
15549
  hasPrecedingKeyword = true;
@@ -15652,22 +15649,22 @@ var CompletionServiceM = class {
15652
15649
  getSnippetInfos(syntaxContext, positionDescription) {
15653
15650
  const result = Array();
15654
15651
  if (syntaxContext.isPackageMemberDeclarationListContext) {
15655
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1033 /* Type */, true));
15656
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1017 /* Function */, true));
15657
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1019 /* Import */, false));
15652
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1034 /* Type */, true));
15653
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* Function */, true));
15654
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1020 /* Import */, false));
15658
15655
  }
15659
15656
  if (syntaxContext.isTypeMemberDeclarationListContext) {
15660
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1017 /* Function */, true));
15657
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* Function */, true));
15661
15658
  }
15662
15659
  if (syntaxContext.statementContext !== void 0) {
15663
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1033 /* Type */, true));
15664
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1017 /* Function */, true));
15665
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* If */, true));
15666
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1032 /* Try */, true));
15667
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1015 /* For */, true));
15668
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1021 /* Loop */, true));
15669
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1035 /* While */, true));
15670
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1030 /* Switch */, true));
15660
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1034 /* Type */, true));
15661
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* Function */, true));
15662
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1019 /* If */, true));
15663
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1033 /* Try */, true));
15664
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1016 /* For */, true));
15665
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1022 /* Loop */, true));
15666
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1036 /* While */, true));
15667
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1031 /* Switch */, true));
15671
15668
  }
15672
15669
  if (syntaxContext.expressionContext !== void 0) {
15673
15670
  let isInsideTypeCall = false;
@@ -15692,18 +15689,18 @@ var CompletionServiceM = class {
15692
15689
  }
15693
15690
  }
15694
15691
  if (!isInsideTypeCall) {
15695
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1017 /* Function */, false));
15692
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* Function */, false));
15696
15693
  }
15697
15694
  }
15698
15695
  if (syntaxContext.unqualifiedTypeContext?.allowsLocalTypes === true) {
15699
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1033 /* Type */, false));
15700
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1017 /* Function */, false));
15696
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1034 /* Type */, false));
15697
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* Function */, false));
15701
15698
  }
15702
15699
  if (this.isAliasedTypeCompletionContext(positionDescription)) {
15703
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1017 /* Function */, false));
15700
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1018 /* Function */, false));
15704
15701
  }
15705
15702
  if (this.isTypeKeywordContext(positionDescription)) {
15706
- result.push(new EndSnippetInfo(this.completionItemInfoContext, 1033 /* Type */, false));
15703
+ result.push(new EndSnippetInfo(this.completionItemInfoContext, 1034 /* Type */, false));
15707
15704
  }
15708
15705
  return result;
15709
15706
  }
@@ -15761,24 +15758,24 @@ var CompletionServiceM = class {
15761
15758
  }
15762
15759
  const kinds = /* @__PURE__ */ new Set();
15763
15760
  if (syntaxContext.isPackageMemberDeclarationListContext) {
15764
- kinds.add(1017 /* Function */).add(1033 /* Type */).add(1031 /* Translations */).add(1019 /* Import */).add(1011 /* End */);
15761
+ kinds.add(1018 /* Function */).add(1034 /* Type */).add(1032 /* Translations */).add(1020 /* Import */).add(1012 /* End */);
15765
15762
  }
15766
15763
  if (syntaxContext.isTypeMemberDeclarationListContext) {
15767
- kinds.add(1017 /* Function */).add(1034 /* Var */).add(1011 /* End */).add(1004 /* Case */);
15764
+ kinds.add(1018 /* Function */).add(1035 /* Var */).add(1007 /* Const */).add(1012 /* End */).add(1004 /* Case */);
15768
15765
  }
15769
15766
  if (syntaxContext.statementContext !== void 0) {
15770
- kinds.add(1021 /* Loop */).add(1028 /* Return */).add(1012 /* Error */).add(1020 /* Important */).add(1037 /* Yield */).add(1003 /* BreakLoop */).add(1007 /* ContinueLoop */).add(1018 /* If */).add(1030 /* Switch */).add(1034 /* Var */).add(1008 /* Dispose */).add(1032 /* Try */).add(1017 /* Function */).add(1015 /* For */).add(1035 /* While */).add(1011 /* End */);
15767
+ kinds.add(1022 /* Loop */).add(1029 /* Return */).add(1013 /* Error */).add(1021 /* Important */).add(1038 /* Yield */).add(1003 /* BreakLoop */).add(1008 /* ContinueLoop */).add(1019 /* If */).add(1031 /* Switch */).add(1035 /* Var */).add(1007 /* Const */).add(1009 /* Dispose */).add(1033 /* Try */).add(1018 /* Function */).add(1016 /* For */).add(1036 /* While */).add(1012 /* End */);
15771
15768
  }
15772
15769
  if (this.isFromKeywordContext(positionDescription)) {
15773
- kinds.add(1016 /* From */);
15770
+ kinds.add(1017 /* From */);
15774
15771
  }
15775
15772
  if (syntaxContext.expressionContext !== void 0) {
15776
15773
  if (!this.isTypeCallCompletionContext(positionDescription)) {
15777
- kinds.add(1023 /* Not */).add(1036 /* Yes */).add(1022 /* No */).add(1024 /* Null */).add(1017 /* Function */).add(1006 /* Cond */);
15774
+ kinds.add(1024 /* Not */).add(1037 /* Yes */).add(1023 /* No */).add(1025 /* Null */).add(1018 /* Function */).add(1006 /* Cond */);
15778
15775
  }
15779
15776
  const objectVariableInfo = semanticContext.getObjectVariableInfo();
15780
15777
  if (objectVariableInfo !== void 0 && !(objectVariableInfo.kind === "containing-type-context" && semanticContext.isStatic())) {
15781
- kinds.add(1025 /* Object */);
15778
+ kinds.add(1026 /* Object */);
15782
15779
  }
15783
15780
  if (!semanticContext.isStatic()) {
15784
15781
  const typeEntity = semanticContext.getContainingType();
@@ -15790,10 +15787,10 @@ var CompletionServiceM = class {
15790
15787
  }
15791
15788
  }
15792
15789
  if (this.isAliasedTypeCompletionContext(positionDescription)) {
15793
- kinds.add(1017 /* Function */);
15790
+ kinds.add(1018 /* Function */);
15794
15791
  }
15795
15792
  if (this.isExtendsKeywordCompletionContext(positionDescription)) {
15796
- kinds.add(1013 /* Extends */);
15793
+ kinds.add(1014 /* Extends */);
15797
15794
  }
15798
15795
  if (this.isCaseKeywordContext(positionDescription, syntaxContext)) {
15799
15796
  kinds.add(1004 /* Case */);
@@ -15802,22 +15799,22 @@ var CompletionServiceM = class {
15802
15799
  kinds.add(1005 /* Catch */);
15803
15800
  }
15804
15801
  if (this.isFinallyKeywordContext(positionDescription, syntaxContext)) {
15805
- kinds.add(1014 /* Finally */);
15802
+ kinds.add(1015 /* Finally */);
15806
15803
  }
15807
15804
  if (this.isElseOrElseIfKeywordContext(positionDescription, syntaxContext)) {
15808
- kinds.add(1009 /* Else */).add(1010 /* ElseIf */);
15805
+ kinds.add(1010 /* Else */).add(1011 /* ElseIf */);
15809
15806
  }
15810
15807
  if (this.isTypeKeywordContext(positionDescription)) {
15811
- kinds.add(1033 /* Type */);
15808
+ kinds.add(1034 /* Type */);
15812
15809
  }
15813
15810
  if (this.isEndKeywordInModulesBlockContext(positionDescription)) {
15814
- kinds.add(1011 /* End */);
15811
+ kinds.add(1012 /* End */);
15815
15812
  }
15816
15813
  if (syntaxContext.precedingExpression !== void 0) {
15817
- kinds.add(1001 /* And */).add(1026 /* Or */);
15814
+ kinds.add(1001 /* And */).add(1027 /* Or */);
15818
15815
  }
15819
15816
  if (syntaxContext.unqualifiedTypeContext?.allowsLocalTypes === true) {
15820
- kinds.add(1017 /* Function */).add(1004 /* Case */).add(1033 /* Type */);
15817
+ kinds.add(1018 /* Function */).add(1004 /* Case */).add(1034 /* Type */);
15821
15818
  }
15822
15819
  if (positionDescription.kind === "after-token-or-keyword") {
15823
15820
  const typeSpecifierWrapper = SyntaxContextUtils2.tokenOrKeywordIsValidEndOfTypeSpecifier(positionDescription.tokenOrKeyword);
@@ -16065,7 +16062,7 @@ var CompletionServiceM = class {
16065
16062
  return false;
16066
16063
  }
16067
16064
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
16068
- if (tokenOrKeyword.isKeyword(1019 /* Import */)) {
16065
+ if (tokenOrKeyword.isKeyword(1020 /* Import */)) {
16069
16066
  return true;
16070
16067
  }
16071
16068
  return SyntaxContextUtils2.ifTokenIsValidEndOfNodeThenNode(
@@ -16401,10 +16398,10 @@ var CompletionServiceM = class {
16401
16398
  }
16402
16399
  if (!ctx.hasPrecedingKeyword) {
16403
16400
  const keywords = [
16404
- 1033 /* Type */,
16405
- 1017 /* Function */,
16406
- 1034 /* Var */,
16407
- 1011 /* End */
16401
+ 1034 /* Type */,
16402
+ 1018 /* Function */,
16403
+ 1035 /* Var */,
16404
+ 1012 /* End */
16408
16405
  ];
16409
16406
  result = result.chain(
16410
16407
  Query.from(keywords).map((k) => LocalizationHelperM.localizeKeyword(k, this.locale).map((v) => new KeywordCompletionItemInfo2(this.completionItemInfoContext, k, v.value))).flatMap((i) => i)
@@ -16483,10 +16480,10 @@ var CompletionServiceM = class {
16483
16480
  }
16484
16481
  if (!ctx.hasPrecedingKeyword) {
16485
16482
  const keywords = [
16486
- 1017 /* Function */,
16487
- 1034 /* Var */,
16483
+ 1018 /* Function */,
16484
+ 1035 /* Var */,
16488
16485
  1004 /* Case */,
16489
- 1011 /* End */
16486
+ 1012 /* End */
16490
16487
  ];
16491
16488
  result = result.chain(
16492
16489
  Query.from(keywords).map((k) => LocalizationHelperM.localizeKeyword(k, this.locale).map((v) => new KeywordCompletionItemInfo2(this.completionItemInfoContext, k, v.value))).flatMap((i) => i)
@@ -17108,7 +17105,7 @@ var TranslationsSourceVariableCompletionItemInfo2 = class {
17108
17105
  this.kind = "translations-source-variable";
17109
17106
  }
17110
17107
  get keywordKind() {
17111
- return this.variable.subkind === "field" && this.variable.isVariantValue() ? 1004 /* Case */ : 1034 /* Var */;
17108
+ return this.variable.subkind === "field" && this.variable.isVariantValue() ? 1004 /* Case */ : 1035 /* Var */;
17112
17109
  }
17113
17110
  getLabel() {
17114
17111
  return this.ctx.getInsertTextForName(this.variable.getName());
@@ -17193,7 +17190,7 @@ var TranslationsSourceFunctionCompletionItemInfo = class {
17193
17190
  return this.ctx.displayService.displayFunctionDeclaration(new FunctionDeclaration_entity(this.func));
17194
17191
  }
17195
17192
  getInsertText() {
17196
- const keywordWithWhitespace = this.includeFunctionKeyword ? `${this.ctx.displayService.m.displayKeyword(1017 /* Function */)} ` : "";
17193
+ const keywordWithWhitespace = this.includeFunctionKeyword ? `${this.ctx.displayService.m.displayKeyword(1018 /* Function */)} ` : "";
17197
17194
  const typeParameters = this.func.getTypeParameters().map((p) => this.ctx.getInsertTextForName(p.getName())).join(", ");
17198
17195
  const typeParametersWithAngles = typeParameters.length > 0 ? `<${typeParameters}>` : "";
17199
17196
  const parameters = this.func.getParameters().map((p) => this.ctx.getInsertTextForName(p.getName())).join(", ");
@@ -17248,7 +17245,7 @@ var TranslationsSourcePackageTypeCompletionItemInfo2 = class {
17248
17245
  return this.ctx.displayService.displayEntity(this.typeEntity);
17249
17246
  }
17250
17247
  getInsertText() {
17251
- const keywordWithWhitespace = this.includeTypeKeyword ? `${this.ctx.displayService.m.displayKeyword(1033 /* Type */)} ` : "";
17248
+ const keywordWithWhitespace = this.includeTypeKeyword ? `${this.ctx.displayService.m.displayKeyword(1034 /* Type */)} ` : "";
17252
17249
  const typeParameters = this.typeEntity.getTypeParameters().map((p) => this.ctx.getInsertTextForName(p.getName())).join(", ");
17253
17250
  const typeParametersWithAngles = typeParameters.length > 0 ? `<${typeParameters}>` : "";
17254
17251
  let result = `${keywordWithWhitespace}${this.ctx.getInsertTextForName(this.typeEntity.getName())}${typeParametersWithAngles}`;
@@ -17322,7 +17319,7 @@ var EndSnippetInfo = class extends SnippetInfo {
17322
17319
  constructor(ctx, openingKeyword, multiLineMode) {
17323
17320
  super(ctx);
17324
17321
  this.opening = ctx.displayService.m.displayKeyword(openingKeyword);
17325
- this.ending = ctx.displayService.m.displayKeyword(1011 /* End */);
17322
+ this.ending = ctx.displayService.m.displayKeyword(1012 /* End */);
17326
17323
  this.multiLineMode = multiLineMode;
17327
17324
  }
17328
17325
  getLabel() {
@@ -17517,7 +17514,7 @@ var SyntaxContextFactory2 = class {
17517
17514
  }
17518
17515
  }
17519
17516
  if (!hasBrace) {
17520
- if (tokenOrKeyword.isKeyword(1009 /* Else */) && tokenOrKeyword.parent.kind === 1023 /* ElseClause */ || tokenOrKeyword.isKeyword(1021 /* Loop */) && tokenOrKeyword.parent.kind === 1060 /* LoopStatement */ || tokenOrKeyword.isKeyword(1032 /* Try */) && tokenOrKeyword.parent.kind === 1124 /* TryStatement */ || tokenOrKeyword.isKeyword(1005 /* Catch */) && tokenOrKeyword.parent.kind === 1015 /* CatchClause */ || tokenOrKeyword.isKeyword(1014 /* Finally */) && tokenOrKeyword.parent.kind === 1034 /* FinallyClause */) {
17517
+ if (tokenOrKeyword.isKeyword(1010 /* Else */) && tokenOrKeyword.parent.kind === 1023 /* ElseClause */ || tokenOrKeyword.isKeyword(1022 /* Loop */) && tokenOrKeyword.parent.kind === 1060 /* LoopStatement */ || tokenOrKeyword.isKeyword(1033 /* Try */) && tokenOrKeyword.parent.kind === 1124 /* TryStatement */ || tokenOrKeyword.isKeyword(1005 /* Catch */) && tokenOrKeyword.parent.kind === 1015 /* CatchClause */ || tokenOrKeyword.isKeyword(1015 /* Finally */) && tokenOrKeyword.parent.kind === 1034 /* FinallyClause */) {
17521
17518
  return {
17522
17519
  expressionContext: { expressionRole: new ExpressionRole_other2(void 0) },
17523
17520
  statementContext: { statementRole: new StatementRole_inBlock(tokenOrKeyword.parent.block) }
@@ -17682,39 +17679,39 @@ var SyntaxContextFactory2 = class {
17682
17679
  const expressionRole = new ExpressionRole_matchListElement2(tokenOrKeyword.parent.parent.parent);
17683
17680
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17684
17681
  }
17685
- if (tokenOrKeyword.isKeyword(1028 /* Return */) && tokenOrKeyword.parent.kind === 1099 /* ReturnStatement */) {
17682
+ if (tokenOrKeyword.isKeyword(1029 /* Return */) && tokenOrKeyword.parent.kind === 1099 /* ReturnStatement */) {
17686
17683
  const expressionRole = new ExpressionRole_returnedValue2(tokenOrKeyword.parent);
17687
17684
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17688
17685
  }
17689
- if (tokenOrKeyword.isKeyword(1012 /* Error */) && tokenOrKeyword.parent.kind === 1026 /* ErrorStatement */) {
17686
+ if (tokenOrKeyword.isKeyword(1013 /* Error */) && tokenOrKeyword.parent.kind === 1026 /* ErrorStatement */) {
17690
17687
  const expressionRole = new ExpressionRole_errorValue2(tokenOrKeyword.parent);
17691
17688
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17692
17689
  }
17693
- if (tokenOrKeyword.isKeyword(1020 /* Important */) && tokenOrKeyword.parent.kind === 1044 /* ImportantStatement */) {
17690
+ if (tokenOrKeyword.isKeyword(1021 /* Important */) && tokenOrKeyword.parent.kind === 1044 /* ImportantStatement */) {
17694
17691
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.expression);
17695
17692
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17696
17693
  }
17697
- if (tokenOrKeyword.isKeyword(1030 /* Switch */) && tokenOrKeyword.parent.kind === 1103 /* SwitchStatement */) {
17694
+ if (tokenOrKeyword.isKeyword(1031 /* Switch */) && tokenOrKeyword.parent.kind === 1103 /* SwitchStatement */) {
17698
17695
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.expression);
17699
17696
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17700
17697
  }
17701
- if (tokenOrKeyword.isKeyword(1018 /* If */) && tokenOrKeyword.parent.kind === 1043 /* IfStatement */) {
17698
+ if (tokenOrKeyword.isKeyword(1019 /* If */) && tokenOrKeyword.parent.kind === 1043 /* IfStatement */) {
17702
17699
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.condition);
17703
17700
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17704
17701
  }
17705
- if (tokenOrKeyword.isKeyword(1010 /* ElseIf */) && tokenOrKeyword.parent.kind === 1024 /* ElseIfClause */) {
17702
+ if (tokenOrKeyword.isKeyword(1011 /* ElseIf */) && tokenOrKeyword.parent.kind === 1024 /* ElseIfClause */) {
17706
17703
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.condition);
17707
17704
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17708
17705
  }
17709
- if (tokenOrKeyword.isKeyword(1016 /* From */) && tokenOrKeyword.parent.kind === 1035 /* ForStatement */) {
17706
+ if (tokenOrKeyword.isKeyword(1017 /* From */) && tokenOrKeyword.parent.kind === 1035 /* ForStatement */) {
17710
17707
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.enumeratedExpression);
17711
17708
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17712
17709
  }
17713
- if (tokenOrKeyword.isKeyword(1035 /* While */) && tokenOrKeyword.parent.kind === 1138 /* WhileStatement */) {
17710
+ if (tokenOrKeyword.isKeyword(1036 /* While */) && tokenOrKeyword.parent.kind === 1138 /* WhileStatement */) {
17714
17711
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.condition);
17715
17712
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17716
17713
  }
17717
- if (tokenOrKeyword.isKeyword(1037 /* Yield */) && tokenOrKeyword.parent.kind === 1139 /* YieldStatement */) {
17714
+ if (tokenOrKeyword.isKeyword(1038 /* Yield */) && tokenOrKeyword.parent.kind === 1139 /* YieldStatement */) {
17718
17715
  const expressionRole = new ExpressionRole_other2(tokenOrKeyword.parent.expression);
17719
17716
  return { expressionContext: { expressionRole }, statementContext: void 0 };
17720
17717
  }
@@ -17762,10 +17759,10 @@ var SyntaxContextFactory2 = class {
17762
17759
  if (tokenOrKeyword.isToken(1026 /* Comma */) && (tokenOrKeyword.parent.kind === 1083 /* PackageMemberDeclarationList */ || tokenOrKeyword.parent.kind === 1081 /* PackageImportDirectiveList */)) {
17763
17760
  return true;
17764
17761
  }
17765
- if ((tokenOrKeyword.isToken(1022 /* CloseBrace */) || tokenOrKeyword.isKeyword(1011 /* End */)) && tokenOrKeyword.parent.kind === 1128 /* TypeMemberDeclarationBlock */ && isPackageTypeDeclaration2(tokenOrKeyword.parent.parent)) {
17762
+ if ((tokenOrKeyword.isToken(1022 /* CloseBrace */) || tokenOrKeyword.isKeyword(1012 /* End */)) && tokenOrKeyword.parent.kind === 1128 /* TypeMemberDeclarationBlock */ && isPackageTypeDeclaration2(tokenOrKeyword.parent.parent)) {
17766
17763
  return true;
17767
17764
  }
17768
- if ((tokenOrKeyword.isToken(1022 /* CloseBrace */) || tokenOrKeyword.isKeyword(1011 /* End */)) && (tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */ || tokenOrKeyword.parent.kind === 1080 /* PackageImportDirective */ || tokenOrKeyword.parent.kind === 1037 /* FunctionBlock */ && tokenOrKeyword.parent.parent.kind === 1077 /* PackageFunctionDeclaration */)) {
17765
+ if ((tokenOrKeyword.isToken(1022 /* CloseBrace */) || tokenOrKeyword.isKeyword(1012 /* End */)) && (tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */ || tokenOrKeyword.parent.kind === 1080 /* PackageImportDirective */ || tokenOrKeyword.parent.kind === 1037 /* FunctionBlock */ && tokenOrKeyword.parent.parent.kind === 1077 /* PackageFunctionDeclaration */)) {
17769
17766
  return true;
17770
17767
  }
17771
17768
  if (this.packageDeclarations.some((kind) => SyntaxContextUtils2.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, kind))) {
@@ -17806,7 +17803,7 @@ var SyntaxContextFactory2 = class {
17806
17803
  if (SyntaxContextUtils2.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 1029 /* ExtendsClause */)) {
17807
17804
  return true;
17808
17805
  }
17809
- if ((tokenOrKeyword.isToken(1022 /* CloseBrace */) || tokenOrKeyword.isKeyword(1011 /* End */)) && tokenOrKeyword.parent.kind === 1128 /* TypeMemberDeclarationBlock */) {
17806
+ if ((tokenOrKeyword.isToken(1022 /* CloseBrace */) || tokenOrKeyword.isKeyword(1012 /* End */)) && tokenOrKeyword.parent.kind === 1128 /* TypeMemberDeclarationBlock */) {
17810
17807
  return true;
17811
17808
  }
17812
17809
  if (this.typeDeclarations.some((nodeKind) => SyntaxContextUtils2.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, nodeKind))) {
@@ -17853,7 +17850,7 @@ var SyntaxContextFactory2 = class {
17853
17850
  if (tokenOrKeyword.isToken(1025 /* Colon */) && tokenOrKeyword.parent.kind === 1125 /* TypeAnnotation */) {
17854
17851
  return { allowsLocalTypes: true };
17855
17852
  }
17856
- if (tokenOrKeyword.isKeyword(1013 /* Extends */) && (tokenOrKeyword.parent.kind === 1029 /* ExtendsClause */ || tokenOrKeyword.parent.kind === 1132 /* TypeParameterDeclaration */)) {
17853
+ if (tokenOrKeyword.isKeyword(1014 /* Extends */) && (tokenOrKeyword.parent.kind === 1029 /* ExtendsClause */ || tokenOrKeyword.parent.kind === 1132 /* TypeParameterDeclaration */)) {
17857
17854
  return { allowsLocalTypes: false };
17858
17855
  }
17859
17856
  if (tokenOrKeyword.isToken(1049 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 1008 /* BaseTypeGroup */ || tokenOrKeyword.isToken(1026 /* Comma */) && tokenOrKeyword.parent.kind === 1009 /* BaseTypeList */) {
@@ -17877,7 +17874,7 @@ var SyntaxContextFactory2 = class {
17877
17874
  if (tokenOrKeyword.isToken(1049 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 1095 /* ParenthesizedTypeSpecifier */) {
17878
17875
  return { allowsLocalTypes: true };
17879
17876
  }
17880
- if (tokenOrKeyword.isKeyword(1034 /* Var */) && tokenOrKeyword.parent.kind === 1087 /* PackageVariableDeclaration */ || tokenOrKeyword.parent.kind === 1088 /* PackageVariableGetterDeclaration */ || tokenOrKeyword.parent.kind === 1089 /* PackageVariableSetterDeclaration */) {
17877
+ if (tokenOrKeyword.isKeyword(1035 /* Var */) && tokenOrKeyword.parent.kind === 1087 /* PackageVariableDeclaration */ || tokenOrKeyword.parent.kind === 1088 /* PackageVariableGetterDeclaration */ || tokenOrKeyword.parent.kind === 1089 /* PackageVariableSetterDeclaration */) {
17881
17878
  return { allowsLocalTypes: false };
17882
17879
  }
17883
17880
  if (tokenOrKeyword.isKeyword(1004 /* Case */) && tokenOrKeyword.parent.kind === 1135 /* UnionTypeSpecifier */) {
@@ -17892,7 +17889,7 @@ var SyntaxContextFactory2 = class {
17892
17889
  if (tokenOrKeyword.isToken(1048 /* OpenBrace */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
17893
17890
  return { translationsDeclaration: tokenOrKeyword.parent };
17894
17891
  }
17895
- if (tokenOrKeyword.isKeyword(1031 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
17892
+ if (tokenOrKeyword.isKeyword(1032 /* Translations */) && tokenOrKeyword.parent.kind === 1123 /* TranslationsDeclaration */) {
17896
17893
  return { translationsDeclaration: tokenOrKeyword.parent };
17897
17894
  }
17898
17895
  const type = SyntaxContextUtils2.ifTokenIsValidEndOfNodeThenNode(
@@ -18160,7 +18157,7 @@ var EvaluatableExpressionServiceM = class {
18160
18157
  getEvaluatableExpressionAtKeyword(analyzer, keyword) {
18161
18158
  let text;
18162
18159
  switch (keyword.keywordKind) {
18163
- case 1025 /* Object */: {
18160
+ case 1026 /* Object */: {
18164
18161
  if (keyword.parent.kind === 1075 /* ObjectExpression */) {
18165
18162
  text = this.getObjectExpressionText(analyzer, keyword.parent);
18166
18163
  }
@@ -18470,7 +18467,7 @@ var RenameServiceM = class extends RenameService {
18470
18467
  isForReferencesSearch: false
18471
18468
  };
18472
18469
  semanticInfo = NodeSemanticInfoServiceM.ofNonKeywordIdentifier(analyzer.dialectM, tokenOrKeyword.value, options7);
18473
- } else if (tokenOrKeyword.isKeyword(1025 /* Object */) && tokenOrKeyword.parent.kind === 1075 /* ObjectExpression */) {
18470
+ } else if (tokenOrKeyword.isKeyword(1026 /* Object */) && tokenOrKeyword.parent.kind === 1075 /* ObjectExpression */) {
18474
18471
  const options7 = {
18475
18472
  includeBetterReferenceTargets: true,
18476
18473
  preferredTargetOfExplicitConstructorCall: "type-declaration",
@@ -18714,7 +18711,7 @@ var SemanticTokensServiceM = class {
18714
18711
  );
18715
18712
  }
18716
18713
  }
18717
- if (isKeyword2(node, 1011 /* End */) && this.isEndKeywordEndingStatement(node)) {
18714
+ if (isKeyword2(node, 1012 /* End */) && this.isEndKeywordEndingStatement(node)) {
18718
18715
  result.push(new SemanticToken(
18719
18716
  node.rangeWithoutTrivia,
18720
18717
  8 /* KeywordControl */,
@@ -11,7 +11,7 @@ import {
11
11
  WellKnownDeclarationsLoadError,
12
12
  __async,
13
13
  createTsInteropInputsForCompilation
14
- } from "./chunk-VU7MVXGK.js";
14
+ } from "./chunk-OBK4F7TH.js";
15
15
 
16
16
  // source/diagnostic/DiagnosticFormatter.ts
17
17
  var DiagnosticFormatter = class _DiagnosticFormatter {