(node: BaseNode)
| 212 | // a key two constraints transform, each reading the value as it received it |
| 213 | const transformsKeyTwice = (structure: StructureNode): boolean => { |
| 214 | const writes = (node: BaseNode) => |
| 215 | node.hasAlias || |
| 216 | node.references.some( |
| 217 | reference => reference.is("structure") && reference.tfs |
| 218 | ) |
| 219 | const index = structure.index?.filter(index => index.value.tfs) ?? [] |
| 220 | if (!index.length) return false |
| 221 | if (index.length > 1 && index.some(index => writes(index.value))) return true |
no test coverage detected