Skip to main content

decode_python_string_value

Function decode_python_string_value 

Source
pub fn decode_python_string_value(
    node: Node<'_>,
    source: &str,
) -> Result<String, &'static str>
Expand description

Decode the value of a tree-sitter-selected Python string expression.

Callers must select the literal from syntax before invoking this helper; this function classifies only the selected expression’s value.