package ocp-index

  1. Overview
  2. Docs
Lightweight completion and documentation browsing for OCaml libraries

Install

Dune Dependency

Authors

Maintainers

Sources

1.3.7.tar.gz
md5=8ba7ad0ff42d98e82c1359f97b98a692
sha512=54a5aad2b99126fe14e7e9c98184e58b497cbc0e5e4ac064ebaca2bec750fc5800d97edbff4cde0a323d63cd7a5e5d9942cf05467d3149fe6e3bbf03f5fe3025

doc/ocp-index.lib/IndexScope/index.html

Module IndexScopeSource

Sourcetype t
Sourceval empty : t

The empty scope

Sourcetype env =
  1. | Alias of string * string list
  2. | Open of string list

The type of gathered information within a scope

Sourceval from_dot_merlin : string -> env list

From a directory name, look for a .merlin file and check for open flags in it

Sourceval read : ?line:int -> ?column:int -> in_channel -> t

Compute the environment from an input channel, at an optional position or at EOF

Sourceval read_string : string -> t

Compute the environment from a string

Sourceval fold : ('a -> t -> Approx_lexer.token -> (int * int * int) -> 'a) -> 'a -> ?init:env list -> ?stop:(Lexing.position -> bool) -> in_channel -> 'a

Lower-level function for processing on the environment at every token. The position is given in the form (line, column, length)

Sourceval fold_string : ('a -> t -> Approx_lexer.token -> (int * int * int) -> 'a) -> 'a -> ?init:env list -> ?stop:(Lexing.position -> bool) -> string -> 'a

The same from a string

Sourceval to_list : t -> env list

Returns the env declarations in scope t, in source file order

OCaml

Innovation. Community. Security.