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

Method line_of

codegraph-kernel/src/ruby.rs:233–235  ·  view source on GitHub ↗
(&self, node: Node)

Source from the content-addressed store, hash-verified

231 Some(self.text(made))
232 }
233 fn line_of(&self, node: Node) -> u32 {
234 node.start_position().row as u32 + 1
235 }
236 fn col_of(&self, node: Node) -> u32 {
237 util::col16(self.src, &self.line_starts, node.start_position().row, node.start_byte())
238 }

Callers 4

push_ref_atMethod · 0.45
create_nodeMethod · 0.45
try_visit_hookMethod · 0.45
extract_callMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected