/* * vim: set ft=rust: * vim: set ft=reason: * * Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2013 - present Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ open! Utils; /** Module for Mangled Names */ /** Type of mangled names */ type t; /** Comparison for mangled names */ let compare: t => t => int; /** Equality for mangled names */ let equal: t => t => bool; /** Convert a string to a mangled name */ let from_string: string => t; /** Create a mangled type name from a package name and a class name */ let from_package_class: string => string => t; /** Create a mangled name from a plain and mangled string */ let mangled: string => string => t; /** Convert a mangled name to a string */ let to_string: t => string; /** Convert a full mangled name to a string */ let to_string_full: t => string; /** Get mangled string if given */ let get_mangled: t => string; /** Pretty print a mangled name */ let pp: Format.formatter => t => unit; /** Set of Mangled. */ let module MangledSet: Set.S with type elt = t;