package merlin-lib
Merlin's libraries
Install
Dune Dependency
Authors
Maintainers
Sources
merlin-4.19-414.tbz
sha256=60a630f59203a9ce7047a5f04d0f239945960dac6f38102922e328b6d2657384
sha512=19f8ec152356873e29c05b971a529146bb7079929037c2b35a5c0afb0b3adf662341ee8527282c5fdd16de391d01c2c469fc8629af9e0ae443fa9f42472b70bb
doc/src/merlin-lib.analysis/typed_hole.ml.html
Source file typed_hole.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
let syntax_repr = "_" let can_be_hole s = String.equal syntax_repr s (* the pattern matching below is taken and modified (minimally, to adapt the return type) from [Query_commands.dispatch]'s [Construct] branch; If we directly dispatched [Construct] command to merlin, we'd be doing useless computations: we need info whether the expression at the cursor is a hole, we don't need constructed expressions yet. Ideally, merlin should return a callback [option], which is [Some] when the context is applicable. *) let is_a_hole = function | (_, Browse_raw.Module_expr { mod_desc = Tmod_typed_hole; _ }) :: (_, _) :: _ | (_, Browse_raw.Expression { exp_desc = Texp_typed_hole; _ }) :: _ -> true | [] | (_, _) :: _ -> false
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>