Skip to content

Commit

Permalink
refactor: expose explicit functions from Melstd.Ident (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Nov 14, 2024
1 parent a451746 commit 176600b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
14 changes: 13 additions & 1 deletion jscomp/melstd/mel_ident.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)

include Ident0
include Ident

type t = Ident.t

let name = Ident.name
let same = Ident.same
let create_local = Ident.create_local
let create_persistent = Ident.create_persistent
let rename = Ident.rename
let print = Ident.print
let is_predef = Ident.is_predef
let reinit = Ident.reinit
let global = Ident.global

module Map = Map_ident
module Set = Set_ident
module Hash = Hash_ident
Expand Down
15 changes: 12 additions & 3 deletions jscomp/melstd/mel_ident.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@

(** A wrapper around [Ident] module in compiler-libs *)

include module type of struct
include Ident
end
type t = Ident.t

val name : t -> string
val same : t -> t -> bool
val create_local : string -> t
val create_persistent : string -> t
val rename : t -> t
val print : Format.formatter -> t -> unit
val is_predef : t -> bool
val reinit : unit -> unit
val global : t -> bool


module Map = Map_ident
module Set = Set_ident
Expand Down

0 comments on commit 176600b

Please sign in to comment.