interface Deno.lint.SourceCode
unstable
Properties #
Methods #
#getAncestors(node: Node): Node[]
Returns array of ancestors of the current node, excluding the current node.
#getAllComments(): Array<LineComment | BlockComment>
Get all comments inside the source.
#getCommentsBefore(node: Node): Array<LineComment | BlockComment>
Get leading comments before a node.
#getCommentsAfter(node: Node): Array<LineComment | BlockComment>
Get trailing comments after a node.
#getCommentsInside(node: Node): Array<LineComment | BlockComment>
Get comments inside a node.