Skip to main content
Module

x/deno2node/src/deps.deno.ts>DocumentSpan

Compile your Deno project to run on Node.js.
Go to Latest
class DocumentSpan
import { DocumentSpan } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Document span.

Constructors

new
protected
DocumentSpan()

Type Parameters

optional
TCompilerObject extends ts.DocumentSpan = ts.DocumentSpan

Properties

readonly
compilerObject: TCompilerObject

Gets the compiler object.

Methods

getNode(): Node<ts.Node>

Gets the node at the start of the text span.

getOriginalFileName(): string | undefined

Gets the original file name if the span represents a location that was remapped.

Gets the original text span if the span represents a location that was remapped.

Gets the source file this reference is in.

Gets the text span.