Skip to main content

emit

Function emit 

Source
pub(crate) fn emit(
    sync: bool,
    krate: &TokenStream,
    fresh: &BTreeMap<String, (Ident, TokenStream)>,
    nodes: Vec<Node>,
    plan: &Plan,
    positions: &[usize],
    mentions: &[BTreeSet<String>],
    ids: &mut usize,
    gates: &[Gate],
) -> Vec<Stmt>
Expand description

Generate a region’s statements from its plan. positions are the nodes’ statement indices in the block and mentions what each statement of the block mentions.