Collect the type identifiers under a `method_type`, in document order.
(node: SyntaxNode, source: string, out: string[])
| 50 | |
| 51 | /** Collect the type identifiers under a `method_type`, in document order. */ |
| 52 | function collectTypeIdentifiers(node: SyntaxNode, source: string, out: string[]): void { |
| 53 | if (node.type === 'type_identifier') out.push(getNodeText(node, source).trim()); |
| 54 | for (let i = 0; i < node.namedChildCount; i++) { |
| 55 | const child = node.namedChild(i); |
| 56 | if (child) collectTypeIdentifiers(child, source, out); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Capture an ObjC method's declared return type as a bare class name, for the |
no test coverage detected