summaryrefslogtreecommitdiff
path: root/src/Print.ml
diff options
context:
space:
mode:
authorSon Ho2021-11-29 22:11:47 +0100
committerSon Ho2021-11-29 22:11:47 +0100
commit111af7db1d5dbc245bc72864c3577b6bcabcb3d7 (patch)
treedd9cba7c2b0645aecd6017f6167920a6ece11f4a /src/Print.ml
parent2d6690a392d777b7bd035d383c1ee8fa4a53668f (diff)
Start fixing bugs in the unit test evaluation
Diffstat (limited to 'src/Print.ml')
-rw-r--r--src/Print.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Print.ml b/src/Print.ml
index 57d9be0f..b9d7372c 100644
--- a/src/Print.ml
+++ b/src/Print.ml
@@ -909,7 +909,8 @@ module EvalCtxCfimAst = struct
let fmt = PA.eval_ctx_to_ast_formatter ctx in
PA.statement_to_string fmt s
- let expression_to_string (ctx : C.eval_ctx) (e : A.expression) : string =
+ let expression_to_string (ctx : C.eval_ctx) (indent : string)
+ (indent_incr : string) (e : A.expression) : string =
let fmt = PA.eval_ctx_to_ast_formatter ctx in
- PA.expression_to_string fmt "" " " e
+ PA.expression_to_string fmt indent indent_incr e
end