ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
41 lines (40 loc) • 918 B
TypeScript
import * as ts from "typescript";
import { SourceFile, Node } from "./../../../compiler";
import { TextSpan } from "./TextSpan";
/**
* Definition info.
*/
export declare class DefinitionInfo<TCompilerObject extends ts.DefinitionInfo = ts.DefinitionInfo> {
/**
* 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 kind.
*/
getKind(): ts.ScriptElementKind;
/**
* Gets the name.
*/
getName(): string;
/**
* Gets the container kind.
*/
getContainerKind(): ts.ScriptElementKind;
/**
* Gets the container name.
*/
getContainerName(): string;
/**
* Gets the definition node.
*/
getNode(): Node | undefined;
}