Skip to content

Commit f387fe6

Browse files
Bring back istree check in walking
1 parent 993d1fa commit f387fe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rewriters.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ function (p::Walk{ord, C, F, false})(x) where {ord, C, F}
201201
if ord === :pre
202202
x = p.rw(x)
203203
end
204-
# if istree(x)
205-
# x = p.similarterm(x, operation(x), map(PassThrough(p), unsorted_arguments(x)), metadata=metadata(x))
206-
# end
204+
if istree(x)
205+
x = p.similarterm(x, operation(x), map(PassThrough(p), unsorted_arguments(x)), metadata=metadata(x))
206+
end
207207
return ord === :post ? p.rw(x) : x
208208
else
209209
return p.rw(x)

0 commit comments

Comments
 (0)