ripbug-ai-detector
Version:
🔥 RipBug AI Bug Detector - Built by an AI that rips its own bugs. Destroy AI-generated bugs before you commit.
32 lines • 1.04 kB
TypeScript
import { FunctionInfo } from '../types/analysis';
export interface EnhancedParserConfig {
enableTreeSitter?: boolean;
fallbackToRegex?: boolean;
debugMode?: boolean;
}
export declare class EnhancedASTParser {
private simpleParser;
private treeParser?;
private useTreeSitter;
private fallbackToRegex;
private debugMode;
constructor(config?: EnhancedParserConfig);
extractFunctions(content: string, filePath: string): FunctionInfo[];
extractFunctionCalls(content: string, filePath: string): Array<{
name: string;
file: string;
line: number;
column: number;
context: string;
arguments: string[];
argumentCount: number;
callType: 'function' | 'method' | 'constructor';
}>;
getParserStats(): {
usingTreeSitter: boolean;
fallbackEnabled: boolean;
parserType: 'tree-sitter' | 'regex' | 'hybrid';
};
setTreeSitterEnabled(enabled: boolean): void;
}
//# sourceMappingURL=ast-parser-enhanced.d.ts.map