"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/services/completions.ts" between
TypeScript-4.4.2.tar.gz and TypeScript-4.4.3.tar.gz

About: Microsoft’s TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

completions.ts  (TypeScript-4.4.2):completions.ts  (TypeScript-4.4.3)
skipping to change at line 1341 skipping to change at line 1341
} }
let parent = contextToken.parent; let parent = contextToken.parent;
if (contextToken.kind === SyntaxKind.DotToken || contextToken.kind = == SyntaxKind.QuestionDotToken) { if (contextToken.kind === SyntaxKind.DotToken || contextToken.kind = == SyntaxKind.QuestionDotToken) {
isRightOfDot = contextToken.kind === SyntaxKind.DotToken; isRightOfDot = contextToken.kind === SyntaxKind.DotToken;
isRightOfQuestionDot = contextToken.kind === SyntaxKind.Question DotToken; isRightOfQuestionDot = contextToken.kind === SyntaxKind.Question DotToken;
switch (parent.kind) { switch (parent.kind) {
case SyntaxKind.PropertyAccessExpression: case SyntaxKind.PropertyAccessExpression:
propertyAccessToConvert = parent as PropertyAccessExpres sion; propertyAccessToConvert = parent as PropertyAccessExpres sion;
node = propertyAccessToConvert.expression; node = propertyAccessToConvert.expression;
if ((isCallExpression(node) || isFunctionLike(node)) && const leftmostAccessExpression = getLeftmostAccessExpres
node.end === contextToken.pos && sion(propertyAccessToConvert);
node.getChildCount(sourceFile) && if (nodeIsMissing(leftmostAccessExpression) ||
last(node.getChildren(sourceFile)).kind !== SyntaxKi ((isCallExpression(node) || isFunctionLike(node)) &&
nd.CloseParenToken) { node.end === contextToken.pos &&
node.getChildCount(sourceFile) &&
last(node.getChildren(sourceFile)).kind !== Synt
axKind.CloseParenToken)) {
// This is likely dot from incorrectly parsed expres sion and user is starting to write spread // This is likely dot from incorrectly parsed expres sion and user is starting to write spread
// eg: Math.min(./**/) // eg: Math.min(./**/)
// const x = function (./**/) {} // const x = function (./**/) {}
// ({./**/})
return undefined; return undefined;
} }
break; break;
case SyntaxKind.QualifiedName: case SyntaxKind.QualifiedName:
node = (parent as QualifiedName).left; node = (parent as QualifiedName).left;
break; break;
case SyntaxKind.ModuleDeclaration: case SyntaxKind.ModuleDeclaration:
node = (parent as ModuleDeclaration).name; node = (parent as ModuleDeclaration).name;
break; break;
case SyntaxKind.ImportType: case SyntaxKind.ImportType:
 End of changes. 2 change blocks. 
5 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)