Skip to content

Commit

Permalink
avoid extension methods for PrettyPrint.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
thautwarm authored Jul 30, 2020
1 parent 095f493 commit aa41b76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Pretty.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
function PrettyPrint.pp_impl(io, v::LocalVar, indent)
repr = "LocalVar($(v.sym), is_mutable=$(v.is_mutable.x), is_shared=$(v.is_shared.x))"
print(io, repr)
length(repr) + indent
Base.show(io::IO, v::LocalVar) = begin
print(io, "LocalVar($(v.sym), is_mutable=$(v.is_mutable.x), is_shared=$(v.is_shared.x))")
end

Base.show(io::IO, scope :: Scope) = pprint(io, scope)

0 comments on commit aa41b76

Please sign in to comment.