2023-10-31 19:57:04 -04:00
|
|
|
use super::macros::intermediate;
|
2023-10-29 22:31:29 -04:00
|
|
|
|
2023-10-29 17:29:16 -04:00
|
|
|
use crate::error::CustomError;
|
2023-10-27 17:48:19 -04:00
|
|
|
|
2023-10-31 19:57:04 -04:00
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub(crate) struct ICode {
|
|
|
|
pub(crate) contents: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
intermediate!(ICode, Code, original, _registry, {
|
|
|
|
Ok(ICode {
|
|
|
|
// TODO: Should this coalesce whitespace like PlainText?
|
|
|
|
contents: original.contents.to_owned(),
|
|
|
|
})
|
|
|
|
});
|