@artel/artc 0.6.25227 → 0.6.25228

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 (32) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +4 -2
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +246 -232
  5. package/build/{chunk-NOECPQMV.js → chunk-5GSDYTF6.js} +2178 -1668
  6. package/build/{chunk-74TFH7TE.js → chunk-F5OW64UA.js} +3 -3
  7. package/build/{chunk-VD6OPILI.js → chunk-FHJJX7JY.js} +3 -3
  8. package/build/types/analysis/Analyzer.d.ts +9 -2
  9. package/build/types/analysis/DeclarationsUsageCounter.d.ts +8 -3
  10. package/build/types/analysis/DiagnosticCollector.d.ts +9 -2
  11. package/build/types/analysis/NodeTypeUtils.d.ts +2 -2
  12. package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +24 -0
  13. package/build/types/analysis/SourceFileMembers.d.ts +6 -1
  14. package/build/types/analysis/SourcePackageMembersCreator.d.ts +2 -1
  15. package/build/types/analysis/TypeInferrer.d.ts +2 -0
  16. package/build/types/analysis/control-flow/GraphBuilder.d.ts +5 -2
  17. package/build/types/analysis/semantic-context/SemanticContext.d.ts +1 -1
  18. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +1 -80
  19. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +1 -1
  20. package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +89 -0
  21. package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +0 -8
  22. package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -24
  23. package/build/types/analysis/semantic-context/index.d.ts +1 -0
  24. package/build/types/common/Cached.d.ts +1 -0
  25. package/build/types/diagnostic/DiagnosticCode.d.ts +87 -72
  26. package/build/types/emitter/IrBuilder.d.ts +0 -1
  27. package/build/types/entities/VariableEntity.d.ts +13 -0
  28. package/build/types/entities/index.d.ts +4 -0
  29. package/build/types/tree/NodeKind.d.ts +81 -82
  30. package/build/types/tree/green/Nodes.d.ts +2 -20
  31. package/build/types/tree/red/Nodes.d.ts +3 -18
  32. package/package.json +1 -1
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-NOECPQMV.js";
185
+ } from "../chunk-5GSDYTF6.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -302,7 +302,7 @@ var AddPropertyAssignmentService = class {
302
302
  let result;
303
303
  let leftValueText;
