File tree Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Expand file tree Collapse file tree 2 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ module Types = struct
43
43
sw_blocks : (int * t ) list ;
44
44
sw_failaction : t option ;
45
45
sw_names : Lambda .switch_names option }
46
+ and lfunction = {
47
+ arity : int ;
48
+ params : ident list ;
49
+ body : t ;
50
+ attr : function_attribute
51
+ }
46
52
(*
47
53
Invariant:
48
54
length (sw_consts) <= sw_consts_full
@@ -90,11 +96,7 @@ module Types = struct
90
96
| Lglobal_module of ident
91
97
| Lconst of Lam_constant. t
92
98
| Lapply of apply_info
93
- | Lfunction of { arity : int ;
94
- params : ident list ;
95
- body : t ;
96
- attr : function_attribute
97
- }
99
+ | Lfunction of lfunction
98
100
| Llet of Lam_compat. let_kind * ident * t * t
99
101
| Lletrec of (ident * t) list * t
100
102
| Lprim of prim_info
@@ -137,18 +139,21 @@ module X = struct
137
139
ap_loc : Location .t ;
138
140
ap_status : apply_status
139
141
}
142
+ and lfunction = Types .lfunction =
143
+ {
144
+ arity : int ;
145
+ params : ident list ;
146
+ body : t ;
147
+ attr : function_attribute
148
+ }
140
149
and t
141
150
= Types .t
142
151
=
143
152
| Lvar of ident
144
153
| Lglobal_module of ident
145
154
| Lconst of Lam_constant .t
146
155
| Lapply of apply_info
147
- | Lfunction of { arity : int ;
148
- params : ident list ;
149
- body : t ;
150
- attr : function_attribute
151
- }
156
+ | Lfunction of lfunction
152
157
| Llet of Lam_compat .let_kind * ident * t * t
153
158
| Lletrec of (ident * t ) list * t
154
159
| Lprim of prim_info
Original file line number Diff line number Diff line change @@ -48,7 +48,12 @@ and apply_info = private
48
48
ap_loc : Location .t ;
49
49
ap_status : apply_status
50
50
}
51
-
51
+ and lfunction = {
52
+ arity : int ;
53
+ params : ident list ;
54
+ body : t ;
55
+ attr : function_attribute ;
56
+ }
52
57
and prim_info = private
53
58
{ primitive : Lam_primitive .t ;
54
59
args : t list ;
@@ -59,11 +64,7 @@ and t = private
59
64
| Lglobal_module of ident
60
65
| Lconst of Lam_constant .t
61
66
| Lapply of apply_info
62
- | Lfunction of { arity : int ;
63
- params : ident list ;
64
- body : t ;
65
- attr : function_attribute ;
66
- }
67
+ | Lfunction of lfunction
67
68
| Llet of Lam_compat .let_kind * ident * t * t
68
69
| Lletrec of (ident * t ) list * t
69
70
| Lprim of prim_info
You can’t perform that action at this time.
0 commit comments