More generics

This commit is contained in:
2026-05-08 17:09:01 +02:00
parent ed4a505a6a
commit bbcc639331
4 changed files with 27 additions and 11 deletions
+3
View File
@@ -77,6 +77,7 @@ pub enum TopLevelKind {
EnumDecl {
visibility: Visibility,
name: Identifier,
generics: Generics,
fields: Vec<EnumItem>,
},
StructDecl {
@@ -89,6 +90,7 @@ pub enum TopLevelKind {
ClassDecl {
visibility: Visibility,
name: Identifier,
generics: Generics,
fields: Vec<VarDeclStmt>,
constructor: ClassConstructor,
methods: Vec<FunctionDecl>,
@@ -126,6 +128,7 @@ pub struct ClassConstructor {
pub struct FunctionDecl {
pub visibility: Visibility,
pub name: Identifier,
pub generics: Generics,
pub params: ParamList,
pub return_type: TypeExpr,
pub body: Block,