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

Method collect_template_arguments

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

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

Callers 1

collect_type_namesMethod · 0.80

Calls 1

collect_type_namesMethod · 0.45

Tested by

no test coverage detected