MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / line_count

Method line_count

atomic-core/src/change/credit.rs:572–574  ·  view source on GitHub ↗

Get the number of lines in this range.

(&self)

Source from the content-addressed store, hash-verified

570
571 /// Get the number of lines in this range.
572 pub fn line_count(&self) -> u64 {
573 self.end_line - self.start_line + 1
574 }
575
576 /// Check if a line number is in this range.
577 pub fn contains(&self, line: u64) -> bool {

Callers 2

statsMethod · 0.45
total_linesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected