@artel/artc 0.6.25272 → 0.6.25274

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 (29) 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 +188 -238
  5. package/build/{chunk-2SRNQ3Z6.js → chunk-6JA436J2.js} +1934 -1335
  6. package/build/{chunk-6SPB6XSH.js → chunk-DXF6BY5D.js} +2 -2
  7. package/build/{chunk-IVVTDCLH.js → chunk-GDE2NNW7.js} +1 -1
  8. package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +3 -2
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +1 -1
  10. package/build/types/analysis/Analyzer.d.ts +14 -4
  11. package/build/types/analysis/DiagnosticCollector.d.ts +7 -0
  12. package/build/types/analysis/TextIdentity.d.ts +9 -0
  13. package/build/types/common/Constants.d.ts +1 -1
  14. package/build/types/common/PackageDialect.d.ts +2 -3
  15. package/build/types/common/Query.d.ts +4 -0
  16. package/build/types/diagnostic/DiagnosticCode.d.ts +98 -92
  17. package/build/types/emitter/EmitterContext.d.ts +2 -2
  18. package/build/types/emitter/IrBuilder.d.ts +0 -1
  19. package/build/types/emitter/IrToJs.d.ts +4 -0
  20. package/build/types/emitter/Transformer.d.ts +35 -15
  21. package/build/types/emitter/ir/types.d.ts +1 -1
  22. package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -2
  23. package/build/types/entities/source/SourceTextTranslationEntity.d.ts +3 -2
  24. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +0 -1
  25. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +0 -1
  26. package/build/types/tree/NodeKind.d.ts +58 -60
  27. package/build/types/tree/Nodes.d.ts +4 -30
  28. package/build/types/tree/SyntaxToCode.d.ts +0 -1
  29. package/package.json +1 -1
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-2SRNQ3Z6.js";
185
+ } from "../chunk-6JA436J2.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -1776,15 +1776,6 @@ var SyntaxToCode = class _SyntaxToCode {
1776
1776
  }
1777
1777
  this.writeToken(node.closeBraceToken);
1778
1778
  }
