(specifier: SyntaxNode, ownName: string, source: string)
| 107 | * Mirrored in the kernel (ccpp/mod.rs). |
| 108 | */ |
| 109 | export function cMemberTypeNames(specifier: SyntaxNode, ownName: string, source: string): CTypeName[] { |
| 110 | const names: CTypeName[] = []; |
| 111 | const own = new Set([ownName]); |
| 112 | const tag = getChildByField(specifier, 'name'); |
| 113 | if (tag) own.add(stripCppTemplateArgs(getNodeText(tag, source))); |
| 114 | const body = getChildByField(specifier, 'body'); |
| 115 | if (body) collectMemberTypeNames(body, own, source, names); |
| 116 | return names; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * The type names a C or C++ alias is declared with: `redisObject` in `typedef |
no test coverage detected