Rulvar API reference / @rulvar/core / citationExcerptOf
Function: citationExcerptOf()
ts
function citationExcerptOf(
resolve,
row,
window): string | undefined;Defined in: packages/core/src/orchestrator/citation-audit.ts:447
Resolves one sampled citation's excerpt through the host's pure snapshot resolver. The FIRST cited line failing to resolve returns undefined (an unsupported citation by doctrine); later lines simply end the excerpt (a range past the file's end reads as far as the snapshot goes).
Parameters
| Parameter | Type |
|---|---|
resolve | (target) => string | undefined |
row | Pick<CitationAuditRow, "path" | "line" | "endLine"> |
window | number |
Returns
string | undefined