package reason
Reason: Syntax & Toolchain for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
reason-3.14.0.tbz
sha256=1d09ba24a0594745ab6b38b4d5f81ead8565b73cb69ad46af1c2c26f8d324f00
sha512=542d63c99ab976d011ca39953c022bdd2120177d5905df7ee6ff9623ec4d52c09a323ff7aec95fba5e71611c3850a88172e1c2be94ce68d966b5680ddd436494
doc/reason/Reason_layout/index.html
Module Reason_layout
Source
* Module concerning info to correctly interleave whitespace above a layout node.
Source
type t =
| SourceMap of Location.t * t
| Sequence of config * t list
| Label of Easy_format.t -> Easy_format.t -> Easy_format.t * t * t
| Easy of Easy_format.t
| Whitespace of WhitespaceRegion.t * t
* These represent "intent to format" the AST, with some parts being annotated * with original source location. The benefit of tracking this in an * intermediate structure, is that we can then interleave comments throughout * the tree before generating the final representation. That prevents the * formatting code from having to thread comments everywhere. * * The final representation is rendered using Easy_format.
Source
and config = {
break : break_criterion;
wrap : string * string;
inline : bool * bool;
sep : separator;
indent : int;
sepLeft : bool;
preSpace : bool;
postSpace : bool;
pad : bool * bool;
listConfigIfCommentsInterleaved : (config -> config) option;
listConfigIfEolCommentsInterleaved : (config -> config) option;
}
getLocFromLayout
recursively takes the unioned location of its children, * and returns the max one
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>