Expand description
Python structural spec: maps tree-sitter-python node types onto the
normalized kind vocabulary and extracts role edges from AST fields.
See src/analyzer/structural/spec.rs for the contract and
.agent/ISSUE_328_SEARCH_AST_EXECPLAN.md for the design.
Structs§
Constants§
- PYTHON_
KIND_ TABLE - Grammar node-type → normalized kind. Every name here must exist in the
tree-sitter-python grammar;
tests::python_kind_table_matches_grammarasserts that, so a grammar bump that renames a node fails loudly.
Statics§
Functions§
- callee_
spine_ step - Grammar steps for the shared call-callee spine. A value expression has no step.
- python_
comparison_ shape - Read comparison operands and operator tokens from the grammar node. Python
comparison operators are repeated fields; named operator aliases such as
is notare distinguished from operands by their field name.