package ppxlib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Standard infrastructure for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppxlib-0.38.0.tbz
sha256=89e049b3102f6670a213d34d802ea3ab0fc530a8959d2f1a1e8db830063429a3
sha512=2fbbf124fc61e1f22242d13505e9af39d4a3c7cf03def1c33ee8bd915195be9b817636667302e9c6ceddc74a9a4a54926340e21c96fd770a2bc6752400315cfd
doc/ppxlib/Ppxlib/Merlin_helpers/index.html
Module Ppxlib.Merlin_helpersSource
Some helpers to annotate the AST so merlin can decide which branches to look at and which branches to ignore.
More information can be found in the section of the manual about locations.
Annotations merlin understand
Adding this [@merlin.hide] attribute on a piece of AST "hides" it from merlin: it tells merlin not to consider that branch if another piece of AST with the same location exist.
Adding this [@merlin.focus] attribute on a piece of AST tells merlin to prefer it to any other piece of AST when several have the same location.
Helpers
The following functions add the corresponding attribute (defined above) to specific pieces of AST.
Source
val hide_expression :
Astlib.Ast_502.Parsetree.expression ->
Astlib.Ast_502.Parsetree.expressionSource
val focus_expression :
Astlib.Ast_502.Parsetree.expression ->
Astlib.Ast_502.Parsetree.expression sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page