symref
Version:
Static code checker for AI code agents (Windsurf, Cline, etc.)
26 lines • 1.05 kB
TypeScript
import { AnalyzerOptions } from '../types/AnalyzerOptions.js';
import { CallGraphResult, CallPath } from '../types/CallGraphTypes.js';
import { SymbolInfo } from '../types/SymbolTypes.js';
export interface SymbolReferences {
definition: string;
dependencies: string[];
callers: string[];
}
export interface AnalyzeSymbolOptions {
includeInternalReferences?: boolean;
}
export declare class SymbolReferenceAnalyzer {
private options;
constructor(options: AnalyzerOptions);
static analyze(symbol: string): Promise<SymbolReferences>;
analyzeSymbol(symbol: string, options?: AnalyzeSymbolOptions): {
references: any[];
};
findFiles(): Promise<string[]>;
findUnreferencedSymbols(file: string): Promise<SymbolInfo[]>;
checkFile(file: string): string[];
buildCallGraph(entryPoint: string): CallGraphResult;
traceCallPath(from: string, to: string): Promise<CallPath[]>;
suggestTest(symbol: string, targetSymbol: string): Promise<string>;
}
//# sourceMappingURL=symbol-reference-analyzer.d.ts.map