Skip to main content

decode_python_tree

Function decode_python_tree 

Source
pub fn decode_python_tree(
    cx: &mut ReadCx<'_>,
    source_id: impl Into<String>,
    input: Input,
) -> Result<LocatedExprTree>
Expand description

Decode into a source-origin tree. The root owns the file, statements own their exact ranges, and token children retain the leaf spans.