Skip to content

Commit 94329ca

Browse files
committed
Make pexp_attributes mutable
1 parent 9913f81 commit 94329ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/ml/parsetree.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ and pattern_desc =
210210
and expression = {
211211
pexp_desc: expression_desc;
212212
pexp_loc: Location.t;
213-
pexp_attributes: attributes; (* ... [@id1] [@id2] *)
213+
(* Hack: made pexp_attributes mutable for use in analysis exe. Please do not use elsewhere! *)
214+
mutable pexp_attributes: attributes; (* ... [@id1] [@id2] *)
214215
}
215216

216217
and expression_desc =

0 commit comments

Comments
 (0)