Skip to main content

python_module_fq

Function python_module_fq 

Source
pub fn python_module_fq(file: &ProjectFile) -> FqName
Expand description

Build the structured module-path prefix for a Python declaration.

Ordinary modules render as a dotted path such as mypkg.subpkg.mymodule, with each original path component represented by one SegmentKind::Package segment. Hidden directories such as .agent and .github are also legal components in the analyzer’s path-derived Python convention, but their leading dot is ambiguous after a rendered name has been joined.

Build the structured name from the file path’s original components so hidden-directory segments stay intact in cold extraction, synthesized module units, and persisted reconstruction.