File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ let rec skipWhite text i =
9
9
10
10
let extractCompletableArgValueInfo exp =
11
11
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
14
15
| _ -> None
15
16
16
17
let isExprHole exp =
@@ -134,18 +135,6 @@ let extractJsxProps ~(compName : Longident.t Location.loc) ~args =
134
135
in
135
136
args |> processProps ~acc: []
136
137
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
-
149
138
let findArgCompletables ~(args : arg list ) ~endPos ~posBeforeCursor
150
139
~(contextPath : Completable.contextPath ) ~posAfterFunExpr ~charBeforeCursor
151
140
~isPipedExpr =
You can’t perform that action at this time.
0 commit comments