Skip to content

Commit 4919335

Browse files
committed
poly -> real variant
1 parent e4c8693 commit 4919335

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,10 @@ let completionsGetCompletionType ~full = function
598598
| {Completion.kind = ExtractedType (typ, _); env} :: _ -> Some (typ, env)
599599
| _ -> None
600600

601+
type getCompletionsForContextPathMode = Regular | Pipe
602+
601603
let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
602-
~exact ~scope ?(mode = `Regular) (contextPath : Completable.contextPath) =
604+
~exact ~scope ?(mode = Regular) (contextPath : Completable.contextPath) =
603605
let package = full.package in
604606
match contextPath with
605607
| CPString ->
@@ -632,7 +634,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
632634
]
633635
| CPArray (Some cp) -> (
634636
match mode with
635-
| `Regular -> (
637+
| Regular -> (
636638
match
637639
cp
638640
|> getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos
@@ -645,7 +647,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
645647
Completion.create "dummy" ~env
646648
~kind:(Completion.ExtractedType (Tarray (env, typ), `Type));
647649
])
648-
| `Pipe ->
650+
| Pipe ->
649651
(* Pipe completion with array just needs to know that it's an array, not
650652
what inner type it has. *)
651653
[
@@ -772,7 +774,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
772774
match
773775
cp
774776
|> getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
775-
~exact:true ~scope ~mode:`Pipe
777+
~exact:true ~scope ~mode:Pipe
776778
|> completionsGetTypeEnv
777779
with
778780
| None -> []

0 commit comments

Comments
 (0)