UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

25 lines (24 loc) 616 B
import * as ts from "typescript"; import { Node, SourceFile } from "./../../../compiler"; import { TextSpan } from "./TextSpan"; /** * Document span. */ export declare class DocumentSpan<TCompilerObject extends ts.DocumentSpan = ts.DocumentSpan> { /** * Gets the compiler object. */ readonly compilerObject: TCompilerObject; /** * Gets the source file this reference is in. */ getSourceFile(): SourceFile; /** * Gets the text span. */ getTextSpan(): TextSpan; /** * Gets the node at the start of the text span. */ getNode(): Node<ts.Node>; }