Skip to content

Commit 130b2be

Browse files
committed
cleanup
1 parent e49c8c8 commit 130b2be

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

analysis/src/CompletionFrontEnd.ml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ let rec skipWhite text i =
99

1010
let extractCompletableArgValueInfo exp =
1111
match exp.Parsetree.pexp_desc with
12-
| Pexp_ident {txt = Lident prefix} -> Some prefix
13-
| Pexp_construct ({txt = Lident prefix}, _) -> Some prefix
12+
| Pexp_ident {txt = Lident txt} -> Some txt
13+
| Pexp_construct ({txt = Lident "()"}, _) -> Some ""
14+
| Pexp_construct ({txt = Lident txt}, _) -> Some txt
1415
| _ -> None
1516

1617
let isExprHole exp =
@@ -134,18 +135,6 @@ let extractJsxProps ~(compName : Longident.t Location.loc) ~args =
134135
in
135136
args |> processProps ~acc:[]
136137

137-
let extractCompletableArgValueInfo exp =
138-
match exp.Parsetree.pexp_desc with
139-
| Pexp_ident {txt = Lident txt} -> Some txt
140-
| Pexp_construct ({txt = Lident "()"}, _) -> Some ""
141-
| Pexp_construct ({txt = Lident txt}, _) -> Some txt
142-
| _ -> None
143-
144-
let isExprHole exp =
145-
match exp.Parsetree.pexp_desc with
146-
| Pexp_extension ({txt = "rescript.exprhole"}, _) -> true
147-
| _ -> false
148-
149138
let findArgCompletables ~(args : arg list) ~endPos ~posBeforeCursor
150139
~(contextPath : Completable.contextPath) ~posAfterFunExpr ~charBeforeCursor
151140
~isPipedExpr =

0 commit comments

Comments
 (0)