fix jsdoc iterator on expression of export assignment (#30558)

This commit is contained in:
Wenlu Wang
2019-04-25 16:53:06 -05:00
committed by Ryan Cavanaugh
parent 867c992021
commit b8e3c41ee1
7 changed files with 101 additions and 0 deletions

View File

@@ -2221,6 +2221,7 @@ namespace ts {
function getNextJSDocCommentLocation(node: Node) {
const parent = node.parent;
if (parent.kind === SyntaxKind.PropertyAssignment ||
parent.kind === SyntaxKind.ExportAssignment ||
parent.kind === SyntaxKind.PropertyDeclaration ||
parent.kind === SyntaxKind.ExpressionStatement && node.kind === SyntaxKind.PropertyAccessExpression ||
getNestedModuleDeclaration(parent) ||