1 // Copyright (c) Facebook, Inc. and its affiliates.
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the "hack" directory of this source tree.
7 use ir::StringInterner;
11 pub(crate) fn convert_constant<'a>(
12 constant: &Constant<'a>,
13 strings: &StringInterner,
14 ) -> ir::HackConstant {
23 .map(|tv| convert::convert_typed_value(tv, strings))
26 let name = ir::ConstId::from_hhbc(name, strings);