Doc impact
doc_impact
Doc impact analysis — doc refs, undocumented symbols, stale signatures.
analyze_doc_impact(root, symbols)
Full doc impact analysis for a set of symbols.
Combines doc refs, undocumented detection, and stale signature detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
Project root directory. |
required |
symbols
|
list[str]
|
Symbol names to analyze. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Dict with |
Source code in packages/axm-ast/src/axm_ast/core/doc_impact.py
find_doc_refs(root, symbols)
Find documentation references for given symbols.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
Project root directory. |
required |
symbols
|
list[str]
|
Symbol names to search for in docs. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, list[dict[str, Any]]]
|
Dict mapping symbol name to list of references |
dict[str, list[dict[str, Any]]]
|
(each with |
Source code in packages/axm-ast/src/axm_ast/core/doc_impact.py
find_stale_signatures(root, symbols)
Detect stale code signatures in documentation.
Compares def / class signatures in doc code blocks
against actual AST signatures.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
Project root directory. |
required |
symbols
|
list[str]
|
Symbol names to check. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of dicts with |
list[dict[str, Any]]
|
|
Source code in packages/axm-ast/src/axm_ast/core/doc_impact.py
find_undocumented(doc_refs)
Return symbols that have no documentation references.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
doc_refs
|
dict[str, list[dict[str, Any]]]
|
Output of |
required |
Returns:
| Type | Description |
|---|---|
list[str]
|
List of symbol names with empty references. |