The type-name refs a projected ref node points at (list/map/union recurse).
(node)
| 848 | |
| 849 | /** The type-name refs a projected ref node points at (list/map/union recurse). */ |
| 850 | function refsIn(node) { |
| 851 | if (!node) return [] |
| 852 | if (node.ref) return [node.ref] |
| 853 | if (node.list) return refsIn(node.list) |
| 854 | if (node.map) return refsIn(node.map) |
| 855 | if (node.union) return node.union.flatMap(refsIn) |
| 856 | return [] |
| 857 | } |
| 858 | |
| 859 | /** The type-name refs a type *node* (record/union/alias) points at. */ |
| 860 | function typeRefNames(node) { |
no outgoing calls
no test coverage detected