/** * Pass #85: missing-stream (category: performance) * * Detects whole-file / whole-response reads that load the entire payload into * memory when a streaming approach would be more memory-efficient. * * Detection strategy (source-text heuristics): * JS/TS — fs.readFile / fs.readFileSync / response.text() / response.json() * in a method body that has no adjacent streaming indicator * (.pipe / for-await-of / createReadStream). * Java — Files.readAllBytes / Files.readAllLines / Files.readString or a * new BufferedReader constructor. * Python — file_handle.read() (whole-file read). * * Languages: JavaScript, TypeScript, Java, Python. Bash / Rust — skipped. */ import type { AnalysisPass, PassContext } from '../../graph/analysis-pass.js'; export interface MissingStreamResult { wholeFileReads: Array<{ line: number; method: string; }>; } export declare class MissingStreamPass implements AnalysisPass { readonly name = "missing-stream"; readonly category: "performance"; run(ctx: PassContext): MissingStreamResult; } //# sourceMappingURL=missing-stream-pass.d.ts.map