Module Ast_diff.Orig_project

module Orig_project: State_builder.Option_ref  with type data = Project.t

the original project from which a diff is computed.


include State_builder.Ref
val memo : ?change:(data -> data) -> (unit -> data) -> data

Memoization. Compute on need the stored value. If the data is already computed (i.e. is not None), it is possible to change with change.

val map : (data -> data) -> data option
val may : (data -> unit) -> unit
val get_option : unit -> data option