You can search for identifiers within the package.
in-package search v0.2.0
p4
P4.Context
module SMap : sig ... end
type has_params = bool
type tid =
| Empty
| Local of string
| Global of string
type ident_kind =
| TypeName of has_params * namespace
| Ident of has_params * tid
and namespace = ident_kind SMap.t
type t = namespace list
val context : t Stdlib.ref
val backup : t Stdlib.ref
val previous_id : string option Stdlib.ref
val parent_namespace : namespace option Stdlib.ref
val reset : unit -> unit
val declare : string -> ident_kind -> unit
val declare_type : string -> has_params -> unit
val declare_types : string list -> unit
val declare_var : ?tid:??? -> string -> has_params -> unit
val declare_vars : string list -> unit
val find_opt : string -> t -> ident_kind option
val find_type_opt : string -> t -> (has_params * namespace) option
val find_var_opt : string -> t -> (has_params * tid) option
val get_kind : string -> ident_kind
val is_typename : string -> bool
val push_scope : unit -> unit
val pop_scope : unit -> namespace
val go_toplevel : unit -> unit
val go_local : unit -> unit
val get_global_context : unit -> t
val set_type_namespace : string -> namespace -> unit
val set_parent_namespace : unit -> unit
val clear_parent_namespace : unit -> unit
val print_entry : string -> ident_kind -> unit
val print_map : ident_kind SMap.t -> unit
val print_context : unit -> unit