1 2 3 4 5 6 7 8 9 10 11 12
use crate::{parse_tree::Expression, type_engine::TypeInfo, Ident};
use sway_types::span::Span;
#[derive(Debug, Clone)]
pub struct VariableDeclaration {
pub name: Ident,
pub type_ascription: TypeInfo,
pub type_ascription_span: Option<Span>,
pub body: Expression, // will be codeblock variant
pub is_mutable: bool,
}