let rec do_print_comments_before loc f (__strm : _ Stream.t) =
match Stream.peek __strm with
| Some ((comm, comm_loc)) when Loc.strictly_before comm_loc loc
->
(Stream.junk __strm;
let s = __strm in
let () = f comm comm_loc
in do_print_comments_before loc f s)
| _ -> ()