package catala
Module Desugared.PrintSource
Source
type exception_tree = | Leaf of Dependency.ExceptionVertex.t| Node of exception_tree list * Dependency.ExceptionVertex.t
Source
val exceptions_graph :
is_condition:bool ->
Shared_ast.ScopeName.t ->
Ast.ScopeDef.t ->
Dependency.ExceptionsDependencies.t ->
unitPrints the exception graph of a variable to the terminal
Source
val exceptions_graph_json :
is_condition:bool ->
Shared_ast.ScopeName.t ->
Ast.ScopeDef.t ->
Dependency.ExceptionsDependencies.t ->
unitPrints the exception graph of a variable as JSON to stdout
Builds the exception tree from the graph
Serialises an exception tree node to a JSON value