ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
19 lines (18 loc) • 500 B
TypeScript
import * as ts from "typescript";
import { Node } from "./Node";
import { ReferencedSymbol } from "./../tools";
export declare class Identifier extends Node<ts.Identifier> {
/**
* Gets the text for the identifier.
*/
getText(): string;
/**
* Renames the identifier.
* @param newName - New name of the identifier.
*/
rename(newName: string): void;
/**
* Finds all the references of this identifier.
*/
findReferences(): ReferencedSymbol[];
}