Phase 2: InternedStr and Interner types (infrastructure)

This commit is contained in:
Glint Dev
2026-07-21 20:35:56 +03:00
parent f3ea96258c
commit a46c9bc9e7
2 changed files with 72 additions and 2 deletions

View File

@@ -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>(