(alias: SyntaxNode, ownName: string, source: string)
| 123 | * Skipped as in cMemberTypeNames: `typedef struct dict dict;` names no other type. |
| 124 | */ |
| 125 | export function cAliasTypeNames(alias: SyntaxNode, ownName: string, source: string): CTypeName[] { |
| 126 | const names: CTypeName[] = []; |
| 127 | const own = new Set([ownName]); |
| 128 | const type = getChildByField(alias, 'type'); |
| 129 | if (type) collectCTypeNames(type, own, source, names); |
| 130 | for (const declarator of alias.childrenForFieldName('declarator')) { |
| 131 | if (declarator) collectDeclaratorTypeNames(declarator, own, source, names); |
| 132 | } |
| 133 | return names; |
| 134 | } |
| 135 | |
| 136 | function collectMemberTypeNames(list: SyntaxNode, own: ReadonlySet<string>, source: string, names: CTypeName[]): void { |
| 137 | for (const child of list.namedChildren) { |
no test coverage detected