package ocamlformat-mlx-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml .mlx Code Formatter
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocamlformat-mlx-0.29.0.0.tbz
sha256=9c5a6721d16d980e7730274543a0151c920715ce447946a3f833d4e2568e3a68
sha512=a0552cf055b6e061ab2bb0341aa9ddea860ded6e6522d2188e2a6697c18dc14ebbb01935b535695850b72f9880c4b2fa2a821a20be75c992fcbaf9b3f3a127b7
doc/ocamlformat-mlx-lib.parser_extended/Ocamlformat_parser_extended/Jsx_helper/index.html
Module Ocamlformat_parser_extended.Jsx_helperSource
Source
val mkloc :
'a ->
Ocamlformat_ocaml_common.Location.t ->
'a Ocamlformat_ocaml_common.Location.locSource
val mkexp :
loc:(Lexing.position * Lexing.position) ->
Parsetree.expression_desc ->
Parsetree.expressionSource
val mkjsxexp :
loc:(Lexing.position * Lexing.position) ->
Parsetree.expression_desc ->
Parsetree.expressionSource
val equal_longindent :
Ocamlformat_ocaml_common.Longident.t ->
Ocamlformat_ocaml_common.Longident.t ->
boolSource
val make_jsx_element :
raise:(exn -> unit) ->
loc:'a ->
tag:
([ `Module | `Value ]
* (Lexing.position * Lexing.position)
* Ocamlformat_ocaml_common.Longident.t) ->
end_tag:
(([> `Module | `Value ]
* (Lexing.position * 'b)
* Ocamlformat_ocaml_common.Longident.t)
* ('c * Lexing.position))
option ->
props:
((Lexing.position * Lexing.position)
* [< `Prop of string Asttypes.loc * Parsetree.expression
| `Prop_opt of string Asttypes.loc * Parsetree.expression
| `Prop_opt_punned of string Asttypes.loc
| `Prop_punned of string Asttypes.loc ])
list ->
children:Parsetree.expression ->
unit ->
Parsetree.expression_descSource
type element = {tag : string;tag_loc : Ocamlformat_ocaml_common.Location.t;props : (Asttypes.arg_label * Parsetree.expression) list;children_loc : Ocamlformat_ocaml_common.Location.t;children : Parsetree.expression list;
}A @JSX application that can be printed with JSX syntax.
Source
val classify_element :
attrs:Parsetree.attribute list ->
Parsetree.expression ->
(Asttypes.arg_label * Parsetree.expression) list ->
element optionClassify a @JSX application. JSX syntax can only express applications of the exact shape produced by make_jsx_element: an identifier tag applied to one unlabelled () argument, one ~children argument that is a list literal, and labelled or optional props. Hand-written @JSX applications may have any other shape (see ocaml-mlx/ocamlformat-mlx#12), in which case None is returned and the application must be printed as a regular application.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>