package archetype

  1. Overview
  2. Docs

Module Typing.EnvSource

Sourcetype t
Sourcetype label_kind = [
  1. | `Plain
  2. | `Code
  3. | `Loop of Ident.ident
]
Sourcetype entry = [
  1. | `Label of t * label_kind
  2. | `State of statedecl
  3. | `StateByCtor of statedecl * M.lident
  4. | `Type of M.ptyp
  5. | `Local of M.ptyp * locvarkind
  6. | `Global of vardecl
  7. | `Asset of assetdecl
  8. | `Action of t tactiondecl
  9. | `Function of t fundecl
  10. | `Field of Ident.ident
  11. | `Contract of contractdecl
  12. | `Context of assetdecl * Ident.ident option
]
Sourceand locvarkind = [
  1. | `Standard
  2. | `LoopIndex
]
Sourcetype ecallback = error -> unit
Sourceval create : ecallback -> t
Sourceval emit_error : t -> error -> unit
Sourceval name_free : t -> Ident.ident -> [ `Free | `Clash of Location.t option ]
Sourceval lookup_entry : t -> Ident.ident -> entry option
Sourceval open_ : t -> t
Sourceval close : t -> t
Sourceval inscope : t -> (t -> t * 'a) -> t * 'a
Sourcemodule Label : sig ... end
Sourcemodule Type : sig ... end
Sourcemodule Local : sig ... end
Sourcemodule Var : sig ... end
Sourcemodule Function : sig ... end
Sourcemodule State : sig ... end
Sourcemodule Asset : sig ... end
Sourcemodule TAction : sig ... end
Sourcemodule Contract : sig ... end
Sourcemodule Context : sig ... end
OCaml

Innovation. Community. Security.