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

Method collect_template_arguments

codegraph-kernel/src/ccpp/mod.rs:2305–2314  ·  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

2303
2304 /// collectTemplateArguments (languages/c-cpp.ts).
2305 fn collect_template_arguments(&self, node: Node<'t>, own: &HashSet<String>, names: &mut Vec<(String, Node<'t>)>) {
2306 stack_guard!();
2307 for c in (0..node.named_child_count()).filter_map(|i| node.named_child(i)) {
2308 match c.kind() {
2309 "template_argument_list" => self.collect_type_names(c, own, names),
2310 "qualified_identifier" | "template_type" => self.collect_template_arguments(c, own, names),
2311 _ => {}
2312 }
2313 }
2314 }
2315
2316 // --- fn-ref capture (#756, cFamilySpec) ----------------------------------
2317

Callers 1

collect_type_namesMethod · 0.80

Calls 1

collect_type_namesMethod · 0.45

Tested by

no test coverage detected