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

Method collect_template_arguments

codegraph-kernel/src/ccpp/mod.rs:2290–2299  ·  view source on GitHub ↗

collectTemplateArguments (languages/c-cpp.ts).

(&self, node: Node<'t>, own: &HashSet<String>, names: &mut Vec<(String, Node<'t>)>)

Source from the content-addressed store, hash-verified

2288
2289 /// collectTemplateArguments (languages/c-cpp.ts).
2290 fn collect_template_arguments(&self, node: Node<'t>, own: &HashSet<String>, names: &mut Vec<(String, Node<'t>)>) {
2291 stack_guard!();
2292 for c in (0..node.named_child_count()).filter_map(|i| node.named_child(i)) {
2293 match c.kind() {
2294 "template_argument_list" => self.collect_type_names(c, own, names),
2295 "qualified_identifier" | "template_type" => self.collect_template_arguments(c, own, names),
2296 _ => {}
2297 }
2298 }
2299 }
2300
2301 // --- fn-ref capture (#756, cFamilySpec) ----------------------------------
2302

Callers 1

collect_type_namesMethod · 0.80

Calls 1

collect_type_namesMethod · 0.45

Tested by

no test coverage detected