1779
- writePackageImportTranslation(node) {
1780
- this.writeKeyword(node.importKeyword);
1781
- this.writeWhitespace();
1782
- this.writeQualifiedName(node.sourceName);
1783
- this.writeWhitespace();
1784
- this.writeToken(node.minusGreaterThanToken);
1785
- this.writeWhitespace();
1786
- this.writeQualifiedName(node.translatedName);
1787
- }
1788
1779
  writePackageVariableTranslation(node) {
1789
1780
  this.writeToken(node.sourceName);
1790
1781
  this.writeWhitespace();
@@ -2089,25 +2080,25 @@ var SyntaxToCode = class _SyntaxToCode {
2089
2080
  [54 /* FieldSetterDeclaration */]: this.prototype.writeFieldSetterDeclaration,
2090
2081
  [94 /* StatementBlock */]: this.prototype.writeStatementBlock,
2091
2082
  [95 /* FunctionBlock */]: this.prototype.writeFunctionBlock,
2092
- [137 /* QualifiedName */]: this.prototype.writeQualifiedName,
2093
- [149 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2094
- [150 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2095
- [151 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2096
- [152 /* Argument */]: this.prototype.writeArgument,
2097
- [154 /* Tag */]: this.prototype.writeTag,
2098
- [156 /* Modifier */]: this.prototype.writeModifier,
2099
- [157 /* ParameterClause */]: this.prototype.writeParameterClause,
2100
- [158 /* ParameterList */]: this.prototype.writeParameterList,
2101
- [159 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2102
- [161 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
2083
+ [135 /* QualifiedName */]: this.prototype.writeQualifiedName,
2084
+ [147 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2085
+ [148 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2086
+ [149 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2087
+ [150 /* Argument */]: this.prototype.writeArgument,
2088
+ [152 /* Tag */]: this.prototype.writeTag,
2089
+ [154 /* Modifier */]: this.prototype.writeModifier,
2090
+ [155 /* ParameterClause */]: this.prototype.writeParameterClause,
2091
+ [156 /* ParameterList */]: this.prototype.writeParameterList,
2092
+ [157 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2093
+ [159 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
2103
2094
  [17 /* AnonymousFunctionTypeDeclaration */]: this.prototype.writeAnonymousFunctionTypeDeclaration,
2104
2095
  [18 /* AnonymousStructuredTypeDeclaration */]: this.prototype.writeAnonymousStructuredTypeDeclaration,
2105
2096
  [19 /* AnonymousVariantTypeDeclaration */]: this.prototype.writeAnonymousVariantTypeDeclaration,
2106
2097
  [6 /* PackageGroupImportDirective */]: this.prototype.writeNodeDefault,
2107
2098
  [7 /* PackageImportList */]: this.prototype.writeNodeDefault,
2108
2099
  [16 /* MissingTypeSpecifier */]: this.prototype.writeNodeDefault,
2109
- [125 /* TopLevelTranslationList */]: this.prototype.writeNodeDefault,
2110
- [124 /* TranslationsDeclaration */]: this.prototype.writeTranslationsDeclaration,
2100
+ [124 /* TopLevelTranslationList */]: this.prototype.writeNodeDefault,
2101
+ [123 /* TranslationsDeclaration */]: this.prototype.writeTranslationsDeclaration,
2111
2102
  [21 /* AliasTypeDeclarationBody */]: this.prototype.writeNodeDefault,
2112
2103
  [29 /* TypeMemberDeclarationList */]: this.prototype.writeNodeDefault,
2113
2104
  [38 /* TypeExtensionDeclaration */]: this.prototype.writeNodeDefault,
@@ -2162,53 +2153,51 @@ var SyntaxToCode = class _SyntaxToCode {
2162
2153
  [101 /* CatchClause */]: this.prototype.writeNodeDefault,
2163
2154
  [102 /* ErrorVariableDeclaration */]: this.prototype.writeNodeDefault,
2164
2155
  [103 /* FinallyClause */]: this.prototype.writeNodeDefault,
2165
- [104 /* EmptyStatement */]: this.prototype.writeNodeDefault,
2166
- [105 /* ErrorStatement */]: this.prototype.writeNodeDefault,
2167
- [106 /* ImportantStatement */]: this.prototype.writeNodeDefault,
2168
- [107 /* ExpressionStatement */]: this.prototype.writeNodeDefault,
2169
- [108 /* ForStatement */]: this.prototype.writeNodeDefault,
2170
- [109 /* IfStatement */]: this.prototype.writeNodeDefault,
2171
- [110 /* ElseIfClauseList */]: this.prototype.writeNodeDefault,
2172
- [111 /* ElseIfClause */]: this.prototype.writeNodeDefault,
2173
- [112 /* ElseClause */]: this.prototype.writeNodeDefault,
2174
- [113 /* MissingStatement */]: this.prototype.writeNodeDefault,
2175
- [114 /* NestedFunctionDeclarationStatement */]: this.prototype.writeNodeDefault,
2176
- [115 /* LocalVariableDeclarationStatement */]: this.prototype.writeNodeDefault,
2177
- [116 /* LoopStatement */]: this.prototype.writeNodeDefault,
2178
- [117 /* ReturnStatement */]: this.prototype.writeNodeDefault,
2179
- [118 /* CaseClauseList */]: this.prototype.writeNodeDefault,
2180
- [119 /* SwitchStatement */]: this.prototype.writeNodeDefault,
2181
- [120 /* MatchExpressionList */]: this.prototype.writeNodeDefault,
2182
- [121 /* CaseClause */]: this.prototype.writeNodeDefault,
2183
- [122 /* WhileStatement */]: this.prototype.writeNodeDefault,
2184
- [123 /* YieldStatement */]: this.prototype.writeNodeDefault,
2185
- [126 /* TranslationParameterList */]: this.prototype.writeNodeDefault,
2186
- [127 /* TranslationParameterClause */]: this.prototype.writeTranslationParameterClause,
2187
- [128 /* ConstructorTranslation */]: this.prototype.writeConstructorTranslation,
2188
- [129 /* IndexParameterTranslationClause */]: this.prototype.writeIndexParameterTranslationClause,
2189
- [130 /* IndexerTranslation */]: this.prototype.writeIndexerTranslation,
2190
- [131 /* TranslationTypeParameterList */]: this.prototype.writeNodeDefault,
2191
- [132 /* TranslationTypeParameterClause */]: this.prototype.writeTranslationTypeParameterClause,
2192
- [133 /* PackageFunctionTranslationDeclaration */]: this.prototype.writePackageFunctionTranslation,
2193
- [134 /* MethodTranslation */]: this.prototype.writeMethodTranslation,
2194
- [135 /* FunctionTypeTranslationDeclaration */]: this.prototype.writeFunctionTypeTranslation,
2195
- [136 /* PackageImportTranslationDeclaration */]: this.prototype.writePackageImportTranslation,
2196
- [138 /* PackageVariableTranslationDeclaration */]: this.prototype.writePackageVariableTranslation,
2197
- [139 /* FieldOrVariantTranslation */]: this.prototype.writeFieldOrVariantTranslation,
2198
- [140 /* TypeMemberTranslationList */]: this.prototype.writeNodeDefault,
2199
- [141 /* TypeTranslationDeclaration */]: this.prototype.writeTypeTranslation,
2200
- [142 /* TextTranslationDeclaration */]: this.prototype.writeNodeDefault,
2201
- [143 /* TextTranslationFunctionDeclaration */]: this.prototype.writeNodeDefault,
2202
- [153 /* TagList */]: this.prototype.writeNodeDefault,
2203
- [155 /* ModifierList */]: this.prototype.writeNodeDefault,
2204
- [160 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2205
- [162 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2206
- [163 /* TypeAnnotation */]: this.prototype.writeNodeDefault,
2207
- [144 /* TranslationTextLiteral */]: this.prototype.writeNodeDefault,
2208
- [145 /* TranslationTextTemplate */]: this.prototype.writeNodeDefault,
2209
- [146 /* TranslationTextTemplateSpanList */]: this.prototype.writeNodeDefault,
2210
- [147 /* TranslationTextTemplateSpan */]: this.prototype.writeNodeDefault,
2211
- [148 /* TranslationTextTemplateParameter */]: this.prototype.writeNodeDefault
2156
+ [104 /* ErrorStatement */]: this.prototype.writeNodeDefault,
2157
+ [105 /* ImportantStatement */]: this.prototype.writeNodeDefault,
2158
+ [106 /* ExpressionStatement */]: this.prototype.writeNodeDefault,
2159
+ [107 /* ForStatement */]: this.prototype.writeNodeDefault,
2160
+ [108 /* IfStatement */]: this.prototype.writeNodeDefault,
2161
+ [109 /* ElseIfClauseList */]: this.prototype.writeNodeDefault,
2162
+ [110 /* ElseIfClause */]: this.prototype.writeNodeDefault,
2163
+ [111 /* ElseClause */]: this.prototype.writeNodeDefault,
2164
+ [112 /* MissingStatement */]: this.prototype.writeNodeDefault,
2165
+ [113 /* NestedFunctionDeclarationStatement */]: this.prototype.writeNodeDefault,
2166
+ [114 /* LocalVariableDeclarationStatement */]: this.prototype.writeNodeDefault,
2167
+ [115 /* LoopStatement */]: this.prototype.writeNodeDefault,
2168
+ [116 /* ReturnStatement */]: this.prototype.writeNodeDefault,
2169
+ [117 /* CaseClauseList */]: this.prototype.writeNodeDefault,
2170
+ [118 /* SwitchStatement */]: this.prototype.writeNodeDefault,
2171
+ [119 /* MatchExpressionList */]: this.prototype.writeNodeDefault,
2172
+ [120 /* CaseClause */]: this.prototype.writeNodeDefault,
2173
+ [121 /* WhileStatement */]: this.prototype.writeNodeDefault,
2174
+ [122 /* YieldStatement */]: this.prototype.writeNodeDefault,
2175
+ [125 /* TranslationParameterList */]: this.prototype.writeNodeDefault,
2176
+ [126 /* TranslationParameterClause */]: this.prototype.writeTranslationParameterClause,
2177
+ [127 /* ConstructorTranslation */]: this.prototype.writeConstructorTranslation,
2178
+ [128 /* IndexParameterTranslationClause */]: this.prototype.writeIndexParameterTranslationClause,
2179
+ [129 /* IndexerTranslation */]: this.prototype.writeIndexerTranslation,
2180
+ [130 /* TranslationTypeParameterList */]: this.prototype.writeNodeDefault,
2181
+ [131 /* TranslationTypeParameterClause */]: this.prototype.writeTranslationTypeParameterClause,
2182
+ [132 /* PackageFunctionTranslationDeclaration */]: this.prototype.writePackageFunctionTranslation,
2183
+ [133 /* MethodTranslation */]: this.prototype.writeMethodTranslation,
2184
+ [134 /* FunctionTypeTranslationDeclaration */]: this.prototype.writeFunctionTypeTranslation,
2185
+ [136 /* PackageVariableTranslationDeclaration */]: this.prototype.writePackageVariableTranslation,
2186
+ [137 /* FieldOrVariantTranslation */]: this.prototype.writeFieldOrVariantTranslation,
2187
+ [138 /* TypeMemberTranslationList */]: this.prototype.writeNodeDefault,
2188
+ [139 /* TypeTranslationDeclaration */]: this.prototype.writeTypeTranslation,
2189
+ [140 /* TextTranslationDeclaration */]: this.prototype.writeNodeDefault,
2190
+ [141 /* TextTranslationFunctionDeclaration */]: this.prototype.writeNodeDefault,
2191
+ [151 /* TagList */]: this.prototype.writeNodeDefault,
2192
+ [153 /* ModifierList */]: this.prototype.writeNodeDefault,
2193
+ [158 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2194
+ [160 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2195
+ [161 /* TypeAnnotation */]: this.prototype.writeNodeDefault,
2196
+ [142 /* TranslationTextLiteral */]: this.prototype.writeNodeDefault,
2197
+ [143 /* TranslationTextTemplate */]: this.prototype.writeNodeDefault,
2198
+ [144 /* TranslationTextTemplateSpanList */]: this.prototype.writeNodeDefault,
2199
+ [145 /* TranslationTextTemplateSpan */]: this.prototype.writeNodeDefault,
2200
+ [146 /* TranslationTextTemplateParameter */]: this.prototype.writeNodeDefault
2212
2201
  };
2213
2202
  return writeFunctions;
2214
2203
  }
@@ -2387,7 +2376,7 @@ var TranslationsGenerationService = class {
2387
2376
  return void 0;
2388
2377
  }
2389
2378
  let result;
2390
- if (tokenOrKeyword.isToken(10 /* Identifier */) && tokenOrKeyword.parent.kind === 141 /* TypeTranslationDeclaration */ && tokenOrKeyword.value === tokenOrKeyword.parent.sourceName) {
2379
+ if (tokenOrKeyword.isToken(10 /* Identifier */) && tokenOrKeyword.parent.kind === 139 /* TypeTranslationDeclaration */ && tokenOrKeyword.value === tokenOrKeyword.parent.sourceName) {
2391
2380
  const translationPackage = analyzer.getAnalyzedTranslationPackageIfTargetResolved(sourceFile.package);
2392
2381
  if (translationPackage !== void 0) {
2393
2382
  const generator = new TranslationsGenerator(
@@ -2400,7 +2389,7 @@ var TranslationsGenerationService = class {
2400
2389
  result = generator.generateMissingTypeMemberTranslations(tokenOrKeyword.parent);
2401
2390
  }
2402
2391
  }
2403
- if (result === void 0 && tokenOrKeyword.isKeyword(55 /* Translations */) && tokenOrKeyword.parent.kind === 124 /* TranslationsDeclaration */) {
2392
+ if (result === void 0 && tokenOrKeyword.isKeyword(55 /* Translations */) && tokenOrKeyword.parent.kind === 123 /* TranslationsDeclaration */) {
2404
2393
  const translationPackage = analyzer.getAnalyzedTranslationPackageIfTargetResolved(sourceFile.package);
2405
2394
  if (translationPackage !== void 0) {
2406
2395
  const generator = new TranslationsGenerator(
@@ -2427,7 +2416,7 @@ var TranslationsGenerationService = class {
2427
2416
  if (tokenOrKeyword === void 0) {
2428
2417
  return false;
2429
2418
  }
2430
- if (!(tokenOrKeyword.isKeyword(55 /* Translations */) && tokenOrKeyword.parent.kind === 124 /* TranslationsDeclaration */)) {
2419
+ if (!(tokenOrKeyword.isKeyword(55 /* Translations */) && tokenOrKeyword.parent.kind === 123 /* TranslationsDeclaration */)) {
2431
2420
  return false;
2432
2421
  }
2433
2422
  const translationPackage = analyzer.getAnalyzedTranslationPackageIfTargetResolved(sourceFile.package);
@@ -2441,7 +2430,7 @@ var TranslationsGenerationService = class {
2441
2430
  sourceFile.package.locale,
2442
2431
  sourceFile.package.dialect
2443
2432
  );
2444
- return Query.from(tokenOrKeyword.parent.translationList.translationDeclarations).filter((t) => t.kind === 141 /* TypeTranslationDeclaration */).mapAndFilter((t) => translationPackage.getTypeTranslationTarget(t).target).any((t) => generator.collectNotTranslatedTypeMembers(t).length > 0);
2433
+ return Query.from(tokenOrKeyword.parent.translationList.translationDeclarations).filter((t) => t.kind === 139 /* TypeTranslationDeclaration */).mapAndFilter((t) => translationPackage.getTypeTranslationTarget(t).target).any((t) => generator.collectNotTranslatedTypeMembers(t).length > 0);
2445
2434
  }
2446
2435
  };
2447
2436
  var TranslationsGenerator = class _TranslationsGenerator {
@@ -2469,7 +2458,7 @@ var TranslationsGenerator = class _TranslationsGenerator {
2469
2458
  };
2470
2459
  const memberTranslationsCode = Query.from(memberEntities).mapAndFilter((m) => this.createPackageMemberTranslationNode(m)).uniqueWithComparator(compareNodes).map((n) => {
2471
2460
  const code = new SyntaxToCode(n, syntaxToCodeOptions).convert();
2472
- if (n.kind === 141 /* TypeTranslationDeclaration */) {
2461
+ if (n.kind === 139 /* TypeTranslationDeclaration */) {
2473
2462
  const startOffset = Math.max(code.indexOf(newLine), 0);
2474
2463
  return this.addNewLineBeforeArrowsInTranslation(
2475
2464
  code,
@@ -2501,7 +2490,7 @@ var TranslationsGenerator = class _TranslationsGenerator {
2501
2490
  generateMissingTranslationsForPartiallyTranslatedTypes(translationsDeclaration) {
2502
2491
  const result = new Array();
2503
2492
  for (const translation of translationsDeclaration.translationList.translationDeclarations) {
2504
- if (translation.kind === 141 /* TypeTranslationDeclaration */) {
2493
+ if (translation.kind === 139 /* TypeTranslationDeclaration */) {
2505
2494
  const edits = this.generateMissingTypeMemberTranslations(translation);
2506
2495
  if (edits !== void 0) {
2507
2496
  result.push(...edits);
@@ -2597,13 +2586,13 @@ var TranslationsGenerator = class _TranslationsGenerator {
2597
2586
  }
2598
2587
  detectIndentationStepForTypeMemberTranslations(node) {
2599
2588
  let indentationStepSize;
2600
- if (node.kind === 141 /* TypeTranslationDeclaration */) {
2589
+ if (node.kind === 139 /* TypeTranslationDeclaration */) {
2601
2590
  indentationStepSize = tryDetectIndentationStepSizeUsingTypeTranslation(node, this.sourceFile);
2602
2591
  }
2603
2592
  if (indentationStepSize === void 0) {
2604
- const translationsDeclarations = node.kind === 124 /* TranslationsDeclaration */ ? node : node.parent.parent;
2593
+ const translationsDeclarations = node.kind === 123 /* TranslationsDeclaration */ ? node : node.parent.parent;
2605
2594
  for (const member of translationsDeclarations.translationList.translationDeclarations) {
2606
- if (member.kind === 141 /* TypeTranslationDeclaration */) {
2595
+ if (member.kind === 139 /* TypeTranslationDeclaration */) {
2607
2596
  indentationStepSize = tryDetectIndentationStepSizeUsingTypeTranslation(member, this.sourceFile);
2608
2597
  if (indentationStepSize !== void 0) {
2609
2598
  break;
@@ -2637,7 +2626,7 @@ var TranslationsGenerator = class _TranslationsGenerator {
2637
2626
  return " ".repeat(indentationSize);
2638
2627
  }
2639
2628
  collectNotTranslatedPackageMembers() {
2640
- return this.translationPackage.getPackageInTranslatedLanguage().getMembers().getNamedMembers().filter((m) => m.isHidden() === void 0 && this.isNotTranslatedEntity(m));
2629
+ return this.translationPackage.getTranslatedTargetPackage().getMembers().getNamedMembers().filter((m) => m.isHidden() === void 0 && this.isNotTranslatedEntity(m));
2641
2630
  }
2642
2631
  isNotTranslatedEntity(entity) {
2643
2632
  const translation = entity.getTranslation();
@@ -2778,7 +2767,7 @@ var CodeActionsService = class {
2778
2767
  }
2779
2768
  const result = new Array();
2780
2769
  const diagnosticCodeSet = new Set(diagnosticCodes);
2781
- if (diagnosticCodeSet.has(282 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(283 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
2770
+ if (diagnosticCodeSet.has(282 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(283 /* TheFollowingDeclarationsAreNotTranslated0And1More */)) {
2782
2771
  const data = { onlyTypeMembers: false };
2783
2772
  result.push(CodeAction.unresolved(
2784
2773
  "\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.",
@@ -2883,7 +2872,7 @@ var SignatureForNode = class _SignatureForNode {
2883
2872
  return _SignatureForNode.getSignaturesForAutotypeCallExpression(analyzer, node);
2884
2873
  case 70 /* IndexedAccessExpression */:
2885
2874
  return _SignatureForNode.getSignaturesForIndexedAccessExpression(analyzer, node);
2886
- case 154 /* Tag */:
2875
+ case 152 /* Tag */:
2887
2876
  return _SignatureForNode.getSignaturesForTag(analyzer, node);
2888
2877
  default:
2889
2878
  Debug.never(node);
@@ -3345,7 +3334,7 @@ var CompletionService = class {
3345
3334
  const hidingMatcher = semanticContext.getHidingMatcher();
3346
3335
  return new TypeMemberCompletionContext(type, isStaticAccess, hidingMatcher, semanticContext);
3347
3336
  }
3348
- if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 137 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 10 /* NamedTypeSpecifier */) {
3337
+ if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 10 /* NamedTypeSpecifier */) {
3349
3338
  const namedTypeSpecifier = tokenOrKeyword.parent.parent;
3350
3339
  const resolutionResult = this.analyzer.resolveNamedTypeSpecifier(namedTypeSpecifier);
3351
3340
  const segmentIndex = Math.floor(
@@ -3384,7 +3373,7 @@ var CompletionService = class {
3384
3373
  }
3385
3374
  return { kind: "none" };
3386
3375
  }
3387
- if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 137 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 154 /* Tag */) {
3376
+ if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 152 /* Tag */) {
3388
3377
  const tag = tokenOrKeyword.parent.parent;
3389
3378
  const resolutionResult = this.analyzer.resolveTag(tag);
3390
3379
  const segmentIndex = Math.floor(
@@ -3470,19 +3459,14 @@ var CompletionService = class {
3470
3459
  translationKind = 0 /* Any */;
3471
3460
  hasPrecedingKeyword = false;
3472
3461
  }
3473
- if (tokenOrKeyword.isKeyword(18 /* Import */) && tokenOrKeyword.parent.kind === 136 /* PackageImportTranslationDeclaration */) {
3462
+ if (tokenOrKeyword.isKeyword(16 /* Type */) && (tokenOrKeyword.parent.kind === 139 /* TypeTranslationDeclaration */ || tokenOrKeyword.parent.kind === 134 /* FunctionTypeTranslationDeclaration */)) {
3474
3463
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
3475
- translationKind = 1 /* PackageImport */;
3464
+ translationKind = 2 /* Type */;
3476
3465
  hasPrecedingKeyword = true;
3477
3466
  }
3478
- if (tokenOrKeyword.isKeyword(16 /* Type */) && (tokenOrKeyword.parent.kind === 141 /* TypeTranslationDeclaration */ || tokenOrKeyword.parent.kind === 135 /* FunctionTypeTranslationDeclaration */)) {
3467
+ if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 132 /* PackageFunctionTranslationDeclaration */) {
3479
3468
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
3480
- translationKind = 3 /* Type */;
3481
- hasPrecedingKeyword = true;
3482
- }
3483
- if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 133 /* PackageFunctionTranslationDeclaration */) {
3484
- translationsDeclaration = tokenOrKeyword.parent.parent.parent;
3485
- translationKind = 2 /* Method */;
3469
+ translationKind = 1 /* Method */;
3486
3470
  hasPrecedingKeyword = true;
3487
3471
  }
3488
3472
  if (translationsDeclaration !== void 0) {
@@ -3497,14 +3481,6 @@ var CompletionService = class {
3497
3481
  hasPrecedingKeyword
3498
3482
  );
3499
3483
  }
3500
- if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 137 /* QualifiedName */) {
3501
- const qualifiedName = tokenOrKeyword.parent;
3502
- if (qualifiedName.parent.kind === 136 /* PackageImportTranslationDeclaration */ && qualifiedName === qualifiedName.parent.sourceName) {
3503
- const precedingSegmentNames = qualifiedName.qualifiers.takeWhile((s) => s.rangeWithTrivia.start < tokenOrKeyword.value.rangeWithTrivia.start).map((p) => this.analyzer.createNameFromIdentifier(p)).toArray();
3504
- const sourceLocale = translationPackage.getTargetPackage().getLocale();
3505
- return new PackageImportCompletionContext(precedingSegmentNames, { sourceLocale });
3506
- }
3507
- }
3508
3484
  return void 0;
3509
3485
  }
3510
3486
  tryGetTypeMemberTranslationCompletionContext(syntaxContext, tokenOrKeyword, semanticContext) {
@@ -3524,12 +3500,12 @@ var CompletionService = class {
3524
3500
  translationKind = 0 /* Any */;
3525
3501
  hasPrecedingKeyword = false;
3526
3502
  }
3527
- if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 134 /* MethodTranslation */) {
3503
+ if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 133 /* MethodTranslation */) {
3528
3504
  typeTranslation = tokenOrKeyword.parent.parent.parent;
3529
3505
  translationKind = 1 /* Method */;
3530
3506
  hasPrecedingKeyword = true;
3531
3507
  }
3532
- if (tokenOrKeyword.isKeyword(31 /* Creation */) && tokenOrKeyword.parent.kind === 128 /* ConstructorTranslation */) {
3508
+ if (tokenOrKeyword.isKeyword(31 /* Creation */) && tokenOrKeyword.parent.kind === 127 /* ConstructorTranslation */) {
3533
3509
  typeTranslation = tokenOrKeyword.parent.parent.parent;
3534
3510
  translationKind = 3 /* Constructor */;
3535
3511
  hasPrecedingKeyword = true;
@@ -3565,7 +3541,7 @@ var CompletionService = class {
3565
3541
  signatures = SignatureForNode.getSignaturesForAutotypeCallExpression(this.analyzer, role.argumentList.parent);
3566
3542
  args = ArgumentFactory.createArgumentsOfAutotypeCallExpression(role.argumentList.parent);
3567
3543
  break;
3568
- case 154 /* Tag */:
3544
+ case 152 /* Tag */:
3569
3545
  signatures = SignatureForNode.getSignaturesForTag(this.analyzer, role.argumentList.parent);
3570
3546
  args = ArgumentFactory.createArgumentsOfTag(role.argumentList.parent);
3571
3547
  break;
@@ -3771,21 +3747,21 @@ var CompletionService = class {
3771
3747
  return false;
3772
3748
  }
3773
3749
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3774
- return tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 116 /* LoopStatement */;
3750
+ return tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 115 /* LoopStatement */;
3775
3751
  }
3776
3752
  isModifierLevelContext(positionDescription) {
3777
3753
  if (positionDescription.kind !== "after-token-or-keyword") {
3778
3754
  return false;
3779
3755
  }
3780
3756
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3781
- return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 156 /* Modifier */;
3757
+ return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 154 /* Modifier */;
3782
3758
  }
3783
3759
  isElseOrElseIfKeywordContext(positionDescription) {
3784
3760
  if (positionDescription.kind !== "after-token-or-keyword") {
3785
3761
  return false;
3786
3762
  }
3787
3763
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3788
- return tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && (tokenOrKeyword.parent.parent.kind === 109 /* IfStatement */ && tokenOrKeyword.parent === tokenOrKeyword.parent.parent.block || tokenOrKeyword.parent.parent.kind === 111 /* ElseIfClause */);
3764
+ return tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && (tokenOrKeyword.parent.parent.kind === 108 /* IfStatement */ && tokenOrKeyword.parent === tokenOrKeyword.parent.parent.block || tokenOrKeyword.parent.parent.kind === 110 /* ElseIfClause */);
3789
3765
  }
3790
3766
  isCatchKeywordContext(positionDescription) {
3791
3767
  if (positionDescription.kind !== "after-token-or-keyword") {
@@ -3816,10 +3792,10 @@ var CompletionService = class {
3816
3792
  return false;
3817
3793
  }
3818
3794
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3819
- if (tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 121 /* CaseClause */) {
3795
+ if (tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 120 /* CaseClause */) {
3820
3796
  return true;
3821
3797
  }
3822
- if (syntaxContext.precedingExpression !== void 0 && syntaxContext.precedingExpression.parent.kind === 119 /* SwitchStatement */) {
3798
+ if (syntaxContext.precedingExpression !== void 0 && syntaxContext.precedingExpression.parent.kind === 118 /* SwitchStatement */) {
3823
3799
  return true;
3824
3800
  }
3825
3801
  return false;
@@ -4064,19 +4040,7 @@ var CompletionService = class {
4064
4040
  this.dialect,
4065
4041
  this.sourceFile
4066
4042
  );
4067
- if (ctx.translationKind === 1 /* PackageImport */) {
4068
- let items;
4069
- if (this.sourceFile.package.kind === "translation") {
4070
- const analyzedTranslationPackage = this.analyzer.getAnalyzedTranslationPackageIfTargetResolved(this.sourceFile.package);
4071
- if (analyzedTranslationPackage !== void 0) {
4072
- const name = analyzedTranslationPackage.getTargetPackage().getName();
4073
- items = Query.from([
4074
- new PackageNameSegmentCompletionItemInfo(this.completionItemInfoContext, name.segments[0])
4075
- ]);
4076
- }
4077
- }
4078
- result = items ?? Query.empty();
4079
- } else if (ctx.translationKind === 2 /* Method */) {
4043
+ if (ctx.translationKind === 1 /* Method */) {
4080
4044
  result = Query.from(ctx.packageMemberLookup.getNamedMembers(ctx.hidingMatcher)).mapAndFilter((d) => {
4081
4045
  if (d.kind === 1 /* Function */) {
4082
4046
  return new AliasesSourceFunctionCompletionItemInfo(
@@ -4088,7 +4052,7 @@ var CompletionService = class {
4088
4052
  }
4089
4053
  return void 0;
4090
4054
  });
4091
- } else if (ctx.translationKind === 3 /* Type */) {
4055
+ } else if (ctx.translationKind === 2 /* Type */) {
4092
4056
  result = Query.from(ctx.packageMemberLookup.getNamedMembers(ctx.hidingMatcher)).mapAndFilter((d) => {
4093
4057
  if (d.kind === 2 /* Type */) {
4094
4058
  return new AliasesSourcePackageTypeCompletionItemInfo(
@@ -4101,46 +4065,33 @@ var CompletionService = class {
4101
4065
  return void 0;
4102
4066
  });
4103
4067
  } else if (ctx.translationKind === 0 /* Any */) {
4104
- let packageNameItems;
4105
- if (this.sourceFile.package.kind === "translation") {
4106
- const analyzedTranslationPackage = this.analyzer.getAnalyzedTranslationPackageIfTargetResolved(this.sourceFile.package);
4107
- if (analyzedTranslationPackage !== void 0) {
4108
- const name = analyzedTranslationPackage.getTargetPackage().getName();
4109
- packageNameItems = Query.from([
4110
- new PackageNameSegmentCompletionItemInfo(this.completionItemInfoContext, name.segments[0])
4111
- ]);
4068
+ result = Query.from(ctx.packageMemberLookup.getNamedMembers(ctx.hidingMatcher)).map((d) => {
4069
+ switch (d.kind) {
4070
+ case 0 /* Variable */:
4071
+ return new AliasesSourceVariableCompletionItemInfo(this.completionItemInfoContext, d, displayService_);
4072
+ case 1 /* Function */:
4073
+ return new AliasesSourceFunctionCompletionItemInfo(
4074
+ this.completionItemInfoContext,
4075
+ d,
4076
+ !ctx.hasPrecedingKeyword,
4077
+ displayService_
4078
+ );
4079
+ case 2 /* Type */:
4080
+ return new AliasesSourcePackageTypeCompletionItemInfo(
4081
+ this.completionItemInfoContext,
4082
+ d,
4083
+ !ctx.hasPrecedingKeyword,
4084
+ displayService_
4085
+ );
4086
+ default:
4087
+ Debug.never(d);
4112
4088
  }
4113
- }
4114
- result = Query.from(packageNameItems ?? []).chain(
4115
- Query.from(ctx.packageMemberLookup.getNamedMembers(ctx.hidingMatcher)).map((d) => {
4116
- switch (d.kind) {
4117
- case 0 /* Variable */:
4118
- return new AliasesSourceVariableCompletionItemInfo(this.completionItemInfoContext, d, displayService_);
4119
- case 1 /* Function */:
4120
- return new AliasesSourceFunctionCompletionItemInfo(
4121
- this.completionItemInfoContext,
4122
- d,
4123
- !ctx.hasPrecedingKeyword,
4124
- displayService_
4125
- );
4126
- case 2 /* Type */:
4127
- return new AliasesSourcePackageTypeCompletionItemInfo(
4128
- this.completionItemInfoContext,
4129
- d,
4130
- !ctx.hasPrecedingKeyword,
4131
- displayService_
4132
- );
4133
- default:
4134
- Debug.never(d);
4135
- }
4136
- })
4137
- );
4089
+ });
4138
4090
  } else {
4139
4091
  Debug.never(ctx.translationKind);
4140
4092
  }
4141
4093
  if (!ctx.hasPrecedingKeyword) {
4142
4094
  const keywords = [
4143
- 18 /* Import */,
4144
4095
  16 /* Type */,
4145
4096
  12 /* Function */
4146
4097
  ];
@@ -4369,7 +4320,7 @@ function isInvalidNode(node) {
4369
4320
  switch (node.kind) {
4370
4321
  case 71 /* MissingExpression */:
4371
4322
  case 41 /* MissingPackageMemberDeclaration */:
4372
- case 113 /* MissingStatement */:
4323
+ case 112 /* MissingStatement */:
4373
4324
  case 55 /* MissingTypeMemberDeclaration */:
4374
4325
  case 16 /* MissingTypeSpecifier */:
4375
4326
  return true;
@@ -5168,7 +5119,7 @@ var SyntaxContextFactory = class {
5168
5119
  if (positionDescription.kind === "after-token-or-keyword") {
5169
5120
  isUnqualifiedTypeContext = this.isUnqualifiedTypeContext(positionDescription.tokenOrKeyword);
5170
5121
  }
5171
- const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 154 /* Tag */;
5122
+ const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 152 /* Tag */;
5172
5123
  let isTopLevelTranslationListContext;
5173
5124
  if (positionDescription.kind === "after-token-or-keyword") {
5174
5125
  isTopLevelTranslationListContext = this.isTopLevelTranslationListContext(positionDescription.tokenOrKeyword);
@@ -5210,15 +5161,15 @@ var SyntaxContextFactory = class {
5210
5161
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.initializer);
5211
5162
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5212
5163
  }
5213
- if (tokenOrKeyword.parent.kind === 151 /* ParameterDeclaration */) {
5164
+ if (tokenOrKeyword.parent.kind === 149 /* ParameterDeclaration */) {
5214
5165
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.defaultValue);
5215
5166
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5216
5167
  }
5217
- if (tokenOrKeyword.parent.kind === 152 /* Argument */) {
5168
+ if (tokenOrKeyword.parent.kind === 150 /* Argument */) {
5218
5169
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5219
5170
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5220
5171
  }
5221
- if (tokenOrKeyword.parent.kind === 149 /* VariantDeclaration */) {
5172
+ if (tokenOrKeyword.parent.kind === 147 /* VariantDeclaration */) {
5222
5173
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5223
5174
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5224
5175
  }
@@ -5288,7 +5239,7 @@ var SyntaxContextFactory = class {
5288
5239
  const expressionRole = new ExpressionRole_argument(tokenOrKeyword.parent.argumentList, 0);
5289
5240
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5290
5241
  }
5291
- if (tokenOrKeyword.parent.kind === 154 /* Tag */) {
5242
+ if (tokenOrKeyword.parent.kind === 152 /* Tag */) {
5292
5243
  const argumentList = tokenOrKeyword.parent.argumentList;
5293
5244
  if (argumentList !== void 0) {
5294
5245
  const expressionRole = new ExpressionRole_argument(argumentList, 0);
@@ -5323,7 +5274,7 @@ var SyntaxContextFactory = class {
5323
5274
  const expressionRole = new ExpressionRole_argument(argumentList, index);
5324
5275
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5325
5276
  }
5326
- if (tokenOrKeyword.parent.kind === 120 /* MatchExpressionList */) {
5277
+ if (tokenOrKeyword.parent.kind === 119 /* MatchExpressionList */) {
5327
5278
  const expressionRole = new ExpressionRole_matchListElement(tokenOrKeyword.parent.parent.parent.parent);
5328
5279
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5329
5280
  }
@@ -5343,47 +5294,47 @@ var SyntaxContextFactory = class {
5343
5294
  return { isExpressionContext: void 0, isStatementContext: false };
5344
5295
  }
5345
5296
  }
5346
- if (tokenOrKeyword.isKeyword(45 /* Case */) && tokenOrKeyword.parent.kind === 121 /* CaseClause */) {
5297
+ if (tokenOrKeyword.isKeyword(45 /* Case */) && tokenOrKeyword.parent.kind === 120 /* CaseClause */) {
5347
5298
  const expressionRole = new ExpressionRole_matchListElement(tokenOrKeyword.parent.parent.parent);
5348
5299
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5349
5300
  }
5350
- if (tokenOrKeyword.isKeyword(15 /* Return */) && tokenOrKeyword.parent.kind === 117 /* ReturnStatement */) {
5301
+ if (tokenOrKeyword.isKeyword(15 /* Return */) && tokenOrKeyword.parent.kind === 116 /* ReturnStatement */) {
5351
5302
  const expressionRole = new ExpressionRole_returnedValue(tokenOrKeyword.parent);
5352
5303
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5353
5304
  }
5354
- if (tokenOrKeyword.isKeyword(20 /* Error */) && tokenOrKeyword.parent.kind === 105 /* ErrorStatement */) {
5305
+ if (tokenOrKeyword.isKeyword(20 /* Error */) && tokenOrKeyword.parent.kind === 104 /* ErrorStatement */) {
5355
5306
  const expressionRole = new ExpressionRole_errorValue(tokenOrKeyword.parent);
5356
5307
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5357
5308
  }
5358
- if (tokenOrKeyword.isKeyword(19 /* Important */) && tokenOrKeyword.parent.kind === 106 /* ImportantStatement */) {
5309
+ if (tokenOrKeyword.isKeyword(19 /* Important */) && tokenOrKeyword.parent.kind === 105 /* ImportantStatement */) {
5359
5310
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5360
5311
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5361
5312
  }
5362
- if (tokenOrKeyword.isKeyword(44 /* Switch */) && tokenOrKeyword.parent.kind === 119 /* SwitchStatement */) {
5313
+ if (tokenOrKeyword.isKeyword(44 /* Switch */) && tokenOrKeyword.parent.kind === 118 /* SwitchStatement */) {
5363
5314
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5364
5315
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5365
5316
  }
5366
- if (tokenOrKeyword.isKeyword(13 /* If */) && tokenOrKeyword.parent.kind === 109 /* IfStatement */) {
5317
+ if (tokenOrKeyword.isKeyword(13 /* If */) && tokenOrKeyword.parent.kind === 108 /* IfStatement */) {
5367
5318
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5368
5319
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5369
5320
  }
5370
- if (tokenOrKeyword.isKeyword(11 /* ElseIf */) && tokenOrKeyword.parent.kind === 111 /* ElseIfClause */) {
5321
+ if (tokenOrKeyword.isKeyword(11 /* ElseIf */) && tokenOrKeyword.parent.kind === 110 /* ElseIfClause */) {
5371
5322
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5372
5323
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5373
5324
  }
5374
- if (tokenOrKeyword.isKeyword(9 /* From */) && tokenOrKeyword.parent.kind === 108 /* ForStatement */) {
5325
+ if (tokenOrKeyword.isKeyword(9 /* From */) && tokenOrKeyword.parent.kind === 107 /* ForStatement */) {
5375
5326
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.enumeratedExpression);
5376
5327
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5377
5328
  }
5378
- if (tokenOrKeyword.isKeyword(25 /* While */) && tokenOrKeyword.parent.kind === 122 /* WhileStatement */) {
5329
+ if (tokenOrKeyword.isKeyword(25 /* While */) && tokenOrKeyword.parent.kind === 121 /* WhileStatement */) {
5379
5330
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5380
5331
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5381
5332
  }
5382
- if (tokenOrKeyword.isKeyword(27 /* RepeatWhile */) && tokenOrKeyword.parent.kind === 116 /* LoopStatement */) {
5333
+ if (tokenOrKeyword.isKeyword(27 /* RepeatWhile */) && tokenOrKeyword.parent.kind === 115 /* LoopStatement */) {
5383
5334
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5384
5335
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5385
5336
  }
5386
- if (tokenOrKeyword.isKeyword(28 /* Yield */) && tokenOrKeyword.parent.kind === 123 /* YieldStatement */) {
5337
+ if (tokenOrKeyword.isKeyword(28 /* Yield */) && tokenOrKeyword.parent.kind === 122 /* YieldStatement */) {
5387
5338
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5388
5339
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5389
5340
  }
@@ -5409,7 +5360,7 @@ var SyntaxContextFactory = class {
5409
5360
  if (tokenOrKeyword.isToken(21 /* CloseBrace */) && tokenOrKeyword.parent.kind === 30 /* TypeMemberDeclarationBlock */ && (tokenOrKeyword.parent.parent.kind === 38 /* TypeExtensionDeclaration */ || tokenOrKeyword.parent.parent.parent.kind === 31 /* PackageStructuredTypeDeclaration */ || tokenOrKeyword.parent.parent.parent.kind === 36 /* PackageVariantTypeDeclaration */ || tokenOrKeyword.parent.parent.parent.kind === 20 /* PackageAliasTypeDeclaration */)) {
5410
5361
  return true;
5411
5362
  }
5412
- if (tokenOrKeyword.isToken(21 /* CloseBrace */) && (tokenOrKeyword.parent.kind === 124 /* TranslationsDeclaration */ || tokenOrKeyword.parent.kind === 22 /* PackageMemberGroupDeclaration */ || tokenOrKeyword.parent.kind === 6 /* PackageGroupImportDirective */ || tokenOrKeyword.parent.kind === 95 /* FunctionBlock */ && (tokenOrKeyword.parent.parent.kind === 23 /* PackageConstructorDeclaration */ || tokenOrKeyword.parent.parent.kind === 24 /* PackageEntryPointDeclaration */ || tokenOrKeyword.parent.parent.kind === 25 /* PackageFunctionDeclaration */))) {
5363
+ if (tokenOrKeyword.isToken(21 /* CloseBrace */) && (tokenOrKeyword.parent.kind === 123 /* TranslationsDeclaration */ || tokenOrKeyword.parent.kind === 22 /* PackageMemberGroupDeclaration */ || tokenOrKeyword.parent.kind === 6 /* PackageGroupImportDirective */ || tokenOrKeyword.parent.kind === 95 /* FunctionBlock */ && (tokenOrKeyword.parent.parent.kind === 23 /* PackageConstructorDeclaration */ || tokenOrKeyword.parent.parent.kind === 24 /* PackageEntryPointDeclaration */ || tokenOrKeyword.parent.parent.kind === 25 /* PackageFunctionDeclaration */))) {
5413
5364
  return true;
5414
5365
  }
5415
5366
  if (tokenOrKeyword.isToken(44 /* OpenBrace */) && tokenOrKeyword.parent.kind === 22 /* PackageMemberGroupDeclaration */) {
@@ -5421,13 +5372,13 @@ var SyntaxContextFactory = class {
5421
5372
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 35 /* PackageVariableSetterDeclaration */)) {
5422
5373
  return true;
5423
5374
  }
5424
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 156 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5375
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 154 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5425
5376
  return true;
5426
5377
  }
5427
- if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 156 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5378
+ if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 154 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5428
5379
  return true;
5429
5380
  }
5430
- const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 154 /* Tag */);
5381
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 152 /* Tag */);
5431
5382
  if (tag !== void 0 && NodeTypeUtils.isPackageMemberDeclaration(tag.parent.parent)) {
5432
5383
  return true;
5433
5384
  }
@@ -5455,16 +5406,16 @@ var SyntaxContextFactory = class {
5455
5406
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(
5456
5407
  tokenOrKeyword,
5457
5408
  49 /* DereferencedVariableSetterDeclaration */
5458
- ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 149 /* VariantDeclaration */)) {
5409
+ ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 147 /* VariantDeclaration */)) {
5459
5410
  return true;
5460
5411
  }
5461
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 156 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5412
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 154 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5462
5413
  return true;
5463
5414
  }
5464
- if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 156 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5415
+ if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 154 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5465
5416
  return true;
5466
5417
  }
5467
- const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 154 /* Tag */);
5418
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 152 /* Tag */);
5468
5419
  if (tag !== void 0 && NodeTypeUtils.isTypeMemberDeclaration(tag.parent.parent)) {
5469
5420
  return true;
5470
5421
  }
@@ -5502,7 +5453,7 @@ var SyntaxContextFactory = class {
5502
5453
  return result;
5503
5454
  }
5504
5455
  static isUnqualifiedTypeContext(tokenOrKeyword) {
5505
- if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 163 /* TypeAnnotation */) {
5456
+ if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 161 /* TypeAnnotation */) {
5506
5457
  return { allowsAnonymousTypes: true };
5507
5458
  }
5508
5459
  if ((tokenOrKeyword.isKeyword(4 /* Object */) || tokenOrKeyword.isKeyword(5 /* PlainObject */) || tokenOrKeyword.isKeyword(3 /* Aspect */)) && tokenOrKeyword.parent.kind === 32 /* StructuredTypeDeclarationBody */) {
@@ -5511,16 +5462,16 @@ var SyntaxContextFactory = class {
5511
5462
  if (tokenOrKeyword.isKeyword(16 /* Type */) && (NodeTypeUtils.isPackageTypeDeclaration(tokenOrKeyword.parent) || tokenOrKeyword.parent.kind === 38 /* TypeExtensionDeclaration */)) {
5512
5463
  return { allowsAnonymousTypes: false };
5513
5464
  }
5514
- if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 159 /* TypeArgumentClause */) {
5465
+ if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 157 /* TypeArgumentClause */) {
5515
5466
  return { allowsAnonymousTypes: true };
5516
5467
  }
5517
- if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 160 /* TypeArgumentList */)) {
5518
- return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 160 /* TypeArgumentList */ };
5468
+ if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 158 /* TypeArgumentList */)) {
5469
+ return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 158 /* TypeArgumentList */ };
5519
5470
  }
5520
- if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 154 /* Tag */) {
5471
+ if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 152 /* Tag */) {
5521
5472
  return { allowsAnonymousTypes: false };
5522
5473
  }
5523
- if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 150 /* TypeParameterDeclaration */) {
5474
+ if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 148 /* TypeParameterDeclaration */) {
5524
5475
  return { allowsAnonymousTypes: false };
5525
5476
  }
5526
5477
  if (tokenOrKeyword.isToken(58 /* Equals */) && tokenOrKeyword.parent.kind === 20 /* PackageAliasTypeDeclaration */) {
@@ -5544,43 +5495,36 @@ var SyntaxContextFactory = class {
5544
5495
  return void 0;
5545
5496
  }
5546
5497
  static isTopLevelTranslationListContext(tokenOrKeyword) {
5547
- if (tokenOrKeyword.isToken(52 /* Semicolon */) && tokenOrKeyword.parent.kind === 125 /* TopLevelTranslationList */) {
5498
+ if (tokenOrKeyword.isToken(52 /* Semicolon */) && tokenOrKeyword.parent.kind === 124 /* TopLevelTranslationList */) {
5548
5499
  return { translationsDeclaration: tokenOrKeyword.parent.parent };
5549
5500
  }
5550
- if (tokenOrKeyword.isToken(44 /* OpenBrace */) && tokenOrKeyword.parent.kind === 124 /* TranslationsDeclaration */) {
5501
+ if (tokenOrKeyword.isToken(44 /* OpenBrace */) && tokenOrKeyword.parent.kind === 123 /* TranslationsDeclaration */) {
5551
5502
  return { translationsDeclaration: tokenOrKeyword.parent };
5552
5503
  }
5553
- const packageImport = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5554
- tokenOrKeyword,
5555
- 136 /* PackageImportTranslationDeclaration */
5556
- );
5557
- if (packageImport !== void 0) {
5558
- return { translationsDeclaration: packageImport.parent.parent };
5559
- }
5560
5504
  const type = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5561
5505
  tokenOrKeyword,
5562
- 141 /* TypeTranslationDeclaration */
5506
+ 139 /* TypeTranslationDeclaration */
5563
5507
  );
5564
5508
  if (type !== void 0) {
5565
5509
  return { translationsDeclaration: type.parent.parent };
5566
5510
  }
5567
5511
  const functionType = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5568
5512
  tokenOrKeyword,
5569
- 135 /* FunctionTypeTranslationDeclaration */
5513
+ 134 /* FunctionTypeTranslationDeclaration */
5570
5514
  );
5571
5515
  if (functionType !== void 0) {
5572
5516
  return { translationsDeclaration: functionType.parent.parent };
5573
5517
  }
5574
5518
  const variable = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5575
5519
  tokenOrKeyword,
5576
- 138 /* PackageVariableTranslationDeclaration */
5520
+ 136 /* PackageVariableTranslationDeclaration */
5577
5521
  );
5578
5522
  if (variable !== void 0) {
5579
5523
  return { translationsDeclaration: variable.parent.parent };
5580
5524
  }
5581
5525
  const func = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5582
5526
  tokenOrKeyword,
5583
- 133 /* PackageFunctionTranslationDeclaration */
5527
+ 132 /* PackageFunctionTranslationDeclaration */
5584
5528
  );
5585
5529
  if (func !== void 0) {
5586
5530
  return { translationsDeclaration: func.parent.parent };
@@ -5588,33 +5532,33 @@ var SyntaxContextFactory = class {
5588
5532
  return void 0;
5589
5533
  }
5590
5534
  static isTypeMemberTranslationListContext(tokenOrKeyword) {
5591
- if (tokenOrKeyword.isToken(52 /* Semicolon */) && tokenOrKeyword.parent.kind === 140 /* TypeMemberTranslationList */) {
5535
+ if (tokenOrKeyword.isToken(52 /* Semicolon */) && tokenOrKeyword.parent.kind === 138 /* TypeMemberTranslationList */) {
5592
5536
  return { typeTranslation: tokenOrKeyword.parent.parent };
5593
5537
  }
5594
- if (tokenOrKeyword.isToken(44 /* OpenBrace */) && tokenOrKeyword.parent.kind === 141 /* TypeTranslationDeclaration */) {
5538
+ if (tokenOrKeyword.isToken(44 /* OpenBrace */) && tokenOrKeyword.parent.kind === 139 /* TypeTranslationDeclaration */) {
5595
5539
  return { typeTranslation: tokenOrKeyword.parent };
5596
5540
  }
5597
- const indexer = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 130 /* IndexerTranslation */);
5541
+ const indexer = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 129 /* IndexerTranslation */);
5598
5542
  if (indexer !== void 0) {
5599
5543
  return { typeTranslation: indexer.parent.parent };
5600
5544
  }
5601
5545
  const constructor = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5602
5546
  tokenOrKeyword,
5603
- 128 /* ConstructorTranslation */
5547
+ 127 /* ConstructorTranslation */
5604
5548
  );
5605
5549
  if (constructor !== void 0) {
5606
5550
  return { typeTranslation: constructor.parent.parent };
5607
5551
  }
5608
5552
  const variableOrVariant = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5609
5553
  tokenOrKeyword,
5610
- 139 /* FieldOrVariantTranslation */
5554
+ 137 /* FieldOrVariantTranslation */
5611
5555
  );
5612
5556
  if (variableOrVariant !== void 0) {
5613
5557
  return { typeTranslation: variableOrVariant.parent.parent };
5614
5558
  }
5615
5559
  const method = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5616
5560
  tokenOrKeyword,
5617
- 134 /* MethodTranslation */
5561
+ 133 /* MethodTranslation */
5618
5562
  );
5619
5563
  if (method !== void 0) {
5620
5564
  return { typeTranslation: method.parent.parent };
@@ -5770,11 +5714,11 @@ var NodeSemanticInfoService = class {
5770
5714
  let result;
5771
5715
  const parent = node.parent;
5772
5716
  switch (parent.kind) {
5773
- case 131 /* TranslationTypeParameterList */:
5717
+ case 130 /* TranslationTypeParameterList */:
5774
5718
  break;
5775
- case 126 /* TranslationParameterList */:
5719
+ case 125 /* TranslationParameterList */:
5776
5720
  break;
5777
- case 152 /* Argument */: {
5721
+ case 150 /* Argument */: {
5778
5722
  const respectiveParameter = analyzer.getRespectiveParameter(parent);
5779
5723
  if (respectiveParameter !== void 0) {
5780
5724
  const target = new MatchResultParameterReferenceTarget(respectiveParameter, 0 /* Get */);
@@ -5818,10 +5762,10 @@ var NodeSemanticInfoService = class {
5818
5762
  case 57 /* LocalVariableDeclaration */:
5819
5763
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofLocalVariableDeclaration(parent));
5820
5764
  break;
5821
- case 137 /* QualifiedName */:
5765
+ case 135 /* QualifiedName */:
5822
5766
  result = this.ofQualifiedNameQualifier(analyzer, parent, node, options6);
5823
5767
  break;
5824
- case 138 /* PackageVariableTranslationDeclaration */: {
5768
+ case 136 /* PackageVariableTranslationDeclaration */: {
5825
5769
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5826
5770
  const getTargetResult = translationPackage?.getPackageVariableTranslationTarget(parent);
5827
5771
  if (translationPackage !== void 0 && getTargetResult?.target !== void 0) {
@@ -5841,7 +5785,7 @@ var NodeSemanticInfoService = class {
5841
5785
  }
5842
5786
  break;
5843
5787
  }
5844
- case 139 /* FieldOrVariantTranslation */: {
5788
+ case 137 /* FieldOrVariantTranslation */: {
5845
5789
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5846
5790
  const getTargetsResult = translationPackage?.getFieldOrVariantTranslationTargets(parent);
5847
5791
  if (translationPackage !== void 0 && isNonEmptyArray(getTargetsResult?.targets)) {
@@ -5864,7 +5808,7 @@ var NodeSemanticInfoService = class {
5864
5808
  }
5865
5809
  break;
5866
5810
  }
5867
- case 133 /* PackageFunctionTranslationDeclaration */: {
5811
+ case 132 /* PackageFunctionTranslationDeclaration */: {
5868
5812
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5869
5813
  const getTargetsResult = translationPackage?.getPackageFunctionTranslationTargets(parent);
5870
5814
  if (translationPackage !== void 0 && isNonEmptyArray(getTargetsResult?.targets)) {
@@ -5887,7 +5831,7 @@ var NodeSemanticInfoService = class {
5887
5831
  }
5888
5832
  break;
5889
5833
  }
5890
- case 134 /* MethodTranslation */: {
5834
+ case 133 /* MethodTranslation */: {
5891
5835
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5892
5836
  const getTargetsResult = translationPackage?.getMethodTranslationTargets(parent);
5893
5837
  if (translationPackage !== void 0 && isNonEmptyArray(getTargetsResult?.targets)) {
@@ -5910,7 +5854,7 @@ var NodeSemanticInfoService = class {
5910
5854
  }
5911
5855
  break;
5912
5856
  }
5913
- case 141 /* TypeTranslationDeclaration */: {
5857
+ case 139 /* TypeTranslationDeclaration */: {
5914
5858
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5915
5859
  const getTargetResult = translationPackage?.getTypeTranslationTarget(parent);
5916
5860
  if (translationPackage !== void 0 && getTargetResult?.target !== void 0) {
@@ -5930,7 +5874,7 @@ var NodeSemanticInfoService = class {
5930
5874
  }
5931
5875
  break;
5932
5876
  }
5933
- case 135 /* FunctionTypeTranslationDeclaration */: {
5877
+ case 134 /* FunctionTypeTranslationDeclaration */: {
5934
5878
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5935
5879
  const getTargetResult = translationPackage?.getFunctionTypeTranslationTarget(parent);
5936
5880
  if (translationPackage !== void 0 && getTargetResult?.target !== void 0) {
@@ -5950,7 +5894,7 @@ var NodeSemanticInfoService = class {
5950
5894
  }
5951
5895
  break;
5952
5896
  }
5953
- case 151 /* ParameterDeclaration */:
5897
+ case 149 /* ParameterDeclaration */:
5954
5898
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofParameterDeclaration(parent));
5955
5899
  break;
5956
5900
  case 8 /* PackageImport */:
@@ -5971,10 +5915,10 @@ var NodeSemanticInfoService = class {
5971
5915
  case 52 /* FieldDeclaration */:
5972
5916
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofFieldDeclaration(parent));
5973
5917
  break;
5974
- case 150 /* TypeParameterDeclaration */:
5918
+ case 148 /* TypeParameterDeclaration */:
5975
5919
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofTypeParameterDeclaration(parent));
5976
5920
  break;
5977
- case 149 /* VariantDeclaration */:
5921
+ case 147 /* VariantDeclaration */:
5978
5922
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofVariantDeclaration(parent));
5979
5923
  break;
5980
5924
  case 34 /* PackageVariableGetterDeclaration */:
@@ -5985,7 +5929,7 @@ var NodeSemanticInfoService = class {
5985
5929
  case 54 /* FieldSetterDeclaration */:
5986
5930
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofComputedFieldDeclaration(parent));
5987
5931
  break;
5988
- case 148 /* TranslationTextTemplateParameter */:
5932
+ case 146 /* TranslationTextTemplateParameter */:
5989
5933
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofTranslationTextTemplateParameter(parent));
5990
5934
  break;
5991
5935
  case 3 /* Keyword */:
@@ -6134,10 +6078,9 @@ var NodeSemanticInfoService = class {
6134
6078
  switch (node.parent.kind) {
6135
6079
  case 10 /* NamedTypeSpecifier */:
6136
6080
  return this.ofNamedTypeSpecifierNameQualifier(analyzer, node.parent, qualifier, options6);
6137
- case 154 /* Tag */:
6081
+ case 152 /* Tag */:
6138
6082
  return this.ofTagNameQualifier(analyzer, node.parent, qualifier, options6);
6139
6083
  case 40 /* ExtendedTypeClause */:
6140
- case 136 /* PackageImportTranslationDeclaration */:
6141
6084
  return void 0;
6142
6085
  default:
6143
6086
  Debug.never(node.parent);
@@ -6874,7 +6817,7 @@ function getEntitySourceLocations(analyzer, entity) {
6874
6817
  case 36 /* PackageVariantTypeDeclaration */:
6875
6818
  case 56 /* NestedFunctionDeclaration */:
6876
6819
  case 50 /* MethodDeclaration */:
6877
- case 150 /* TypeParameterDeclaration */:
6820
+ case 148 /* TypeParameterDeclaration */:
6878
6821
  case 51 /* OperatorDeclaration */:
6879
6822
  range = node.name.rangeWithoutTrivia;
6880
6823
  break;
@@ -7154,7 +7097,7 @@ var DefinitionService = class {
7154
7097
  range = new Range(rangeStart, rangeEnd);
7155
7098
  break;
7156
7099
  }
7157
- case 143 /* TextTranslationFunctionDeclaration */:
7100
+ case 141 /* TextTranslationFunctionDeclaration */:
7158
7101
  range = node.sourceText.rangeWithoutTrivia;
7159
7102
  break;
7160
7103
  default:
@@ -7830,15 +7773,15 @@ var EvaluatableExpressionService = class {
7830
7773
  return { nameIdentifier: node.name };
7831
7774
  case 57 /* LocalVariableDeclaration */:
7832
7775
  return { nameIdentifier: node.name };
7833
- case 151 /* ParameterDeclaration */:
7776
+ case 149 /* ParameterDeclaration */:
7834
7777
  return { nameIdentifier: node.name };
7835
7778
  case 50 /* MethodDeclaration */:
7836
7779
  return { nameIdentifier: node.name };
7837
7780
  case 52 /* FieldDeclaration */:
7838
7781
  return { nameIdentifier: node.name };
7839
- case 150 /* TypeParameterDeclaration */:
7782
+ case 148 /* TypeParameterDeclaration */:
7840
7783
  return { nameIdentifier: node.name };
7841
- case 149 /* VariantDeclaration */:
7784
+ case 147 /* VariantDeclaration */:
7842
7785
  return { nameIdentifier: node.name };
7843
7786
  case 102 /* ErrorVariableDeclaration */:
7844
7787
  return { nameIdentifier: node.name };
@@ -8045,7 +7988,7 @@ var SourceFileItemsService = class {
8045
7988
  return this.sourceFile.package.locale;
8046
7989
  }
8047
7990
  get dialect() {
8048
- return this.sourceFile.package.dialect ?? 0 /* ArtelAM */;
7991
+ return this.sourceFile.package.dialect;
8049
7992
  }
8050
7993
  getChildItems(node) {
8051
7994
  const result = new Array();
@@ -8214,7 +8157,7 @@ var SourceFileItemsService = class {
8214
8157
  ));
8215
8158
  break;
8216
8159
  }
8217
- case 149 /* VariantDeclaration */: {
8160
+ case 147 /* VariantDeclaration */: {
8218
8161
  result.push(this.createItem(
8219
8162
  9 /* Variant */,
8220
8163
  node2.name.value,
@@ -8224,7 +8167,7 @@ var SourceFileItemsService = class {
8224
8167
  ));
8225
8168
  break;
8226
8169
  }
8227
- case 150 /* TypeParameterDeclaration */: {
8170
+ case 148 /* TypeParameterDeclaration */: {
8228
8171
  result.push(this.createItem(
8229
8172
  18 /* TypeParameter */,
8230
8173
  node2.name.value,
@@ -8497,7 +8440,7 @@ var SelectionRangeService = class {
8497
8440
  }
8498
8441
  }
8499
8442
  switch (node.kind) {
8500
- case 163 /* TypeAnnotation */:
8443
+ case 161 /* TypeAnnotation */:
8501
8444
  case 32 /* StructuredTypeDeclarationBody */:
8502
8445
  case 37 /* VariantTypeDeclarationBody */:
8503
8446
  case 21 /* AliasTypeDeclarationBody */:
@@ -8640,7 +8583,7 @@ var SemanticTokensService = class {
8640
8583
  ));
8641
8584
  }
8642
8585
  }
8643
- if (node.kind === 149 /* VariantDeclaration */) {
8586
+ if (node.kind === 147 /* VariantDeclaration */) {
8644
8587
  result.push(
8645
8588
  new SemanticToken(
8646
8589
  node.name.rangeWithoutTrivia,
@@ -8821,7 +8764,7 @@ var TypeParameterSignatureHelpProvider = class {
8821
8764
  }
8822
8765
  let node = token.parent;
8823
8766
  while (node !== void 0) {
8824
- if (node.kind === 159 /* TypeArgumentClause */ && this.offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this.offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8767
+ if (node.kind === 157 /* TypeArgumentClause */ && this.offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this.offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8825
8768
  const argumentIndex = this.getArgumentIndex(node.typeArgumentList, this.offset);
8826
8769
  const argumentCount = this.countArguments(node.typeArgumentList);
8827
8770
  return new NodeWithTypeArgumentsInfo(node.parent, argumentIndex, argumentCount);
@@ -8868,7 +8811,7 @@ var TypeParameterSignatureHelpProvider = class {
8868
8811
  return this.getSignaturesForNamedTypeSpecifier(node);
8869
8812
  case 90 /* GenericSpecializationExpression */:
8870
8813
  return this.getSignaturesForGenericSpecializationExpression(node);
8871
- case 154 /* Tag */:
8814
+ case 152 /* Tag */:
8872
8815
  return this.getSignaturesForTag(node);
8873
8816
  default:
8874
8817
  Debug.never(node);
@@ -9202,7 +9145,7 @@ var ParametersSignatureHelpProvider = class {
9202
9145
  }
9203
9146
  break;
9204
9147
  }
9205
- case 154 /* Tag */: {
9148
+ case 152 /* Tag */: {
9206
9149
  if (node.openParenthesisToken !== void 0 && this.offset >= node.openParenthesisToken.rangeWithoutTrivia.end && node.argumentList !== void 0 && (node.closeParenthesisToken === void 0 || node.closeParenthesisToken.rangeWithoutTrivia.isEmpty || this.offset <= node.closeParenthesisToken.rangeWithoutTrivia.start)) {
9207
9150
  const argumentIndex = this.getArgumentIndexInList(node.argumentList.elements, this.offset);
9208
9151
  const args = ArgumentFactory.createArgumentsOfTag(node);
@@ -11107,7 +11050,14 @@ __decorateClass([
11107
11050
  ], TaskQueue.prototype, "executeTask", 1);
11108
11051
 
11109
11052
  // source/services/workspace/ManuallyUpdatedFileSystemTreeProvider.ts
11110
- import { ObservableMap as ObservableMap3, ObservableObject as ObservableObject4, options as options3, reactive as reactive3, observable as observable4, disposeObservableObject as disposeObservableObject4 } from "reactronic";
11053
+ import {
11054
+ ObservableMap as ObservableMap3,
11055
+ ObservableObject as ObservableObject4,
11056
+ options as options3,
11057
+ reactive as reactive3,
11058
+ observable as observable4,
11059
+ disposeObservableObject as disposeObservableObject4
11060
+ } from "reactronic";
11111
11061
  var ManuallyUpdatedFileSystemTreeProvider = class extends ObservableObject4 {
11112
11062
  constructor() {
11113
11063
  super(...arguments);