Skip to content

Commit 5f5d767

Browse files
committed
docs: fix build temporarily
1 parent 3046dcb commit 5f5d767

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

docs/src/utils.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ collection of its nodes.
77

88
```@docs
99
copy(tree::AbstractExpressionNode; break_sharing::Val=Val(false))
10-
collect(tree::AbstractNode; break_sharing::Val=Val(false))
1110
filter(f::Function, tree::AbstractNode; break_sharing::Val=Val(false))
1211
count(f::Function, tree::AbstractNode; init=0, break_sharing::Val=Val(false))
1312
foreach(f::Function, tree::AbstractNode; break_sharing::Val=Val(false))

src/base.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ Collect all nodes in a tree into a flat array in depth-first order.
312312
function collect(tree::AbstractNode; break_sharing::Val{BS}=Val(false)) where {BS}
313313
return filter(Returns(true), tree; break_sharing=Val(BS))
314314
end
315+
Base.IteratorSize(::Type{<:AbstractNode}) = Base.HasLength()
315316

316317
"""
317318
map(f::F, tree::AbstractNode, result_type::Type{RT}=Nothing; break_sharing::Val{BS}=Val(false)) where {F<:Function,RT,BS}

0 commit comments

Comments
 (0)