Module Desugared.Print

type exception_tree =
  1. | Leaf of Dependency.ExceptionVertex.t
  2. | Node of exception_tree list * Dependency.ExceptionVertex.t
val exceptions_graph : is_condition:bool -> Shared_ast.ScopeName.t -> Ast.ScopeDef.t -> Desugared.Dependency.ExceptionsDependencies.t -> unit

Prints the exception graph of a variable to the terminal

val exceptions_graph_json : is_condition:bool -> Shared_ast.ScopeName.t -> Ast.ScopeDef.t -> Desugared.Dependency.ExceptionsDependencies.t -> unit

Prints the exception graph of a variable as JSON to stdout

val build_exception_tree : Desugared.Dependency.ExceptionsDependencies.t -> exception_tree list

Builds the exception tree from the graph

val exception_tree_to_json : exception_tree -> Yojson.Safe.t

Serialises an exception tree node to a JSON value