@@ -36,7 +36,7 @@ let findTypeViaLoc ~full ~debug (loc : Location.t) =
3636
3737let rec pathFromTypeExpr (t : Types.type_expr ) =
3838 match t.desc with
39- | Tconstr (Pident {name = "function$" } , [t ; _ ], _ ) -> pathFromTypeExpr t
39+ | Tconstr (Pident {name = "function$" } , [t ], _ ) -> pathFromTypeExpr t
4040 | Tconstr (path, _typeArgs, _)
4141 | Tlink {desc = Tconstr (path, _typeArgs, _)}
4242 | Tsubst {desc = Tconstr (path, _typeArgs, _)}
@@ -243,7 +243,7 @@ let rec extractFunctionType ~env ~package typ =
243243 match t.desc with
244244 | Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> loop ~env acc t1
245245 | Tarrow (label , tArg , tRet , _ , _ ) -> loop ~env ((label, tArg) :: acc) tRet
246- | Tconstr (Pident {name = "function$" } , [t ; _ ], _ ) ->
246+ | Tconstr (Pident {name = "function$" } , [t ], _ ) ->
247247 extractFunctionType ~env ~package t
248248 | Tconstr (path , typeArgs , _ ) -> (
249249 match References. digConstructor ~env ~package path with
@@ -283,7 +283,7 @@ let rec extractFunctionType2 ?typeArgContext ~env ~package typ =
283283 | Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> loop ?typeArgContext ~env acc t1
284284 | Tarrow (label , tArg , tRet , _ , _ ) ->
285285 loop ?typeArgContext ~env ((label, tArg) :: acc) tRet
286- | Tconstr (Pident {name = "function$" } , [t ; _ ], _ ) ->
286+ | Tconstr (Pident {name = "function$" } , [t ], _ ) ->
287287 extractFunctionType2 ?typeArgContext ~env ~package t
288288 | Tconstr (path , typeArgs , _ ) -> (
289289 match References. digConstructor ~env ~package path with
@@ -334,7 +334,7 @@ let rec extractType ?(printOpeningDebug = true)
334334 Some (Tstring env, typeArgContext)
335335 | Tconstr (Path. Pident {name = "exn" } , [] , _ ) ->
336336 Some (Texn env, typeArgContext)
337- | Tconstr (Pident {name = "function$" } , [t ; _ ], _ ) -> (
337+ | Tconstr (Pident {name = "function$" } , [t ], _ ) -> (
338338 match extractFunctionType2 ?typeArgContext t ~env ~package with
339339 | args , tRet , typeArgContext when args <> [] ->
340340 Some
@@ -910,7 +910,7 @@ let getArgs ~env (t : Types.type_expr) ~full =
910910 | Tlink t1
911911 | Tsubst t1
912912 | Tpoly (t1, [] )
913- | Tconstr (Pident {name = "function$" } , [t1 ; _ ], _ ) ->
913+ | Tconstr (Pident {name = "function$" } , [t1 ], _ ) ->
914914 getArgsLoop ~full ~env ~current ArgumentPosition t1
915915 | Tarrow (Labelled l , tArg , tRet , _ , _ ) ->
916916 (SharedTypes.Completable. Labelled l, tArg)
0 commit comments