Skip to main content

Module adapter

Module adapter 

Source
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§

PYTHON_FILE_EXTENSION

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