Module Ppxlib.Merlin_helpers

Some helpers to annotate the AST so merlin can decide which branches to look at and which branches to ignore.

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

val hide_pattern : Migrate_parsetree.Ast_408.Parsetree.pattern -> Migrate_parsetree.Ast_408.Parsetree.pattern
val focus_pattern : Migrate_parsetree.Ast_408.Parsetree.pattern -> Migrate_parsetree.Ast_408.Parsetree.pattern
val hide_expression : Migrate_parsetree.Ast_408.Parsetree.expression -> Migrate_parsetree.Ast_408.Parsetree.expression
val focus_expression : Migrate_parsetree.Ast_408.Parsetree.expression -> Migrate_parsetree.Ast_408.Parsetree.expression