Skip to main content

Module clones

Module clones 

Source
Expand description

Python’s clone-detection token and AST-signature normalization.

analyzer/python/clones.rs in brokk-bifrost-analysis keeps the entry point: it reads the declaration’s source through the analyzer and assembles the analysis-owned CloneCandidateData. Everything that knows what a Python token is lives here.

Structs§

PythonClonePreparation

Functions§

prepare_python_clone
Parse and prepare one Python clone candidate, stopping before AST-label work when the normalized token threshold cannot be met.