refakts
Version:
TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
15 lines • 726 B
TypeScript
import { Project, SourceFile } from 'ts-morph';
import { VariableLocation, VariableLocationResult, VariableNodeResult } from './variable-result-builder';
export { VariableLocation, VariableLocationResult, VariableNodeResult };
export declare class VariableLocator {
private project;
private positionFinder;
private nodeMatcher;
private resultBuilder;
constructor(project?: Project);
findVariableReferences(filePath: string, variableName: string): Promise<VariableLocationResult>;
findVariableNodesByPositionSync(sourceFile: SourceFile, line: number, column: number): VariableNodeResult;
private loadSourceFile;
private getDeclarationOrThrow;
}
//# sourceMappingURL=variable-locator.d.ts.map