Refactored class decl generator

This commit is contained in:
2026-06-09 16:43:52 +02:00
parent f37a1019ae
commit e3e6caf4e6
4 changed files with 221 additions and 143 deletions
+4 -4
View File
@@ -79,19 +79,19 @@ pub enum Prefix {
Neg,
}
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, PartialEq, Eq, Hash)]
pub struct ExprPathSegment {
pub ident: Identifier,
pub generics: Option<Generics>,
}
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, PartialEq, Eq, Hash)]
pub struct ExprPath(pub Vec<ExprPathSegment>);
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, PartialEq, Eq, Hash)]
pub struct Generics(pub Vec<Generic>);
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, Serialize, PartialEq, Eq, Hash)]
pub enum Generic {
Lifetime(Identifier),
Type(TypeExpr),