1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use crate::{language::parsed::Expression, transform, type_system::*};
use sway_types::{ident::Ident, span::Span};
#[derive(Debug, Clone)]
pub struct StorageDeclaration {
pub attributes: transform::AttributesMap,
pub fields: Vec<StorageField>,
pub span: Span,
}
#[derive(Debug, Clone)]
pub struct StorageField {
pub name: Ident,
pub attributes: transform::AttributesMap,
pub type_info: TypeInfo,
pub type_info_span: Span,
pub initializer: Expression,
}