syntax_bridge

Function syntax_node_to_token_tree

Source
pub fn syntax_node_to_token_tree<Ctx, SpanMap>(
    node: &SyntaxNode,
    map: SpanMap,
    span: SpanData<Ctx>,
    mode: DocCommentDesugarMode,
) -> TopSubtree<SpanData<Ctx>>
where SpanData<Ctx>: Copy + Debug, SpanMap: SpanMapper<SpanData<Ctx>>,
Expand description

Converts a syntax tree to a [tt::Subtree] using the provided span map to populate the subtree’s spans.