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

Method text

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

Source from the content-addressed store, hash-verified

500
501impl<'t> Walker<'t> {
502 fn text(&self, node: Node) -> &'t str {
503 &self.src[node.byte_range()]
504 }
505 fn line_of(&self, node: Node) -> u32 {
506 node.start_position().row as u32 + 1
507 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected