Skip to content

Commit

Permalink
Filter Impl after adding comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebuyse committed Dec 23, 2024
1 parent 9d78af6 commit bb0a959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/backends/fstar/fstar_backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,6 @@ let strings_of_item (bo : BackendOptions.t) m items (item : item) :
[%matches? (Types.Included None' : Types.inclusion_kind)] interface_mode'
in
Print.pitem item
|> List.filter ~f:(function `Impl _ when no_impl -> false | _ -> true)
|> List.concat_map ~f:(function
| `Impl i -> [ (mk_impl (Print.decl_to_string i), `Newline) ]
| `Intf i -> [ (mk_intf (Print.decl_to_string i), `Newline) ]
Expand All @@ -1618,6 +1617,7 @@ let strings_of_item (bo : BackendOptions.t) m items (item : item) :
let s = "(* " ^ s ^ " *)" in
if interface_mode then [ (`Impl s, `Newline); (`Intf s, `Newline) ]
else [ (`Impl s, `Newline) ])
|> List.filter ~f:(function `Impl _, _ when no_impl -> false | _ -> true)

type rec_prefix = NonRec | FirstMutRec | MutRec

Expand Down

0 comments on commit bb0a959

Please sign in to comment.