sway_core/language/parsed/declaration/
const_generic.rs

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