1
2
3
4
5
6
7
8
9
10
11
12
13
14
use proc_macro2::Span as Span2;
use syn::spanned::Spanned;

use crate::widgets::PropertyName;

impl Spanned for PropertyName {
    fn span(&self) -> Span2 {
        match self {
            PropertyName::Ident(ident) => ident.span(),
            PropertyName::Path(path) => path.span(),
            PropertyName::RelmContainerExtAssign(span) => *span,
        }
    }
}