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

Function collectTemplateArguments

src/extraction/languages/c-cpp.ts:182–187  ·  view source on GitHub ↗

The types the template arguments of a written name name, wherever in the name they are.

(node: SyntaxNode, own: ReadonlySet<string>, source: string, names: CTypeName[])

Source from the content-addressed store, hash-verified

180
181/** The types the template arguments of a written name name, wherever in the name they are. */
182function collectTemplateArguments(node: SyntaxNode, own: ReadonlySet<string>, source: string, names: CTypeName[]): void {
183 for (const c of node.namedChildren) {
184 if (c.type === 'template_argument_list') collectCTypeNames(c, own, source, names);
185 else if (c.type === 'qualified_identifier' || c.type === 'template_type') collectTemplateArguments(c, own, source, names);
186 }
187}
188
189/**
190 * Whether a C/C++ type specifier defines a class, struct, union or enum, as

Callers 1

collectCTypeNamesFunction · 0.85

Calls 1

collectCTypeNamesFunction · 0.85

Tested by

no test coverage detected