Skip to content

Commit a5df41d

Browse files
committed
clean
1 parent b5505fb commit a5df41d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/lib/parse_js.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let parse_aux the_parser lexbuf =
5858
loop_error prev checkpoint
5959
| I.Shifting _ | I.AboutToReduce _ -> loop_error prev (I.resume checkpoint)
6060
| I.Accepted _ -> assert false
61-
| I.Rejected -> Error prev
61+
| I.Rejected -> `Error prev
6262
| I.HandlingError _ -> loop_error prev (I.resume checkpoint)
6363
in
6464
let rec loop prev comments (inputneeded, checkpoint) =
@@ -119,8 +119,8 @@ let parse_aux the_parser lexbuf =
119119
loop (token :: prev) comments (inputneeded, checkpoint)
120120
| I.Shifting _ | I.AboutToReduce _ ->
121121
loop prev comments (inputneeded, I.resume checkpoint)
122-
| I.Accepted v -> Ok (v, prev, List.rev comments)
123-
| I.Rejected -> Error prev
122+
| I.Accepted v -> `Ok (v, prev, List.rev comments)
123+
| I.Rejected -> `Error prev
124124
| I.HandlingError _ -> (
125125
(* 7.9.1 - 1 *)
126126
(* When, as the program is parsed from left to right, a token (called the offending token)
@@ -162,8 +162,8 @@ let parse_aux the_parser lexbuf =
162162
else loop_error prev (I.resume checkpoint))
163163
in
164164
match loop [] [] (init, init) with
165-
| Ok x -> x
166-
| Error tok ->
165+
| `Ok x -> x
166+
| `Error tok ->
167167
let tok =
168168
match tok with
169169
| [] -> Js_token.EOF Parse_info.zero

0 commit comments

Comments
 (0)