codn_ts
Version:
智能代码分析工具 - 支持语义搜索、调用链分析和代码结构可视化,对大模型/AI agent 友好
27 lines (26 loc) • 728 B
TypeScript
export interface ReferenceTriple {
caller: string;
callee: string;
location: string;
}
export interface SymbolReference {
symbol: string;
file: string;
line: number;
column: number;
kind: string;
callers: ReferenceTriple[];
callees: ReferenceTriple[];
definition?: {
file: string;
line: number;
column: number;
content: string;
};
}
export declare function analyzeProjectReferences(projectRoot: string): Promise<ReferenceTriple[]>;
export declare function analyzeSymbolReferences(projectRoot: string, symbolName: string, options?: {
includeExternal?: boolean;
maxDepth?: number;
caseSensitive?: boolean;
}): Promise<SymbolReference[]>;