Skip to main content

TracedCloneGroup

Type Alias TracedCloneGroup 

Source
pub type TracedCloneGroup = TracedCloneGroup;

Aliased Type§

pub struct TracedCloneGroup {
    pub fingerprint: String,
    pub token_count: usize,
    pub line_count: usize,
    pub instances: Vec<CloneInstance>,
    pub suggestion: RefactoringSuggestion,
    pub suggested_name: Option<String>,
}

Fields§

§fingerprint: String

Stable content fingerprint, usually dup:<8hex> and widened on rare report collisions.

§token_count: usize

Number of tokens in the duplicated block.

§line_count: usize

Number of lines in the duplicated block.

§instances: Vec<CloneInstance>

Root-relative clone instances in this group.

§suggestion: RefactoringSuggestion

Group-level refactoring suggestion.

§suggested_name: Option<String>

Best-effort name for the extracted function. Advisory only.