@artel/artc 0.6.25246 → 0.6.25248

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-BGCXIMTW.js";
5
- import "./chunk-CNAUD5P6.js";
4
+ } from "./chunk-CBZMJHSW.js";
5
+ import "./chunk-JKFASNU3.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-RIWU6SF4.js";
8
+ } from "./chunk-CWGZOWF7.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-CNAUD5P6.js";
3
+ } from "../chunk-JKFASNU3.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionValueParameter,
@@ -214,6 +214,7 @@ import {
214
214
  TargetPlatformConfig,
215
215
  TargetTypeHint,
216
216
  TextFile,
217
+ TextTemplateFunctionTypeParameterSpecialVariableEntityInfo,
217
218
  TextTranslationPackage,
218
219
  TextTranslationPackageConfiguration,
219
220
  ThrottledCancellationToken,
@@ -231,6 +232,7 @@ import {
231
232
  Translation,
232
233
  TranslationPackage,
233
234
  TranslationPackageConfiguration,
235
+ TranslationTextTemplateParameterDeclarationEntity,
234
236
  TraversalController,
235
237
  TreeQuery,
236
238
  TsInteropInputs,
@@ -330,7 +332,7 @@ import {
330
332
  withoutQuotes,
331
333
  withoutTemplateQuotes,
332
334
  yieldExecution
333
- } from "../chunk-RIWU6SF4.js";
335
+ } from "../chunk-CWGZOWF7.js";
334
336
  export {
335
337
  AccessKind,
336
338
  AccessedFunctionValueParameter,
@@ -542,6 +544,7 @@ export {
542
544
  TargetPlatformConfig,
543
545
  TargetTypeHint,
544
546
  TextFile,
547
+ TextTemplateFunctionTypeParameterSpecialVariableEntityInfo,
545
548
  TextTranslationPackage,
546
549
  TextTranslationPackageConfiguration,
547
550
  ThrottledCancellationToken,
@@ -558,6 +561,7 @@ export {
558
561
  Translation,
559
562
  TranslationPackage,
560
563
  TranslationPackageConfiguration,
564
+ TranslationTextTemplateParameterDeclarationEntity,
561
565
  TraversalController,
562
566
  TreeQuery,
563
567
  TsInteropInputs,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-BGCXIMTW.js";
10
- import "../chunk-CNAUD5P6.js";
11
- import "../chunk-RIWU6SF4.js";
9
+ } from "../chunk-CBZMJHSW.js";
10
+ import "../chunk-JKFASNU3.js";
11
+ import "../chunk-CWGZOWF7.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -178,7 +178,7 @@ import {
178
178
  unwrapParenthesizedExpressions,
179
179
  visitChildren,
180
180
  yieldExecution
181
- } from "../chunk-RIWU6SF4.js";
181
+ } from "../chunk-CWGZOWF7.js";
182
182
 
183
183
  // source/services/CustomCommand.ts
184
184
  import * as ls from "vscode-languageserver";
@@ -2037,16 +2037,16 @@ var SyntaxToCode = class _SyntaxToCode {
2037
2037
  [91 /* StatementBlock */]: this.prototype.writeStatementBlock,
2038
2038
  [92 /* FunctionBlock */]: this.prototype.writeFunctionBlock,
2039
2039
  [135 /* QualifiedName */]: this.prototype.writeQualifiedName,
2040
- [146 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2041
- [147 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2042
- [148 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2043
- [149 /* Argument */]: this.prototype.writeArgument,
2044
- [151 /* Tag */]: this.prototype.writeTag,
2045
- [153 /* Modifier */]: this.prototype.writeModifier,
2046
- [154 /* ParameterClause */]: this.prototype.writeParameterClause,
2047
- [155 /* ParameterList */]: this.prototype.writeParameterList,
2048
- [156 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2049
- [158 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
2040
+ [145 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
2041
+ [146 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
2042
+ [147 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
2043
+ [148 /* Argument */]: this.prototype.writeArgument,
2044
+ [150 /* Tag */]: this.prototype.writeTag,
2045
+ [152 /* Modifier */]: this.prototype.writeModifier,
2046
+ [153 /* ParameterClause */]: this.prototype.writeParameterClause,
2047
+ [154 /* ParameterList */]: this.prototype.writeParameterList,
2048
+ [155 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
2049
+ [157 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
2050
2050
  [17 /* AnonymousFunctionTypeDeclaration */]: this.prototype.writeAnonymousFunctionTypeDeclaration,
2051
2051
  [18 /* AnonymousStructuredTypeDeclaration */]: this.prototype.writeAnonymousStructuredTypeDeclaration,
2052
2052
  [19 /* AnonymousVariantTypeDeclaration */]: this.prototype.writeAnonymousVariantTypeDeclaration,
@@ -2142,17 +2142,16 @@ var SyntaxToCode = class _SyntaxToCode {
2142
2142
  [137 /* FieldOrVariantTranslation */]: this.prototype.writeFieldOrVariantTranslation,
2143
2143
  [138 /* TypeMemberTranslationList */]: this.prototype.writeNodeDefault,
2144
2144
  [139 /* TypeTranslation */]: this.prototype.writeTypeTranslation,
2145
- [140 /* TextLiteralTranslation */]: this.prototype.writeNodeDefault,
2146
- [141 /* TextTemplateLiteralTranslation */]: this.prototype.writeNodeDefault,
2147
- [150 /* TagList */]: this.prototype.writeNodeDefault,
2148
- [152 /* ModifierList */]: this.prototype.writeNodeDefault,
2149
- [157 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2150
- [159 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2151
- [160 /* TypeAnnotation */]: this.prototype.writeNodeDefault,
2152
- [142 /* TranslationTextTemplate */]: this.prototype.writeNodeDefault,
2153
- [143 /* TranslationTextTemplateSpanList */]: this.prototype.writeNodeDefault,
2154
- [144 /* TranslationTextTemplateSpan */]: this.prototype.writeNodeDefault,
2155
- [145 /* TranslationTextTemplateParameterDeclaration */]: this.prototype.writeNodeDefault
2145
+ [140 /* TextTranslation */]: this.prototype.writeNodeDefault,
2146
+ [149 /* TagList */]: this.prototype.writeNodeDefault,
2147
+ [151 /* ModifierList */]: this.prototype.writeNodeDefault,
2148
+ [156 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
2149
+ [158 /* TypeParameterList */]: this.prototype.writeNodeDefault,
2150
+ [159 /* TypeAnnotation */]: this.prototype.writeNodeDefault,
2151
+ [141 /* TranslationTextTemplate */]: this.prototype.writeNodeDefault,
2152
+ [142 /* TranslationTextTemplateSpanList */]: this.prototype.writeNodeDefault,
2153
+ [143 /* TranslationTextTemplateSpan */]: this.prototype.writeNodeDefault,
2154
+ [144 /* TranslationTextTemplateParameterDeclaration */]: this.prototype.writeNodeDefault
2156
2155
  };
2157
2156
  return writeFunctions;
2158
2157
  }
@@ -2823,7 +2822,7 @@ var SignatureForNode = class _SignatureForNode {
2823
2822
  return _SignatureForNode.getSignaturesForAutotypeCallExpression(analyzer, node);
2824
2823
  case 70 /* IndexedAccessExpression */:
2825
2824
  return _SignatureForNode.getSignaturesForIndexedAccessExpression(analyzer, node);
2826
- case 151 /* Tag */:
2825
+ case 150 /* Tag */:
2827
2826
  return _SignatureForNode.getSignaturesForTag(analyzer, node);
2828
2827
  default:
2829
2828
  Debug.never(node);
@@ -3244,7 +3243,7 @@ var CompletionService = class {
3244
3243
  }
3245
3244
  return { kind: "none" };
3246
3245
  }
3247
- if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 151 /* Tag */) {
3246
+ if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 150 /* Tag */) {
3248
3247
  const tag = tokenOrKeyword.parent.parent;
3249
3248
  const resolutionResult = this._analyzer.resolveTag(tag);
3250
3249
  const segmentIndex = Math.floor(
@@ -3429,7 +3428,7 @@ var CompletionService = class {
3429
3428
  role.argumentList.parent
3430
3429
  );
3431
3430
  break;
3432
- case 151 /* Tag */:
3431
+ case 150 /* Tag */:
3433
3432
  signatures = SignatureForNode.getSignaturesForTag(this._analyzer, role.argumentList.parent);
3434
3433
  valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(role.argumentList.parent);
3435
3434
  break;
@@ -3650,7 +3649,7 @@ var CompletionService = class {
3650
3649
  return false;
3651
3650
  }
3652
3651
  const tokenOrKeyword = positionDescription.tokenOrKeyword;
3653
- return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 153 /* Modifier */;
3652
+ return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 152 /* Modifier */;
3654
3653
  }
3655
3654
  isElseOrElseIfKeywordContext(positionDescription) {
3656
3655
  if (positionDescription.kind !== "after-token-or-keyword") {
@@ -4522,6 +4521,7 @@ var VariableEntityCompletionItemInfo = class {
4522
4521
  case "field":
4523
4522
  return this.entity.isVariant() ? 12 /* Variant */ : 2 /* Field */;
4524
4523
  case "parameter":
4524
+ case "text-template-parameter":
4525
4525
  return 10 /* ParameterVariable */;
4526
4526
  case "local":
4527
4527
  return 9 /* LocalVariable */;
@@ -4723,7 +4723,8 @@ var AliasesSourceVariableCompletionItemInfo = class {
4723
4723
  case "field":
4724
4724
  return 2 /* Field */;
4725
4725
  case "parameter":
4726
- return 7 /* PackageVariable */;
4726
+ case "text-template-parameter":
4727
+ return 10 /* ParameterVariable */;
4727
4728
  case "local":
4728
4729
  return 9 /* LocalVariable */;
4729
4730
  default:
@@ -5038,7 +5039,7 @@ var SyntaxContextFactory = class {
5038
5039
  if (positionDescription.kind === "after-token-or-keyword") {
5039
5040
  isUnqualifiedTypeContext = this.isUnqualifiedTypeContext(positionDescription.tokenOrKeyword);
5040
5041
  }
5041
- const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 151 /* Tag */;
5042
+ const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 150 /* Tag */;
5042
5043
  let isTopLevelTranslationListContext;
5043
5044
  if (positionDescription.kind === "after-token-or-keyword") {
5044
5045
  isTopLevelTranslationListContext = this.isTopLevelTranslationListContext(positionDescription.tokenOrKeyword);
@@ -5080,15 +5081,15 @@ var SyntaxContextFactory = class {
5080
5081
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.initializer);
5081
5082
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5082
5083
  }
5083
- if (tokenOrKeyword.parent.kind === 148 /* ParameterDeclaration */) {
5084
+ if (tokenOrKeyword.parent.kind === 147 /* ParameterDeclaration */) {
5084
5085
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.defaultValue);
5085
5086
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5086
5087
  }
5087
- if (tokenOrKeyword.parent.kind === 149 /* Argument */) {
5088
+ if (tokenOrKeyword.parent.kind === 148 /* Argument */) {
5088
5089
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5089
5090
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5090
5091
  }
5091
- if (tokenOrKeyword.parent.kind === 146 /* VariantDeclaration */) {
5092
+ if (tokenOrKeyword.parent.kind === 145 /* VariantDeclaration */) {
5092
5093
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
5093
5094
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5094
5095
  }
@@ -5158,7 +5159,7 @@ var SyntaxContextFactory = class {
5158
5159
  const expressionRole = new ExpressionRole_argument(tokenOrKeyword.parent.argumentList, 0);
5159
5160
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5160
5161
  }
5161
- if (tokenOrKeyword.parent.kind === 151 /* Tag */) {
5162
+ if (tokenOrKeyword.parent.kind === 150 /* Tag */) {
5162
5163
  const argumentList = tokenOrKeyword.parent.argumentList;
5163
5164
  if (argumentList !== void 0) {
5164
5165
  const expressionRole = new ExpressionRole_argument(argumentList, 0);
@@ -5291,13 +5292,13 @@ var SyntaxContextFactory = class {
5291
5292
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 35 /* PackageVariableSetterDeclaration */)) {
5292
5293
  return true;
5293
5294
  }
5294
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 153 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5295
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 152 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5295
5296
  return true;
5296
5297
  }
5297
- if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 153 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5298
+ if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 152 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5298
5299
  return true;
5299
5300
  }
5300
- const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 151 /* Tag */);
5301
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 150 /* Tag */);
5301
5302
  if (tag !== void 0 && NodeTypeUtils.isPackageMemberDeclaration(tag.parent.parent)) {
5302
5303
  return true;
5303
5304
  }
@@ -5325,16 +5326,16 @@ var SyntaxContextFactory = class {
5325
5326
  ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(
5326
5327
  tokenOrKeyword,
5327
5328
  49 /* DereferencedVariableSetterDeclaration */
5328
- ) || 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 */)) {
5329
+ ) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 145 /* VariantDeclaration */)) {
5329
5330
  return true;
5330
5331
  }
5331
- if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 153 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5332
+ if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 152 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5332
5333
  return true;
5333
5334
  }
5334
- if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 153 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5335
+ if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 152 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
5335
5336
  return true;
5336
5337
  }
5337
- const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 151 /* Tag */);
5338
+ const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 150 /* Tag */);
5338
5339
  if (tag !== void 0 && NodeTypeUtils.isTypeMemberDeclaration(tag.parent.parent)) {
5339
5340
  return true;
5340
5341
  }
@@ -5372,7 +5373,7 @@ var SyntaxContextFactory = class {
5372
5373
  return result;
5373
5374
  }
5374
5375
  static isUnqualifiedTypeContext(tokenOrKeyword) {
5375
- if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 160 /* TypeAnnotation */) {
5376
+ if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 159 /* TypeAnnotation */) {
5376
5377
  return { allowsAnonymousTypes: true };
5377
5378
  }
5378
5379
  if ((tokenOrKeyword.isKeyword(4 /* Object */) || tokenOrKeyword.isKeyword(5 /* PlainObject */) || tokenOrKeyword.isKeyword(3 /* Aspect */)) && tokenOrKeyword.parent.kind === 32 /* StructuredTypeDeclarationBody */) {
@@ -5381,16 +5382,16 @@ var SyntaxContextFactory = class {
5381
5382
  if (tokenOrKeyword.isKeyword(16 /* Type */) && (NodeTypeUtils.isPackageTypeDeclaration(tokenOrKeyword.parent) || tokenOrKeyword.parent.kind === 38 /* TypeExtensionDeclaration */)) {
5382
5383
  return { allowsAnonymousTypes: false };
5383
5384
  }
5384
- if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 156 /* TypeArgumentClause */) {
5385
+ if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 155 /* TypeArgumentClause */) {
5385
5386
  return { allowsAnonymousTypes: true };
5386
5387
  }
5387
- if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 157 /* TypeArgumentList */)) {
5388
- return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 157 /* TypeArgumentList */ };
5388
+ if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 156 /* TypeArgumentList */)) {
5389
+ return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 156 /* TypeArgumentList */ };
5389
5390
  }
5390
- if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 151 /* Tag */) {
5391
+ if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 150 /* Tag */) {
5391
5392
  return { allowsAnonymousTypes: false };
5392
5393
  }
5393
- if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 147 /* TypeParameterDeclaration */) {
5394
+ if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 146 /* TypeParameterDeclaration */) {
5394
5395
  return { allowsAnonymousTypes: false };
5395
5396
  }
5396
5397
  if (tokenOrKeyword.isToken(58 /* Equals */) && tokenOrKeyword.parent.kind === 20 /* PackageAliasTypeDeclaration */) {
@@ -5633,7 +5634,7 @@ var NodeSemanticInfoService = class {
5633
5634
  break;
5634
5635
  case 124 /* TranslationParameterList */:
5635
5636
  break;
5636
- case 149 /* Argument */: {
5637
+ case 148 /* Argument */: {
5637
5638
  const respectiveParameter = analyzer.getRespectiveParameter(parent);
5638
5639
  if (respectiveParameter !== void 0) {
5639
5640
  const target = new MatchResultValueParameterReferenceTarget(respectiveParameter, 0 /* Get */);
@@ -5809,7 +5810,7 @@ var NodeSemanticInfoService = class {
5809
5810
  }
5810
5811
  break;
5811
5812
  }
5812
- case 148 /* ParameterDeclaration */:
5813
+ case 147 /* ParameterDeclaration */:
5813
5814
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofParameterDeclaration(parent));
5814
5815
  break;
5815
5816
  case 8 /* PackageImport */:
@@ -5830,10 +5831,10 @@ var NodeSemanticInfoService = class {
5830
5831
  case 52 /* FieldDeclaration */:
5831
5832
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofFieldDeclaration(parent));
5832
5833
  break;
5833
- case 147 /* TypeParameterDeclaration */:
5834
+ case 146 /* TypeParameterDeclaration */:
5834
5835
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofTypeParameterDeclaration(parent));
5835
5836
  break;
5836
- case 146 /* VariantDeclaration */:
5837
+ case 145 /* VariantDeclaration */:
5837
5838
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofVariantDeclaration(parent));
5838
5839
  break;
5839
5840
  case 34 /* PackageVariableGetterDeclaration */:
@@ -5952,7 +5953,7 @@ var NodeSemanticInfoService = class {
5952
5953
  switch (node.parent.kind) {
5953
5954
  case 10 /* NamedTypeSpecifier */:
5954
5955
  return this.ofNamedTypeSpecifierNameQualifier(analyzer, node.parent, qualifier, options6);
5955
- case 151 /* Tag */:
5956
+ case 150 /* Tag */:
5956
5957
  return this.ofTagNameQualifier(analyzer, node.parent, qualifier, options6);
5957
5958
  case 40 /* ExtendedTypeClause */:
5958
5959
  case 134 /* PackageImportTranslation */:
@@ -6436,6 +6437,11 @@ var NodeSemanticInfoService = class {
6436
6437
  specialVariableInfo.targetTypeParameter,
6437
6438
  currentTarget.accessKind
6438
6439
  );
6440
+ } else if (specialVariableInfo?.kind === "text-template-function-type-parameter") {
6441
+ betterTarget = new EntityReferenceTarget(
6442
+ specialVariableInfo.textTemplateParameter,
6443
+ currentTarget.accessKind
6444
+ );
6439
6445
  }
6440
6446
  }
6441
6447
  }
@@ -6631,7 +6637,7 @@ function getEntitySourceLocations(analyzer, entity) {
6631
6637
  case 36 /* PackageVariantTypeDeclaration */:
6632
6638
  case 56 /* NestedFunctionDeclaration */:
6633
6639
  case 50 /* MethodDeclaration */:
6634
- case 147 /* TypeParameterDeclaration */:
6640
+ case 146 /* TypeParameterDeclaration */:
6635
6641
  case 51 /* OperatorDeclaration */:
6636
6642
  range = node.name.rangeWithoutTrivia;
6637
6643
  break;
@@ -6849,6 +6855,8 @@ var DefinitionService = class {
6849
6855
  return [this.getSourceLocationOfSubprogramNode(analyzer, info.setterDeclaration)];
6850
6856
  case "implicit-function-block-parameter":
6851
6857
  return [this.getSourceLocationOfSubprogramNode(analyzer, info.functionBlockLiteral)];
6858
+ case "text-template-function-type-parameter":
6859
+ return getEntitySourceLocations(analyzer, info.textTemplateParameter);
6852
6860
  case "backing":
6853
6861
  return getEntitySourceLocations(analyzer, info.computedVariable);
6854
6862
  default:
@@ -7536,15 +7544,15 @@ var EvaluatableExpressionService = class {
7536
7544
  return { nameIdentifier: node.name };
7537
7545
  case 57 /* LocalVariableDeclaration */:
7538
7546
  return { nameIdentifier: node.name };
7539
- case 148 /* ParameterDeclaration */:
7547
+ case 147 /* ParameterDeclaration */:
7540
7548
  return { nameIdentifier: node.name };
7541
7549
  case 50 /* MethodDeclaration */:
7542
7550
  return { nameIdentifier: node.name };
7543
7551
  case 52 /* FieldDeclaration */:
7544
7552
  return { nameIdentifier: node.name };
7545
- case 147 /* TypeParameterDeclaration */:
7553
+ case 146 /* TypeParameterDeclaration */:
7546
7554
  return { nameIdentifier: node.name };
7547
- case 146 /* VariantDeclaration */:
7555
+ case 145 /* VariantDeclaration */:
7548
7556
  return { nameIdentifier: node.name };
7549
7557
  case 99 /* ErrorVariableDeclaration */:
7550
7558
  return { nameIdentifier: node.name };
@@ -7947,7 +7955,7 @@ var SourceFileItemsService = class {
7947
7955
  );
7948
7956
  break;
7949
7957
  }
7950
- case 146 /* VariantDeclaration */: {
7958
+ case 145 /* VariantDeclaration */: {
7951
7959
  result.push(
7952
7960
  this.createItem(
7953
7961
  9 /* Variant */,
@@ -7959,7 +7967,7 @@ var SourceFileItemsService = class {
7959
7967
  );
7960
7968
  break;
7961
7969
  }
7962
- case 147 /* TypeParameterDeclaration */: {
7970
+ case 146 /* TypeParameterDeclaration */: {
7963
7971
  result.push(
7964
7972
  this.createItem(
7965
7973
  18 /* TypeParameter */,
@@ -8228,7 +8236,7 @@ var SelectionRangeService = class {
8228
8236
  }
8229
8237
  }
8230
8238
  switch (node.kind) {
8231
- case 160 /* TypeAnnotation */:
8239
+ case 159 /* TypeAnnotation */:
8232
8240
  case 32 /* StructuredTypeDeclarationBody */:
8233
8241
  case 37 /* VariantTypeDeclarationBody */:
8234
8242
  case 21 /* AliasTypeDeclarationBody */:
@@ -8296,6 +8304,7 @@ var SemanticTokensService = class {
8296
8304
  case "implicit-function-block-parameter":
8297
8305
  semanticTokenKind = 0 /* FunctionBlockLiteralParameter */;
8298
8306
  break;
8307
+ case "text-template-function-type-parameter":
8299
8308
  case "backing":
8300
8309
  semanticTokenKind = void 0;
8301
8310
  break;
@@ -8372,7 +8381,7 @@ var SemanticTokensService = class {
8372
8381
  ));
8373
8382
  }
8374
8383
  }
8375
- if (node.kind === 146 /* VariantDeclaration */) {
8384
+ if (node.kind === 145 /* VariantDeclaration */) {
8376
8385
  result.push(
8377
8386
  new SemanticToken(
8378
8387
  node.name.rangeWithoutTrivia,
@@ -8552,7 +8561,7 @@ var TypeParameterSignatureHelpProvider = class {
8552
8561
  }
8553
8562
  let node = token.parent;
8554
8563
  while (node !== void 0) {
8555
- if (node.kind === 156 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8564
+ if (node.kind === 155 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
8556
8565
  const argumentIndex = this.getArgumentIndex(node.typeArgumentList, this._offset);
8557
8566
  const argumentCount = this.countArguments(node.typeArgumentList);
8558
8567
  return new NodeWithTypeArgumentsInfo(node.parent, argumentIndex, argumentCount);
@@ -8599,7 +8608,7 @@ var TypeParameterSignatureHelpProvider = class {
8599
8608
  return this.getSignaturesForNamedTypeSpecifier(node);
8600
8609
  case 87 /* GenericSpecializationExpression */:
8601
8610
  return this.getSignaturesForGenericSpecializationExpression(node);
8602
- case 151 /* Tag */:
8611
+ case 150 /* Tag */:
8603
8612
  return this.getSignaturesForTag(node);
8604
8613
  default:
8605
8614
  Debug.never(node);
@@ -8924,7 +8933,7 @@ var ValueParametersSignatureHelpProvider = class {
8924
8933
  }
8925
8934
  break;
8926
8935
  }
8927
- case 151 /* Tag */: {
8936
+ case 150 /* Tag */: {
8928
8937
  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)) {
8929
8938
  const argumentIndex = this.getArgumentIndexInList(node.argumentList.elements, this._offset);
8930
8939
  const valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(node);
@@ -9050,7 +9059,7 @@ var ClientTrackedSourceFiles = class extends ObservableObject {
9050
9059
  super(...arguments);
9051
9060
  this.items = new ObservableMap();
9052
9061
  }
9053
- // @cache
9062
+ // @cached
9054
9063
  get unsaved() {
9055
9064
  return Query.from(this.items.entries()).filter((e) => !e[1].isSaved).toMap((e) => e[0], (e) => e[1]);
9056
9065
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-CNAUD5P6.js";
3
+ } from "./chunk-JKFASNU3.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -14,7 +14,7 @@ import {
14
14
  __async,
15
15
  performanceMeasurementStageNames,
16
16
  performanceMeasurementStages
17
- } from "./chunk-RIWU6SF4.js";
17
+ } from "./chunk-CWGZOWF7.js";
18
18
 
19
19
  // source/executor/FileSystemUri.ts
20
20
  import { platform } from "os";