Interface CommentProvider

Provides comments for AST nodes.

interface CommentProvider {
    getComment(node: AstNode): undefined | string;
}

Implemented by

Methods

Methods

  • Returns the comment associated with the specified AST node.

    Parameters

    • node: AstNode

      The AST node to get the comment for.

    Returns undefined | string

    The comment associated with the specified AST node or undefined if there is no comment.