Skip to content

Commit 837d4e5

Browse files
committed
istree->iscall
1 parent d774562 commit 837d4e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rewriters.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module Rewriters
3333
using SymbolicUtils: @timer
3434
using TermInterface
3535

36-
import SymbolicUtils: istree, operation, arguments, unsorted_arguments, metadata, node_count, _promote_symtype
36+
import SymbolicUtils: iscall, operation, arguments, unsorted_arguments, metadata, node_count, _promote_symtype
3737
export Empty, IfElse, If, Chain, RestartedChain, Fixpoint, Postwalk, Prewalk, PassThrough
3838

3939
# Cache of printed rules to speed up @timer
@@ -219,7 +219,7 @@ function (p::Walk{ord, C, F, false})(x) where {ord, C, F}
219219
x = p.rw(x)
220220
end
221221

222-
if istree(x)
222+
if iscall(x)
223223
x = p.maketerm(x, operation(x), map(PassThrough(p),
224224
unsorted_arguments(x)), metadata=metadata(x))
225225
end

0 commit comments

Comments
 (0)