(node: SyntaxNode, source: string)
| 73 | } |
| 74 | |
| 75 | function extractCppQualifiedMethodName(node: SyntaxNode, source: string): string | undefined { |
| 76 | const macroDefined = recoverCppMacroDefinedName(node, source); |
| 77 | if (macroDefined) return macroDefined; |
| 78 | const declarator = getChildByField(node, 'declarator'); |
| 79 | if (!declarator) return undefined; |
| 80 | const qid = findDeclaratorQualifiedId(declarator); |
| 81 | if (!qid) return undefined; |
| 82 | const parts = getNodeText(qid, source).trim().split('::').filter(Boolean); |
| 83 | return parts[parts.length - 1]; |
| 84 | } |
| 85 | |
| 86 | function extractCppReceiverType(node: SyntaxNode, source: string): string | undefined { |
| 87 | const declarator = getChildByField(node, 'declarator'); |
nothing calls this directly
no test coverage detected