File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -380,16 +380,16 @@ let rec
380
380
| Pstr_extension ( ({txt = (" bs.raw" | " raw" ) ; loc}, payload), _attrs)
381
381
->
382
382
Ast_exp_handle_external. handle_raw_structure loc payload :: structure_mapper self rest
383
- | Pstr_extension (({txt = " local " }, _),_)
383
+ | Pstr_extension (({txt = " private " }, _),_)
384
384
->
385
385
let rec aux acc (rest : Ast_structure.t ) =
386
386
match rest with
387
- | {pstr_desc = Pstr_extension (({txt = "local " ;loc} , payload ), _ ) } :: next ->
387
+ | {pstr_desc = Pstr_extension (({txt = "private " ;loc} , payload ), _ ) } :: next ->
388
388
begin match payload with
389
389
| PStr work ->
390
390
aux (Ext_list. rev_map_append work acc (fun x -> self.structure_item self x)) next
391
391
| (PSig _ | PTyp _ | PPat _ ) ->
392
- Location. raise_errorf ~loc " local extension is not support"
392
+ Location. raise_errorf ~loc " private extension is not support"
393
393
end
394
394
| _ -> expand_reverse acc (structure_mapper self rest)
395
395
in aux [] stru
Original file line number Diff line number Diff line change @@ -14,31 +14,31 @@ open! P1
14
14
15
15
let f () = raise A
16
16
17
- let % local b = 3
17
+ let % private b = 3
18
18
19
- let % local c = b + 2
19
+ let % private c = b + 2
20
20
21
- [%% local
21
+ [%% private
22
22
let d = c
23
23
let f = d
24
24
let h = fun[@ bs] a b -> a + b
25
25
]
26
26
27
27
28
- let % local h0 = 1
28
+ let % private h0 = 1
29
29
30
- let % local h1 = h0 + 1
30
+ let % private h1 = h0 + 1
31
31
32
- let % local h2 = h1 + 1
32
+ let % private h2 = h1 + 1
33
33
34
- [%% local
34
+ [%% private
35
35
let h3 = 1
36
36
let h4 = h3 + 1
37
37
let h5 = h4 + 1
38
38
]
39
39
40
40
module N = struct
41
- let % local a = 3
41
+ let % private a = 3
42
42
let b = a + 2
43
43
end
44
44
Original file line number Diff line number Diff line change @@ -315565,16 +315565,16 @@ let rec
315565
315565
| Pstr_extension ( ({txt = ("bs.raw"| "raw") ; loc}, payload), _attrs)
315566
315566
->
315567
315567
Ast_exp_handle_external.handle_raw_structure loc payload :: structure_mapper self rest
315568
- | Pstr_extension (({txt = "local "}, _),_)
315568
+ | Pstr_extension (({txt = "private "}, _),_)
315569
315569
->
315570
315570
let rec aux acc (rest : Ast_structure.t) =
315571
315571
match rest with
315572
- | {pstr_desc = Pstr_extension (({txt = "local ";loc}, payload), _) } :: next ->
315572
+ | {pstr_desc = Pstr_extension (({txt = "private ";loc}, payload), _) } :: next ->
315573
315573
begin match payload with
315574
315574
| PStr work ->
315575
315575
aux (Ext_list.rev_map_append work acc (fun x -> self.structure_item self x)) next
315576
315576
| (PSig _ | PTyp _ | PPat _) ->
315577
- Location.raise_errorf ~loc "local extension is not support"
315577
+ Location.raise_errorf ~loc "private extension is not support"
315578
315578
end
315579
315579
| _ -> expand_reverse acc (structure_mapper self rest)
315580
315580
in aux [] stru
Original file line number Diff line number Diff line change @@ -315565,16 +315565,16 @@ let rec
315565
315565
| Pstr_extension ( ({txt = ("bs.raw"| "raw") ; loc}, payload), _attrs)
315566
315566
->
315567
315567
Ast_exp_handle_external.handle_raw_structure loc payload :: structure_mapper self rest
315568
- | Pstr_extension (({txt = "local "}, _),_)
315568
+ | Pstr_extension (({txt = "private "}, _),_)
315569
315569
->
315570
315570
let rec aux acc (rest : Ast_structure.t) =
315571
315571
match rest with
315572
- | {pstr_desc = Pstr_extension (({txt = "local ";loc}, payload), _) } :: next ->
315572
+ | {pstr_desc = Pstr_extension (({txt = "private ";loc}, payload), _) } :: next ->
315573
315573
begin match payload with
315574
315574
| PStr work ->
315575
315575
aux (Ext_list.rev_map_append work acc (fun x -> self.structure_item self x)) next
315576
315576
| (PSig _ | PTyp _ | PPat _) ->
315577
- Location.raise_errorf ~loc "local extension is not support"
315577
+ Location.raise_errorf ~loc "private extension is not support"
315578
315578
end
315579
315579
| _ -> expand_reverse acc (structure_mapper self rest)
315580
315580
in aux [] stru
Original file line number Diff line number Diff line change @@ -413268,16 +413268,16 @@ let rec
413268
413268
| Pstr_extension ( ({txt = ("bs.raw"| "raw") ; loc}, payload), _attrs)
413269
413269
->
413270
413270
Ast_exp_handle_external.handle_raw_structure loc payload :: structure_mapper self rest
413271
- | Pstr_extension (({txt = "local "}, _),_)
413271
+ | Pstr_extension (({txt = "private "}, _),_)
413272
413272
->
413273
413273
let rec aux acc (rest : Ast_structure.t) =
413274
413274
match rest with
413275
- | {pstr_desc = Pstr_extension (({txt = "local ";loc}, payload), _) } :: next ->
413275
+ | {pstr_desc = Pstr_extension (({txt = "private ";loc}, payload), _) } :: next ->
413276
413276
begin match payload with
413277
413277
| PStr work ->
413278
413278
aux (Ext_list.rev_map_append work acc (fun x -> self.structure_item self x)) next
413279
413279
| (PSig _ | PTyp _ | PPat _) ->
413280
- Location.raise_errorf ~loc "local extension is not support"
413280
+ Location.raise_errorf ~loc "private extension is not support"
413281
413281
end
413282
413282
| _ -> expand_reverse acc (structure_mapper self rest)
413283
413283
in aux [] stru
You can’t perform that action at this time.
0 commit comments