@@ -100,7 +100,7 @@ var ts;
100100 // The following is baselined as a literal template type without intervention
101101 /** The version of the TypeScript compiler release */
102102 // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103- ts.version = "4.4.2 ";
103+ ts.version = "4.4.3 ";
104104 /* @internal */
105105 var Comparison;
106106 (function (Comparison) {
@@ -118027,6 +118027,10 @@ var ts;
118027118027 });
118028118028 parsedConfigs = undefined;
118029118029 }
118030+ if (packageJsonMap) {
118031+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118032+ packageJsonMap = undefined;
118033+ }
118030118034 }
118031118035 function getCurrentBuilderProgram() {
118032118036 return builderProgram;
@@ -126702,13 +126706,16 @@ var ts;
126702126706 case 204 /* PropertyAccessExpression */:
126703126707 propertyAccessToConvert = parent;
126704126708 node = propertyAccessToConvert.expression;
126705- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
126706- node.end === contextToken.pos &&
126707- node.getChildCount(sourceFile) &&
126708- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
126709+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
126710+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
126711+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
126712+ node.end === contextToken.pos &&
126713+ node.getChildCount(sourceFile) &&
126714+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
126709126715 // This is likely dot from incorrectly parsed expression and user is starting to write spread
126710126716 // eg: Math.min(./**/)
126711126717 // const x = function (./**/) {}
126718+ // ({./**/})
126712126719 return undefined;
126713126720 }
126714126721 break;
0 commit comments