(node: SyntaxNode)
| 12 | import { rewriteRctExternShims } from './objc-rn-extern'; |
| 13 | |
| 14 | function findCompoundStatement(node: SyntaxNode): SyntaxNode | null { |
| 15 | for (const child of namedChildrenOf(node)) { |
| 16 | if (child?.type === 'compound_statement') { |
| 17 | return child; |
| 18 | } |
| 19 | } |
| 20 | return null; |
| 21 | } |
| 22 | |
| 23 | /** Build ObjC selector: `greet`, `doThing:`, or `doThing:with:`. */ |
| 24 | function extractObjcMethodName(node: SyntaxNode, source: string): string | undefined { |
no test coverage detected