OcamlgrepSourceType-aware search for OCaml expression patterns.
type finding = {location : location;lines : string list;Source lines spanned by loc, from loc_start.pos_lnum to loc_end.pos_lnum inclusive. Always non-empty.
}A region of source code that matched a query pattern.
Format a finding into human-readable text.
val search :
?debug:bool ->
?dune_root:string ->
?scan_root:string ->
string ->
search_resultssearch query searches the project containing the current directory for OCaml expressions matching the pattern query.
val incremental_search :
?debug:bool ->
?dune_root:string ->
?scan_root:string ->
(event -> unit) ->
string ->
(unit, string) resultSame as search but lets the caller report findings and warnings as they come rather than waiting for the end of the scan.
JSON export