Function getFollowingComment
- get
Following (sourceCode, astNode): Token | nullComment 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.
Checks for the presence of a comment following the given node and returns it.
This method is experimental.