• Parses all leading JSDoc like block comments for the given Node.

    Parameters

    • node: Node | Node

      Node being processed.

    • sourceFile: SourceFile | SourceFile

      The TS source file node.

    • Optionaloptions: Options

      Options for comment-parser. The default is to preserve spacing in comment descriptions. Please refer to the comment-parser documentation for options available. Currently, comment-parser doesn't export the Options.

    Returns ParsedLeadingComments

    The parsed leading comments.