(root: BaseRoot)
| 403 | // root it calls along with its own, so one binding to root or to a root it |
| 404 | // references would keep that root's transforms from writing in place |
| 405 | export const holdsUncompiledWriter = (root: BaseRoot): boolean => { |
| 406 | const inPlace = $ark.inPlace |
| 407 | if (!inPlace || !root.tfs) return false |
| 408 | for (const id in root.byId) { |
| 409 | const reference = root.byId[id] |
| 410 | if ( |
| 411 | reference.tfs && |
| 412 | reference.isRoot() && |
| 413 | !canJit(reference.$.cfg) && |
| 414 | inPlace.writesInPlace(reference) |
| 415 | ) |
| 416 | return true |
| 417 | } |
| 418 | return false |
| 419 | } |
| 420 | |
| 421 | // largest roots first, so their units bind the most nodes |
| 422 | const bindRegisteredUnits = (values: readonly unknown[]): void => { |
no test coverage detected