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

Method join

codegraph-kernel/src/rustlang.rs:716–718  ·  view source on GitHub ↗
(prefix: &str, seg: &str)

Source from the content-addressed store, hash-verified

714 fn emit_use_binding_refs(&mut self, node: Node<'t>, from_row: u32) {
715 let mut paths: Vec<(String, Node)> = Vec::new();
716 fn join(prefix: &str, seg: &str) -> String {
717 if prefix.is_empty() { seg.to_string() } else { format!("{prefix}::{seg}") }
718 }
719 fn collect<'t>(w: &Walker<'t>, n: Node<'t>, prefix: &str, paths: &mut Vec<(String, Node<'t>)>) {
720 match n.kind() {
721 "identifier" => paths.push((join(prefix, w.text(n)), n)),

Callers 15

preceding_docstringFunction · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
posix_normalizeFunction · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45
create_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected