Skip to main content

lower_bibliography_directive

Function lower_bibliography_directive 

Source
pub(crate) fn lower_bibliography_directive(
    document: &mut Document,
    root: NodeId,
    args: &[SetArg],
    span: &SourceSpan,
    source_file: &Path,
    diagnostics: &mut Vec<Diagnostic>,
)
Expand description

Lower a top-level #bibliography("refs.bib") directive into a single [NodeKind::Bibliography] node hanging off the document root. The literal path is recorded under src; the path resolved against the source file’s directory is recorded under resolved_path so the later BibTeX reader can open the database without re-deriving the location.