symref
Version:
Static code checker for AI code agents (Windsurf, Cline, etc.)
32 lines (31 loc) • 632 B
TypeScript
/**
* シンボル参照の分析結果
*/
export interface ReferenceResult {
symbol: string;
type: SymbolType;
definition: SymbolLocation;
references: SymbolLocation[];
isReferenced: boolean;
}
/**
* シンボルの位置情報
*/
export interface SymbolLocation {
filePath: string;
line: number;
column: number;
context: string;
}
/**
* シンボル情報
*/
export interface SymbolInfo {
type: string;
name: string;
context: string;
}
/**
* シンボルの種類
*/
export type SymbolType = 'function' | 'interface' | 'class' | 'variable' | 'method' | 'property' | 'enum';