File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2172,8 +2172,7 @@ namespace ts {
2172
2172
return;
2173
2173
}
2174
2174
const host = getJSDocHost(node);
2175
- if (host &&
2176
- isExpressionStatement(host) &&
2175
+ if (isExpressionStatement(host) &&
2177
2176
isBinaryExpression(host.expression) &&
2178
2177
getSpecialPropertyAssignmentKind(host.expression) === SpecialPropertyAssignmentKind.PrototypeProperty) {
2179
2178
const symbol = getSymbolOfNode(host.expression.left);
Original file line number Diff line number Diff line change @@ -1927,11 +1927,7 @@ namespace ts {
1927
1927
}
1928
1928
1929
1929
export function getJSDocHost ( node : Node ) : HasJSDoc {
1930
- const comment = findAncestor ( node . parent ,
1931
- node => ! ( isJSDocNode ( node ) || node . flags & NodeFlags . JSDoc ) ? "quit" : node . kind === SyntaxKind . JSDocComment ) ;
1932
- if ( comment ) {
1933
- return ( comment as JSDoc ) . parent ;
1934
- }
1930
+ return Debug . assertDefined ( findAncestor ( node . parent , isJSDoc ) ) . parent ;
1935
1931
}
1936
1932
1937
1933
export function getTypeParameterFromJsDoc ( node : TypeParameterDeclaration & { parent : JSDocTemplateTag } ) : TypeParameterDeclaration | undefined {
You can’t perform that action at this time.
0 commit comments