File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed
Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 6161 - name : Build and install dependencies
6262 run : opam install .
6363
64- # the makefile explains why we don't use --with-test
65- # ppx expect is not yet compatible with 5.1 and test output vary from one
66- # compiler to another. We only test on 4.14.
64+ # the makefile explains why we don't use test dependencies
6765 - name : Install test dependencies
6866 if : matrix.ocaml-compiler == '4.14'
6967 run : opam exec -- make install-test-deps
Original file line number Diff line number Diff line change @@ -67,9 +67,10 @@ let fold_over_parsetree (parsetree : Mreader.parsetree) =
6767 let range = Range. of_loc module_expr.pmod_loc in
6868 push range;
6969 Ast_iterator. default_iterator.module_expr self module_expr
70- | _ ->
71- (* We rely on the wildcard pattern to improve compatibility with
72- multiple OCaml's parsetree versions *)
70+ | Parsetree. Pmod_ident _
71+ | Parsetree. Pmod_apply (_, _)
72+ | Parsetree. Pmod_constraint (_, _)
73+ | Parsetree. Pmod_unpack _ | Parsetree. Pmod_extension _ ->
7374 Ast_iterator. default_iterator.module_expr self module_expr
7475 in
7576 let class_declaration
Original file line number Diff line number Diff line change @@ -425,10 +425,9 @@ end = struct
425425 self.attributes self pld_attributes
426426 ;;
427427
428- let value_binding
429- (self : Ast_iterator.iterator )
430- ({ pvb_pat; pvb_expr; pvb_attributes; _ } as vb : Parsetree.value_binding )
431- =
428+ let value_binding (self : Ast_iterator.iterator )
429+ ({ pvb_pat; pvb_expr; pvb_attributes; pvb_loc = _ } as vb :
430+ Parsetree.value_binding ) =
432431 match
433432 match pvb_pat.ppat_desc, pvb_expr.pexp_desc with
434433 | Parsetree. Ppat_var fn_name , _ ->
@@ -762,9 +761,7 @@ end = struct
762761 self.module_type self mt);
763762 `Custom_iterator
764763 | Pmod_extension _ -> `Custom_iterator
765- | _ ->
766- (* We rely on the wildcard pattern to improve compatibility with
767- multiple OCaml's parsetree versions *)
764+ | Pmod_unpack _ | Pmod_apply (_ , _ ) | Pmod_structure _ ->
768765 `Default_iterator
769766 with
770767 | `Custom_iterator -> self.attributes self pmod_attributes
You can’t perform that action at this time.
0 commit comments