pub type CloneInstance = CloneInstance;Expand description
Engine alias for fallow_types::duplicates::CloneInstance.
Aliased Type§
pub struct CloneInstance {
pub file: PathBuf,
pub start_line: usize,
pub end_line: usize,
pub start_col: usize,
pub end_col: usize,
pub fragment: String,
pub is_symlink: bool,
}Fields§
§file: PathBufPath to the file containing this clone instance.
start_line: usize1-based start line of the clone.
end_line: usize1-based end line of the clone.
start_col: usize0-based start column.
end_col: usize0-based end column.
fragment: StringThe actual source code fragment.
Omitted from JSON when the caller asked for a location-only payload
(fallow dupes --no-fragments, and the MCP find_dupes default). The
five location fields above address the same text, so a consumer that
wants the source reads it from the file.
is_symlink: boolWhether the file path is a symlink, or lies under a symlinked
directory, inside the project root. Omitted when false.
A clone with a symlinked instance can be the same file under two
paths, not copied code. duplicates.ignoreSymlinks (or
fallow dupes --ignore-symlinks) removes these instances.