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

Method token_count

atomic-core/src/change/ops.rs:228–230  ·  view source on GitHub ↗

Returns the total number of token operations across all lines.

(&self)

Source from the content-addressed store, hash-verified

226
227 /// Returns the total number of token operations across all lines.
228 pub fn token_count(&self) -> usize {
229 self.line_ops.iter().map(|line| line.leaf_op_count()).sum()
230 }
231
232 /// Returns true if this file has any operations.
233 pub fn has_operations(&self) -> bool {

Callers

nothing calls this directly

Calls 2

leaf_op_countMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected