package togglelog
val null : loc:Ppxlib.location -> Ppxlib_ast.Ast.expression
val call : loc:Ppxlib.Location.t -> string option -> Ppxlib_ast.Ast.expression
val build_log :
ctxt:Ppxlib.Expansion_context.Extension.t ->
?enabled:bool ->
?log_type:string ->
Ppxlib_ast.Ast.expression ->
Ppxlib_ast.Ast.expression
This does some tricks to guarantee typechecking of the log string. We generate a expression like let _log () = PRINT ... in _log ()
when printing is enabled, and let _log () = PRINT ... in ()
when it is disabled.
val expand_null :
ctxt:Ppxlib.Expansion_context.Extension.t ->
string option ->
Ppxlib_ast.Ast.expression ->
Ppxlib_ast.Ast.expression
val expand_log :
ctxt:Ppxlib.Expansion_context.Extension.t ->
string option ->
Ppxlib_ast.Ast.expression ->
Ppxlib_ast.Ast.expression
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>