Module Atd.Inherit

val expand_module_body : ?⁠inherit_fields:bool -> ?⁠inherit_variants:bool -> Ast.module_body -> Ast.module_body

Expand inherit statements found in sum types and product types.

parameter inherit_fields

specify whether record fields should be expanded. Default is true.

parameter inherit_variants

specify whether sum types should be expanded. Default is true.