package ppxx

  1. Overview
  2. Docs

Patterns

val var' : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> string -> Migrate_parsetree.Ast_405.Parsetree.pattern

Create a pattern variable.

Translate an expression as a pattern. For example, of_expr (Expr.parse "(x, y)") returns an AST for (x, y).

Imported from Ast_helper

OCaml

Innovation. Community. Security.