Skip to main content

python_static_attribute_path

Function python_static_attribute_path 

Source
pub fn python_static_attribute_path<'tree>(
    node: Node<'tree>,
) -> Option<Vec<Node<'tree>>>
Expand description

The identifier nodes in one static Python value path, from root to leaf.

Dynamic receivers and subscripts have no static path. Keeping the nodes lets callers combine the parser shape with lexical/import binding facts without reparsing a dotted source spelling.