Skip to content

Commit dc428da

Browse files
committedJan 5, 2023
fix
1 parent d03de16 commit dc428da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎analysis/src/CompletionFrontEnd.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
423423
if debug then
424424
Printf.printf "looking for: %s \n" (Completable.toString (Cpath ctxPath))
425425
in
426-
let unsetLookingForPat = lookingForPat := None in
426+
let unsetLookingForPat () = lookingForPat := None in
427427
let appendNestedPat patternPat =
428428
match !lookingForPat with
429429
| Some (Completable.Cpattern ({nested = None} as p)) ->
@@ -476,7 +476,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
476476
match exp |> exprToContextPath with
477477
| None -> ()
478478
| Some ctxPath -> setLookingForPat ctxPath)
479-
| _ -> unsetLookingForPat
479+
| _ -> unsetLookingForPat ()
480480
in
481481
(* Tracks the path through a pattern for where the cursor is. *)
482482
let typedCompletionPat (pat : Parsetree.pattern) =
@@ -572,7 +572,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
572572
in
573573
let structure_item (iterator : Ast_iterator.iterator)
574574
(item : Parsetree.structure_item) =
575-
unsetLookingForPat;
575+
unsetLookingForPat ();
576576
let processed = ref false in
577577
(match item.pstr_desc with
578578
| Pstr_open {popen_lid} ->

0 commit comments

Comments
 (0)
Please sign in to comment.