(unit: RootUnit, returned: string[])
| 151 | ]) |
| 152 | |
| 153 | export const namesReadBy = (unit: RootUnit, returned: string[]): Set<string> => |
| 154 | new Set( |
| 155 | calledMembersOf(unit.members, returned).flatMap( |
| 156 | ([, source]) => source.match(/[\w$]+/g) ?? [] |
| 157 | ) |
| 158 | ) |
| 159 | |
| 160 | // strict even where a bundle's CJS or IIFE output isn't |
| 161 | export const isWriting = (member: string): boolean => |
no test coverage detected