Skip to content

Commit 5f25b28

Browse files
committed
Remove use of function$ from comments processing.
1 parent d862a37 commit 5f25b28

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/syntax/src/res_comments_table.ml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1831,6 +1831,7 @@ and walk_row_field (row_field : Parsetree.row_field) t comments =
18311831
| Rinherit _ -> ()
18321832

18331833
and walk_core_type typ t comments =
1834+
let typ = Ast_uncurried.core_type_remove_function_dollar typ in
18341835
match typ.Parsetree.ptyp_desc with
18351836
| _ when comments = [] -> ()
18361837
| Ptyp_tuple typexprs ->
@@ -1864,9 +1865,6 @@ and walk_core_type typ t comments =
18641865
attach t.trailing typexpr.ptyp_loc after_typ
18651866
| Ptyp_variant (row_fields, _, _) ->
18661867
walk_list (row_fields |> List.map (fun rf -> RowField rf)) t comments
1867-
| Ptyp_constr
1868-
({txt = Lident "function$"}, [({ptyp_desc = Ptyp_arrow _} as desc)]) ->
1869-
walk_core_type desc t comments
18701868
| Ptyp_constr (longident, typexprs) ->
18711869
let before_longident, _afterLongident =
18721870
partition_leading_trailing comments longident.loc

0 commit comments

Comments
 (0)