Function getFollowingComment

    • Checks for the presence of a comment following the given node and returns it.

      This method is experimental.

      Parameters

      • sourceCode: SourceCode
      • astNode: ESLintOrTSNode

        The AST node to get the comment for.

      Returns Token | null

      The comment token containing the comment for the given node or null if not found.