(places: Map<string, Place>)
| 240 | } |
| 241 | |
| 242 | const writesSoundly = (places: Map<string, Place>): boolean => { |
| 243 | for (const { node } of places.values()) { |
| 244 | // each joined branch transforms data as the union received it |
| 245 | if (node.is("union") && node.keepsAny) return false |
| 246 | const structure = node.is("intersection") ? node.structure : undefined |
| 247 | if (structure && transformsKeyTwice(structure)) return false |
| 248 | } |
| 249 | return true |
| 250 | } |
| 251 | |
| 252 | const writesUnread = (places: Map<string, Place>): boolean => { |
| 253 | const readers: [Place, Reads][] = [] |
no test coverage detected