pub fn token_tree_to_syntax_node<Ctx>(
tt: &Subtree<SpanData<Ctx>>,
entry_point: TopEntryPoint,
edition: Edition,
) -> (Parse<SyntaxNode>, SpanMap<Ctx>)Expand description
Converts a tt::Subtree back to a SyntaxNode.
The produced SpanMap contains a mapping from the syntax nodes offsets to the subtree’s spans.