(
owner: Solid.Owner,
component_id: NodeID | null,
config: TreeWalkerConfig<TEl>,
children: Mapped.Owner[] = [],
)
| 286 | } |
| 287 | |
| 288 | function mapChildren<TEl extends object>( |
| 289 | owner: Solid.Owner, |
| 290 | component_id: NodeID | null, |
| 291 | config: TreeWalkerConfig<TEl>, |
| 292 | children: Mapped.Owner[] = [], |
| 293 | ): Mapped.Owner[] { |
| 294 | |
| 295 | for (let child of owner_each_child(owner)) { |
| 296 | if (config.mode === TreeWalkerMode.Owners || |
| 297 | markOwnerType(child) === NodeType.Component |
| 298 | ) { |
| 299 | unwrap_append(children, mapOwner(child, component_id, config)) |
| 300 | } else { |
| 301 | if (isSolidComputation(child)) { |
| 302 | observeComputation(child, owner, config) |
| 303 | } |
| 304 | mapChildren(child, component_id, config, children) |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | return children |
| 309 | } |
| 310 | |
| 311 | let els_seen = new Set<object>() |
| 312 |
no test coverage detected
searching dependent graphs…