diff options
author | Chimrod <> | 2024-02-04 10:37:04 +0100 |
---|---|---|
committer | Chimrod <> | 2024-02-08 14:12:45 +0100 |
commit | 6fd720c07e3e361932e01bfbdbe4637c8f610649 (patch) | |
tree | 26f983295d8674a08fc9367aaac820c0ace675bc /lib/syntax/dead_end.ml | |
parent | 35ef1827a216a1deb6d15f916ff197b0c75bc83e (diff) |
Added a general context for each test
Diffstat (limited to 'lib/syntax/dead_end.ml')
-rw-r--r-- | lib/syntax/dead_end.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/syntax/dead_end.ml b/lib/syntax/dead_end.ml index 832a97a..ddf7edb 100644 --- a/lib/syntax/dead_end.ml +++ b/lib/syntax/dead_end.ml @@ -4,6 +4,10 @@ let identifier = "dead_end" let description = "Check for dead end in the code" let active = ref false +type context = unit + +let initialize = Fun.id + module Expression = struct type t = unit @@ -148,8 +152,8 @@ module Location = struct let v = Fun.id - let location : S.pos -> instruction list -> t = - fun _pos instructions -> + let location : unit -> S.pos -> instruction list -> t = + fun () _pos instructions -> List.fold_left instructions ~init:[] ~f:(fun report t -> match (t.Instruction.is_gt, t.Instruction.pos) with | false, Some (cause, value) -> |