use crate::regexp::RegExpItem; use crate::scope::ScopeData; use crate::script::{ImmutableScriptData, ScriptStencil}; /// The result of emitter. #[derive(Debug)] pub struct EmitResult<'alloc> { pub atoms: Vec<&'alloc str>, pub slices: Vec<&'alloc str>, pub scopes: Vec, pub regexps: Vec, pub scripts: Vec, pub script_data_list: Vec, } impl<'alloc> EmitResult<'alloc> { pub fn new( atoms: Vec<&'alloc str>, slices: Vec<&'alloc str>, scopes: Vec, regexps: Vec, scripts: Vec, script_data_list: Vec, ) -> Self { Self { atoms, slices, scopes, regexps, scripts, script_data_list, } } }