Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a37f17f

Browse files
committedOct 16, 2024·
Inline isFunction check
1 parent abc13c9 commit a37f17f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎tools/src/tools.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,11 @@ let splitLast l =
361361
in
362362
splitLast' [] l
363363

364-
let isFunction = function
365-
| Path.Pident {name = "function$"} -> true
366-
| _ -> false
367-
368364
let valueDetail (typ : Types.type_expr) =
369365
let rec collectSignatureTypes (typ_desc : Types.type_desc) =
370366
match typ_desc with
371367
| Tlink t -> collectSignatureTypes t.desc
372-
| Tconstr (path, [t; _], _) when isFunction path ->
368+
| Tconstr (Path.Pident {name = "function$"}, [t; _], _) ->
373369
collectSignatureTypes t.desc
374370
| Tconstr (path, ts, _) -> (
375371
let p = Print_tast.Transform.path_to_string path in

0 commit comments

Comments
 (0)
Please sign in to comment.