MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / line_count

Method line_count

src/editor/document.rs:26–28  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

24 }
25
26 pub fn line_count(&self) -> usize {
27 self.rope.len_lines().max(1)
28 }
29
30 pub fn len_chars(&self) -> usize {
31 self.rope.len_chars()

Callers 5

lineMethod · 0.45
line_to_charMethod · 0.45
insert_lineMethod · 0.45
delete_lineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected