Skip to main content

python_parameter_label_node

Function python_parameter_label_node 

Source
pub fn python_parameter_label_node(node: Node<'_>) -> Option<Node<'_>>
Expand description

The identifier node that names one parameter’s binding.

The grammar gives default_parameter and typed_default_parameter a name field but gives typed_parameter and the two splat patterns none, so a caller that reads only the field loses the binding name of every annotated parameter. Every Python surface that names parameters reads them through this function.