File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -556,12 +556,12 @@ let isCapitalized name =
556
556
match c with 'A' .. 'Z' -> true | _ -> false
557
557
558
558
type completion =
559
- | QualifiedRecordAccess of string list (* e.g. _.A.B.field where _ indicates a path ending in a lowercase id *)
560
- | RecordAccess of string list * string list * string (* e.g. A.B.var .f1.f2 .f3 *)
561
- | Path of string list
559
+ | QualifiedRecordAccess of path (* e.g. _.A.B.field where _ indicates a path ending in a lowercase id *)
560
+ | RecordAccess of path * path * string (* e.g. A.B.var .f1.f2 .f3 *)
561
+ | Path of path
562
562
(* e.g. A.B.var or A.B *)
563
563
564
- let determineCompletion dotpath =
564
+ let determineCompletion ( dotpath : path ) =
565
565
let rec loop dotpath =
566
566
match dotpath with
567
567
| [] -> assert false
Original file line number Diff line number Diff line change @@ -177,7 +177,9 @@ let tipToString tip =
177
177
| Constructor a -> " Constructor(" ^ a ^ " )"
178
178
| Module -> " Module"
179
179
180
- let pathToString path = path |> String. concat " ."
180
+ type path = string list
181
+
182
+ let pathToString (path : path ) = path |> String. concat " ."
181
183
182
184
type locKind =
183
185
| LocalReference of int * tip
You can’t perform that action at this time.
0 commit comments