Skip to main content

declared_stage

Function declared_stage 

Source
pub fn declared_stage(file: &File) -> Option<Stage>
Expand description

The stage a file’s @stage: header declares, if any.

The loader merges every library’s prelude into one file and drops the headers, so each caller that merges has to read this off first and record which entries it covers – see compile_document_cst_with_stages.