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

Function takeDeferredPreParse

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

Source from the content-addressed store, hash-verified

201
202/** The hoisted preParse output for a just-deferred file, if it matches. */
203export function takeDeferredPreParse(
204 filePath: string,
205 source: string,
206 language: Language
207): string | null {
208 if (
209 deferSlot &&
210 deferSlot.filePath === filePath &&
211 deferSlot.source === source &&
212 deferSlot.language === language
213 ) {
214 return deferSlot.pre;
215 }
216 return null;
217}
218
219/** The raw table buffers + the cheap facts the orchestrator needs pre-decode. */
220export interface KernelRawResult {

Callers 3

extractFromSourceFunction · 0.90
tryKernelExtractRawFunction · 0.85
tryKernelExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected