@typescript-deploys/pr-build 5.0.0-pr-52710-9 → 5.0.0-pr-52696-39

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/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.0";
38
- version = `${versionMajorMinor}.0-insiders.20230210`;
38
+ version = `${versionMajorMinor}.0-insiders.20230211`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -29518,13 +29518,8 @@ ${lanes.join("\n")}
29518
29518
  return tokenIsIdentifierOrKeyword(token()) || token() === 18 /* OpenBraceToken */;
29519
29519
  case 14 /* JsxChildren */:
29520
29520
  return true;
29521
- case 25 /* StandaloneJSDoc */:
29522
- return true;
29523
- case 26 /* Count */:
29524
- return Debug.fail("ParsingContext.Count used as a context");
29525
- default:
29526
- Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'.");
29527
29521
  }
29522
+ return Debug.fail("Non-exhaustive case in 'isListElement'.");
29528
29523
  }
29529
29524
  function isValidHeritageClauseObjectLiteral() {
29530
29525
  Debug.assert(token() === 18 /* OpenBraceToken */);
@@ -29618,8 +29613,7 @@ ${lanes.join("\n")}
29618
29613
  return false;
29619
29614
  }
29620
29615
  function isInSomeParsingContext() {
29621
- Debug.assert(parsingContext, "Missing parsing context");
29622
- for (let kind = 0; kind < 26 /* Count */; kind++) {
29616
+ for (let kind = 0; kind < 25 /* Count */; kind++) {
29623
29617
  if (parsingContext & 1 << kind) {
29624
29618
  if (isListElement2(
29625
29619
  kind,
@@ -29698,7 +29692,6 @@ ${lanes.join("\n")}
29698
29692
  case 8 /* VariableDeclarations */:
29699
29693
  case 17 /* JSDocParameters */:
29700
29694
  case 16 /* Parameters */:
29701
- case 25 /* StandaloneJSDoc */:
29702
29695
  return true;
29703
29696
  }
29704
29697
  return false;
@@ -29879,9 +29872,7 @@ ${lanes.join("\n")}
29879
29872
  return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);
29880
29873
  case 24 /* AssertEntries */:
29881
29874
  return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected);
29882
- case 25 /* StandaloneJSDoc */:
29883
- return;
29884
- case 26 /* Count */:
29875
+ case 25 /* Count */:
29885
29876
  return Debug.fail("ParsingContext.Count used as a context");
29886
29877
  default:
29887
29878
  Debug.assertNever(context);
@@ -33981,8 +33972,7 @@ ${lanes.join("\n")}
33981
33972
  ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses";
33982
33973
  ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers";
33983
33974
  ParsingContext2[ParsingContext2["AssertEntries"] = 24] = "AssertEntries";
33984
- ParsingContext2[ParsingContext2["StandaloneJSDoc"] = 25] = "StandaloneJSDoc";
33985
- ParsingContext2[ParsingContext2["Count"] = 26] = "Count";
33975
+ ParsingContext2[ParsingContext2["Count"] = 25] = "Count";
33986
33976
  })(ParsingContext || (ParsingContext = {}));
33987
33977
  let Tristate;
33988
33978
  ((Tristate2) => {
@@ -34104,13 +34094,6 @@ ${lanes.join("\n")}
34104
34094
  PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter";
34105
34095
  })(PropertyLikeParse || (PropertyLikeParse = {}));
34106
34096
  function parseJSDocCommentWorker(start = 0, length2) {
34107
- const saveParsingContext = parsingContext;
34108
- parsingContext |= 1 << 25 /* StandaloneJSDoc */;
34109
- const jsdoc = parseJSDocCommentWorkerWorker(start, length2);
34110
- parsingContext = saveParsingContext;
34111
- return jsdoc;
34112
- }
34113
- function parseJSDocCommentWorkerWorker(start, length2) {
34114
34097
  const content = sourceText;
34115
34098
  const end = length2 === void 0 ? content.length : start + length2;
34116
34099
  length2 = end - start;
@@ -45698,6 +45681,7 @@ ${lanes.join("\n")}
45698
45681
  let flowTypeCache;
45699
45682
  const contextualTypeNodes = [];
45700
45683
  const contextualTypes = [];
45684
+ const contextualIsCache = [];
45701
45685
  let contextualTypeCount = 0;
45702
45686
  const inferenceContextNodes = [];
45703
45687
  const inferenceContexts = [];
@@ -52868,6 +52852,8 @@ ${lanes.join("\n")}
52868
52852
  return !!target.baseTypesResolved;
52869
52853
  case 8 /* WriteType */:
52870
52854
  return !!getSymbolLinks(target).writeType;
52855
+ case 9 /* ParameterInitializerContainsUndefined */:
52856
+ return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
52871
52857
  }
52872
52858
  return Debug.assertNever(propertyName);
52873
52859
  }
@@ -60659,7 +60645,12 @@ ${lanes.join("\n")}
60659
60645
  }
60660
60646
  }
60661
60647
  function checkExpressionForMutableLocationWithContextualType(next, sourcePropType) {
60662
- pushContextualType(next, sourcePropType);
60648
+ pushContextualType(
60649
+ next,
60650
+ sourcePropType,
60651
+ /*isCache*/
60652
+ false
60653
+ );
60663
60654
  const result = checkExpressionForMutableLocation(next, 1 /* Contextual */);
60664
60655
  popContextualType();
60665
60656
  return result;
@@ -60967,7 +60958,12 @@ ${lanes.join("\n")}
60967
60958
  if (isTupleLikeType(source)) {
60968
60959
  return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
60969
60960
  }
60970
- pushContextualType(node, target);
60961
+ pushContextualType(
60962
+ node,
60963
+ target,
60964
+ /*isCache*/
60965
+ false
60966
+ );
60971
60967
  const tupleizedType = checkArrayLiteral(
60972
60968
  node,
60973
60969
  1 /* Contextual */,
@@ -67690,15 +67686,25 @@ ${lanes.join("\n")}
67690
67686
  function isConstVariable(symbol) {
67691
67687
  return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
67692
67688
  }
67693
- function removeOptionalityFromDeclaredType(declaredType, declaration) {
67694
- if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
67695
- const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
67696
- popTypeResolution();
67697
- return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67698
- } else {
67699
- reportCircularityError(declaration.symbol);
67700
- return declaredType;
67689
+ function parameterInitializerContainsUndefined(declaration) {
67690
+ const links = getNodeLinks(declaration);
67691
+ if (links.parameterInitializerContainsUndefined === void 0) {
67692
+ if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
67693
+ reportCircularityError(declaration.symbol);
67694
+ return true;
67695
+ }
67696
+ const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
67697
+ if (!popTypeResolution()) {
67698
+ reportCircularityError(declaration.symbol);
67699
+ return true;
67700
+ }
67701
+ links.parameterInitializerContainsUndefined = containsUndefined;
67701
67702
  }
67703
+ return links.parameterInitializerContainsUndefined;
67704
+ }
67705
+ function removeOptionalityFromDeclaredType(declaredType, declaration) {
67706
+ const removeUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration);
67707
+ return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67702
67708
  }
67703
67709
  function isConstraintPosition(type, node) {
67704
67710
  const parent2 = node.parent;
@@ -69016,11 +69022,13 @@ ${lanes.join("\n")}
69016
69022
  if (node.flags & 33554432 /* InWithStatement */) {
69017
69023
  return void 0;
69018
69024
  }
69019
- const index = findContextualNode(node);
69025
+ const index = findContextualNode(
69026
+ node,
69027
+ /*includeCaches*/
69028
+ !contextFlags
69029
+ );
69020
69030
  if (index >= 0) {
69021
- const cached = contextualTypes[index];
69022
- if (cached || !contextFlags)
69023
- return cached;
69031
+ return contextualTypes[index];
69024
69032
  }
69025
69033
  const { parent: parent2 } = node;
69026
69034
  switch (parent2.kind) {
@@ -69091,17 +69099,30 @@ ${lanes.join("\n")}
69091
69099
  }
69092
69100
  return void 0;
69093
69101
  }
69094
- function pushContextualType(node, type) {
69102
+ function pushCachedContextualType(node) {
69103
+ pushContextualType(
69104
+ node,
69105
+ getContextualType2(
69106
+ node,
69107
+ /*contextFlags*/
69108
+ void 0
69109
+ ),
69110
+ /*isCache*/
69111
+ true
69112
+ );
69113
+ }
69114
+ function pushContextualType(node, type, isCache) {
69095
69115
  contextualTypeNodes[contextualTypeCount] = node;
69096
69116
  contextualTypes[contextualTypeCount] = type;
69117
+ contextualIsCache[contextualTypeCount] = isCache;
69097
69118
  contextualTypeCount++;
69098
69119
  }
69099
69120
  function popContextualType() {
69100
69121
  contextualTypeCount--;
69101
69122
  }
69102
- function findContextualNode(node) {
69123
+ function findContextualNode(node, includeCaches) {
69103
69124
  for (let i = contextualTypeCount - 1; i >= 0; i--) {
69104
- if (node === contextualTypeNodes[i]) {
69125
+ if (node === contextualTypeNodes[i] && (includeCaches || !contextualIsCache[i])) {
69105
69126
  return i;
69106
69127
  }
69107
69128
  }
@@ -69124,7 +69145,11 @@ ${lanes.join("\n")}
69124
69145
  }
69125
69146
  function getContextualJsxElementAttributesType(node, contextFlags) {
69126
69147
  if (isJsxOpeningElement(node) && contextFlags !== 4 /* Completions */) {
69127
- const index = findContextualNode(node.parent);
69148
+ const index = findContextualNode(
69149
+ node.parent,
69150
+ /*includeCaches*/
69151
+ !contextFlags
69152
+ );
69128
69153
  if (index >= 0) {
69129
69154
  return contextualTypes[index];
69130
69155
  }
@@ -69395,11 +69420,7 @@ ${lanes.join("\n")}
69395
69420
  const elementCount = elements.length;
69396
69421
  const elementTypes = [];
69397
69422
  const elementFlags = [];
69398
- pushContextualType(node, getContextualType2(
69399
- node,
69400
- /*contextFlags*/
69401
- void 0
69402
- ));
69423
+ pushCachedContextualType(node);
69403
69424
  const inDestructuringPattern = isAssignmentTarget(node);
69404
69425
  const inConstContext = isConstContext(node);
69405
69426
  const contextualType = getApparentTypeOfContextualType(
@@ -69562,11 +69583,7 @@ ${lanes.join("\n")}
69562
69583
  let propertiesTable = createSymbolTable();
69563
69584
  let propertiesArray = [];
69564
69585
  let spread = emptyObjectType;
69565
- pushContextualType(node, getContextualType2(
69566
- node,
69567
- /*contextFlags*/
69568
- void 0
69569
- ));
69586
+ pushCachedContextualType(node);
69570
69587
  const contextualType = getApparentTypeOfContextualType(
69571
69588
  node,
69572
69589
  /*contextFlags*/
@@ -75577,14 +75594,19 @@ ${lanes.join("\n")}
75577
75594
  return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */));
75578
75595
  }
75579
75596
  function getContextNode2(node) {
75580
- if (node.kind === 289 /* JsxAttributes */ && !isJsxSelfClosingElement(node.parent)) {
75597
+ if (isJsxAttributes(node) && !isJsxSelfClosingElement(node.parent)) {
75581
75598
  return node.parent.parent;
75582
75599
  }
75583
75600
  return node;
75584
75601
  }
75585
75602
  function checkExpressionWithContextualType(node, contextualType, inferenceContext, checkMode) {
75586
75603
  const contextNode = getContextNode2(node);
75587
- pushContextualType(contextNode, contextualType);
75604
+ pushContextualType(
75605
+ contextNode,
75606
+ contextualType,
75607
+ /*isCache*/
75608
+ false
75609
+ );
75588
75610
  pushInferenceContext(contextNode, inferenceContext);
75589
75611
  const type = checkExpression(node, checkMode | 1 /* Contextual */ | (inferenceContext ? 2 /* Inferential */ : 0));
75590
75612
  if (inferenceContext && inferenceContext.intraExpressionInferenceSites) {
@@ -75925,7 +75947,12 @@ ${lanes.join("\n")}
75925
75947
  if (links.contextFreeType) {
75926
75948
  return links.contextFreeType;
75927
75949
  }
75928
- pushContextualType(node, anyType);
75950
+ pushContextualType(
75951
+ node,
75952
+ anyType,
75953
+ /*isCache*/
75954
+ false
75955
+ );
75929
75956
  const type = links.contextFreeType = checkExpression(node, 4 /* SkipContextSensitive */);
75930
75957
  popContextualType();
75931
75958
  return type;
@@ -139815,6 +139842,7 @@ ${lanes.join("\n")}
139815
139842
  sourceFile,
139816
139843
  symbol,
139817
139844
  symbolName2,
139845
+ moduleSymbol,
139818
139846
  /*isJsxTagName*/
139819
139847
  false,
139820
139848
  program,
@@ -139826,7 +139854,6 @@ ${lanes.join("\n")}
139826
139854
  const fix = getImportFixForSymbol(
139827
139855
  sourceFile,
139828
139856
  Debug.checkDefined(exportInfo),
139829
- moduleSymbol,
139830
139857
  program,
139831
139858
  /*position*/
139832
139859
  void 0,
@@ -140004,13 +140031,19 @@ ${lanes.join("\n")}
140004
140031
  return result && { ...result, computedWithoutCacheCount };
140005
140032
  }
140006
140033
  }
140007
- function getImportCompletionAction(targetSymbol, moduleSymbol, sourceFile, symbolName2, isJsxTagName, host, program, formatContext, position, preferences, cancellationToken) {
140034
+ function getImportCompletionAction(targetSymbol, moduleSymbol, exportMapKey, sourceFile, symbolName2, isJsxTagName, host, program, formatContext, position, preferences, cancellationToken) {
140008
140035
  const compilerOptions = program.getCompilerOptions();
140009
- const exportInfos = pathIsBareSpecifier(stripQuotes(moduleSymbol.name)) ? [getSingleExportInfoForSymbol(targetSymbol, moduleSymbol, program, host)] : getAllExportInfoForSymbol(sourceFile, targetSymbol, symbolName2, isJsxTagName, program, host, preferences, cancellationToken);
140010
- Debug.assertIsDefined(exportInfos);
140036
+ let exportInfos;
140037
+ if (exportMapKey) {
140038
+ exportInfos = getExportInfoMap(sourceFile, host, program, preferences, cancellationToken).get(sourceFile.path, exportMapKey);
140039
+ Debug.assertIsDefined(exportInfos, "Some exportInfo should match the specified exportMapKey");
140040
+ } else {
140041
+ exportInfos = pathIsBareSpecifier(stripQuotes(moduleSymbol.name)) ? [getSingleExportInfoForSymbol(targetSymbol, symbolName2, moduleSymbol, program, host)] : getAllExportInfoForSymbol(sourceFile, targetSymbol, symbolName2, moduleSymbol, isJsxTagName, program, host, preferences, cancellationToken);
140042
+ Debug.assertIsDefined(exportInfos, "Some exportInfo should match the specified symbol / moduleSymbol");
140043
+ }
140011
140044
  const useRequire = shouldUseRequire(sourceFile, program);
140012
140045
  const isValidTypeOnlyUseSite = isValidTypeOnlyAliasUseSite(getTokenAtPosition(sourceFile, position));
140013
- const fix = Debug.checkDefined(getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences));
140046
+ const fix = Debug.checkDefined(getImportFixForSymbol(sourceFile, exportInfos, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences));
140014
140047
  return {
140015
140048
  moduleSpecifier: fix.moduleSpecifier,
140016
140049
  codeAction: codeFixActionToCodeAction(codeActionForFix(
@@ -140032,23 +140065,22 @@ ${lanes.join("\n")}
140032
140065
  const includeSymbolNameInDescription = symbolName2 !== symbolToken.text;
140033
140066
  return fix && codeFixActionToCodeAction(codeActionForFix({ host, formatContext, preferences }, sourceFile, symbolName2, fix, includeSymbolNameInDescription, compilerOptions, preferences));
140034
140067
  }
140035
- function getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences) {
140036
- Debug.assert(exportInfos.some((info) => info.moduleSymbol === moduleSymbol || info.symbol.parent === moduleSymbol), "Some exportInfo should match the specified moduleSymbol");
140068
+ function getImportFixForSymbol(sourceFile, exportInfos, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences) {
140037
140069
  const packageJsonImportFilter = createPackageJsonImportFilter(sourceFile, preferences, host);
140038
140070
  return getBestFix(getImportFixes(exportInfos, position, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences).fixes, sourceFile, program, packageJsonImportFilter, host);
140039
140071
  }
140040
140072
  function codeFixActionToCodeAction({ description: description2, changes, commands }) {
140041
140073
  return { description: description2, changes, commands };
140042
140074
  }
140043
- function getAllExportInfoForSymbol(importingFile, symbol, symbolName2, preferCapitalized, program, host, preferences, cancellationToken) {
140075
+ function getAllExportInfoForSymbol(importingFile, symbol, symbolName2, moduleSymbol, preferCapitalized, program, host, preferences, cancellationToken) {
140044
140076
  const getChecker = createGetChecker(program, host);
140045
140077
  return getExportInfoMap(importingFile, host, program, preferences, cancellationToken).search(importingFile.path, preferCapitalized, (name) => name === symbolName2, (info) => {
140046
- if (skipAlias(info[0].symbol, getChecker(info[0].isFromPackageJson)) === symbol) {
140078
+ if (skipAlias(info[0].symbol, getChecker(info[0].isFromPackageJson)) === symbol && info.some((i) => i.moduleSymbol === moduleSymbol || i.symbol.parent === moduleSymbol)) {
140047
140079
  return info;
140048
140080
  }
140049
140081
  });
140050
140082
  }
140051
- function getSingleExportInfoForSymbol(symbol, moduleSymbol, program, host) {
140083
+ function getSingleExportInfoForSymbol(symbol, symbolName2, moduleSymbol, program, host) {
140052
140084
  var _a2, _b;
140053
140085
  const compilerOptions = program.getCompilerOptions();
140054
140086
  const mainProgramInfo = getInfoWithChecker(
@@ -140070,7 +140102,7 @@ ${lanes.join("\n")}
140070
140102
  if (defaultInfo && skipAlias(defaultInfo.symbol, checker) === symbol) {
140071
140103
  return { symbol: defaultInfo.symbol, moduleSymbol, moduleFileName: void 0, exportKind: defaultInfo.exportKind, targetFlags: skipAlias(symbol, checker).flags, isFromPackageJson };
140072
140104
  }
140073
- const named = checker.tryGetMemberInModuleExportsAndProperties(symbol.name, moduleSymbol);
140105
+ const named = checker.tryGetMemberInModuleExportsAndProperties(symbolName2, moduleSymbol);
140074
140106
  if (named && skipAlias(named, checker) === symbol) {
140075
140107
  return { symbol: named, moduleSymbol, moduleFileName: void 0, exportKind: 0 /* Named */, targetFlags: skipAlias(symbol, checker).flags, isFromPackageJson };
140076
140108
  }
@@ -148231,6 +148263,7 @@ ${lanes.join("\n")}
148231
148263
  if (originIsResolvedExport(origin)) {
148232
148264
  const resolvedData = {
148233
148265
  exportName: origin.exportName,
148266
+ exportMapKey: origin.exportMapKey,
148234
148267
  moduleSpecifier: origin.moduleSpecifier,
148235
148268
  ambientModuleName,
148236
148269
  fileName: origin.fileName,
@@ -148254,6 +148287,7 @@ ${lanes.join("\n")}
148254
148287
  const resolvedOrigin = {
148255
148288
  kind: 32 /* ResolvedExport */,
148256
148289
  exportName: data.exportName,
148290
+ exportMapKey: data.exportMapKey,
148257
148291
  moduleSpecifier: data.moduleSpecifier,
148258
148292
  symbolName: completionName,
148259
148293
  fileName: data.fileName,
@@ -148632,6 +148666,7 @@ ${lanes.join("\n")}
148632
148666
  const { moduleSpecifier, codeAction } = ts_codefix_exports.getImportCompletionAction(
148633
148667
  targetSymbol,
148634
148668
  moduleSymbol,
148669
+ data == null ? void 0 : data.exportMapKey,
148635
148670
  sourceFile,
148636
148671
  name,
148637
148672
  isJsxOpeningTagName,
@@ -149321,16 +149356,16 @@ ${lanes.join("\n")}
149321
149356
  if (detailsEntryId && !some(info, (i) => detailsEntryId.source === stripQuotes(i.moduleSymbol.name))) {
149322
149357
  return;
149323
149358
  }
149324
- const firstImportableExportInfo = find(info, isImportableExportInfo);
149325
- if (!firstImportableExportInfo) {
149359
+ info = filter(info, isImportableExportInfo);
149360
+ if (!info.length) {
149326
149361
  return;
149327
149362
  }
149328
149363
  const result = context.tryResolve(info, isFromAmbientModule) || {};
149329
149364
  if (result === "failed")
149330
149365
  return;
149331
- let exportInfo2 = firstImportableExportInfo, moduleSpecifier;
149366
+ let exportInfo2 = info[0], moduleSpecifier;
149332
149367
  if (result !== "skipped") {
149333
- ({ exportInfo: exportInfo2 = firstImportableExportInfo, moduleSpecifier } = result);
149368
+ ({ exportInfo: exportInfo2 = info[0], moduleSpecifier } = result);
149334
149369
  }
149335
149370
  const isDefaultExport = exportInfo2.exportKind === 1 /* Default */;
149336
149371
  const symbol = isDefaultExport && getLocalSymbolForExportDefault(exportInfo2.symbol) || exportInfo2.symbol;
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-insiders.20230210`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230211`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -19933,13 +19933,8 @@ var Parser;
19933
19933
  return tokenIsIdentifierOrKeyword(token()) || token() === 18 /* OpenBraceToken */;
19934
19934
  case 14 /* JsxChildren */:
19935
19935
  return true;
19936
- case 25 /* StandaloneJSDoc */:
19937
- return true;
19938
- case 26 /* Count */:
19939
- return Debug.fail("ParsingContext.Count used as a context");
19940
- default:
19941
- Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'.");
19942
19936
  }
19937
+ return Debug.fail("Non-exhaustive case in 'isListElement'.");
19943
19938
  }
19944
19939
  function isValidHeritageClauseObjectLiteral() {
19945
19940
  Debug.assert(token() === 18 /* OpenBraceToken */);
@@ -20033,8 +20028,7 @@ var Parser;
20033
20028
  return false;
20034
20029
  }
20035
20030
  function isInSomeParsingContext() {
20036
- Debug.assert(parsingContext, "Missing parsing context");
20037
- for (let kind = 0; kind < 26 /* Count */; kind++) {
20031
+ for (let kind = 0; kind < 25 /* Count */; kind++) {
20038
20032
  if (parsingContext & 1 << kind) {
20039
20033
  if (isListElement(
20040
20034
  kind,
@@ -20113,7 +20107,6 @@ var Parser;
20113
20107
  case 8 /* VariableDeclarations */:
20114
20108
  case 17 /* JSDocParameters */:
20115
20109
  case 16 /* Parameters */:
20116
- case 25 /* StandaloneJSDoc */:
20117
20110
  return true;
20118
20111
  }
20119
20112
  return false;
@@ -20294,9 +20287,7 @@ var Parser;
20294
20287
  return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);
20295
20288
  case 24 /* AssertEntries */:
20296
20289
  return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected);
20297
- case 25 /* StandaloneJSDoc */:
20298
- return;
20299
- case 26 /* Count */:
20290
+ case 25 /* Count */:
20300
20291
  return Debug.fail("ParsingContext.Count used as a context");
20301
20292
  default:
20302
20293
  Debug.assertNever(context);
@@ -24396,8 +24387,7 @@ var Parser;
24396
24387
  ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses";
24397
24388
  ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers";
24398
24389
  ParsingContext2[ParsingContext2["AssertEntries"] = 24] = "AssertEntries";
24399
- ParsingContext2[ParsingContext2["StandaloneJSDoc"] = 25] = "StandaloneJSDoc";
24400
- ParsingContext2[ParsingContext2["Count"] = 26] = "Count";
24390
+ ParsingContext2[ParsingContext2["Count"] = 25] = "Count";
24401
24391
  })(ParsingContext || (ParsingContext = {}));
24402
24392
  let Tristate;
24403
24393
  ((Tristate2) => {
@@ -24519,13 +24509,6 @@ var Parser;
24519
24509
  PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter";
24520
24510
  })(PropertyLikeParse || (PropertyLikeParse = {}));
24521
24511
  function parseJSDocCommentWorker(start = 0, length2) {
24522
- const saveParsingContext = parsingContext;
24523
- parsingContext |= 1 << 25 /* StandaloneJSDoc */;
24524
- const jsdoc = parseJSDocCommentWorkerWorker(start, length2);
24525
- parsingContext = saveParsingContext;
24526
- return jsdoc;
24527
- }
24528
- function parseJSDocCommentWorkerWorker(start, length2) {
24529
24512
  const content = sourceText;
24530
24513
  const end = length2 === void 0 ? content.length : start + length2;
24531
24514
  length2 = end - start;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.0.0-pr-52710-9",
5
+ "version": "5.0.0-pr-52696-39",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [