Skip to main content

flatten_registry_in_source_order

Function flatten_registry_in_source_order 

Source
pub(crate) fn flatten_registry_in_source_order<'a>(
    lex_out: &BorrowedLexOutput<'a>,
) -> Vec<NodeRef<'a>>
Expand description

Walk lex_out.normalized byte-by-byte; for every PUA sentinel, query the registry and append the resulting [NodeRef] to a freshly-allocated Vec in source order.

Returns an empty vec when the registry is empty (the typical branch when Options::aozora_enabled is false).