package base_quickcheck
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Randomized testing framework, designed for compatibility with Base
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.14.1.tar.gz
sha256=b69a18bf0149e3b553ada9af5258681000948bfb7b6646fee66aa462b507b058
md5=d04738d4499e256b752bc40fcdb9730d
doc/src/ppx_quickcheck_expander/field_syntax.ml.html
Source file field_syntax.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45open! Import include Field_syntax_intf module Tuple = struct type ast = core_type type t = ast let create = Fn.id let location t = t.ptyp_loc let core_type t = t let pattern _ ~loc pat_list = ppat_tuple ~loc pat_list let expression _ ~loc expr_list = pexp_tuple ~loc expr_list end module Record = struct type ast = label_declaration type t = ast let create ast = match ast.pld_mutable with | Immutable -> ast | Mutable -> (* We intend to support mutable fields and values shortly, but we leave it to a separate feature. Integrating mutable values with replayability and shrinking is tricky, and we at least have to figure out what caveats to document. *) unsupported ~loc:ast.pld_loc "mutable record field" ;; let location t = t.pld_loc let core_type t = t.pld_type let pattern list ~loc pat_list = let alist = List.map2_exn list pat_list ~f:(fun t pat -> lident_loc t.pld_name, pat) in ppat_record ~loc alist Closed ;; let expression list ~loc expr_list = let alist = List.map2_exn list expr_list ~f:(fun t expr -> lident_loc t.pld_name, expr) in pexp_record ~loc alist None ;; end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>