Skip to main content
Module

x/ts_morph/mod.ts>DocumentSpan

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class DocumentSpan
import { DocumentSpan } from "https://deno.land/x/ts_morph@15.1.0/mod.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.