2023-10-27 21:08:58 +00:00
|
|
|
use crate::error::CustomError;
|
|
|
|
|
|
|
|
use super::registry::Registry;
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
2023-10-29 13:37:27 +00:00
|
|
|
pub(crate) struct ISrcBlock {
|
|
|
|
pub(crate) lines: Vec<String>,
|
|
|
|
}
|
2023-10-27 21:08:58 +00:00
|
|
|
|
|
|
|
impl ISrcBlock {
|
|
|
|
pub(crate) async fn new<'parse>(
|
|
|
|
registry: &mut Registry<'parse>,
|
|
|
|
original: &organic::types::SrcBlock<'parse>,
|
|
|
|
) -> Result<ISrcBlock, CustomError> {
|
2023-10-29 13:37:27 +00:00
|
|
|
// let contents = original.contents.
|
|
|
|
Ok(ISrcBlock {
|
|
|
|
lines: Vec::new(), // TODO
|
|
|
|
})
|
2023-10-27 21:08:58 +00:00
|
|
|
}
|
|
|
|
}
|