rustc_parse::parser::attr_wrapper

Function make_attr_token_stream

source
fn make_attr_token_stream(
    iter: impl Iterator<Item = FlatToken>,
    break_last_token: u32,
) -> AttrTokenStream
Expand description

Converts a flattened iterator of tokens (including open and close delimiter tokens) into an AttrTokenStream, creating an AttrTokenTree::Delimited for each matching pair of open and close delims.