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

Method text

codegraph-kernel/src/tsjs/mod.rs:344–346  ·  view source on GitHub ↗
(&self, node: Node)

Source from the content-addressed store, hash-verified

342 // --- small helpers --------------------------------------------------------
343
344 fn text(&self, node: Node) -> &'t str {
345 &self.src[node.byte_range()]
346 }
347
348 fn line_of(&self, node: Node) -> u32 {
349 node.start_position().row as u32 + 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected