getLeadingDocComment
eslint-plugin-typedoc / _internal/doc-comments / getLeadingDocComment
Function: getLeadingDocComment()
getLeadingDocComment(
sourceCode,node):Comment|null
Defined in: _internal/doc-comments.ts:51
Get the closest leading documentation block comment attached to a node. A comment is considered attached when it ends on the previous line.
Parametersโ
sourceCodeโ
SourceCode
nodeโ
Node
Returnsโ
Comment | null