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

    Parameters

    • node: Node

      Node being processed.

    • sourceFile: SourceFile

      The source file of the Node.

    Returns {
        comments: string[];
        lastComment: string;
        lastParsed: comment_parser.Block;
        parsed: comment_parser.Block[];
    }

    The parsed leading comments.

    • comments: string[]
    • lastComment: string
    • lastParsed: comment_parser.Block
    • parsed: comment_parser.Block[]