refakts
Version:
TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
16 lines • 624 B
TypeScript
import { Node } from 'ts-morph';
export declare class ExtractionScopeAnalyzer {
findExtractionScope(node: Node): Node;
findContainingStatement(node: Node): Node | undefined;
isValidExtractionScope(parent: Node | undefined): parent is Node;
findScopeName(node: Node): string;
private searchForValidScope;
private checkCurrentNodeForValidScope;
private isContainingStatement;
private searchParentScopes;
private getScopeNameForNode;
private getFunctionScopeName;
private getOtherScopeNames;
private getSpecialScopeNames;
}
//# sourceMappingURL=extraction-scope-analyzer.d.ts.map