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

Function takeDeferredPreParse

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

Source from the content-addressed store, hash-verified

231
232/** The hoisted preParse output for a just-deferred file, if it matches. */
233export function takeDeferredPreParse(
234 filePath: string,
235 source: string,
236 language: Language
237): string | null {
238 if (
239 deferSlot &&
240 deferSlot.filePath === filePath &&
241 deferSlot.source === source &&
242 deferSlot.language === language
243 ) {
244 return deferSlot.pre;
245 }
246 return null;
247}
248
249/** The raw table buffers + the cheap facts the orchestrator needs pre-decode. */
250export interface KernelRawResult {

Callers 4

extractWithGrammarFunction · 0.90
tryKernelExtractRawFunction · 0.85
tryKernelExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected