Skip to main content

Module syntax

Module syntax 

Source

Structs§

PythonOverloadDecoratorBindings

Functions§

decorator_callee
Return a decorator’s callable expression, peeling an optional invocation.
expression_name_node
Return the name-bearing node of a Python expression using tree-sitter fields.
python_deferred_annotation_identifier_ranges
Parse one exactly mapped deferred annotation and return its identifier ranges.
python_deferred_annotation_tree
Parse one quoted annotation expression while preserving its original source byte coordinates. Literal string values and arbitrary strings are rejected by the same structured gate used by inverse membership.
python_node_is_in_annotation
Whether node is contained by a parser field that Python evaluates as an annotation rather than as an ordinary expression.