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