aboutsummaryrefslogtreecommitdiff
path: root/lib/dAst.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dAst.ml')
-rw-r--r--lib/dAst.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dAst.ml b/lib/dAst.ml
index f34ab956a3..803b2a0cff 100644
--- a/lib/dAst.ml
+++ b/lib/dAst.ml
@@ -30,6 +30,8 @@ let make ?loc v = CAst.make ?loc (Value v)
let delay ?loc v = CAst.make ?loc (Thunk (Lazy.from_fun v))
+let force x = CAst.make ?loc:x.CAst.loc (Value (get_thunk x.v))
+
let map f n = CAst.map (fun x -> map_thunk f x) n
let map_with_loc f n =