aboutsummaryrefslogtreecommitdiff
path: root/lib/syntax/tree.ml
diff options
context:
space:
mode:
authorChimrod <>2023-10-14 15:32:13 +0200
committerChimrod <>2023-10-18 09:49:47 +0200
commitf85abcb996b8d189a646e6aeea8aa4ce068f7570 (patch)
tree658bb3448777435b569a5b0871468317611bf47c /lib/syntax/tree.ml
parentf135a5fcb6c9827d07025a143b190cbbf8eddc15 (diff)
Used the type S.repr in Syntax/Location.t
Diffstat (limited to 'lib/syntax/tree.ml')
-rw-r--r--lib/syntax/tree.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/syntax/tree.ml b/lib/syntax/tree.ml
index db8abd9..e5a60f4 100644
--- a/lib/syntax/tree.ml
+++ b/lib/syntax/tree.ml
@@ -126,10 +126,10 @@ end
module Location = struct
type instruction = S.pos Ast.statement S.repr
- type repr = S.pos * S.pos Ast.statement list
+ type t = S.pos * S.pos Ast.statement list
- let location : S.pos -> instruction list -> repr =
- fun pos block ->
+ let location : S.pos -> instruction list -> t S.repr =
+ fun pos block _report ->
let block = List.map block ~f:(fun b -> fst @@ b []) in
- (pos, block)
+ ((pos, block), [])
end