package dolmen

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Expr.IdSource

Sourcetype 'a t = 'a id

The type of identifiers

Sourceval hash : 'a t -> int

Hash function.

Sourceval equal : 'a t -> 'b t -> bool

Equality function.

Sourceval compare : 'a t -> 'b t -> int

Comparison function.

Sourceval print : Format.formatter -> 'a t -> unit

Printing function

Sourceval mk : ?pos:Pretty.pos -> ?name:string -> ?tags:Tag.map -> ?builtin:builtin -> Path.t -> 'a -> 'a t

Create a new identifier

Sourceval get_tag : _ t -> 'a Tag.t -> 'a option

Get the value bound to a tag.

Sourceval get_tag_list : _ t -> 'a list Tag.t -> 'a list

Get the list of values bound to a list tag, returning the empty list if no value is bound.

Sourceval get_tag_last : _ t -> 'a list Tag.t -> 'a option

Get the last value bound to a list tag.

Sourceval set_tag : _ t -> 'a Tag.t -> 'a -> unit

Set the value bound to the tag.

Sourceval add_tag : _ t -> 'a list Tag.t -> 'a -> unit

Bind an additional value to a list tag.

Sourceval add_tag_opt : _ t -> 'a list Tag.t -> 'a option -> unit

Optionally bind an additional value to a list tag.

Sourceval add_tag_list : _ t -> 'a list Tag.t -> 'a list -> unit

Bind a list of additional values to a list tag.

Sourceval unset_tag : _ t -> _ Tag.t -> unit

Remove the binding to the given tag.

OCaml

Innovation. Community. Security.