Support elaboration on values
This commit is contained in:
parent
201d9db07d
commit
fa0a49b606
|
@ -17,8 +17,13 @@ function about(io::IO, value::T) where {T}
|
|||
supertypeinfo(io, supertype(T))
|
||||
println(io, ")")
|
||||
memorylayout(io, value)
|
||||
if get(io, :compact, false) != true
|
||||
elaboration(io, value)
|
||||
end
|
||||
end
|
||||
|
||||
elaboration(::IO, ::Any) = nothing
|
||||
|
||||
function memorylayout(io::IO, value::T) where {T}
|
||||
if isprimitivetype(T)
|
||||
get(io, :compact, false) || print(io, "\n ")
|
||||
|
|
Loading…
Reference in New Issue