Skip to main content

TraceCloneOutput

Type Alias TraceCloneOutput 

Source
pub type TraceCloneOutput = CloneTrace;
Expand description

Concrete duplicate-code trace output returned by typed programmatic runs.

Aliased Type§

pub struct TraceCloneOutput {
    pub file: PathBuf,
    pub line: usize,
    pub matched_instance: Option<CloneInstance>,
    pub clone_groups: Vec<TracedCloneGroup>,
}

Fields§

§file: PathBuf

File passed to the trace request, root-relative when a group matches.

§line: usize

1-based line passed to the trace request or representative group line.

§matched_instance: Option<CloneInstance>

The matched clone instance, if one exists.

§clone_groups: Vec<TracedCloneGroup>

Clone groups matched by the trace request.