Tweak `HhasTypeConstant` C++: Replace Option with Maybe
[hiphop-php.git] / hphp / hack / src / hhbc / hhbc_by_ref / hhas_typedef.rs
blob72dfb3294dadff94405bbcd526da4135741e0260
1 // Copyright (c) Facebook, Inc. and its affiliates.
2 //
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the "hack" directory of this source tree.
6 use hhbc_by_ref_hhas_attribute::HhasAttribute;
7 use hhbc_by_ref_hhas_pos::Span;
8 use hhbc_by_ref_hhas_type as hhas_type;
9 use hhbc_by_ref_hhbc_id as hhas_id;
10 use hhbc_by_ref_runtime::TypedValue;
12 #[derive(Debug)]
13 pub struct Typedef<'arena> {
14     pub name: hhas_id::class::ClassType<'arena>,
15     pub attributes: ffi::Slice<'arena, HhasAttribute<'arena>>,
16     pub type_info: hhas_type::Info<'arena>,
17     pub type_structure: TypedValue<'arena>,
18     pub span: Span,