deno.com

interface Deno.lint.SourceCode

unstable

Properties #

#text: string

Get the full source code.

Get the root node of the file. It's always the Program node.

Methods #

#getText(node?: Node): string

Get the source test of a node. Omit node to get the full source code.

Returns array of ancestors of the current node, excluding the current node.