Phase 2: InternedStr and Interner types (infrastructure)
This commit is contained in:
@@ -8,7 +8,7 @@ pub mod types;
|
||||
use std::borrow::Cow;
|
||||
pub use rhei::RheiContext;
|
||||
use style::StyleSheet as SS;
|
||||
pub use types::{ComponentDef, Document, Element, InterpError};
|
||||
pub use types::{ComponentDef, Document, Element, Interner, InterpError};
|
||||
|
||||
use compact_str::CompactString;
|
||||
use opcodes::*;
|
||||
@@ -44,7 +44,7 @@ impl Interpreter {
|
||||
//let rhei_ctx = RheiContext::new(&rhei_scripts);
|
||||
//rhei_ctx.initialize(&mut variables);
|
||||
|
||||
Ok(Document { roots, components, variables, rhei_scripts, stylesheet })
|
||||
Ok(Document { roots, components, variables, rhei_scripts, stylesheet, interner: Interner::new() })
|
||||
}
|
||||
|
||||
fn parse_block_elements<'a>(
|
||||
|
||||
Reference in New Issue
Block a user