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.
5 use ffi::{Maybe, Slice, Str};
6 use hhas_pos::HhasSpan;
7 use hhas_type::HhasTypeInfo;
8 use hhbc_id::record::RecordType;
9 use runtime::TypedValue;
13 pub struct Field<'arena>(
15 pub HhasTypeInfo<'arena>,
16 pub Maybe<TypedValue<'arena>>,
21 pub struct HhasRecord<'arena> {
22 pub name: RecordType<'arena>,
23 pub is_abstract: bool,
24 pub base: Maybe<RecordType<'arena>>,
25 pub fields: Slice<'arena, Field<'arena>>,