Skip to main content

mago_codex/metadata/
attribute.rs

1use mago_span::HasSpan;
2use mago_span::Span;
3use mago_word::Word;
4
5#[derive(Debug, Clone, PartialEq, Eq, Hash)]
6#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
7#[non_exhaustive]
8pub struct AttributeMetadata {
9    pub name: Word,
10    pub span: Span,
11}
12
13impl HasSpan for AttributeMetadata {
14    fn span(&self) -> Span {
15        self.span
16    }
17}