@@ -213,8 +213,8 @@ import ..NodeUtilsModule:
213213 set_constants!
214214
215215# ! format: off
216- count_constants (ex:: AbstractExpression ; kws ... ) = count_constants (get_tree (ex); kws ... )
217- count_depth (ex:: AbstractExpression ; kws ... ) = count_depth (get_tree (ex); kws ... )
216+ count_constants (ex:: AbstractExpression ) = count_constants (get_tree (ex))
217+ count_depth (ex:: AbstractExpression ) = count_depth (get_tree (ex))
218218index_constants (ex:: AbstractExpression , :: Type{T} = UInt16) where {T} = index_constants (get_tree (ex), T)
219219has_operators (ex:: AbstractExpression ) = has_operators (get_tree (ex))
220220has_constants (ex:: AbstractExpression ) = has_constants (get_tree (ex))
@@ -310,14 +310,14 @@ end
310310import .. SimplifyModule: combine_operators, simplify_tree!
311311
312312# Avoid implementing a generic version for these, as it is less likely to generalize
313- function combine_operators (ex:: Expression , operators= nothing ; kws ... )
313+ function combine_operators (ex:: Expression , operators= nothing )
314314 return Expression (
315- combine_operators (get_tree (ex), get_operators (ex, operators); kws ... ), ex. metadata
315+ combine_operators (get_tree (ex), get_operators (ex, operators)), ex. metadata
316316 )
317317end
318- function simplify_tree! (ex:: Expression , operators= nothing ; kws ... )
318+ function simplify_tree! (ex:: Expression , operators= nothing )
319319 return Expression (
320- simplify_tree! (get_tree (ex), get_operators (ex, operators); kws ... ), ex. metadata
320+ simplify_tree! (get_tree (ex), get_operators (ex, operators)), ex. metadata
321321 )
322322end
323323
0 commit comments