File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
423
423
if debug then
424
424
Printf. printf " looking for: %s \n " (Completable. toString (Cpath ctxPath))
425
425
in
426
- let unsetLookingForPat = lookingForPat := None in
426
+ let unsetLookingForPat () = lookingForPat := None in
427
427
let appendNestedPat patternPat =
428
428
match ! lookingForPat with
429
429
| Some (Completable. Cpattern ({nested = None } as p )) ->
@@ -476,7 +476,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
476
476
match exp |> exprToContextPath with
477
477
| None -> ()
478
478
| Some ctxPath -> setLookingForPat ctxPath)
479
- | _ -> unsetLookingForPat
479
+ | _ -> unsetLookingForPat ()
480
480
in
481
481
(* Tracks the path through a pattern for where the cursor is. *)
482
482
let typedCompletionPat (pat : Parsetree.pattern ) =
@@ -572,7 +572,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor ~text =
572
572
in
573
573
let structure_item (iterator : Ast_iterator.iterator )
574
574
(item : Parsetree.structure_item ) =
575
- unsetLookingForPat;
575
+ unsetLookingForPat () ;
576
576
let processed = ref false in
577
577
(match item.pstr_desc with
578
578
| Pstr_open {popen_lid} ->
You can’t perform that action at this time.
0 commit comments