MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / takeDeferredPreParse

Function takeDeferredPreParse

src/extraction/kernel/index.ts:219–233  ·  view source on GitHub ↗
(
  filePath: string,
  source: string,
  language: Language
)

Source from the content-addressed store, hash-verified

217
218/** The hoisted preParse output for a just-deferred file, if it matches. */
219export function takeDeferredPreParse(
220 filePath: string,
221 source: string,
222 language: Language
223): string | null {
224 if (
225 deferSlot &&
226 deferSlot.filePath === filePath &&
227 deferSlot.source === source &&
228 deferSlot.language === language
229 ) {
230 return deferSlot.pre;
231 }
232 return null;
233}
234
235/** The raw table buffers + the cheap facts the orchestrator needs pre-decode. */
236export interface KernelRawResult {

Callers 3

extractFromSourceFunction · 0.90
tryKernelExtractRawFunction · 0.85
tryKernelExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected