package coq

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

Module DAstSource

Lazy AST node wrapper. Only used for glob_constr as of today.

Sourcetype ('a, _) thunk =
  1. | Value : 'a -> ('a, 'b) thunk
  2. | Thunk : 'a Lazy.t -> ('a, [ `thunk ]) thunk
Sourcetype ('a, 'b) t = ('a, 'b) thunk CAst.t
Sourceval get : ('a, 'b) t -> 'a
Sourceval get_thunk : ('a, 'b) thunk -> 'a
Sourceval make : ?loc:Loc.t -> 'a -> ('a, 'b) t
Sourceval delay : ?loc:Loc.t -> (unit -> 'a) -> ('a, [ `thunk ]) t
Sourceval force : ('a, 'b) t -> ('a, 'b) t
Sourceval map : ('a -> 'b) -> ('a, 'c) t -> ('b, 'c) t
Sourceval map_with_loc : (?loc:Loc.t -> 'a -> 'b) -> ('a, 'c) t -> ('b, 'c) t
Sourceval map_from_loc : (?loc:Loc.t -> 'a -> 'b) -> 'a Loc.located -> ('b, 'c) t
Sourceval with_val : ('a -> 'b) -> ('a, 'c) t -> 'b
Sourceval with_loc_val : (?loc:Loc.t -> 'a -> 'b) -> ('a, 'c) t -> 'b
OCaml

Innovation. Community. Security.