Debian Codegraph @

test/instrument/class/instvar.t

raw
1 Pexp_setinstvar traversed.
2
3 $ bash ../test.sh <<'EOF'
4 > let _ =
5 > object
6 > val mutable x = ()
7 > method foo = x <- (print_endline "foo")
8 > end
9 > EOF
10 let _ =
11 object
12 val mutable x = ()
13
14 method foo =
15 ___bisect_visit___ 1;
16 x <- ___bisect_post_visit___ 0 (print_endline "foo")
17 end
18
19
20 Pexp_override traversed.
21
22 $ bash ../test.sh <<'EOF'
23 > let _ =
24 > object
25 > val x = ()
26 > method foo = {< x = print_endline "foo" >}
27 > end
28 let _ =
29 object
30 val x = ()
31
32 method foo =
33 ___bisect_visit___ 1;
34 {<x = ___bisect_post_visit___ 0 (print_endline "foo")>}
35 end