package ocaml-webworker

  1. Overview
  2. Docs
val associate_comment : ?after_only:bool -> (string * Location.t) list -> Location.t -> Location.t -> string option * (string * Location.t) list

Pops comments from a list of comments (string * loc) to find the ones that are associated to a given location. Also returns the remaining comments after the location.