Added other struct types #117

This commit is contained in:
2026-07-14 07:32:42 +02:00
parent d834ff595d
commit 5079b10819
5 changed files with 53 additions and 7 deletions
+6
View File
@@ -59,6 +59,12 @@ pub enum TopLevelKind {
generics: GenericsDecl,
fields: Vec<Spanned<FieldDecl>>,
},
StructDeclTupleUnit {
visibility: Visibility,
name: Identifier,
generics: GenericsDecl,
unit: Option<Vec<Spanned<TypeExpr>>>,
},
FunctionDecl(FunctionDecl),
ClassDecl {
visibility: Visibility,