1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::AstNode;
use sway_types::{span::Span, Spanned};
#[derive(Debug, Clone)]
pub struct CodeBlock {
pub contents: Vec<AstNode>,
pub(crate) whole_block_span: Span,
}
impl Spanned for CodeBlock {
fn span(&self) -> Span {
self.whole_block_span.clone()
}
}