refakts
Version:
TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
28 lines • 1.11 kB
TypeScript
import { RefactoringCommand, CommandOptions } from '../command';
export declare class VariableLocatorCommand implements RefactoringCommand {
readonly name = "variable-locator";
readonly description = "Find variable declarations and all their usages";
readonly complete = true;
private astService;
execute(target: string, options: CommandOptions): Promise<void>;
private executeLocatorOperation;
private performLocatorOperation;
private findTargetNode;
private findAndFormatReferences;
private handleExecutionError;
validateOptions(options: CommandOptions): void;
getHelpText(): string;
private processTarget;
private formatAsLocations;
private addDeclarationLocation;
private addUsageLocations;
private outputResults;
private getVariableName;
private extractCandidateNameOrThrow;
private isIdentifierNode;
private extractCandidateName;
private trySimpleTextExtraction;
private tryVariableDeclarationExtraction;
private tryIdentifierDescendantExtraction;
}
//# sourceMappingURL=variable-locator-command.d.ts.map