mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Fix doc comment template on assignment expressions (#38032)
This commit is contained in:
@@ -363,6 +363,8 @@ namespace ts.JsDoc {
|
||||
// want to give back a JSDoc template for the 'b' or 'c' in 'namespace a.b.c { }'.
|
||||
return commentOwner.parent.kind === SyntaxKind.ModuleDeclaration ? undefined : { commentOwner };
|
||||
|
||||
case SyntaxKind.ExpressionStatement:
|
||||
return getCommentOwnerInfoWorker((commentOwner as ExpressionStatement).expression);
|
||||
case SyntaxKind.BinaryExpression: {
|
||||
const be = commentOwner as BinaryExpression;
|
||||
if (getAssignmentDeclarationKind(be) === AssignmentDeclarationKind.None) {
|
||||
|
||||
Reference in New Issue
Block a user