package ppxlib_jane

  1. Overview
  2. Docs

Module Jane_syntax.Immutable_arraysSource

The ASTs for immutable arrays. When we merge this upstream, we'll merge these into the existing P{exp,pat}_array constructors by adding a mutable_flag argument (just as we did with T{exp,pat}_array).

Sourcetype expression =
  1. | Iaexp_immutable_array of Ppxlib_jane__.Shadow_compiler_distribution.Parsetree.expression list
    (*

    : E1; ...; En :

    *)
Sourcetype pattern =
  1. | Iapat_immutable_array of Ppxlib_jane__.Shadow_compiler_distribution.Parsetree.pattern list
    (*

    : P1; ...; Pn : *

    *)
Sourceval expr_of : loc:Location.t -> expression -> Ppxlib_jane__.Shadow_compiler_distribution.Parsetree.expression
Sourceval pat_of : loc:Location.t -> pattern -> Ppxlib_jane__.Shadow_compiler_distribution.Parsetree.pattern