We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e46ed6 commit fcdb960Copy full SHA for fcdb960
src/utils.jl
@@ -90,11 +90,17 @@ function _readable_code(ex)
90
if ex.head === :call
91
f, args = ex.args[1], ex.args[2:end]
92
if f isa Function && (nf = nameof(f); Base.isoperator(nf))
93
- return Expr(:call, nf, args...)
+ expr = Expr(:call, nf)
94
+ for a in args
95
+ push!(expr.args, _readable_code(a))
96
+ end
97
+ return expr
98
end
99
100
expr = Expr(ex.head)
- expr.args = map(_readable_code, ex.args)
- Base.remove_linenums!(expr)
101
+ for a in ex.args
102
103
104
+ expr
105
-readable_code(expr) = JuliaFormatter.format_text(string(_readable_code(expr)))
106
+readable_code(expr) = JuliaFormatter.format_text(string(Base.remove_linenums!(_readable_code(expr))))
0 commit comments