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.34.0.tbz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=d77d97165a158d7ae56b7c0387cd04e9927d7e7e797ca1039ffb5bb17a6661a7
    
    
  sha512=84954f375b0c3ed063c874c47cc2597cceea338de0f567f64f340bd4e3569ef88421369b92bd5830701216bcdb88d78f50f3896c8edeb13250f0e7337c106b7d
    
    
  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_500.Parsetree.expression ->
  Astlib.Ast_500.Parsetree.expressionSource
val focus_expression : 
  Astlib.Ast_500.Parsetree.expression ->
  Astlib.Ast_500.Parsetree.expression sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  On This Page