This commit is contained in:
Chinedu Francis Nwafili
2019-02-05 13:47:46 -05:00
parent 965bd8c9fa
commit ed28ce9db2
5 changed files with 67 additions and 65 deletions

View File

@ -22,6 +22,7 @@ use weedle::{DictionaryDefinition, PartialDictionaryDefinition};
use super::Result;
use util;
use util::camel_case_ident;
use std::cell::RefCell;
/// Collection of constructs that may use partial.
#[derive(Default)]
@ -37,6 +38,7 @@ pub(crate) struct FirstPassRecord<'src> {
pub(crate) dictionaries: BTreeMap<&'src str, DictionaryData<'src>>,
pub(crate) callbacks: BTreeSet<&'src str>,
pub(crate) callback_interfaces: BTreeMap<&'src str, CallbackInterfaceData<'src>>,
pub(crate) immutable_f32_whitelist: RefCell<BTreeSet<&'static str>>
}
/// We need to collect interface data during the first pass, to be used later.