build_expn_tree in rustc_mir_transform::coverage::expansion - Rust
Description: Extracts raw span/BCB pairs from potentially-different syntax contexts, and arranges them into an “expansion tree” based on their expansion call-sites.

Skip to main content

## build_expn_tree

# Function build_expn_tree

Source

    pub(crate) fn build_expn_tree(
        mir_body: &Body<'_>,
        hir_info: &ExtractedHirInfo,
        graph: &CoverageGraph,
    ) -> Result<ExpnTree, MappingsError>

Expand description

Extracts raw span/BCB pairs from potentially-different syntax contexts, and arranges them into an “expansion tree” based on their expansion call-sites.