1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::TypeId; use sway_types::{Ident, Span}; #[derive(Debug, Clone)] pub struct ConstGenericDeclaration { pub name: Ident, pub ty: TypeId, pub span: Span, } impl ConstGenericDeclaration { pub fn span(&self) -> Span { self.span.clone() } }