File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ type stack_or_heap_enclosings = (Location.t * stack_or_heap) list
1212
1313let from_nodes ~lsp_compat ~pos ~path =
1414 let [@ tail_mod_cons] rec with_parents = function
15- | node :: parent :: rest -> (node, Some parent) :: with_parents (parent :: rest)
16- | [ node ] -> [ node, None ]
15+ | node :: parent :: rest ->
16+ (node, Some parent) :: with_parents (parent :: rest)
17+ | [ node ] -> [ (node, None ) ]
1718 | [] -> []
1819 in
1920 let cursor_is_inside ({ loc_start; loc_end; _ } : Location.t ) =
@@ -118,5 +119,4 @@ let from_nodes ~lsp_compat ~pos ~path =
118119 in
119120 path
120121 |> List. map ~f: (fun (_ , node , _ ) -> node)
121- |> with_parents
122- |> List. filter_map ~f: aux
122+ |> with_parents |> List. filter_map ~f: aux
You can’t perform that action at this time.
0 commit comments