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

Method text

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

Source from the content-addressed store, hash-verified

210
211impl<'t> Walker<'t> {
212 fn text(&self, node: Node) -> &'t str {
213 &self.src[node.byte_range()]
214 }
215 /// rubyConstructedClass (tree-sitter.ts): the class a call receiver
216 /// constructs, as written — `Foo` for `Foo.new(key)`, `Billing::Card` for
217 /// `Billing::Card.new`, `::Foo` for `::Foo.new`; None for any other

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected