(node: SyntaxNode, source: string)
| 215 | * shares it (objc.ts), and has no kernel walker. |
| 216 | */ |
| 217 | export function unnamedTypeVariableName(node: SyntaxNode, source: string): string | undefined { |
| 218 | if (getChildByField(node, 'name')) return undefined; |
| 219 | const declaration = definingDeclaration(node); |
| 220 | if (!declaration) return undefined; |
| 221 | for (const declarator of declaration.childrenForFieldName('declarator')) { |
| 222 | const identifier = cDeclaratorIdentifier(declarator); |
| 223 | if (identifier) return getNodeText(identifier, source); |
| 224 | } |
| 225 | return undefined; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Find the function NAME's `qualified_identifier` (`Foo::bar`) inside a |
no test coverage detected