Rename directory hhbc to hackc
[hiphop-php.git] / hphp / hack / src / hackc / hhbc / hhas_record_def.rs
blob0df61d72958f33aeb9131e2f094ce74049e528e4
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.
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;
11 #[derive(Debug)]
12 #[repr(C)]
13 pub struct Field<'arena>(
14     pub Str<'arena>,
15     pub HhasTypeInfo<'arena>,
16     pub Maybe<TypedValue<'arena>>,
19 #[derive(Debug)]
20 #[repr(C)]
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>>,
26     pub span: HhasSpan,