Reviewed By: jeremydubreil Differential Revision: D9351622 fbshipit-source-id: f8c5690f8master
parent
d9e12850b9
commit
eb282797ab
@ -1,19 +0,0 @@
|
|||||||
(*
|
|
||||||
* Copyright (c) 2018-present, Facebook, Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*)
|
|
||||||
|
|
||||||
open! IStd
|
|
||||||
|
|
||||||
type t = Caml.Digest.t
|
|
||||||
|
|
||||||
let to_string = Caml.Digest.to_hex
|
|
||||||
|
|
||||||
let compute node ~simple_key ~succs ~preds =
|
|
||||||
let v = (simple_key node, List.rev_map ~f:simple_key succs, List.rev_map ~f:simple_key preds) in
|
|
||||||
Utils.better_hash v
|
|
||||||
|
|
||||||
|
|
||||||
let of_frontend_node_key = Utils.better_hash
|
|
@ -1,17 +0,0 @@
|
|||||||
(*
|
|
||||||
* Copyright (c) 2018-present, Facebook, Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*)
|
|
||||||
|
|
||||||
open! IStd
|
|
||||||
|
|
||||||
type t
|
|
||||||
|
|
||||||
val to_string : t -> string
|
|
||||||
|
|
||||||
val compute :
|
|
||||||
'node -> simple_key:('node -> 'simple_key) -> succs:'node list -> preds:'node list -> t
|
|
||||||
|
|
||||||
val of_frontend_node_key : string -> t
|
|
Loading…
Reference in new issue