@@ -35,7 +35,7 @@ let findTypeViaLoc ~full ~debug (loc : Location.t) =
35
35
| _ -> None
36
36
37
37
let pathFromTypeExpr (t : Types.type_expr ) =
38
- match ( Ast_uncurried. remove_function_dollar t) .desc with
38
+ match t .desc with
39
39
| Tconstr (path, _typeArgs, _)
40
40
| Tlink {desc = Tconstr (path, _typeArgs, _)}
41
41
| Tsubst {desc = Tconstr (path, _typeArgs, _)}
@@ -239,7 +239,7 @@ let rec extractObjectType ~env ~package (t : Types.type_expr) =
239
239
240
240
let extractFunctionType ~env ~package typ =
241
241
let rec loop ~env acc (t : Types.type_expr ) =
242
- match ( Ast_uncurried. remove_function_dollar t) .desc with
242
+ match t .desc with
243
243
| Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> loop ~env acc t1
244
244
| Tarrow (label , tArg , tRet , _ , _ ) -> loop ~env ((label, tArg) :: acc) tRet
245
245
| Tconstr (path , typeArgs , _ ) -> (
@@ -276,7 +276,7 @@ let maybeSetTypeArgCtx ?typeArgContextFromTypeManifest ~typeParams ~typeArgs env
276
276
(* TODO(env-stuff) Maybe this could be removed entirely if we can guarantee that we don't have to look up functions from in here. *)
277
277
let extractFunctionType2 ?typeArgContext ~env ~package typ =
278
278
let rec loop ?typeArgContext ~env acc (t : Types.type_expr ) =
279
- match ( Ast_uncurried. remove_function_dollar t) .desc with
279
+ match t .desc with
280
280
| Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> loop ?typeArgContext ~env acc t1
281
281
| Tarrow (label , tArg , tRet , _ , _ ) ->
282
282
loop ?typeArgContext ~env ((label, tArg) :: acc) tRet
@@ -312,7 +312,7 @@ let rec extractType ?(printOpeningDebug = true)
312
312
Printf. printf " [extract_type]--> %s"
313
313
(debugLogTypeArgContext typeArgContext));
314
314
let instantiateType = instantiateType2 in
315
- match ( Ast_uncurried. remove_function_dollar t) .desc with
315
+ match t .desc with
316
316
| Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) ->
317
317
extractType ?typeArgContext ~print OpeningDebug:false ~env ~package t1
318
318
| Tconstr (Path. Pident {name = "option" } , [payloadTypeExpr ], _ ) ->
@@ -894,7 +894,7 @@ let rec resolveNestedPatternPath (typ : innerType) ~env ~full ~nested =
894
894
let getArgs ~env (t : Types.type_expr ) ~full =
895
895
let rec getArgsLoop ~env (t : Types.type_expr ) ~full ~currentArgumentPosition
896
896
=
897
- match ( Ast_uncurried. remove_function_dollar t) .desc with
897
+ match t .desc with
898
898
| Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) ->
899
899
getArgsLoop ~full ~env ~current ArgumentPosition t1
900
900
| Tarrow (Labelled l , tArg , tRet , _ , _ ) ->
0 commit comments