1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    language::{parsed::Expression, Visibility},
    transform, TypeArgument,
};
use sway_types::{Ident, Span};

#[derive(Debug, Clone)]
pub struct ConstantDeclaration {
    pub name: Ident,
    pub attributes: transform::AttributesMap,
    pub type_ascription: TypeArgument,
    pub value: Option<Expression>,
    pub visibility: Visibility,
    pub is_configurable: bool,
    pub span: Span,
}