Structs§
- Python
Direct Scope Binding - Python
Lexical Scope Inventory - Function-scope Python bindings discovered from tree-sitter structure.
Enums§
Functions§
- python_
comprehension_ binds_ name_ at - Whether
referencereads a target introduced by an enclosing comprehension. - python_
direct_ scope_ bindings_ bounded - Return the bindings introduced directly by
node. - python_
is_ type_ parameter_ binder - Whether this identifier is the binder (rather than a bound/constraint use) of one structured PEP 695 type parameter.
- python_
module_ or_ class_ scope_ binds_ name_ bounded - Whether a module or class execution scope binds
target_nameanywhere in its direct scope. Nested callable and class bodies are separate scopes, but their headers still execute in this scope. A wildcard import keeps the name’s runtime identity open even when it does not expose a static binder. - python_
name_ resolution_ at - Resolve
namethrough the nearest enclosing function scope. This is the structured fallback for references inside nested functions that do not have their own indexedCodeUnitscope snapshot. - python_
type_ parameter_ binds_ name_ at - Whether
referencereads a PEP 695 type parameter declared by its enclosing class, function, or type-alias definition. - python_
unambiguous_ module_ class_ binding_ bounded