Fix factorial jsdoc search:chained assignments (#23115)

This commit is contained in:
Nathan Shively-Sanders authored and GitHub committed 2018-04-04 08:57:13 -07:00
1 parent 5b928a3d00
commit eb3a9d05df
4 files changed
+707 -1

No files matched your search

+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);
}