Expand description
The Python answers behind PythonAdapter.
LanguageAdapter is analysis-owned, so the trait impl itself stays in
analyzer/python/adapter.rs; every answer it gives comes from here or from
crate::declarations. synthesize_hydrated_units is the one exception:
it mutates FileState, an analysis type, and stays with the shell.
Constants§
Statics§
- PYTHON_
COGNITIVE_ CONFIG - Tree-sitter node-kind mapping used by the cognitive-complexity scorer
for Python. Mirrors
ai.brokk.analyzer.python.CognitiveComplexityAnalysis.
Functions§
- is_
string_ line_ data - Literal string data may occupy a long physical line, but replacement fields remain executable structure. Bytes and implicit concatenation use the same grammar nodes. The caller validates the finite source/tree envelope first.
- python_
extract_ call_ receiver