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

Method line_of

codegraph-kernel/src/rustlang.rs:226–228  ·  view source on GitHub ↗
(&self, node: Node)

Source from the content-addressed store, hash-verified

224 &self.src[node.byte_range()]
225 }
226 fn line_of(&self, node: Node) -> u32 {
227 node.start_position().row as u32 + 1
228 }
229 fn col_of(&self, node: Node) -> u32 {
230 util::col16(self.src, &self.line_starts, node.start_position().row, node.start_byte())
231 }

Callers 2

push_ref_atMethod · 0.45
create_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected