Introduce a registry into the conversion to intermediate format.

This commit is contained in:
Tom Alexander
2023-10-27 14:43:06 -04:00
parent e3b5f7f74f
commit c6cf5f75ac
8 changed files with 68 additions and 12 deletions

View File

@@ -1,10 +1,15 @@
use crate::error::CustomError;
use super::registry::Registry;
#[derive(Debug)]
pub(crate) struct ISection {}
impl ISection {
pub(crate) fn new(section: &organic::types::Section<'_>) -> Result<ISection, CustomError> {
pub(crate) fn new(
registry: &mut Registry<'_>,
section: &organic::types::Section<'_>,
) -> Result<ISection, CustomError> {
Ok(ISection {})
}
}