@@ -2,9 +2,9 @@ open Typedtree
2
2
open Types
3
3
open Mode
4
4
5
- let dummy_layout = Layouts.Layout . value ~why: Type_argument
5
+ let dummy_jkind = Jkind . value ~why: Type_argument
6
6
let dummy_value_mode = Value. legacy
7
- let mkTvar name = Tvar { name; layout = dummy_layout }
7
+ let mkTvar name = Tvar { name; jkind = dummy_jkind }
8
8
9
9
let mkTarrow (label , t1 , t2 , comm ) =
10
10
Tarrow ((label, Alloc. legacy, Alloc. legacy), t1, t2, comm)
@@ -43,8 +43,8 @@ type texp_function_identifier = {
43
43
region : bool ;
44
44
curry : fun_curry_state ;
45
45
warnings : Warnings .state ;
46
- arg_sort : Layouts .sort ;
47
- ret_sort : Layouts .sort ;
46
+ arg_sort : Jkind .sort ;
47
+ ret_sort : Jkind .sort ;
48
48
}
49
49
50
50
let texp_function_defaults =
@@ -55,8 +55,8 @@ let texp_function_defaults =
55
55
region = false ;
56
56
curry = Final_arg { partial_mode = Alloc. legacy };
57
57
warnings = Warnings. backup () ;
58
- arg_sort = Layouts .Sort. value;
59
- ret_sort = Layouts .Sort. value;
58
+ arg_sort = Jkind .Sort. value;
59
+ ret_sort = Jkind .Sort. value;
60
60
}
61
61
62
62
let mkTexp_function ?(id = texp_function_defaults)
@@ -76,14 +76,14 @@ let mkTexp_function ?(id = texp_function_defaults)
76
76
ret_sort = id.ret_sort;
77
77
}
78
78
79
- type texp_sequence_identifier = Layouts .sort
79
+ type texp_sequence_identifier = Jkind .sort
80
80
81
- let mkTexp_sequence ?id :(sort = Layouts .Sort. value) (e1, e2) =
81
+ let mkTexp_sequence ?id :(sort = Jkind .Sort. value) (e1, e2) =
82
82
Texp_sequence (e1, sort, e2)
83
83
84
- type texp_match_identifier = Layouts .sort
84
+ type texp_match_identifier = Jkind .sort
85
85
86
- let mkTexp_match ?id :(sort = Layouts .Sort. value) (e, cases, partial) =
86
+ let mkTexp_match ?id :(sort = Jkind .Sort. value) (e, cases, partial) =
87
87
Texp_match (e, sort, cases, partial)
88
88
89
89
type matched_expression_desc =
@@ -180,9 +180,9 @@ let view_tpat (type a) (p : a pattern_desc) : a matched_pattern_desc =
180
180
| Tpat_array (mut , l ) -> Tpat_array (l, mut)
181
181
| _ -> O p
182
182
183
- type tstr_eval_identifier = Layouts .sort
183
+ type tstr_eval_identifier = Jkind .sort
184
184
185
- let mkTstr_eval ?id :(sort = Layouts .Sort. value) (e, attrs) =
185
+ let mkTstr_eval ?id :(sort = Jkind .Sort. value) (e, attrs) =
186
186
Tstr_eval (e, sort, attrs)
187
187
188
188
type matched_structure_item_desc =
@@ -194,9 +194,9 @@ let view_tstr (si : structure_item_desc) =
194
194
| Tstr_eval (e , sort , attrs ) -> Tstr_eval (e, attrs, sort)
195
195
| _ -> O si
196
196
197
- type arg_identifier = Layouts .sort
197
+ type arg_identifier = Jkind .sort
198
198
199
- let mkArg ?id :(sort = Layouts .Sort. value) e = Arg (e, sort)
199
+ let mkArg ?id :(sort = Jkind .Sort. value) e = Arg (e, sort)
200
200
201
201
let map_arg_or_omitted f arg =
202
202
match arg with Arg (e , sort ) -> Arg (f e, sort) | Omitted o -> Omitted o
@@ -223,7 +223,7 @@ let mk_constructor_description cstr_name =
223
223
cstr_attributes = [] ;
224
224
cstr_inlined = None ;
225
225
cstr_uid = Uid. internal_not_actually_unique;
226
- cstr_arg_layouts = [||];
226
+ cstr_arg_jkinds = [||];
227
227
cstr_repr = Variant_boxed [||];
228
228
cstr_constant = true ;
229
229
}
@@ -234,7 +234,7 @@ let mk_value_binding ~vb_pat ~vb_expr ~vb_attributes =
234
234
vb_expr;
235
235
vb_attributes;
236
236
vb_loc = Location. none;
237
- vb_sort = Layouts .Sort. value;
237
+ vb_sort = Jkind .Sort. value;
238
238
}
239
239
240
240
let mkTtyp_any = Ttyp_var (None , None )
0 commit comments