We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc13c9 commit a37f17fCopy full SHA for a37f17f
tools/src/tools.ml
@@ -361,15 +361,11 @@ let splitLast l =
361
in
362
splitLast' [] l
363
364
-let isFunction = function
365
- | Path.Pident {name = "function$"} -> true
366
- | _ -> false
367
-
368
let valueDetail (typ : Types.type_expr) =
369
let rec collectSignatureTypes (typ_desc : Types.type_desc) =
370
match typ_desc with
371
| Tlink t -> collectSignatureTypes t.desc
372
- | Tconstr (path, [t; _], _) when isFunction path ->
+ | Tconstr (Path.Pident {name = "function$"}, [t; _], _) ->
373
collectSignatureTypes t.desc
374
| Tconstr (path, ts, _) -> (
375
let p = Print_tast.Transform.path_to_string path in
0 commit comments