Fix factorial jsdoc search:chained assignments (#23115)

This commit is contained in:
Nathan Shively-Sanders
2018-04-04 08:57:13 -07:00
committed by GitHub
parent 5b928a3d00
commit eb3a9d05df
4 changed files with 707 additions and 1 deletions
+1 -1
View File
@@ -1810,7 +1810,6 @@ namespace ts {
if (parent &&
(parent.kind === SyntaxKind.PropertyAssignment ||
parent.kind === SyntaxKind.PropertyDeclaration ||
isBinaryExpression(parent) && getSpecialPropertyAssignmentKind(parent) !== SpecialPropertyAssignmentKind.None ||
getNestedModuleDeclaration(parent))) {
getJSDocCommentsAndTagsWorker(parent);
}
@@ -1829,6 +1828,7 @@ namespace ts {
getJSDocCommentsAndTagsWorker(parent.parent.parent);
}
if (isBinaryExpression(node) && getSpecialPropertyAssignmentKind(node) !== SpecialPropertyAssignmentKind.None ||
parent && isBinaryExpression(parent) && getSpecialPropertyAssignmentKind(parent) !== SpecialPropertyAssignmentKind.None ||
node.kind === SyntaxKind.PropertyAccessExpression && node.parent && node.parent.kind === SyntaxKind.ExpressionStatement) {
getJSDocCommentsAndTagsWorker(parent);
}