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

Method text

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

Source from the content-addressed store, hash-verified

438
439impl<'t> Walker<'t> {
440 fn text(&self, node: Node) -> &'t str {
441 &self.src[node.byte_range()]
442 }
443 fn line_of(&self, node: Node) -> u32 {
444 node.start_position().row as u32 + 1
445 }

Callers 15

extract_name_rawMethod · 0.45
receiver_type_ofMethod · 0.45
return_type_ofMethod · 0.45
visibility_ofMethod · 0.45
is_const_declarationMethod · 0.45
visit_nodeMethod · 0.45
extract_enum_membersMethod · 0.45
extract_variableMethod · 0.45
extract_importMethod · 0.45
extract_callMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected