pub fn syntax_node_to_token_tree<Ctx, SpanMap>(
node: &SyntaxNode,
map: SpanMap,
span: SpanData<Ctx>,
mode: DocCommentDesugarMode,
) -> TopSubtree<SpanData<Ctx>>
Expand description
Converts a syntax tree to a [tt::Subtree
] using the provided span map to populate the
subtree’s spans.