MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / line_of

Method line_of

codegraph-kernel/src/ccpp/mod.rs:443–445  ·  view source on GitHub ↗
(&self, node: Node)

Source from the content-addressed store, hash-verified

441 &self.src[node.byte_range()]
442 }
443 fn line_of(&self, node: Node) -> u32 {
444 node.start_position().row as u32 + 1
445 }
446 fn col_of(&self, node: Node) -> u32 {
447 util::col16(self.src, &self.line_starts, node.start_position().row, node.start_byte())
448 }

Callers 2

push_ref_atMethod · 0.45
create_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected