@artel/artc 0.6.25242 → 0.6.25244

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.
package/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-BQ6QF4YU.js";
5
- import "./chunk-TECXIZJ5.js";
4
+ } from "./chunk-V7EU2U6Y.js";
5
+ import "./chunk-C7RKXERX.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-CS2AK7Z7.js";
8
+ } from "./chunk-BAAUJYMH.js";
9
9
 
10
10
  // source/Cli.ts
11
11
  function main() {
package/build/api/Api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "../chunk-TECXIZJ5.js";
3
+ } from "../chunk-C7RKXERX.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionValueParameter,
@@ -323,7 +323,7 @@ import {
323
323
  withoutQuotes,
324
324
  withoutTemplateQuotes,
325
325
  yieldExecution
326
- } from "../chunk-CS2AK7Z7.js";
326
+ } from "../chunk-BAAUJYMH.js";
327
327
  export {
328
328
  AccessKind,
329
329
  AccessedFunctionValueParameter,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-BQ6QF4YU.js";
10
- import "../chunk-TECXIZJ5.js";
11
- import "../chunk-CS2AK7Z7.js";
9
+ } from "../chunk-V7EU2U6Y.js";
10
+ import "../chunk-C7RKXERX.js";
11
+ import "../chunk-BAAUJYMH.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-CS2AK7Z7.js";
185
+ } from "../chunk-BAAUJYMH.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -2041,16 +2041,16 @@ var SyntaxToCode = class _SyntaxToCode {
2041
2041
  [91 /* StatementBlock */]: this.prototype.writeStatementBlock,
2042
2042
  [92 /* FunctionBlock */]: this.prototype.writeFunctionBlock,
2043
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,
2044
+ [146 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2045
+ [147 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2046
+ [148 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2047
+ [149 /* Argument */]: this.prototype.writeArgument,
2048
+ [151 /* Tag */]: this.prototype.writeTag,
2049
+ [153 /* Modifier */]: this.prototype.writeModifier,
2050
+ [154 /* ParameterClause */]: this.prototype.writeParameterClause,
2051
+ [155 /* ParameterList */]: this.prototype.writeParameterList,
2052
+ [156 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2053
+ [158 /* 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,
@@ -2148,11 +2148,15 @@ var SyntaxToCode = class _SyntaxToCode {
2148
2148
  [139 /* TypeTranslation */]: this.prototype.writeTypeTranslation,
2149
2149
  [140 /* TextLiteralTranslation */]: this.prototype.writeNodeDefault,
2150
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
2151
+ [150 /* TagList */]: this.prototype.writeNodeDefault,
2152
+ [152 /* ModifierList */]: this.prototype.writeNodeDefault,
2153
+ [157 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2154
+ [159 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2155
+ [160 /* TypeAnnotation */]: this.prototype.writeNodeDefault,
2156
+ [142 /* TranslationTextTemplate */]: this.prototype.writeNodeDefault,
2157
+ [143 /* TranslationTextTemplateSpanList */]: this.prototype.writeNodeDefault,
2158
+ [144 /* TranslationTextTemplateSpan */]: this.prototype.writeNodeDefault,
2159
+ [145 /* TranslationTextTemplateParameterDeclaration */]: this.prototype.writeNodeDefault
2156
2160
  };
2157
2161
  return writeFunctions;
2158
2162
  }
@@ -2831,7 +2835,7 @@ var SignatureForNode = class _SignatureForNode {
2831
2835
  return _SignatureForNode.getSignaturesForAutotypeCallExpression(analyzer, node);
2832
2836
  case 70 /* IndexedAccessExpression */:
2833
2837
  return _SignatureForNode.getSignaturesForIndexedAccessExpression(analyzer, node);
2834
- case 147 /* Tag */:
2838
+ case 151 /* Tag */:
2835
2839
  return _SignatureForNode.getSignaturesForTag(analyzer, node);
2836
2840
  default:
2837
2841
  Debug.never(node);
@@ -3307,7 +3311,7 @@ var CompletionService = class {
3307
3311
  }
3308
3312
  return { kind: "none" };
3309
3313
  }
3310
- if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 147 /* Tag */) {
3314
+ if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 151 /* Tag */) {
3311
3315
  const tag = tokenOrKeyword.parent.parent;
3312
3316
  const resolutionResult = this._analyzer.resolveTag(tag);
3313
3317
  const segmentIndex = Math.floor(
@@ -3504,7 +3508,7 @@ var CompletionService = class {
3504
3508
  role.argumentList.parent
3505
3509
  );
3506
3510
  break;
3507
- case 147 /* Tag */:
3511
+ case 151 /* Tag */:
3508
3512
  signatures = SignatureForNode.getSignaturesForTag(this._analyzer, role.argumentList.parent);
3509
3513
  valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(role.argumentList.parent);
3510
3514
  break;
@@ -3724,7 +3728,7 @@ var CompletionService = class {
3724
3728
  return false;
3725
3729
  }
3726
3730
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3727
- return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 149 /* Modifier */;
3731
+ return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 153 /* Modifier */;
3728
3732
  }
3729
3733
  isElseOrElseIfKeywordContext(positionDescription) {
3730
3734
  if (positionDescription.kind !== "after-token-or-keyword") {
@@ -5247,7 +5251,7 @@ var SyntaxContextFactory = class {
5247
5251
  if (positionDescription.kind === "after-token-or-keyword") {
5248
5252
  isUnqualifiedTypeContext = this.isUnqualifiedTypeContext(positionDescription.tokenOrKeyword);
5249
5253
  }
5250
- const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 147 /* Tag */;
5254
+ const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 151 /* Tag */;
5251
5255
  let isTopLevelTranslationListContext;
5252
5256
  if (positionDescription.kind === "after-token-or-keyword") {
5253
5257
  isTopLevelTranslationListContext = this.isTopLevelTranslationListContext(positionDescription.tokenOrKeyword);
@@ -5289,15 +5293,15 @@ var SyntaxContextFactory = class {
5289
5293
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.initializer);
5290
5294
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5291
5295
  }
5292
- if (tokenOrKeyword.parent.kind === 144 /* ParameterDeclaration */) {
5296
+ if (tokenOrKeyword.parent.kind === 148 /* ParameterDeclaration */) {
5293
5297
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.defaultValue);
5294
5298
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5295
5299
  }
5296
- if (tokenOrKeyword.parent.kind === 145 /* Argument */) {
5300
+ if (tokenOrKeyword.parent.kind === 149 /* Argument */) {
5297
5301
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5298
5302
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5299
5303
  }
5300
- if (tokenOrKeyword.parent.kind === 142 /* VariantDeclaration */) {
5304
+ if (tokenOrKeyword.parent.kind === 146 /* VariantDeclaration */) {
5301
5305
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5302
5306
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5303
5307
  }
@@ -5367,7 +5371,7 @@ var SyntaxContextFactory = class {
5367
5371
  const expressionRole = new ExpressionRole_argument(tokenOrKeyword.parent.argumentList, 0);
5368
5372
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5369
5373
  }
5370
- if (tokenOrKeyword.parent.kind === 147 /* Tag */) {
5374
+ if (tokenOrKeyword.parent.kind === 151 /* Tag */) {
5371
5375
  const argumentList = tokenOrKeyword.parent.argumentList;
5372
5376
  if (argumentList !== void 0) {
5373
5377
  const expressionRole = new ExpressionRole_argument(argumentList, 0);
@@ -5500,13 +5504,13 @@ var SyntaxContextFactory = class {
5500
5504
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 35 /* PackageVariableSetterDeclaration */)) {
5501
5505
  return true;
5502
5506
  }
5503
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 149 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5507
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 153 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5504
5508
  return true;
5505
5509
  }
5506
- if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 149 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5510
+ if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 153 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5507
5511
  return true;
5508
5512
  }
5509
- const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 147 /* Tag */);
5513
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 151 /* Tag */);
5510
5514
  if (tag !== void 0 && NodeTypeUtils.isPackageMemberDeclaration(tag.parent.parent)) {
5511
5515
  return true;
5512
5516
  }
@@ -5534,16 +5538,16 @@ var SyntaxContextFactory = class {
5534
5538
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(
5535
5539
  tokenOrKeyword,
5536
5540
  49 /* DereferencedVariableSetterDeclaration */
5537
- ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 142 /* VariantDeclaration */)) {
5541
+ ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 146 /* VariantDeclaration */)) {
5538
5542
  return true;
5539
5543
  }
5540
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 149 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5544
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 153 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5541
5545
  return true;
5542
5546
  }
5543
- if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 149 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5547
+ if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 153 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5544
5548
  return true;
5545
5549
  }
5546
- const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 147 /* Tag */);
5550
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 151 /* Tag */);
5547
5551
  if (tag !== void 0 && NodeTypeUtils.isTypeMemberDeclaration(tag.parent.parent)) {
5548
5552
  return true;
5549
5553
  }
@@ -5581,7 +5585,7 @@ var SyntaxContextFactory = class {
5581
5585
  return result;
5582
5586
  }
5583
5587
  static isUnqualifiedTypeContext(tokenOrKeyword) {
5584
- if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 156 /* TypeAnnotation */) {
5588
+ if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 160 /* TypeAnnotation */) {
5585
5589
  return { allowsAnonymousTypes: true };
5586
5590
  }
5587
5591
  if ((tokenOrKeyword.isKeyword(4 /* Object */) || tokenOrKeyword.isKeyword(5 /* PlainObject */) || tokenOrKeyword.isKeyword(3 /* Aspect */)) && tokenOrKeyword.parent.kind === 32 /* StructuredTypeDeclarationBody */) {
@@ -5590,16 +5594,16 @@ var SyntaxContextFactory = class {
5590
5594
  if (tokenOrKeyword.isKeyword(16 /* Type */) && (NodeTypeUtils.isPackageTypeDeclaration(tokenOrKeyword.parent) || tokenOrKeyword.parent.kind === 38 /* TypeExtensionDeclaration */)) {
5591
5595
  return { allowsAnonymousTypes: false };
5592
5596
  }
5593
- if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 152 /* TypeArgumentClause */) {
5597
+ if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 156 /* TypeArgumentClause */) {
5594
5598
  return { allowsAnonymousTypes: true };
5595
5599
  }
5596
- if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 153 /* TypeArgumentList */)) {
5597
- return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 153 /* TypeArgumentList */ };
5600
+ if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 157 /* TypeArgumentList */)) {
5601
+ return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 157 /* TypeArgumentList */ };
5598
5602
  }
5599
- if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 147 /* Tag */) {
5603
+ if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 151 /* Tag */) {
5600
5604
  return { allowsAnonymousTypes: false };
5601
5605
  }
5602
- if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 143 /* TypeParameterDeclaration */) {
5606
+ if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 147 /* TypeParameterDeclaration */) {
5603
5607
  return { allowsAnonymousTypes: false };
5604
5608
  }
5605
5609
  if (tokenOrKeyword.isToken(58 /* Equals */) && tokenOrKeyword.parent.kind === 20 /* PackageAliasTypeDeclaration */) {
@@ -5842,7 +5846,7 @@ var NodeSemanticInfoService = class {
5842
5846
  break;
5843
5847
  case 124 /* TranslationParameterList */:
5844
5848
  break;
5845
- case 145 /* Argument */: {
5849
+ case 149 /* Argument */: {
5846
5850
  const respectiveParameter = analyzer.getRespectiveParameter(parent);
5847
5851
  if (respectiveParameter !== void 0) {
5848
5852
  const target = new SimpleWithLocalization(
@@ -6024,7 +6028,7 @@ var NodeSemanticInfoService = class {
6024
6028
  }
6025
6029
  break;
6026
6030
  }
6027
- case 144 /* ParameterDeclaration */:
6031
+ case 148 /* ParameterDeclaration */:
6028
6032
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofParameterDeclaration(parent));
6029
6033
  break;
6030
6034
  case 8 /* PackageImport */:
@@ -6045,10 +6049,10 @@ var NodeSemanticInfoService = class {
6045
6049
  case 52 /* FieldDeclaration */:
6046
6050
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofFieldDeclaration(parent));
6047
6051
  break;
6048
- case 143 /* TypeParameterDeclaration */:
6052
+ case 147 /* TypeParameterDeclaration */:
6049
6053
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofTypeParameterDeclaration(parent));
6050
6054
  break;
6051
- case 142 /* VariantDeclaration */:
6055
+ case 146 /* VariantDeclaration */:
6052
6056
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofVariantDeclaration(parent));
6053
6057
  break;
6054
6058
  case 34 /* PackageVariableGetterDeclaration */:
@@ -6184,7 +6188,7 @@ var NodeSemanticInfoService = class {
6184
6188
  switch (node.parent.kind) {
6185
6189
  case 10 /* NamedTypeSpecifier */:
6186
6190
  return this.ofNamedTypeSpecifierNameQualifier(analyzer, node.parent, qualifier, options6);
6187
- case 147 /* Tag */:
6191
+ case 151 /* Tag */:
6188
6192
  return this.ofTagNameQualifier(analyzer, node.parent, qualifier, options6);
6189
6193
  case 40 /* ExtendedTypeClause */:
6190
6194
  case 134 /* PackageImportTranslation */:
@@ -6956,7 +6960,7 @@ function getEntitySourceLocations(analyzer, entity) {
6956
6960
  case 36 /* PackageVariantTypeDeclaration */:
6957
6961
  case 56 /* NestedFunctionDeclaration */:
6958
6962
  case 50 /* MethodDeclaration */:
6959
- case 143 /* TypeParameterDeclaration */:
6963
+ case 147 /* TypeParameterDeclaration */:
6960
6964
  case 51 /* OperatorDeclaration */:
6961
6965
  range = node.name.rangeWithoutTrivia;
6962
6966
  break;
@@ -7885,15 +7889,15 @@ var EvaluatableExpressionService = class {
7885
7889
  return { nameIdentifier: node.name };
7886
7890
  case 57 /* LocalVariableDeclaration */:
7887
7891
  return { nameIdentifier: node.name };
7888
- case 144 /* ParameterDeclaration */:
7892
+ case 148 /* ParameterDeclaration */:
7889
7893
  return { nameIdentifier: node.name };
7890
7894
  case 50 /* MethodDeclaration */:
7891
7895
  return { nameIdentifier: node.name };
7892
7896
  case 52 /* FieldDeclaration */:
7893
7897
  return { nameIdentifier: node.name };
7894
- case 143 /* TypeParameterDeclaration */:
7898
+ case 147 /* TypeParameterDeclaration */:
7895
7899
  return { nameIdentifier: node.name };
7896
- case 142 /* VariantDeclaration */:
7900
+ case 146 /* VariantDeclaration */:
7897
7901
  return { nameIdentifier: node.name };
7898
7902
  case 99 /* ErrorVariableDeclaration */:
7899
7903
  return { nameIdentifier: node.name };
@@ -8332,7 +8336,7 @@ var SourceFileItemsService = class {
8332
8336
  );
8333
8337
  break;
8334
8338
  }
8335
- case 142 /* VariantDeclaration */: {
8339
+ case 146 /* VariantDeclaration */: {
8336
8340
  result.push(
8337
8341
  this.createItem(
8338
8342
  9 /* Variant */,
@@ -8344,7 +8348,7 @@ var SourceFileItemsService = class {
8344
8348
  );
8345
8349
  break;
8346
8350
  }
8347
- case 143 /* TypeParameterDeclaration */: {
8351
+ case 147 /* TypeParameterDeclaration */: {
8348
8352
  result.push(
8349
8353
  this.createItem(
8350
8354
  18 /* TypeParameter */,
@@ -8612,7 +8616,7 @@ var SelectionRangeService = class {
8612
8616
  }
8613
8617
  }
8614
8618
  switch (node.kind) {
8615
- case 156 /* TypeAnnotation */:
8619
+ case 160 /* TypeAnnotation */:
8616
8620
  case 32 /* StructuredTypeDeclarationBody */:
8617
8621
  case 37 /* VariantTypeDeclarationBody */:
8618
8622
  case 21 /* AliasTypeDeclarationBody */:
@@ -8756,7 +8760,7 @@ var SemanticTokensService = class {
8756
8760
  ));
8757
8761
  }
8758
8762
  }
8759
- if (node.kind === 142 /* VariantDeclaration */) {
8763
+ if (node.kind === 146 /* VariantDeclaration */) {
8760
8764
  result.push(
8761
8765
  new SemanticToken(
8762
8766
  node.name.rangeWithoutTrivia,
@@ -8944,7 +8948,7 @@ var TypeParameterSignatureHelpProvider = class {
8944
8948
  }
8945
8949
  let node = token.parent;
8946
8950
  while (node !== void 0) {
8947
- if (node.kind === 152 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8951
+ if (node.kind === 156 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8948
8952
  const argumentIndex = this.getArgumentIndex(node.typeArgumentList, this._offset);
8949
8953
  const argumentCount = this.countArguments(node.typeArgumentList);
8950
8954
  return new NodeWithTypeArgumentsInfo(node.parent, argumentIndex, argumentCount);
@@ -8991,7 +8995,7 @@ var TypeParameterSignatureHelpProvider = class {
8991
8995
  return this.getSignaturesForNamedTypeSpecifier(node);
8992
8996
  case 87 /* GenericSpecializationExpression */:
8993
8997
  return this.getSignaturesForGenericSpecializationExpression(node);
8994
- case 147 /* Tag */:
8998
+ case 151 /* Tag */:
8995
8999
  return this.getSignaturesForTag(node);
8996
9000
  default:
8997
9001
  Debug.never(node);
@@ -9322,7 +9326,7 @@ var ValueParametersSignatureHelpProvider = class {
9322
9326
  }
9323
9327
  break;
9324
9328
  }
9325
- case 147 /* Tag */: {
9329
+ case 151 /* Tag */: {
9326
9330
  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)) {
9327
9331
  const argumentIndex = this.getArgumentIndexInList(node.argumentList.elements, this._offset);
9328
9332
  const valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(node);