304
304
  if (propertyName !== void 0) {
305
- if (assignmentNode.left.kind !== 79 /* MemberAccessExpression */) {
305
+ if (assignmentNode.left.kind !== 78 /* MemberAccessExpression */) {
306
306
  return void 0;
307
307
  }
308
308
  const propertyReceiver = assignmentNode.left.expression;
@@ -319,7 +319,7 @@ var AddPropertyAssignmentService = class {
319
319
  const reassignmentText = `${leftValueText} = ${value}`;
320
320
  const subprogramBody = this.ifShouldBeAssignedAtTheEndOfSubprogramThenBody(assignmentNode);
321
321
  if (subprogramBody !== void 0) {
322
- const lastStatement = subprogramBody.expressionOrStatementList.kind === 93 /* StatementList */ ? subprogramBody.expressionOrStatementList?.statements.last() : subprogramBody.expressionOrStatementList;
322
+ const lastStatement = subprogramBody.expressionOrStatementList.kind === 92 /* StatementList */ ? subprogramBody.expressionOrStatementList?.statements.last() : subprogramBody.expressionOrStatementList;
323
323
  let editRangeStart;
324
324
  let indentationText;
325
325
  if (lastStatement !== void 0) {
@@ -351,9 +351,9 @@ var AddPropertyAssignmentService = class {
351
351
  ifShouldBeAssignedAtTheEndOfSubprogramThenBody(node) {
352
352
  const parent = node.parent.parent;
353
353
  switch (parent.kind) {
354
- case 94 /* StatementBlock */:
354
+ case 93 /* StatementBlock */:
355
355
  return this.getContainingSubprogram(parent)?.block;
356
- case 95 /* FunctionBlock */:
356
+ case 94 /* FunctionBlock */:
357
357
  return void 0;
358
358
  default:
359
359
  Debug.never(parent);
@@ -1697,7 +1697,7 @@ var SyntaxToCode = class _SyntaxToCode {
1697
1697
  this.writeNodeDefault(node);
1698
1698
  }
1699
1699
  writeDeclarationBody(node, addLeadingNewLineOrWhitespace = true) {
1700
- if (node.expressionOrStatementList.kind !== 93 /* StatementList */ || node.expressionOrStatementList.elements.length === 0) {
1700
+ if (node.expressionOrStatementList.kind !== 92 /* StatementList */ || node.expressionOrStatementList.elements.length === 0) {
1701
1701
  this.writeWhitespace();
1702
1702
  this.writeFunctionBlock(node, false);
1703
1703
  } else {
@@ -2038,19 +2038,19 @@ var SyntaxToCode = class _SyntaxToCode {
2038
2038
  [54 /* FieldDeclaration */]: this.prototype.writeFieldDeclaration,
2039
2039
  [55 /* FieldGetterDeclaration */]: this.prototype.writeFieldGetterDeclaration,
2040
2040
  [56 /* FieldSetterDeclaration */]: this.prototype.writeFieldSetterDeclaration,
2041
- [94 /* StatementBlock */]: this.prototype.writeStatementBlock,
2042
- [95 /* FunctionBlock */]: this.prototype.writeFunctionBlock,
2043
- [136 /* QualifiedName */]: this.prototype.writeQualifiedName,
2044
- [143 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2045
- [144 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2046
- [145 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2047
- [146 /* Argument */]: this.prototype.writeArgument,
2048
- [148 /* Tag */]: this.prototype.writeTag,
2049
- [150 /* Modifier */]: this.prototype.writeModifier,
2050
- [151 /* ParameterClause */]: this.prototype.writeParameterClause,
2051
- [152 /* ParameterList */]: this.prototype.writeParameterList,
2052
- [153 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2053
- [155 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
2041
+ [93 /* StatementBlock */]: this.prototype.writeStatementBlock,
2042
+ [94 /* FunctionBlock */]: this.prototype.writeFunctionBlock,
2043
+ [135 /* QualifiedName */]: this.prototype.writeQualifiedName,
2044
+ [142 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2045
+ [143 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2046
+ [144 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2047
+ [145 /* Argument */]: this.prototype.writeArgument,
2048
+ [147 /* Tag */]: this.prototype.writeTag,
2049
+ [149 /* Modifier */]: this.prototype.writeModifier,
2050
+ [150 /* ParameterClause */]: this.prototype.writeParameterClause,
2051
+ [151 /* ParameterList */]: this.prototype.writeParameterList,
2052
+ [152 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2053
+ [154 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
2054
2054
  [17 /* AnonymousFunctionTypeDeclaration */]: this.prototype.writeAnonymousFunctionTypeDeclaration,
2055
2055
  [18 /* AnonymousStructuredTypeDeclaration */]: this.prototype.writeAnonymousStructuredTypeDeclaration,
2056
2056
  [19 /* AnonymousVariantTypeDeclaration */]: this.prototype.writeAnonymousVariantTypeDeclaration,
@@ -2085,75 +2085,74 @@ var SyntaxToCode = class _SyntaxToCode {
2085
2085
  [73 /* IsExpression */]: this.prototype.writeNodeDefault,
2086
2086
  [74 /* FunctionLiteral */]: this.prototype.writeNodeDefault,
2087
2087
  [75 /* ParenthesizedExpression */]: this.prototype.writeNodeDefault,
2088
- [76 /* WhenTernaryExpression */]: this.prototype.writeNodeDefault,
2089
- [77 /* ConditionalExpression */]: this.prototype.writeNodeDefault,
2090
- [78 /* PrefixUnaryExpression */]: this.prototype.writeNodeDefault,
2091
- [79 /* MemberAccessExpression */]: this.prototype.writeNodeDefault,
2092
- [80 /* ReferenceExpression */]: this.prototype.writeNodeDefault,
2093
- [81 /* DereferenceExpression */]: this.prototype.writeNodeDefault,
2094
- [82 /* TextTemplateLiteral */]: this.prototype.writeNodeDefault,
2095
- [83 /* TextTemplateSpanList */]: this.prototype.writeNodeDefault,
2096
- [84 /* TextTemplateSpan */]: this.prototype.writeNodeDefault,
2097
- [85 /* TokenExpression */]: this.prototype.writeNodeDefault,
2098
- [86 /* KeywordExpression */]: this.prototype.writeNodeDefault,
2099
- [87 /* ObjectExpression */]: this.prototype.writeNodeDefault,
2100
- [88 /* BaseExpression */]: this.prototype.writeNodeDefault,
2101
- [89 /* IdentifierExpression */]: this.prototype.writeNodeDefault,
2102
- [90 /* GenericSpecializationExpression */]: this.prototype.writeNodeDefault,
2103
- [91 /* DefaultMatchExpression */]: this.prototype.writeNodeDefault,
2104
- [92 /* AssignmentStatement */]: this.prototype.writeNodeDefault,
2105
- [93 /* StatementList */]: this.prototype.writeNodeDefault,
2106
- [96 /* BreakLoopStatement */]: this.prototype.writeNodeDefault,
2107
- [97 /* ContinueLoopStatement */]: this.prototype.writeNodeDefault,
2108
- [98 /* DisposeStatement */]: this.prototype.writeNodeDefault,
2109
- [99 /* RunStatement */]: this.prototype.writeNodeDefault,
2110
- [100 /* TryStatement */]: this.prototype.writeNodeDefault,
2111
- [101 /* CatchClause */]: this.prototype.writeNodeDefault,
2112
- [102 /* ErrorVariableDeclaration */]: this.prototype.writeNodeDefault,
2113
- [103 /* FinallyClause */]: this.prototype.writeNodeDefault,
2114
- [104 /* EmptyStatement */]: this.prototype.writeNodeDefault,
2115
- [105 /* ErrorStatement */]: this.prototype.writeNodeDefault,
2116
- [106 /* ImportantStatement */]: this.prototype.writeNodeDefault,
2117
- [107 /* ExpressionStatement */]: this.prototype.writeNodeDefault,
2118
- [108 /* EnumerationVariableList */]: this.prototype.writeNodeDefault,
2119
- [109 /* ForStatement */]: this.prototype.writeNodeDefault,
2120
- [110 /* IfStatement */]: this.prototype.writeNodeDefault,
2121
- [111 /* ElseIfClauseList */]: this.prototype.writeNodeDefault,
2122
- [112 /* ElseIfClause */]: this.prototype.writeNodeDefault,
2123
- [113 /* ElseClause */]: this.prototype.writeNodeDefault,
2124
- [114 /* InvalidStatement */]: this.prototype.writeNodeDefault,
2125
- [115 /* NestedFunctionDeclarationStatement */]: this.prototype.writeNodeDefault,
2126
- [116 /* LocalVariableDeclarationStatement */]: this.prototype.writeNodeDefault,
2127
- [117 /* LoopStatement */]: this.prototype.writeNodeDefault,
2128
- [118 /* ReturnStatement */]: this.prototype.writeNodeDefault,
2129
- [119 /* CaseClauseList */]: this.prototype.writeNodeDefault,
2130
- [120 /* SwitchStatement */]: this.prototype.writeNodeDefault,
2131
- [121 /* MatchExpressionList */]: this.prototype.writeNodeDefault,
2132
- [122 /* CaseClause */]: this.prototype.writeNodeDefault,
2133
- [123 /* WhileStatement */]: this.prototype.writeNodeDefault,
2134
- [124 /* YieldStatement */]: this.prototype.writeNodeDefault,
2135
- [125 /* TranslationParameterList */]: this.prototype.writeNodeDefault,
2136
- [126 /* TranslationParameterClause */]: this.prototype.writeTranslationParameterClause,
2137
- [127 /* ConstructorTranslation */]: this.prototype.writeConstructorTranslation,
2138
- [128 /* IndexParameterTranslationClause */]: this.prototype.writeIndexParameterTranslationClause,
2139
- [129 /* IndexerTranslation */]: this.prototype.writeIndexerTranslation,
2140
- [130 /* TranslationTypeParameterList */]: this.prototype.writeNodeDefault,
2141
- [131 /* TranslationTypeParameterClause */]: this.prototype.writeTranslationTypeParameterClause,
2142
- [132 /* PackageFunctionTranslation */]: this.prototype.writePackageFunctionTranslation,
2143
- [133 /* MethodTranslation */]: this.prototype.writeMethodTranslation,
2144
- [134 /* FunctionTypeTranslation */]: this.prototype.writeFunctionTypeTranslation,
2145
- [135 /* PackageImportTranslation */]: this.prototype.writePackageImportTranslation,
2146
- [137 /* PackageVariableTranslation */]: this.prototype.writePackageVariableTranslation,
2147
- [138 /* FieldOrVariantTranslation */]: this.prototype.writeFieldOrVariantTranslation,
2148
- [139 /* TypeMemberTranslationList */]: this.prototype.writeNodeDefault,
2149
- [140 /* TypeTranslation */]: this.prototype.writeTypeTranslation,
2150
- [141 /* TextLiteralTranslation */]: this.prototype.writeNodeDefault,
2151
- [142 /* TextTemplateLiteralTranslation */]: this.prototype.writeNodeDefault,
2152
- [147 /* TagList */]: this.prototype.writeNodeDefault,
2153
- [149 /* ModifierList */]: this.prototype.writeNodeDefault,
2154
- [154 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2155
- [156 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2156
- [157 /* TypeAnnotation */]: this.prototype.writeNodeDefault
2088
+ [76 /* ConditionalExpression */]: this.prototype.writeNodeDefault,
2089
+ [77 /* PrefixUnaryExpression */]: this.prototype.writeNodeDefault,
2090
+ [78 /* MemberAccessExpression */]: this.prototype.writeNodeDefault,
2091
+ [79 /* ReferenceExpression */]: this.prototype.writeNodeDefault,
2092
+ [80 /* DereferenceExpression */]: this.prototype.writeNodeDefault,
2093
+ [81 /* TextTemplateLiteral */]: this.prototype.writeNodeDefault,
2094
+ [82 /* TextTemplateSpanList */]: this.prototype.writeNodeDefault,
2095
+ [83 /* TextTemplateSpan */]: this.prototype.writeNodeDefault,
2096
+ [84 /* TokenExpression */]: this.prototype.writeNodeDefault,
2097
+ [85 /* KeywordExpression */]: this.prototype.writeNodeDefault,
2098
+ [86 /* ObjectExpression */]: this.prototype.writeNodeDefault,
2099
+ [87 /* BaseExpression */]: this.prototype.writeNodeDefault,
2100
+ [88 /* IdentifierExpression */]: this.prototype.writeNodeDefault,
2101
+ [89 /* GenericSpecializationExpression */]: this.prototype.writeNodeDefault,
2102
+ [90 /* DefaultMatchExpression */]: this.prototype.writeNodeDefault,
2103
+ [91 /* AssignmentStatement */]: this.prototype.writeNodeDefault,
2104
+ [92 /* StatementList */]: this.prototype.writeNodeDefault,
2105
+ [95 /* BreakLoopStatement */]: this.prototype.writeNodeDefault,
2106
+ [96 /* ContinueLoopStatement */]: this.prototype.writeNodeDefault,
2107
+ [97 /* DisposeStatement */]: this.prototype.writeNodeDefault,
2108
+ [98 /* RunStatement */]: this.prototype.writeNodeDefault,
2109
+ [99 /* TryStatement */]: this.prototype.writeNodeDefault,
2110
+ [100 /* CatchClause */]: this.prototype.writeNodeDefault,
2111
+ [101 /* ErrorVariableDeclaration */]: this.prototype.writeNodeDefault,
2112
+ [102 /* FinallyClause */]: this.prototype.writeNodeDefault,
2113
+ [103 /* EmptyStatement */]: this.prototype.writeNodeDefault,
2114
+ [104 /* ErrorStatement */]: this.prototype.writeNodeDefault,
2115
+ [105 /* ImportantStatement */]: this.prototype.writeNodeDefault,
2116
+ [106 /* ExpressionStatement */]: this.prototype.writeNodeDefault,
2117
+ [107 /* EnumerationVariableList */]: this.prototype.writeNodeDefault,
2118
+ [108 /* ForStatement */]: this.prototype.writeNodeDefault,
2119
+ [109 /* IfStatement */]: this.prototype.writeNodeDefault,
2120
+ [110 /* ElseIfClauseList */]: this.prototype.writeNodeDefault,
2121
+ [111 /* ElseIfClause */]: this.prototype.writeNodeDefault,
2122
+ [112 /* ElseClause */]: this.prototype.writeNodeDefault,
2123
+ [113 /* InvalidStatement */]: this.prototype.writeNodeDefault,
2124
+ [114 /* NestedFunctionDeclarationStatement */]: this.prototype.writeNodeDefault,
2125
+ [115 /* LocalVariableDeclarationStatement */]: this.prototype.writeNodeDefault,
2126
+ [116 /* LoopStatement */]: this.prototype.writeNodeDefault,
2127
+ [117 /* ReturnStatement */]: this.prototype.writeNodeDefault,
2128
+ [118 /* CaseClauseList */]: this.prototype.writeNodeDefault,
2129
+ [119 /* SwitchStatement */]: this.prototype.writeNodeDefault,
2130
+ [120 /* MatchExpressionList */]: this.prototype.writeNodeDefault,
2131
+ [121 /* CaseClause */]: this.prototype.writeNodeDefault,
2132
+ [122 /* WhileStatement */]: this.prototype.writeNodeDefault,
2133
+ [123 /* YieldStatement */]: this.prototype.writeNodeDefault,
2134
+ [124 /* TranslationParameterList */]: this.prototype.writeNodeDefault,
2135
+ [125 /* TranslationParameterClause */]: this.prototype.writeTranslationParameterClause,
2136
+ [126 /* ConstructorTranslation */]: this.prototype.writeConstructorTranslation,
2137
+ [127 /* IndexParameterTranslationClause */]: this.prototype.writeIndexParameterTranslationClause,
2138
+ [128 /* IndexerTranslation */]: this.prototype.writeIndexerTranslation,
2139
+ [129 /* TranslationTypeParameterList */]: this.prototype.writeNodeDefault,
2140
+ [130 /* TranslationTypeParameterClause */]: this.prototype.writeTranslationTypeParameterClause,
2141
+ [131 /* PackageFunctionTranslation */]: this.prototype.writePackageFunctionTranslation,
2142
+ [132 /* MethodTranslation */]: this.prototype.writeMethodTranslation,
2143
+ [133 /* FunctionTypeTranslation */]: this.prototype.writeFunctionTypeTranslation,
2144
+ [134 /* PackageImportTranslation */]: this.prototype.writePackageImportTranslation,
2145
+ [136 /* PackageVariableTranslation */]: this.prototype.writePackageVariableTranslation,
2146
+ [137 /* FieldOrVariantTranslation */]: this.prototype.writeFieldOrVariantTranslation,
2147
+ [138 /* TypeMemberTranslationList */]: this.prototype.writeNodeDefault,
2148
+ [139 /* TypeTranslation */]: this.prototype.writeTypeTranslation,
2149
+ [140 /* TextLiteralTranslation */]: this.prototype.writeNodeDefault,
2150
+ [141 /* TextTemplateLiteralTranslation */]: this.prototype.writeNodeDefault,
2151
+ [146 /* TagList */]: this.prototype.writeNodeDefault,
2152
+ [148 /* ModifierList */]: this.prototype.writeNodeDefault,
2153
+ [153 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2154
+ [155 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2155
+ [156 /* TypeAnnotation */]: this.prototype.writeNodeDefault
2157
2156
  };
2158
2157
  return writeFunctions;
2159
2158
  }
@@ -2338,7 +2337,7 @@ var TranslationsGenerationService = class {
2338
2337
  return void 0;
2339
2338
  }
2340
2339
  let result;
2341
- if (tokenOrKeyword.isToken(63 /* Identifier */) && tokenOrKeyword.parent.kind === 140 /* TypeTranslation */ && tokenOrKeyword.value === tokenOrKeyword.parent.sourceName) {
2340
+ if (tokenOrKeyword.isToken(63 /* Identifier */) && tokenOrKeyword.parent.kind === 139 /* TypeTranslation */ && tokenOrKeyword.value === tokenOrKeyword.parent.sourceName) {
2342
2341
  const translationPackage = analyzer.getAnalyzedTranslationPackageIfTargetResolved(sourceFile.package);
2343
2342
  if (translationPackage !== void 0) {
2344
2343
  const generator = new TranslationsGenerator(
@@ -2384,7 +2383,7 @@ var TranslationsGenerationService = class {
2384
2383
  return false;
2385
2384
  }
2386
2385
  const generator = new TranslationsGenerator(analyzer, sourceFile, translationPackage, sourceFile.package.dialect);
2387
- return Query.from(tokenOrKeyword.parent.translationList.translationDeclarations).filter((t) => t.kind === 140 /* TypeTranslation */).mapAndFilter((t) => translationPackage.getTypeTranslationTarget(t).target).any((t) => generator.collectNotTranslatedTypeMembers(t).length > 0);
2386
+ return Query.from(tokenOrKeyword.parent.translationList.translationDeclarations).filter((t) => t.kind === 139 /* TypeTranslation */).mapAndFilter((t) => translationPackage.getTypeTranslationTarget(t).target).any((t) => generator.collectNotTranslatedTypeMembers(t).length > 0);
2388
2387
  }
2389
2388
  };
2390
2389
  var TranslationsGenerator = class _TranslationsGenerator {
@@ -2411,7 +2410,7 @@ var TranslationsGenerator = class _TranslationsGenerator {
2411
2410
  };
2412
2411
  const memberTranslationsCode = Query.from(memberEntities).mapAndFilter((m) => this.createPackageMemberTranslationNode(m)).uniqueWithComparator(compareNodes).map((n) => {
2413
2412
  const code = new SyntaxToCode(n, syntaxToCodeOptions).convert();
2414
- if (n.kind === 140 /* TypeTranslation */) {
2413
+ if (n.kind === 139 /* TypeTranslation */) {
2415
2414
  const startOffset = Math.max(code.indexOf(newLine), 0);
2416
2415
  return this.addNewLineBeforeArrowsInTranslation(
2417
2416
  code,
@@ -2443,7 +2442,7 @@ var TranslationsGenerator = class _TranslationsGenerator {
2443
2442
  generateMissingTranslationsForPartiallyTranslatedTypes(translationsDeclaration) {
2444
2443
  const result = new Array();
2445
2444
  for (const translation of translationsDeclaration.translationList.translationDeclarations) {
2446
- if (translation.kind === 140 /* TypeTranslation */) {
2445
+ if (translation.kind === 139 /* TypeTranslation */) {
2447
2446
  const edits = this.generateMissingTypeMemberTranslations(translation);
2448
2447
  if (edits !== void 0) {
2449
2448
  result.push(...edits);
@@ -2540,13 +2539,13 @@ var TranslationsGenerator = class _TranslationsGenerator {
2540
2539
  }
2541
2540
  detectIndentationStepForTypeMemberTranslations(node) {
2542
2541
  let indentationStepSize;
2543
- if (node.kind === 140 /* TypeTranslation */) {
2542
+ if (node.kind === 139 /* TypeTranslation */) {
2544
2543
  indentationStepSize = tryDetectIndentationStepSizeUsingTypeTranslation(node, this._sourceFile);
2545
2544
  }
2546
2545
  if (indentationStepSize === void 0) {
2547
2546
  const translationsDeclarations = node.kind === 21 /* TranslationsDeclaration */ ? node : node.parent.parent;
2548
2547
  for (const member of translationsDeclarations.translationList.translationDeclarations) {
2549
- if (member.kind === 140 /* TypeTranslation */) {
2548
+ if (member.kind === 139 /* TypeTranslation */) {
2550
2549
  indentationStepSize = tryDetectIndentationStepSizeUsingTypeTranslation(member, this._sourceFile);
2551
2550
  if (indentationStepSize !== void 0) {
2552
2551
  break;
@@ -2728,7 +2727,7 @@ var CodeActionsService = class {
2728
2727
  }
2729
2728
  const result = new Array();
2730
2729
  const diagnosticCodeSet = new Set(diagnosticCodes);
2731
- if (diagnosticCodeSet.has(273 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(274 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
2730
+ if (diagnosticCodeSet.has(277 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(278 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
2732
2731
  const data = { onlyTypeMembers: false };
2733
2732
  result.push(CodeAction.unresolved(
2734
2733
  "\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.",
@@ -2833,7 +2832,7 @@ var SignatureForNode = class _SignatureForNode {
2833
2832
  return _SignatureForNode.getSignaturesForAutotypeCallExpression(analyzer, node);
2834
2833
  case 71 /* IndexedAccessExpression */:
2835
2834
  return _SignatureForNode.getSignaturesForIndexedAccessExpression(analyzer, node);
2836
- case 148 /* Tag */:
2835
+ case 147 /* Tag */:
2837
2836
  return _SignatureForNode.getSignaturesForTag(analyzer, node);
2838
2837
  default:
2839
2838
  Debug.never(node);
@@ -3227,7 +3226,7 @@ var CompletionService = class {
3227
3226
  if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 6 /* PackageGroupImportDirective */ || this.tokenOrKeywordIsPackageImportListChild(tokenOrKeyword)) {
3228
3227
  return new PackageImportCompletionContext([], void 0);
3229
3228
  }
3230
- if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 79 /* MemberAccessExpression */) {
3229
+ if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 78 /* MemberAccessExpression */) {
3231
3230
  const propertyAccess = tokenOrKeyword.parent;
3232
3231
  {
3233
3232
  const info = this._analyzer.checkExpressionDenotesPackageNameSegment(propertyAccess.expression);
@@ -3267,7 +3266,7 @@ var CompletionService = class {
3267
3266
  semanticContext
3268
3267
  );
3269
3268
  }
3270
- if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 136 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 10 /* NamedTypeSpecifier */) {
3269
+ if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 10 /* NamedTypeSpecifier */) {
3271
3270
  const namedTypeSpecifier = tokenOrKeyword.parent.parent;
3272
3271
  const resolutionResult = this._analyzer.resolveNamedTypeSpecifier(namedTypeSpecifier);
3273
3272
  const segmentIndex = Math.floor(
@@ -3309,7 +3308,7 @@ var CompletionService = class {
3309
3308
  }
3310
3309
  return { kind: "none" };
3311
3310
  }
3312
- if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 136 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 148 /* Tag */) {
3311
+ if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 147 /* Tag */) {
3313
3312
  const tag = tokenOrKeyword.parent.parent;
3314
3313
  const resolutionResult = this._analyzer.resolveTag(tag);
3315
3314
  const segmentIndex = Math.floor(
@@ -3404,17 +3403,17 @@ var CompletionService = class {
3404
3403
  translationKind = 0 /* Any */;
3405
3404
  hasPrecedingKeyword = false;
3406
3405
  }
3407
- if (tokenOrKeyword.isKeyword(18 /* Import */) && tokenOrKeyword.parent.kind === 135 /* PackageImportTranslation */) {
3406
+ if (tokenOrKeyword.isKeyword(18 /* Import */) && tokenOrKeyword.parent.kind === 134 /* PackageImportTranslation */) {
3408
3407
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
3409
3408
  translationKind = 1 /* PackageImport */;
3410
3409
  hasPrecedingKeyword = true;
3411
3410
  }
3412
- if (tokenOrKeyword.isKeyword(16 /* Type */) && (tokenOrKeyword.parent.kind === 140 /* TypeTranslation */ || tokenOrKeyword.parent.kind === 134 /* FunctionTypeTranslation */)) {
3411
+ if (tokenOrKeyword.isKeyword(16 /* Type */) && (tokenOrKeyword.parent.kind === 139 /* TypeTranslation */ || tokenOrKeyword.parent.kind === 133 /* FunctionTypeTranslation */)) {
3413
3412
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
3414
3413
  translationKind = 3 /* Type */;
3415
3414
  hasPrecedingKeyword = true;
3416
3415
  }
3417
- if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 132 /* PackageFunctionTranslation */) {
3416
+ if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 131 /* PackageFunctionTranslation */) {
3418
3417
  translationsDeclaration = tokenOrKeyword.parent.parent.parent;
3419
3418
  translationKind = 2 /* Method */;
3420
3419
  hasPrecedingKeyword = true;
@@ -3434,9 +3433,9 @@ var CompletionService = class {
3434
3433
  hasPrecedingKeyword
3435
3434
  );
3436
3435
  }
3437
- if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 136 /* QualifiedName */) {
3436
+ if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */) {
3438
3437
  const qualifiedName = tokenOrKeyword.parent;
3439
- if (qualifiedName.parent.kind === 135 /* PackageImportTranslation */ && qualifiedName === qualifiedName.parent.sourceName) {
3438
+ if (qualifiedName.parent.kind === 134 /* PackageImportTranslation */ && qualifiedName === qualifiedName.parent.sourceName) {
3440
3439
  const precedingSegmentNames = qualifiedName.qualifiers.takeWhile((s) => s.rangeStart < tokenOrKeyword.value.rangeStart).map((p) => this._analyzer.createNameFromIdentifier(p)).toArray();
3441
3440
  const sourceLocale = translationPackage.getTranslatedPackage().getLocale();
3442
3441
  return new PackageImportCompletionContext(precedingSegmentNames, { sourceLocale });
@@ -3461,12 +3460,12 @@ var CompletionService = class {
3461
3460
  translationKind = 0 /* Any */;
3462
3461
  hasPrecedingKeyword = false;
3463
3462
  }
3464
- if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 133 /* MethodTranslation */) {
3463
+ if (tokenOrKeyword.isKeyword(12 /* Function */) && tokenOrKeyword.parent.kind === 132 /* MethodTranslation */) {
3465
3464
  typeTranslation = tokenOrKeyword.parent.parent.parent;
3466
3465
  translationKind = 1 /* Method */;
3467
3466
  hasPrecedingKeyword = true;
3468
3467
  }
3469
- if (tokenOrKeyword.isKeyword(31 /* Creation */) && tokenOrKeyword.parent.kind === 127 /* ConstructorTranslation */) {
3468
+ if (tokenOrKeyword.isKeyword(31 /* Creation */) && tokenOrKeyword.parent.kind === 126 /* ConstructorTranslation */) {
3470
3469
  typeTranslation = tokenOrKeyword.parent.parent.parent;
3471
3470
  translationKind = 3 /* Constructor */;
3472
3471
  hasPrecedingKeyword = true;
@@ -3506,7 +3505,7 @@ var CompletionService = class {
3506
3505
  role.argumentList.parent
3507
3506
  );
3508
3507
  break;
3509
- case 148 /* Tag */:
3508
+ case 147 /* Tag */:
3510
3509
  signatures = SignatureForNode.getSignaturesForTag(this._analyzer, role.argumentList.parent);
3511
3510
  valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(role.argumentList.parent);
3512
3511
  break;
@@ -3719,35 +3718,35 @@ var CompletionService = class {
3719
3718
  return false;
3720
3719
  }
3721
3720
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3722
- return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 117 /* LoopStatement */;
3721
+ return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 93 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 116 /* LoopStatement */;
3723
3722
  }
3724
3723
  isModifierLevelContext(positionDescription) {
3725
3724
  if (positionDescription.kind !== "after-token-or-keyword") {
3726
3725
  return false;
3727
3726
  }
3728
3727
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3729
- return tokenOrKeyword.isToken(44 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 150 /* Modifier */;
3728
+ return tokenOrKeyword.isToken(44 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 149 /* Modifier */;
3730
3729
  }
3731
3730
  isElseOrElseIfKeywordContext(positionDescription) {
3732
3731
  if (positionDescription.kind !== "after-token-or-keyword") {
3733
3732
  return false;
3734
3733
  }
3735
3734
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3736
- return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && (tokenOrKeyword.parent.parent.kind === 110 /* IfStatement */ && tokenOrKeyword.parent === tokenOrKeyword.parent.parent.block || tokenOrKeyword.parent.parent.kind === 112 /* ElseIfClause */);
3735
+ return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 93 /* StatementBlock */ && (tokenOrKeyword.parent.parent.kind === 109 /* IfStatement */ && tokenOrKeyword.parent === tokenOrKeyword.parent.parent.block || tokenOrKeyword.parent.parent.kind === 111 /* ElseIfClause */);
3737
3736
  }
3738
3737
  isCatchKeywordContext(positionDescription) {
3739
3738
  if (positionDescription.kind !== "after-token-or-keyword") {
3740
3739
  return false;
3741
3740
  }
3742
3741
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3743
- return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 100 /* TryStatement */;
3742
+ return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 93 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 99 /* TryStatement */;
3744
3743
  }
3745
3744
  isFinallyKeywordContext(positionDescription) {
3746
3745
  if (positionDescription.kind !== "after-token-or-keyword") {
3747
3746
  return false;
3748
3747
  }
3749
3748
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3750
- return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && (tokenOrKeyword.parent.parent.kind === 100 /* TryStatement */ || tokenOrKeyword.parent.parent.kind === 101 /* CatchClause */);
3749
+ return tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 93 /* StatementBlock */ && (tokenOrKeyword.parent.parent.kind === 99 /* TryStatement */ || tokenOrKeyword.parent.parent.kind === 100 /* CatchClause */);
3751
3750
  }
3752
3751
  isTypeKindCompletionContext(positionDescription) {
3753
3752
  return positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(57 /* Equals */) && NodeTypeUtils.isPackageTypeDeclaration(positionDescription.tokenOrKeyword.parent);
@@ -3764,10 +3763,10 @@ var CompletionService = class {
3764
3763
  return false;
3765
3764
  }
3766
3765
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3767
- if (tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 122 /* CaseClause */) {
3766
+ if (tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 93 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 121 /* CaseClause */) {
3768
3767
  return true;
3769
3768
  }
3770
- if (syntaxContext.precedingExpression !== void 0 && syntaxContext.precedingExpression.parent.kind === 120 /* SwitchStatement */) {
3769
+ if (syntaxContext.precedingExpression !== void 0 && syntaxContext.precedingExpression.parent.kind === 119 /* SwitchStatement */) {
3771
3770
  return true;
3772
3771
  }
3773
3772
  return false;
@@ -4417,7 +4416,7 @@ function isInvalidNode(node) {
4417
4416
  switch (node.kind) {
4418
4417
  case 72 /* InvalidExpression */:
4419
4418
  case 43 /* InvalidPackageMemberDeclaration */:
4420
- case 114 /* InvalidStatement */:
4419
+ case 113 /* InvalidStatement */:
4421
4420
  case 57 /* InvalidTypeMemberDeclaration */:
4422
4421
  case 16 /* InvalidTypeSpecifier */:
4423
4422
  return true;
@@ -5249,7 +5248,7 @@ var SyntaxContextFactory = class {
5249
5248
  if (positionDescription.kind === "after-token-or-keyword") {
5250
5249
  isUnqualifiedTypeContext = this.isUnqualifiedTypeContext(positionDescription.tokenOrKeyword);
5251
5250
  }
5252
- const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(35 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 148 /* Tag */;
5251
+ const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(35 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 147 /* Tag */;
5253
5252
  let isTopLevelTranslationListContext;
5254
5253
  if (positionDescription.kind === "after-token-or-keyword") {
5255
5254
  isTopLevelTranslationListContext = this.isTopLevelTranslationListContext(positionDescription.tokenOrKeyword);
@@ -5275,7 +5274,7 @@ var SyntaxContextFactory = class {
5275
5274
  }
5276
5275
  static isExpressionOrStatementContext(tokenOrKeyword) {
5277
5276
  if (tokenOrKeyword.isToken(57 /* Equals */)) {
5278
- if (tokenOrKeyword.parent.kind === 92 /* AssignmentStatement */) {
5277
+ if (tokenOrKeyword.parent.kind === 91 /* AssignmentStatement */) {
5279
5278
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.right);
5280
5279
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5281
5280
  }
@@ -5291,24 +5290,24 @@ var SyntaxContextFactory = class {
5291
5290
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.initializer);
5292
5291
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5293
5292
  }
5294
- if (tokenOrKeyword.parent.kind === 145 /* ParameterDeclaration */) {
5293
+ if (tokenOrKeyword.parent.kind === 144 /* ParameterDeclaration */) {
5295
5294
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.defaultValue);
5296
5295
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5297
5296
  }
5298
- if (tokenOrKeyword.parent.kind === 146 /* Argument */) {
5297
+ if (tokenOrKeyword.parent.kind === 145 /* Argument */) {
5299
5298
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5300
5299
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5301
5300
  }
5302
- if (tokenOrKeyword.parent.kind === 143 /* VariantDeclaration */) {
5301
+ if (tokenOrKeyword.parent.kind === 142 /* VariantDeclaration */) {
5303
5302
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5304
5303
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5305
5304
  }
5306
5305
  }
5307
- if (tokenOrKeyword.parent.kind === 92 /* AssignmentStatement */) {
5306
+ if (tokenOrKeyword.parent.kind === 91 /* AssignmentStatement */) {
5308
5307
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.right);
5309
5308
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5310
5309
  }
5311
- if (tokenOrKeyword.parent.kind === 78 /* PrefixUnaryExpression */) {
5310
+ if (tokenOrKeyword.parent.kind === 77 /* PrefixUnaryExpression */) {
5312
5311
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.operand);
5313
5312
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5314
5313
  }
@@ -5316,11 +5315,11 @@ var SyntaxContextFactory = class {
5316
5315
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.right);
5317
5316
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5318
5317
  }
5319
- if (tokenOrKeyword.isToken(7 /* TextTemplateHead */) && tokenOrKeyword.parent.kind === 82 /* TextTemplateLiteral */) {
5318
+ if (tokenOrKeyword.isToken(7 /* TextTemplateHead */) && tokenOrKeyword.parent.kind === 81 /* TextTemplateLiteral */) {
5320
5319
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.spanList.spans.at(0)?.expression);
5321
5320
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5322
5321
  }
5323
- if (tokenOrKeyword.isToken(8 /* TextTemplatePart */) && tokenOrKeyword.parent.kind === 84 /* TextTemplateSpan */) {
5322
+ if (tokenOrKeyword.isToken(8 /* TextTemplatePart */) && tokenOrKeyword.parent.kind === 83 /* TextTemplateSpan */) {
5324
5323
  let expressionForTargetType;
5325
5324
  const spanList = tokenOrKeyword.parent.parent;
5326
5325
  const spanIndex = spanList.spans.indexOf(tokenOrKeyword.parent);
@@ -5332,12 +5331,12 @@ var SyntaxContextFactory = class {
5332
5331
  isStatementContext: false
5333
5332
  };
5334
5333
  }
5335
- if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 94 /* StatementBlock */) {
5334
+ if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 93 /* StatementBlock */) {
5336
5335
  return { isExpressionContext: { expressionRole: new ExpressionRole_other(void 0) }, isStatementContext: true };
5337
5336
  }
5338
- if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 95 /* FunctionBlock */) {
5337
+ if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 94 /* FunctionBlock */) {
5339
5338
  const block = tokenOrKeyword.parent;
5340
- if (block.expressionOrStatementList.kind !== 93 /* StatementList */ || block.expressionOrStatementList.statements.count() === 0) {
5339
+ if (block.expressionOrStatementList.kind !== 92 /* StatementList */ || block.expressionOrStatementList.statements.count() === 0) {
5341
5340
  return {
5342
5341
  isExpressionContext: { expressionRole: new ExpressionRole_functionBlockExpression(block) },
5343
5342
  isStatementContext: true
@@ -5349,7 +5348,7 @@ var SyntaxContextFactory = class {
5349
5348
  };
5350
5349
  }
5351
5350
  }
5352
- if (tokenOrKeyword.isToken(51 /* Semicolon */) && tokenOrKeyword.parent.kind === 93 /* StatementList */) {
5351
+ if (tokenOrKeyword.isToken(51 /* Semicolon */) && tokenOrKeyword.parent.kind === 92 /* StatementList */) {
5353
5352
  return { isExpressionContext: { expressionRole: new ExpressionRole_other(void 0) }, isStatementContext: true };
5354
5353
  }
5355
5354
  if (tokenOrKeyword.isToken(44 /* OpenParenthesis */)) {
@@ -5357,7 +5356,7 @@ var SyntaxContextFactory = class {
5357
5356
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5358
5357
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5359
5358
  }
5360
- if (tokenOrKeyword.parent.kind === 80 /* ReferenceExpression */) {
5359
+ if (tokenOrKeyword.parent.kind === 79 /* ReferenceExpression */) {
5361
5360
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5362
5361
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5363
5362
  }
@@ -5369,13 +5368,17 @@ var SyntaxContextFactory = class {
5369
5368
  const expressionRole = new ExpressionRole_argument(tokenOrKeyword.parent.argumentList, 0);
5370
5369
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5371
5370
  }
5372
- if (tokenOrKeyword.parent.kind === 148 /* Tag */) {
5371
+ if (tokenOrKeyword.parent.kind === 147 /* Tag */) {
5373
5372
  const argumentList = tokenOrKeyword.parent.argumentList;
5374
5373
  if (argumentList !== void 0) {
5375
5374
  const expressionRole = new ExpressionRole_argument(argumentList, 0);
5376
5375
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5377
5376
  }
5378
5377
  }
5378
+ if (tokenOrKeyword.parent.kind === 76 /* ConditionalExpression */) {
5379
+ const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5380
+ return { isExpressionContext: { expressionRole }, isStatementContext: false };
5381
+ }
5379
5382
  }
5380
5383
  if (tokenOrKeyword.isToken(45 /* OpenSquareBracket */) && tokenOrKeyword.parent.kind === 71 /* IndexedAccessExpression */) {
5381
5384
  const expressionRole = new ExpressionRole_argument(tokenOrKeyword.parent.argumentList, 0);
@@ -5400,7 +5403,7 @@ var SyntaxContextFactory = class {
5400
5403
  const expressionRole = new ExpressionRole_argument(argumentList, index);
5401
5404
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5402
5405
  }
5403
- if (tokenOrKeyword.parent.kind === 121 /* MatchExpressionList */) {
5406
+ if (tokenOrKeyword.parent.kind === 120 /* MatchExpressionList */) {
5404
5407
  const expressionRole = new ExpressionRole_matchListElement(tokenOrKeyword.parent.parent.parent.parent);
5405
5408
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5406
5409
  }
@@ -5408,60 +5411,63 @@ var SyntaxContextFactory = class {
5408
5411
  const expressionRole = new ExpressionRole_arrayElement(tokenOrKeyword.parent.parent);
5409
5412
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5410
5413
  }
5414
+ if (tokenOrKeyword.parent.kind === 76 /* ConditionalExpression */) {
5415
+ if (tokenOrKeyword.value === tokenOrKeyword.parent.firstComma) {
5416
+ const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.firstExpression);
5417
+ return { isExpressionContext: { expressionRole }, isStatementContext: false };
5418
+ }
5419
+ if (tokenOrKeyword.value === tokenOrKeyword.parent.secondComma) {
5420
+ const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.secondExpression);
5421
+ return { isExpressionContext: { expressionRole }, isStatementContext: false };
5422
+ }
5423
+ return { isExpressionContext: void 0, isStatementContext: false };
5424
+ }
5411
5425
  }
5412
- if (tokenOrKeyword.isKeyword(46 /* Case */) && tokenOrKeyword.parent.kind === 122 /* CaseClause */) {
5426
+ if (tokenOrKeyword.isKeyword(46 /* Case */) && tokenOrKeyword.parent.kind === 121 /* CaseClause */) {
5413
5427
  const expressionRole = new ExpressionRole_matchListElement(tokenOrKeyword.parent.parent.parent);
5414
5428
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5415
5429
  }
5416
- if (tokenOrKeyword.isKeyword(15 /* Return */) && tokenOrKeyword.parent.kind === 118 /* ReturnStatement */) {
5430
+ if (tokenOrKeyword.isKeyword(15 /* Return */) && tokenOrKeyword.parent.kind === 117 /* ReturnStatement */) {
5417
5431
  const expressionRole = new ExpressionRole_returnedValue(tokenOrKeyword.parent);
5418
5432
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5419
5433
  }
5420
- if (tokenOrKeyword.isKeyword(20 /* Error */) && tokenOrKeyword.parent.kind === 105 /* ErrorStatement */) {
5434
+ if (tokenOrKeyword.isKeyword(20 /* Error */) && tokenOrKeyword.parent.kind === 104 /* ErrorStatement */) {
5421
5435
  const expressionRole = new ExpressionRole_errorValue(tokenOrKeyword.parent);
5422
5436
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5423
5437
  }
5424
- if (tokenOrKeyword.isKeyword(19 /* Important */) && tokenOrKeyword.parent.kind === 106 /* ImportantStatement */) {
5438
+ if (tokenOrKeyword.isKeyword(19 /* Important */) && tokenOrKeyword.parent.kind === 105 /* ImportantStatement */) {
5425
5439
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5426
5440
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5427
5441
  }
5428
- if (tokenOrKeyword.isKeyword(45 /* Switch */) && tokenOrKeyword.parent.kind === 120 /* SwitchStatement */) {
5442
+ if (tokenOrKeyword.isKeyword(45 /* Switch */) && tokenOrKeyword.parent.kind === 119 /* SwitchStatement */) {
5429
5443
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5430
5444
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5431
5445
  }
5432
- if (tokenOrKeyword.isKeyword(13 /* If */) && tokenOrKeyword.parent.kind === 110 /* IfStatement */) {
5446
+ if (tokenOrKeyword.isKeyword(13 /* If */) && tokenOrKeyword.parent.kind === 109 /* IfStatement */) {
5433
5447
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5434
5448
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5435
5449
  }
5436
- if (tokenOrKeyword.isKeyword(11 /* ElseIf */) && tokenOrKeyword.parent.kind === 112 /* ElseIfClause */) {
5450
+ if (tokenOrKeyword.isKeyword(11 /* ElseIf */) && tokenOrKeyword.parent.kind === 111 /* ElseIfClause */) {
5437
5451
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5438
5452
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5439
5453
  }
5440
- if (tokenOrKeyword.isKeyword(9 /* From */) && tokenOrKeyword.parent.kind === 109 /* ForStatement */) {
5454
+ if (tokenOrKeyword.isKeyword(9 /* From */) && tokenOrKeyword.parent.kind === 108 /* ForStatement */) {
5441
5455
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.enumeratedExpression);
5442
5456
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5443
5457
  }
5444
- if (tokenOrKeyword.isKeyword(25 /* While */) && tokenOrKeyword.parent.kind === 123 /* WhileStatement */) {
5458
+ if (tokenOrKeyword.isKeyword(25 /* While */) && tokenOrKeyword.parent.kind === 122 /* WhileStatement */) {
5445
5459
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5446
5460
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5447
5461
  }
5448
- if (tokenOrKeyword.isKeyword(27 /* RepeatWhile */) && tokenOrKeyword.parent.kind === 117 /* LoopStatement */) {
5462
+ if (tokenOrKeyword.isKeyword(27 /* RepeatWhile */) && tokenOrKeyword.parent.kind === 116 /* LoopStatement */) {
5449
5463
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5450
5464
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5451
5465
  }
5452
- if (tokenOrKeyword.isKeyword(28 /* Yield */) && tokenOrKeyword.parent.kind === 124 /* YieldStatement */) {
5466
+ if (tokenOrKeyword.isKeyword(28 /* Yield */) && tokenOrKeyword.parent.kind === 123 /* YieldStatement */) {
5453
5467
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.expression);
5454
5468
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5455
5469
  }
5456
- if (tokenOrKeyword.isKeyword(29 /* When */) && tokenOrKeyword.parent.kind === 76 /* WhenTernaryExpression */) {
5457
- const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5458
- return { isExpressionContext: { expressionRole }, isStatementContext: false };
5459
- }
5460
- if (tokenOrKeyword.isToken(23 /* Colon */) && tokenOrKeyword.parent.kind === 76 /* WhenTernaryExpression */) {
5461
- const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.secondExpression);
5462
- return { isExpressionContext: { expressionRole }, isStatementContext: false };
5463
- }
5464
- if (tokenOrKeyword.isKeyword(30 /* Cond */) && tokenOrKeyword.parent.kind === 77 /* ConditionalExpression */) {
5470
+ if (tokenOrKeyword.isKeyword(30 /* Cond */) && tokenOrKeyword.parent.kind === 76 /* ConditionalExpression */) {
5465
5471
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.condition);
5466
5472
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5467
5473
  }
@@ -5483,7 +5489,7 @@ var SyntaxContextFactory = class {
5483
5489
  if (tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 32 /* TypeMemberDeclarationBlock */ && (tokenOrKeyword.parent.parent.kind === 40 /* TypeExtensionDeclaration */ || tokenOrKeyword.parent.parent.parent.kind === 33 /* PackageStructuredTypeDeclaration */ || tokenOrKeyword.parent.parent.parent.kind === 38 /* PackageVariantTypeDeclaration */ || tokenOrKeyword.parent.parent.parent.kind === 22 /* PackageAliasTypeDeclaration */)) {
5484
5490
  return true;
5485
5491
  }
5486
- if (tokenOrKeyword.isToken(20 /* CloseBrace */) && (tokenOrKeyword.parent.kind === 21 /* TranslationsDeclaration */ || tokenOrKeyword.parent.kind === 24 /* PackageMemberGroupDeclaration */ || tokenOrKeyword.parent.kind === 6 /* PackageGroupImportDirective */ || tokenOrKeyword.parent.kind === 95 /* FunctionBlock */ && (tokenOrKeyword.parent.parent.kind === 25 /* PackageConstructorDeclaration */ || tokenOrKeyword.parent.parent.kind === 26 /* PackageEntryPointDeclaration */ || tokenOrKeyword.parent.parent.kind === 27 /* PackageFunctionDeclaration */))) {
5492
+ if (tokenOrKeyword.isToken(20 /* CloseBrace */) && (tokenOrKeyword.parent.kind === 21 /* TranslationsDeclaration */ || tokenOrKeyword.parent.kind === 24 /* PackageMemberGroupDeclaration */ || tokenOrKeyword.parent.kind === 6 /* PackageGroupImportDirective */ || tokenOrKeyword.parent.kind === 94 /* FunctionBlock */ && (tokenOrKeyword.parent.parent.kind === 25 /* PackageConstructorDeclaration */ || tokenOrKeyword.parent.parent.kind === 26 /* PackageEntryPointDeclaration */ || tokenOrKeyword.parent.parent.kind === 27 /* PackageFunctionDeclaration */))) {
5487
5493
  return true;
5488
5494
  }
5489
5495
  if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 24 /* PackageMemberGroupDeclaration */) {
@@ -5495,10 +5501,14 @@ var SyntaxContextFactory = class {
5495
5501
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 37 /* PackageVariableSetterDeclaration */)) {
5496
5502
  return true;
5497
5503
  }
5498
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 150 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5504
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 149 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5499
5505
  return true;
5500
5506
  }
5501
- if (tokenOrKeyword.isToken(21 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 150 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5507
+ if (tokenOrKeyword.isToken(21 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 149 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5508
+ return true;
5509
+ }
5510
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 147 /* Tag */);
5511
+ if (tag !== void 0 && NodeTypeUtils.isPackageMemberDeclaration(tag.parent.parent)) {
5502
5512
  return true;
5503
5513
  }
5504
5514
  return false;
@@ -5525,13 +5535,17 @@ var SyntaxContextFactory = class {
5525
5535
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(
5526
5536
  tokenOrKeyword,
5527
5537
  51 /* DereferencedVariableSetterDeclaration */
5528
- ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 52 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 53 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 45 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 46 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 143 /* VariantDeclaration */)) {
5538
+ ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 52 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 53 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 45 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 46 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 142 /* VariantDeclaration */)) {
5539
+ return true;
5540
+ }
5541
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 149 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5529
5542
  return true;
5530
5543
  }
5531
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 150 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5544
+ if (tokenOrKeyword.isToken(21 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 149 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5532
5545
  return true;
5533
5546
  }
5534
- if (tokenOrKeyword.isToken(21 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 150 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5547
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 147 /* Tag */);
5548
+ if (tag !== void 0 && NodeTypeUtils.isTypeMemberDeclaration(tag.parent.parent)) {
5535
5549
  return true;
5536
5550
  }
5537
5551
  return false;
@@ -5568,7 +5582,7 @@ var SyntaxContextFactory = class {
5568
5582
  return result;
5569
5583
  }
5570
5584
  static isUnqualifiedTypeContext(tokenOrKeyword) {
5571
- if (tokenOrKeyword.isToken(23 /* Colon */) && tokenOrKeyword.parent.kind === 157 /* TypeAnnotation */) {
5585
+ if (tokenOrKeyword.isToken(23 /* Colon */) && tokenOrKeyword.parent.kind === 156 /* TypeAnnotation */) {
5572
5586
  return { allowsAnonymousTypes: true };
5573
5587
  }
5574
5588
  if ((tokenOrKeyword.isKeyword(4 /* Object */) || tokenOrKeyword.isKeyword(5 /* PlainObject */) || tokenOrKeyword.isKeyword(3 /* Aspect */)) && tokenOrKeyword.parent.kind === 34 /* StructuredTypeDeclarationBody */) {
@@ -5577,16 +5591,16 @@ var SyntaxContextFactory = class {
5577
5591
  if (tokenOrKeyword.isKeyword(16 /* Type */) && (NodeTypeUtils.isPackageTypeDeclaration(tokenOrKeyword.parent) || tokenOrKeyword.parent.kind === 40 /* TypeExtensionDeclaration */)) {
5578
5592
  return { allowsAnonymousTypes: false };
5579
5593
  }
5580
- if (tokenOrKeyword.isToken(36 /* LessThan */) && tokenOrKeyword.parent.kind === 153 /* TypeArgumentClause */) {
5594
+ if (tokenOrKeyword.isToken(36 /* LessThan */) && tokenOrKeyword.parent.kind === 152 /* TypeArgumentClause */) {
5581
5595
  return { allowsAnonymousTypes: true };
5582
5596
  }
5583
- if (tokenOrKeyword.isToken(24 /* Comma */) && (tokenOrKeyword.parent.kind === 30 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 154 /* TypeArgumentList */)) {
5584
- return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 154 /* TypeArgumentList */ };
5597
+ if (tokenOrKeyword.isToken(24 /* Comma */) && (tokenOrKeyword.parent.kind === 30 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 153 /* TypeArgumentList */)) {
5598
+ return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 153 /* TypeArgumentList */ };
5585
5599
  }
5586
- if (tokenOrKeyword.isToken(35 /* HashSign */) && tokenOrKeyword.parent.kind === 148 /* Tag */) {
5600
+ if (tokenOrKeyword.isToken(35 /* HashSign */) && tokenOrKeyword.parent.kind === 147 /* Tag */) {
5587
5601
  return { allowsAnonymousTypes: false };
5588
5602
  }
5589
- if ((tokenOrKeyword.isToken(23 /* Colon */) || tokenOrKeyword.isToken(57 /* Equals */)) && tokenOrKeyword.parent.kind === 144 /* TypeParameterDeclaration */) {
5603
+ if ((tokenOrKeyword.isToken(23 /* Colon */) || tokenOrKeyword.isToken(57 /* Equals */)) && tokenOrKeyword.parent.kind === 143 /* TypeParameterDeclaration */) {
5590
5604
  return { allowsAnonymousTypes: false };
5591
5605
  }
5592
5606
  if (tokenOrKeyword.isToken(57 /* Equals */) && tokenOrKeyword.parent.kind === 22 /* PackageAliasTypeDeclaration */) {
@@ -5618,32 +5632,32 @@ var SyntaxContextFactory = class {
5618
5632
  }
5619
5633
  const packageImport = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5620
5634
  tokenOrKeyword,
5621
- 135 /* PackageImportTranslation */
5635
+ 134 /* PackageImportTranslation */
5622
5636
  );
5623
5637
  if (packageImport !== void 0) {
5624
5638
  return { translationsDeclaration: packageImport.parent.parent };
5625
5639
  }
5626
- const type = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 140 /* TypeTranslation */);
5640
+ const type = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 139 /* TypeTranslation */);
5627
5641
  if (type !== void 0) {
5628
5642
  return { translationsDeclaration: type.parent.parent };
5629
5643
  }
5630
5644
  const functionType = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5631
5645
  tokenOrKeyword,
5632
- 134 /* FunctionTypeTranslation */
5646
+ 133 /* FunctionTypeTranslation */
5633
5647
  );
5634
5648
  if (functionType !== void 0) {
5635
5649
  return { translationsDeclaration: functionType.parent.parent };
5636
5650
  }
5637
5651
  const variable = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5638
5652
  tokenOrKeyword,
5639
- 137 /* PackageVariableTranslation */
5653
+ 136 /* PackageVariableTranslation */
5640
5654
  );
5641
5655
  if (variable !== void 0) {
5642
5656
  return { translationsDeclaration: variable.parent.parent };
5643
5657
  }
5644
5658
  const func = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5645
5659
  tokenOrKeyword,
5646
- 132 /* PackageFunctionTranslation */
5660
+ 131 /* PackageFunctionTranslation */
5647
5661
  );
5648
5662
  if (func !== void 0) {
5649
5663
  return { translationsDeclaration: func.parent.parent };
@@ -5651,33 +5665,33 @@ var SyntaxContextFactory = class {
5651
5665
  return void 0;
5652
5666
  }
5653
5667
  static isTypeMemberTranslationListContext(tokenOrKeyword) {
5654
- if (tokenOrKeyword.isToken(51 /* Semicolon */) && tokenOrKeyword.parent.kind === 139 /* TypeMemberTranslationList */) {
5668
+ if (tokenOrKeyword.isToken(51 /* Semicolon */) && tokenOrKeyword.parent.kind === 138 /* TypeMemberTranslationList */) {
5655
5669
  return { typeTranslation: tokenOrKeyword.parent.parent };
5656
5670
  }
5657
- if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 140 /* TypeTranslation */) {
5671
+ if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 139 /* TypeTranslation */) {
5658
5672
  return { typeTranslation: tokenOrKeyword.parent };
5659
5673
  }
5660
- const indexer = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 129 /* IndexerTranslation */);
5674
+ const indexer = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 128 /* IndexerTranslation */);
5661
5675
  if (indexer !== void 0) {
5662
5676
  return { typeTranslation: indexer.parent.parent };
5663
5677
  }
5664
5678
  const constructor = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5665
5679
  tokenOrKeyword,
5666
- 127 /* ConstructorTranslation */
5680
+ 126 /* ConstructorTranslation */
5667
5681
  );
5668
5682
  if (constructor !== void 0) {
5669
5683
  return { typeTranslation: constructor.parent.parent };
5670
5684
  }
5671
5685
  const variableOrVariant = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5672
5686
  tokenOrKeyword,
5673
- 138 /* FieldOrVariantTranslation */
5687
+ 137 /* FieldOrVariantTranslation */
5674
5688
  );
5675
5689
  if (variableOrVariant !== void 0) {
5676
5690
  return { typeTranslation: variableOrVariant.parent.parent };
5677
5691
  }
5678
5692
  const method = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(
5679
5693
  tokenOrKeyword,
5680
- 133 /* MethodTranslation */
5694
+ 132 /* MethodTranslation */
5681
5695
  );
5682
5696
  if (method !== void 0) {
5683
5697
  return { typeTranslation: method.parent.parent };
@@ -5792,23 +5806,23 @@ var NodeSemanticInfoService = class {
5792
5806
  return this.ofNonKeywordIdentifier(analyzer, tokenOrKeyword.value, options6);
5793
5807
  } else if (tokenOrKeyword.isKeyword(2 /* Autotype */) && tokenOrKeyword.parent.kind === 70 /* AutotypeCallExpression */) {
5794
5808
  return this.ofAutotypeCallExpression(analyzer, tokenOrKeyword.parent, options6);
5795
- } else if (tokenOrKeyword.parent.kind === 78 /* PrefixUnaryExpression */) {
5809
+ } else if (tokenOrKeyword.parent.kind === 77 /* PrefixUnaryExpression */) {
5796
5810
  return this.ofPrefixUnaryExpressionOperator(analyzer, tokenOrKeyword.parent, options6);
5797
5811
  } else if (tokenOrKeyword.parent.kind === 66 /* BinaryExpression */) {
5798
5812
  return this.ofBinaryExpressionOperator(analyzer, tokenOrKeyword.parent, options6);
5799
5813
  } else if (tokenOrKeyword.isToken(19 /* Caret */) && (tokenOrKeyword.parent.kind === 50 /* DereferencedVariableGetterDeclaration */ || tokenOrKeyword.parent.kind === 51 /* DereferencedVariableSetterDeclaration */)) {
5800
5814
  return this.ofDereferenceOperatorDeclaration(analyzer, tokenOrKeyword.parent);
5801
- } else if (tokenOrKeyword.isToken(19 /* Caret */) && tokenOrKeyword.parent.kind === 81 /* DereferenceExpression */) {
5815
+ } else if (tokenOrKeyword.isToken(19 /* Caret */) && tokenOrKeyword.parent.kind === 80 /* DereferenceExpression */) {
5802
5816
  return this.ofDereferenceExpressionOperator(analyzer, tokenOrKeyword.parent, options6);
5803
- } else if (tokenOrKeyword.parent.kind === 92 /* AssignmentStatement */) {
5817
+ } else if (tokenOrKeyword.parent.kind === 91 /* AssignmentStatement */) {
5804
5818
  return this.ofAssignmentStatementOperator(analyzer, tokenOrKeyword.parent, options6);
5805
5819
  } else if (tokenOrKeyword.isKeyword(31 /* Creation */) && tokenOrKeyword.parent.kind === 45 /* ConstructorDeclaration */) {
5806
5820
  return this.ofConstructorDeclaration(analyzer, tokenOrKeyword.parent);
5807
- } else if (tokenOrKeyword.isToken(13 /* Asterisk */) && tokenOrKeyword.parent.kind === 91 /* DefaultMatchExpression */) {
5821
+ } else if (tokenOrKeyword.isToken(13 /* Asterisk */) && tokenOrKeyword.parent.kind === 90 /* DefaultMatchExpression */) {
5808
5822
  return this.ofDefaultMatchExpression(analyzer, tokenOrKeyword.parent);
5809
- } else if (tokenOrKeyword.isKeyword(4 /* Object */) && tokenOrKeyword.parent.kind === 87 /* ObjectExpression */) {
5823
+ } else if (tokenOrKeyword.isKeyword(4 /* Object */) && tokenOrKeyword.parent.kind === 86 /* ObjectExpression */) {
5810
5824
  return this.ofObjectExpression(analyzer, tokenOrKeyword.parent, options6);
5811
- } else if (tokenOrKeyword.isKeyword(57 /* Base */) && tokenOrKeyword.parent.kind === 88 /* BaseExpression */) {
5825
+ } else if (tokenOrKeyword.isKeyword(57 /* Base */) && tokenOrKeyword.parent.kind === 87 /* BaseExpression */) {
5812
5826
  return this.ofBaseExpression(analyzer, tokenOrKeyword.parent, options6);
5813
5827
  } else if ((tokenOrKeyword.isToken(45 /* OpenSquareBracket */) || tokenOrKeyword.isToken(22 /* CloseSquareBracket */)) && tokenOrKeyword.parent.kind === 49 /* IndexParameterClause */) {
5814
5828
  return this.ofIndexedElementAccessorDeclaration(analyzer, tokenOrKeyword.parent.parent);
@@ -5825,11 +5839,11 @@ var NodeSemanticInfoService = class {
5825
5839
  let result;
5826
5840
  const parent = node.parent;
5827
5841
  switch (parent.kind) {
5828
- case 130 /* TranslationTypeParameterList */:
5842
+ case 129 /* TranslationTypeParameterList */:
5829
5843
  break;
5830
- case 125 /* TranslationParameterList */:
5844
+ case 124 /* TranslationParameterList */:
5831
5845
  break;
5832
- case 146 /* Argument */: {
5846
+ case 145 /* Argument */: {
5833
5847
  const respectiveParameter = analyzer.getRespectiveParameter(parent);
5834
5848
  if (respectiveParameter !== void 0) {
5835
5849
  const target = new SimpleWithLocalization(
@@ -5846,7 +5860,7 @@ var NodeSemanticInfoService = class {
5846
5860
  case 60 /* EnumerationVariableDeclaration */:
5847
5861
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofEnumerationVariableDeclaration(parent));
5848
5862
  break;
5849
- case 102 /* ErrorVariableDeclaration */:
5863
+ case 101 /* ErrorVariableDeclaration */:
5850
5864
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofErrorVariableDeclaration(parent));
5851
5865
  break;
5852
5866
  case 22 /* PackageAliasTypeDeclaration */:
@@ -5867,7 +5881,7 @@ var NodeSemanticInfoService = class {
5867
5881
  case 38 /* PackageVariantTypeDeclaration */:
5868
5882
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofPackageVariantTypeDeclaration(parent));
5869
5883
  break;
5870
- case 89 /* IdentifierExpression */:
5884
+ case 88 /* IdentifierExpression */:
5871
5885
  result = this.ofIdentifierExpression(analyzer, parent, options6);
5872
5886
  break;
5873
5887
  case 58 /* NestedFunctionDeclaration */:
@@ -5876,10 +5890,10 @@ var NodeSemanticInfoService = class {
5876
5890
  case 59 /* LocalVariableDeclaration */:
5877
5891
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofLocalVariableDeclaration(parent));
5878
5892
  break;
5879
- case 136 /* QualifiedName */:
5893
+ case 135 /* QualifiedName */:
5880
5894
  result = this.ofQualifiedNameQualifier(analyzer, parent, node, options6);
5881
5895
  break;
5882
- case 137 /* PackageVariableTranslation */: {
5896
+ case 136 /* PackageVariableTranslation */: {
5883
5897
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5884
5898
  const getTargetResult = translationPackage?.getPackageVariableTranslationTarget(parent);
5885
5899
  if (translationPackage !== void 0 && getTargetResult?.target !== void 0) {
@@ -5899,7 +5913,7 @@ var NodeSemanticInfoService = class {
5899
5913
  }
5900
5914
  break;
5901
5915
  }
5902
- case 138 /* FieldOrVariantTranslation */: {
5916
+ case 137 /* FieldOrVariantTranslation */: {
5903
5917
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5904
5918
  const getTargetsResult = translationPackage?.getFieldOrVariantTranslationTargets(parent);
5905
5919
  if (translationPackage !== void 0 && isNonEmptyArray(getTargetsResult?.targets)) {
@@ -5923,7 +5937,7 @@ var NodeSemanticInfoService = class {
5923
5937
  }
5924
5938
  break;
5925
5939
  }
5926
- case 132 /* PackageFunctionTranslation */: {
5940
+ case 131 /* PackageFunctionTranslation */: {
5927
5941
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5928
5942
  const getTargetsResult = translationPackage?.getPackageFunctionTranslationTargets(parent);
5929
5943
  if (translationPackage !== void 0 && isNonEmptyArray(getTargetsResult?.targets)) {
@@ -5947,7 +5961,7 @@ var NodeSemanticInfoService = class {
5947
5961
  }
5948
5962
  break;
5949
5963
  }
5950
- case 133 /* MethodTranslation */: {
5964
+ case 132 /* MethodTranslation */: {
5951
5965
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5952
5966
  const getTargetsResult = translationPackage?.getMethodTranslationTargets(parent);
5953
5967
  if (translationPackage !== void 0 && isNonEmptyArray(getTargetsResult?.targets)) {
@@ -5971,7 +5985,7 @@ var NodeSemanticInfoService = class {
5971
5985
  }
5972
5986
  break;
5973
5987
  }
5974
- case 140 /* TypeTranslation */: {
5988
+ case 139 /* TypeTranslation */: {
5975
5989
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5976
5990
  const getTargetResult = translationPackage?.getTypeTranslationTarget(parent);
5977
5991
  if (translationPackage !== void 0 && getTargetResult?.target !== void 0) {
@@ -5991,7 +6005,7 @@ var NodeSemanticInfoService = class {
5991
6005
  }
5992
6006
  break;
5993
6007
  }
5994
- case 134 /* FunctionTypeTranslation */: {
6008
+ case 133 /* FunctionTypeTranslation */: {
5995
6009
  const translationPackage = this.getContainingTranslationPackage(analyzer, node);
5996
6010
  const getTargetResult = translationPackage?.getFunctionTypeTranslationTarget(parent);
5997
6011
  if (translationPackage !== void 0 && getTargetResult?.target !== void 0) {
@@ -6011,7 +6025,7 @@ var NodeSemanticInfoService = class {
6011
6025
  }
6012
6026
  break;
6013
6027
  }
6014
- case 145 /* ParameterDeclaration */:
6028
+ case 144 /* ParameterDeclaration */:
6015
6029
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofParameterDeclaration(parent));
6016
6030
  break;
6017
6031
  case 8 /* PackageImport */:
@@ -6020,7 +6034,7 @@ var NodeSemanticInfoService = class {
6020
6034
  case 9 /* PackageName */:
6021
6035
  result = void 0;
6022
6036
  break;
6023
- case 79 /* MemberAccessExpression */:
6037
+ case 78 /* MemberAccessExpression */:
6024
6038
  result = this.ofProperty(analyzer, parent, options6);
6025
6039
  break;
6026
6040
  case 52 /* MethodDeclaration */:
@@ -6032,10 +6046,10 @@ var NodeSemanticInfoService = class {
6032
6046
  case 54 /* FieldDeclaration */:
6033
6047
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofFieldDeclaration(parent));
6034
6048
  break;
6035
- case 144 /* TypeParameterDeclaration */:
6049
+ case 143 /* TypeParameterDeclaration */:
6036
6050
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofTypeParameterDeclaration(parent));
6037
6051
  break;
6038
- case 143 /* VariantDeclaration */:
6052
+ case 142 /* VariantDeclaration */:
6039
6053
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofVariantDeclaration(parent));
6040
6054
  break;
6041
6055
  case 36 /* PackageVariableGetterDeclaration */:
@@ -6171,10 +6185,10 @@ var NodeSemanticInfoService = class {
6171
6185
  switch (node.parent.kind) {
6172
6186
  case 10 /* NamedTypeSpecifier */:
6173
6187
  return this.ofNamedTypeSpecifierNameQualifier(analyzer, node.parent, qualifier, options6);
6174
- case 148 /* Tag */:
6188
+ case 147 /* Tag */:
6175
6189
  return this.ofTagNameQualifier(analyzer, node.parent, qualifier, options6);
6176
6190
  case 42 /* ExtendedTypeClause */:
6177
- case 135 /* PackageImportTranslation */:
6191
+ case 134 /* PackageImportTranslation */:
6178
6192
  return void 0;
6179
6193
  default:
6180
6194
  Debug.never(node.parent);
@@ -6637,7 +6651,7 @@ var NodeSemanticInfoService = class {
6637
6651
  }
6638
6652
  static ofPackageNameSegmentAccess(analyzer, packageTreeNode, node) {
6639
6653
  let parent = getParentSkippingParenthesizedExpressions(node);
6640
- while (parent.kind === 79 /* MemberAccessExpression */) {
6654
+ while (parent.kind === 78 /* MemberAccessExpression */) {
6641
6655
  const meaning = analyzer.resolveMemberAccessExpression(parent).meaning;
6642
6656
  if (meaning.kind === "package-name-segment-access") {
6643
6657
  packageTreeNode = meaning.packageTreeNode;
@@ -6678,7 +6692,7 @@ var NodeSemanticInfoService = class {
6678
6692
  let parentCallExpression;
6679
6693
  if (parent.kind === 69 /* CallExpression */) {
6680
6694
  parentCallExpression = parent;
6681
- } else if (parent.kind === 90 /* GenericSpecializationExpression */) {
6695
+ } else if (parent.kind === 89 /* GenericSpecializationExpression */) {
6682
6696
  const grandParent = getParentSkippingParenthesizedExpressions(parent);
6683
6697
  if (grandParent.kind === 69 /* CallExpression */) {
6684
6698
  parentCallExpression = grandParent;
@@ -6943,7 +6957,7 @@ function getEntitySourceLocations(analyzer, entity) {
6943
6957
  case 38 /* PackageVariantTypeDeclaration */:
6944
6958
  case 58 /* NestedFunctionDeclaration */:
6945
6959
  case 52 /* MethodDeclaration */:
6946
- case 144 /* TypeParameterDeclaration */:
6960
+ case 143 /* TypeParameterDeclaration */:
6947
6961
  case 53 /* OperatorDeclaration */:
6948
6962
  range = node.name.rangeWithoutTrivia;
6949
6963
  break;
@@ -7315,7 +7329,7 @@ var ReferencesService = class {
7315
7329
  result.push(new Reference(sourceFile2, node.autotypeKeyword.rangeWithoutTrivia, referenceKind));
7316
7330
  }
7317
7331
  }
7318
- if (node.kind === 78 /* PrefixUnaryExpression */ && restrictions.canBePrefixUnaryOperator) {
7332
+ if (node.kind === 77 /* PrefixUnaryExpression */ && restrictions.canBePrefixUnaryOperator) {
7319
7333
  const semanticInfo = NodeSemanticInfoService.ofPrefixUnaryExpressionOperator(
7320
7334
  analyzer,
7321
7335
  node,
@@ -7359,7 +7373,7 @@ var ReferencesService = class {
7359
7373
  result.push(new Reference(sourceFile2, node.caretToken.rangeWithoutTrivia, referenceKind));
7360
7374
  }
7361
7375
  }
7362
- if (node.kind === 81 /* DereferenceExpression */ && restrictions.canBeDereferenceOperator) {
7376
+ if (node.kind === 80 /* DereferenceExpression */ && restrictions.canBeDereferenceOperator) {
7363
7377
  const semanticInfo = NodeSemanticInfoService.ofDereferenceExpressionOperator(
7364
7378
  analyzer,
7365
7379
  node,
@@ -7375,7 +7389,7 @@ var ReferencesService = class {
7375
7389
  result.push(new Reference(sourceFile2, node.caretToken.rangeWithoutTrivia, referenceKind));
7376
7390
  }
7377
7391
  }
7378
- if (node.kind === 92 /* AssignmentStatement */ && restrictions.canBeAssignmentStatementOperator) {
7392
+ if (node.kind === 91 /* AssignmentStatement */ && restrictions.canBeAssignmentStatementOperator) {
7379
7393
  const semanticInfo = NodeSemanticInfoService.ofAssignmentStatementOperator(
7380
7394
  analyzer,
7381
7395
  node,
@@ -7403,7 +7417,7 @@ var ReferencesService = class {
7403
7417
  result.push(new Reference(sourceFile2, node.creationKeyword.rangeWithoutTrivia, referenceKind));
7404
7418
  }
7405
7419
  }
7406
- if (node.kind === 87 /* ObjectExpression */ && restrictions.canBeObjectExpression) {
7420
+ if (node.kind === 86 /* ObjectExpression */ && restrictions.canBeObjectExpression) {
7407
7421
  const semanticInfo = NodeSemanticInfoService.ofObjectExpression(analyzer, node, semanticInfoOptions);
7408
7422
  const referenceKind = this.ifReferenceToDefinitionThenKind(
7409
7423
  definition,
@@ -7415,7 +7429,7 @@ var ReferencesService = class {
7415
7429
  result.push(new Reference(sourceFile2, node.keyword.rangeWithoutTrivia, referenceKind));
7416
7430
  }
7417
7431
  }
7418
- if (node.kind === 88 /* BaseExpression */ && restrictions.canBeBaseExpression) {
7432
+ if (node.kind === 87 /* BaseExpression */ && restrictions.canBeBaseExpression) {
7419
7433
  const semanticInfo = NodeSemanticInfoService.ofBaseExpression(analyzer, node, semanticInfoOptions);
7420
7434
  const referenceKind = this.ifReferenceToDefinitionThenKind(
7421
7435
  definition,
@@ -7821,9 +7835,9 @@ var EvaluatableExpressionService = class {
7821
7835
  getEvaluatableExpressionForIdentifier(node) {
7822
7836
  const parent = node.parent;
7823
7837
  switch (parent.kind) {
7824
- case 89 /* IdentifierExpression */:
7838
+ case 88 /* IdentifierExpression */:
7825
7839
  return parent;
7826
- case 79 /* MemberAccessExpression */:
7840
+ case 78 /* MemberAccessExpression */:
7827
7841
  if (this.isEvaluatableReceiver(parent.expression)) {
7828
7842
  return parent;
7829
7843
  }
@@ -7844,9 +7858,9 @@ var EvaluatableExpressionService = class {
7844
7858
  }
7845
7859
  isEvaluatableReceiver(expression) {
7846
7860
  switch (expression.kind) {
7847
- case 89 /* IdentifierExpression */:
7861
+ case 88 /* IdentifierExpression */:
7848
7862
  return true;
7849
- case 79 /* MemberAccessExpression */:
7863
+ case 78 /* MemberAccessExpression */:
7850
7864
  return this.isEvaluatableReceiver(expression.expression);
7851
7865
  default:
7852
7866
  return false;
@@ -7872,17 +7886,17 @@ var EvaluatableExpressionService = class {
7872
7886
  return { nameIdentifier: node.name };
7873
7887
  case 59 /* LocalVariableDeclaration */:
7874
7888
  return { nameIdentifier: node.name };
7875
- case 145 /* ParameterDeclaration */:
7889
+ case 144 /* ParameterDeclaration */:
7876
7890
  return { nameIdentifier: node.name };
7877
7891
  case 52 /* MethodDeclaration */:
7878
7892
  return { nameIdentifier: node.name };
7879
7893
  case 54 /* FieldDeclaration */:
7880
7894
  return { nameIdentifier: node.name };
7881
- case 144 /* TypeParameterDeclaration */:
7895
+ case 143 /* TypeParameterDeclaration */:
7882
7896
  return { nameIdentifier: node.name };
7883
- case 143 /* VariantDeclaration */:
7897
+ case 142 /* VariantDeclaration */:
7884
7898
  return { nameIdentifier: node.name };
7885
- case 102 /* ErrorVariableDeclaration */:
7899
+ case 101 /* ErrorVariableDeclaration */:
7886
7900
  return { nameIdentifier: node.name };
7887
7901
  default:
7888
7902
  return void 0;
@@ -8319,7 +8333,7 @@ var SourceFileItemsService = class {
8319
8333
  );
8320
8334
  break;
8321
8335
  }
8322
- case 143 /* VariantDeclaration */: {
8336
+ case 142 /* VariantDeclaration */: {
8323
8337
  result.push(
8324
8338
  this.createItem(
8325
8339
  9 /* Variant */,
@@ -8331,7 +8345,7 @@ var SourceFileItemsService = class {
8331
8345
  );
8332
8346
  break;
8333
8347
  }
8334
- case 144 /* TypeParameterDeclaration */: {
8348
+ case 143 /* TypeParameterDeclaration */: {
8335
8349
  result.push(
8336
8350
  this.createItem(
8337
8351
  18 /* TypeParameter */,
@@ -8568,7 +8582,7 @@ var SelectionRangeService = class {
8568
8582
  if (!this.nodeShouldBeSkipped(child) && !child.rangeWithoutTrivia.equals(result.range)) {
8569
8583
  result = new SelectionRange(child.rangeWithoutTrivia, result);
8570
8584
  }
8571
- if (child.kind === 0 /* Token */ && (child.tokenKind === 6 /* TextLiteral */ || child.tokenKind === 7 /* TextTemplateHead */ || child.tokenKind === 8 /* TextTemplatePart */ || child.tokenKind === 9 /* TextTemplateTail */ || child.tokenKind === 5 /* CharLiteral */) || child.kind === 82 /* TextTemplateLiteral */) {
8585
+ if (child.kind === 0 /* Token */ && (child.tokenKind === 6 /* TextLiteral */ || child.tokenKind === 7 /* TextTemplateHead */ || child.tokenKind === 8 /* TextTemplatePart */ || child.tokenKind === 9 /* TextTemplateTail */ || child.tokenKind === 5 /* CharLiteral */) || child.kind === 81 /* TextTemplateLiteral */) {
8572
8586
  const textContentStart = child.rangeWithoutTrivia.start + 1;
8573
8587
  const textContentEnd = child.rangeWithoutTrivia.end - 1;
8574
8588
  if (offset >= textContentStart && offset < textContentEnd) {
@@ -8599,13 +8613,13 @@ var SelectionRangeService = class {
8599
8613
  }
8600
8614
  }
8601
8615
  switch (node.kind) {
8602
- case 157 /* TypeAnnotation */:
8616
+ case 156 /* TypeAnnotation */:
8603
8617
  case 34 /* StructuredTypeDeclarationBody */:
8604
8618
  case 39 /* VariantTypeDeclarationBody */:
8605
8619
  case 23 /* AliasTypeDeclarationBody */:
8606
8620
  case 29 /* FunctionTypeDeclarationBody */:
8607
- case 84 /* TextTemplateSpan */:
8608
- case 83 /* TextTemplateSpanList */:
8621
+ case 83 /* TextTemplateSpan */:
8622
+ case 82 /* TextTemplateSpanList */:
8609
8623
  return true;
8610
8624
  default:
8611
8625
  return false;
@@ -8643,7 +8657,7 @@ var SemanticTokensService = class {
8643
8657
  controller.stopChildrenTraverse();
8644
8658
  return;
8645
8659
  }
8646
- if (node.kind === 89 /* IdentifierExpression */) {
8660
+ if (node.kind === 88 /* IdentifierExpression */) {
8647
8661
  const meaning = analyzer.resolveIdentifierExpression(node).meaning;
8648
8662
  if (meaning.kind === "variable-access") {
8649
8663
  const variable = meaning.variable.value.getEntity();
@@ -8699,7 +8713,7 @@ var SemanticTokensService = class {
8699
8713
  ));
8700
8714
  }
8701
8715
  }
8702
- if (node.kind === 79 /* MemberAccessExpression */) {
8716
+ if (node.kind === 78 /* MemberAccessExpression */) {
8703
8717
  const meaning = analyzer.resolveMemberAccessExpression(node).meaning;
8704
8718
  if (meaning.kind === "static-field-access") {
8705
8719
  const entity = meaning.variable.value.getEntity();
@@ -8743,7 +8757,7 @@ var SemanticTokensService = class {
8743
8757
  ));
8744
8758
  }
8745
8759
  }
8746
- if (node.kind === 143 /* VariantDeclaration */) {
8760
+ if (node.kind === 142 /* VariantDeclaration */) {
8747
8761
  result.push(
8748
8762
  new SemanticToken(
8749
8763
  node.name.rangeWithoutTrivia,
@@ -8931,7 +8945,7 @@ var TypeParameterSignatureHelpProvider = class {
8931
8945
  }
8932
8946
  let node = token.parent;
8933
8947
  while (node !== void 0) {
8934
- if (node.kind === 153 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8948
+ if (node.kind === 152 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8935
8949
  const argumentIndex = this.getArgumentIndex(node.typeArgumentList, this._offset);
8936
8950
  const argumentCount = this.countArguments(node.typeArgumentList);
8937
8951
  return new NodeWithTypeArgumentsInfo(node.parent, argumentIndex, argumentCount);
@@ -8976,9 +8990,9 @@ var TypeParameterSignatureHelpProvider = class {
8976
8990
  switch (node.kind) {
8977
8991
  case 10 /* NamedTypeSpecifier */:
8978
8992
  return this.getSignaturesForNamedTypeSpecifier(node);
8979
- case 90 /* GenericSpecializationExpression */:
8993
+ case 89 /* GenericSpecializationExpression */:
8980
8994
  return this.getSignaturesForGenericSpecializationExpression(node);
8981
- case 148 /* Tag */:
8995
+ case 147 /* Tag */:
8982
8996
  return this.getSignaturesForTag(node);
8983
8997
  default:
8984
8998
  Debug.never(node);
@@ -9017,7 +9031,7 @@ var TypeParameterSignatureHelpProvider = class {
9017
9031
  }
9018
9032
  getSignaturesForGenericSpecializationExpression(node) {
9019
9033
  const expression = unwrapParenthesizedExpressions(node.expression);
9020
- if (expression.kind === 89 /* IdentifierExpression */) {
9034
+ if (expression.kind === 88 /* IdentifierExpression */) {
9021
9035
  const meaning = this._analyzer.resolveIdentifierExpression(expression).meaning;
9022
9036
  if (meaning.kind === "function-access") {
9023
9037
  return Query.from(meaning.candidates).mapAndFilter((o) => {
@@ -9032,7 +9046,7 @@ var TypeParameterSignatureHelpProvider = class {
9032
9046
  }
9033
9047
  return void 0;
9034
9048
  }
9035
- if (expression.kind === 79 /* MemberAccessExpression */) {
9049
+ if (expression.kind === 78 /* MemberAccessExpression */) {
9036
9050
  const meaning = this._analyzer.resolveMemberAccessExpression(expression).meaning;
9037
9051
  let accessedFunctions;
9038
9052
  if (meaning.kind === "instance-method-access") {
@@ -9309,7 +9323,7 @@ var ValueParametersSignatureHelpProvider = class {
9309
9323
  }
9310
9324
  break;
9311
9325
  }
9312
- case 148 /* Tag */: {
9326
+ case 147 /* Tag */: {
9313
9327
  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)) {
9314
9328
  const argumentIndex = this.getArgumentIndexInList(node.argumentList.elements, this._offset);
9315
9329
  const valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(node);
@@ -12916,7 +12930,7 @@ var LanguageServer = class {
12916
12930
  Logger.info("\u041D\u0430\u0447\u0430\u0442\u0430 \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432.");
12917
12931
  const initializeStartTime = performance.now();
12918
12932
  this._clientCapabilities = params.capabilities;
12919
- setUserLocale(params.initializationOptions?.localeOverride ?? params.locale ?? "en");
12933
+ setUserLocale("ru");
12920
12934
  let workspaceFolderUris;
12921
12935
  if (params.initializationOptions?.workspaceFoldersOverride !== void 0) {
12922
12936
  workspaceFolderUris = params.initializationOptions.workspaceFoldersOverride.map((f) => this.convertVscodeUriToUri(URI2.parse(f.uri)));
@@ -13473,7 +13487,7 @@ var LanguageServer = class {
13473
13487
  const sourceFileContext = yield this.getSourceFileContext(uri, token);
13474
13488
  if (sourceFileContext !== void 0) {
13475
13489
  const node = NodePath.parse(uri.fragment).getNode(sourceFileContext.sourceFile.getSyntaxNode());
13476
- if (node?.kind === 92 /* AssignmentStatement */) {
13490
+ if (node?.kind === 91 /* AssignmentStatement */) {
13477
13491
  const sourceFileEdit = this._addPropertyAssignmentService.createEditWithAssignment(
13478
13492
  sourceFileContext.sourceFile,
13479
13493
  node,
@@ -13510,7 +13524,7 @@ var LanguageServer = class {
13510
13524
  const node = NodePath.parse(uri.fragment).getNode(sourceFileContext.sourceFile.getSyntaxNode());
13511
13525
  if (node !== void 0) {
13512
13526
  let nodeForRange = node;
13513
- if (node.kind === 92 /* AssignmentStatement */) {
13527
+ if (node.kind === 91 /* AssignmentStatement */) {
13514
13528
  nodeForRange = node.right;
13515
13529
  }
13516
13530
  result = this.convertSourceFileRange(sourceFileContext.sourceFile, nodeForRange.rangeWithoutTrivia);