package rotor
An automatic refactoring tool for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
rotor-0.1.zip
md5=372ca9b6a7af2fdd99d5117d376870b4
sha512=6f5473951437a48bf9ae7a5d22a4283c02bed6a6e5c7bc02fc5f28dc5c28720f3e2c69f32a2a0c5b9447c2bc8c83746bb4de5b67909a98cc8921527582727063
doc/rotor/Rotor_env/index.html
Module Rotor_env
include module type of Compiler_import.Env
type summary = Env.summary =
| Env_empty
| Env_value of summary * Ident.t * Types.value_description
| Env_type of summary * Ident.t * Types.type_declaration
| Env_extension of summary * Ident.t * Types.extension_constructor
| Env_module of summary * Ident.t * Types.module_presence * Types.module_declaration
| Env_modtype of summary * Ident.t * Types.modtype_declaration
| Env_class of summary * Ident.t * Types.class_declaration
| Env_cltype of summary * Ident.t * Types.class_type_declaration
| Env_open of summary * Path.t
| Env_functor_arg of summary * Ident.t
| Env_constraints of summary * Types.type_declaration Path.Map.t
| Env_copy_types of summary * string list
| Env_persistent of summary * Ident.t
val empty : t
val initial_safe_string : t
val initial_unsafe_string : t
val iter_types :
(Path.t -> (Path.t * (Types.type_declaration * type_descriptions)) -> unit) ->
t ->
iter_cont
val find_shadowed_types : Path.t -> t -> Path.t list
val find_value : Path.t -> t -> Types.value_description
val find_type : Path.t -> t -> Types.type_declaration
val find_type_descrs : Path.t -> t -> type_descriptions
val find_module : Path.t -> t -> Types.module_declaration
val find_modtype : Path.t -> t -> Types.modtype_declaration
val find_class : Path.t -> t -> Types.class_declaration
val find_cltype : Path.t -> t -> Types.class_type_declaration
val find_type_expansion :
Path.t ->
t ->
Types.type_expr list * Types.type_expr * int
val find_type_expansion_opt :
Path.t ->
t ->
Types.type_expr list * Types.type_expr * int
val find_modtype_expansion : Path.t -> t -> Types.module_type
val is_functor_arg : Path.t -> t -> bool
val normalize_type_path : Location.t option -> t -> Path.t -> Path.t
val normalize_path_prefix : Location.t option -> t -> Path.t -> Path.t
val has_local_constraints : t -> bool
val lookup_value :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Path.t * Types.value_description
val lookup_constructor :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Types.constructor_description
val lookup_all_constructors :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
(Types.constructor_description * (unit -> unit)) list
val lookup_label :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Types.label_description
val lookup_all_labels :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
(Types.label_description * (unit -> unit)) list
val lookup_type : ?loc:Location.t -> ?mark:bool -> Longident.t -> t -> Path.t
val lookup_module :
load:bool ->
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Path.t
val lookup_modtype :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Path.t * Types.modtype_declaration
val lookup_class :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Path.t * Types.class_declaration
val lookup_cltype :
?loc:Location.t ->
?mark:bool ->
Longident.t ->
t ->
Path.t * Types.class_type_declaration
val make_copy_of_types : string list -> t -> copy_of_types
val do_copy_types : copy_of_types -> t -> t
val save_signature_with_imports :
alerts:string Misc.Stdlib.String.Map.t ->
Types.signature ->
string ->
string ->
(string * Digest.t option) list ->
Cmi_format.cmi_infos
val crc_of_unit : string -> Digest.t
val imports : unit -> (string * Digest.t option) list
exception Error of error
val report_error : Format.formatter -> error -> unit
val mark_constructor_used :
constructor_usage ->
string ->
Types.type_declaration ->
string ->
unit
val mark_constructor :
constructor_usage ->
t ->
string ->
Types.constructor_description ->
unit
val mark_extension_used :
constructor_usage ->
Types.extension_constructor ->
string ->
unit
val is_in_signature : t -> bool
val add_delayed_check_forward : ((unit -> unit) -> unit) ref
val fold_values :
(string -> Path.t -> Types.value_description -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_types :
(string ->
Path.t ->
(Types.type_declaration * type_descriptions) ->
'a ->
'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_constructors :
(Types.constructor_description -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_labels :
(Types.label_description -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_modules :
(string -> Path.t -> Types.module_declaration -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_modtypes :
(string -> Path.t -> Types.modtype_declaration -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_classes :
(string -> Path.t -> Types.class_declaration -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val fold_cltypes :
(string -> Path.t -> Types.class_type_declaration -> 'a -> 'a) ->
Longident.t option ->
t ->
'a ->
'a
val scrape_alias : t -> Types.module_type -> Types.module_type
val print_address : Format.formatter -> address -> unit
module Persistent_signature : sig ... end
val normalize_module_path :
Compiler_import.Location.t option ->
t ->
Compiler_import.Path.t ->
Compiler_import.Path.t
val normalize_mty_path :
?lax:bool ->
t ->
Compiler_import.Path.t ->
Compiler_import.Path.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>