use super::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ExceptDcl {
pub annotations: Vec<Annotation>,
pub ident: String,
pub member: Vec<Member>,
}
impl From<crate::typed_ast::ExceptDcl> for ExceptDcl {
fn from(value: crate::typed_ast::ExceptDcl) -> Self {
Self {
annotations: expand_annotations(value.annotations),
ident: value.ident.0,
member: value.member.into_iter().map(Into::into).collect(),
}
}
}