@@ -35,7 +35,7 @@ let findTypeViaLoc ~full ~debug (loc : Location.t) =
3535 | _ -> None
3636
3737let pathFromTypeExpr (t : Types.type_expr ) =
38- match ( Ast_uncurried. remove_function_dollar t) .desc with
38+ match t .desc with
3939 | Tconstr (path, _typeArgs, _)
4040 | Tlink {desc = Tconstr (path, _typeArgs, _)}
4141 | Tsubst {desc = Tconstr (path, _typeArgs, _)}
@@ -239,7 +239,7 @@ let rec extractObjectType ~env ~package (t : Types.type_expr) =
239239
240240let extractFunctionType ~env ~package typ =
241241 let rec loop ~env acc (t : Types.type_expr ) =
242- match ( Ast_uncurried. remove_function_dollar t) .desc with
242+ match t .desc with
243243 | Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> loop ~env acc t1
244244 | Tarrow (label , tArg , tRet , _ , _ ) -> loop ~env ((label, tArg) :: acc) tRet
245245 | Tconstr (path , typeArgs , _ ) -> (
@@ -276,7 +276,7 @@ let maybeSetTypeArgCtx ?typeArgContextFromTypeManifest ~typeParams ~typeArgs env
276276(* 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. *)
277277let extractFunctionType2 ?typeArgContext ~env ~package typ =
278278 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
280280 | Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> loop ?typeArgContext ~env acc t1
281281 | Tarrow (label , tArg , tRet , _ , _ ) ->
282282 loop ?typeArgContext ~env ((label, tArg) :: acc) tRet
@@ -312,7 +312,7 @@ let rec extractType ?(printOpeningDebug = true)
312312 Printf. printf " [extract_type]--> %s"
313313 (debugLogTypeArgContext typeArgContext));
314314 let instantiateType = instantiateType2 in
315- match ( Ast_uncurried. remove_function_dollar t) .desc with
315+ match t .desc with
316316 | Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) ->
317317 extractType ?typeArgContext ~print OpeningDebug:false ~env ~package t1
318318 | Tconstr (Path. Pident {name = "option" } , [payloadTypeExpr ], _ ) ->
@@ -894,7 +894,7 @@ let rec resolveNestedPatternPath (typ : innerType) ~env ~full ~nested =
894894let getArgs ~env (t : Types.type_expr ) ~full =
895895 let rec getArgsLoop ~env (t : Types.type_expr ) ~full ~currentArgumentPosition
896896 =
897- match ( Ast_uncurried. remove_function_dollar t) .desc with
897+ match t .desc with
898898 | Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) ->
899899 getArgsLoop ~full ~env ~current ArgumentPosition t1
900900 | Tarrow (Labelled l , tArg , tRet , _ , _ ) ->
0 commit comments