package atd

  1. Overview
  2. Docs

Expansion of inherit statements

val expand_module_body : ?inherit_fields:bool -> ?inherit_variants:bool -> Atd_ast.module_body -> Atd_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.

OCaml

Innovation. Community. Security.