package ppxlib
Standard infrastructure for ppx rewriters
Install
Dune Dependency
Authors
Maintainers
Sources
ppxlib-0.34.0.tbz
sha256=d77d97165a158d7ae56b7c0387cd04e9927d7e7e797ca1039ffb5bb17a6661a7
sha512=84954f375b0c3ed063c874c47cc2597cceea338de0f567f64f340bd4e3569ef88421369b92bd5830701216bcdb88d78f50f3896c8edeb13250f0e7337c106b7d
doc/src/ppxlib/merlin_helpers.ml.html
Source file merlin_helpers.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
open! Import let mk_attr_noloc txt = Ast_helper.Attr.mk Location.{ txt; loc = none } let hide_attribute : attribute = mk_attr_noloc "merlin.hide" (PStr []) let focus_attribute : attribute = mk_attr_noloc "merlin.focus" (PStr []) let hide_pattern ({ ppat_attributes; _ } as p) = { p with ppat_attributes = hide_attribute :: ppat_attributes } let focus_pattern ({ ppat_attributes; _ } as p) = { p with ppat_attributes = focus_attribute :: ppat_attributes } let hide_expression ({ pexp_attributes; _ } as e) = { e with pexp_attributes = hide_attribute :: pexp_attributes } let focus_expression ({ pexp_attributes; _ } as e) = { e with pexp_attributes = focus_attribute :: pexp_attributes }
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>