(value)
| 1669 | } |
| 1670 | |
| 1671 | function isFileEditLike(value) { |
| 1672 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
| 1673 | return false |
| 1674 | } |
| 1675 | const record = value |
| 1676 | return ( |
| 1677 | typeof record.filePath === 'string' && |
| 1678 | (Array.isArray(record.structuredPatch) || |
| 1679 | ((record.type === 'create' || record.type === 'update') && |
| 1680 | typeof record.content === 'string')) |
| 1681 | ) |
| 1682 | } |
| 1683 | |
| 1684 | function collectFileEditResults(root) { |
| 1685 | const stack = [root] |
no outgoing calls
no test coverage detected