use super::macros::intermediate; use super::registry::Registry; use crate::error::CustomError; #[derive(Debug, Clone)] pub(crate) struct ISrcBlock { pub(crate) lines: Vec, } intermediate!(ISrcBlock, SrcBlock, |registry, original| async { let lines = original .contents .split_inclusive('\n') .map(|s| s.to_owned()) .collect(); Ok(ISrcBlock { lines }) });