We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75fd1e commit f3603ffCopy full SHA for f3603ff
src/contexts.jl
@@ -817,3 +817,8 @@ function prefix_cond_and_fixed_variables(
817
context, prefix_cond_and_fixed_variables(childcontext(context), prefix)
818
)
819
end
820
+
821
+_pretty(ctx::AbstractContext) = split(string(ctx), "Context")[1]
822
+pretty_context(ctx::AbstractContext) = pretty_context(NodeTrait(ctx), ctx)
823
+pretty_context(::IsLeaf, ctx) = _pretty(ctx)
824
+pretty_context(::IsParent, ctx) = _pretty(ctx) * "->" * pretty_context(childcontext(ctx))
0 commit comments