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

Function takeDeferredPreParse

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

Source from the content-addressed store, hash-verified

174
175/** The hoisted preParse output for a just-deferred file, if it matches. */
176export function takeDeferredPreParse(
177 filePath: string,
178 source: string,
179 language: Language
180): string | null {
181 if (
182 deferSlot &&
183 deferSlot.filePath === filePath &&
184 deferSlot.source === source &&
185 deferSlot.language === language
186 ) {
187 return deferSlot.pre;
188 }
189 return null;
190}
191
192/** The raw table buffers + the cheap facts the orchestrator needs pre-decode. */
193export interface KernelRawResult {

Callers 3

extractFromSourceFunction · 0.90
tryKernelExtractRawFunction · 0.85
tryKernelExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected