Module Ocaml_typing.Typemode

Interpret mode syntax as mode annotation, where axes can be left unspecified

Interpret mode syntax as alloc mode (on arrow types), where axes are set to legacy if unspecified

Interpret mode syntax as modalities. Modalities occuring at different places requires different levels of maturity. Also takes the mutability and attributes on the field and insert mutable-implied modalities accordingly.

val let_mutable_modalities : Mode.Modality.Const.t
val atomic_mutable_modalities : Mode.Modality.Const.t

The (default) modalities for an atomic mutable field

Un-interpret modalities back to parsetree. Takes the mutability and attributes on the field and remove mutable-implied modalities accordingly.

Interpret a mod-bounds.

val idx_expected_modalities : mut:bool -> Mode.Modality.Const.t
module Mode_axis_pair : sig ... end
module Modality_axis_pair : sig ... end
module Modifier_axis_pair : sig ... end