Class method AST and grammar

This commit is contained in:
2026-05-05 20:30:15 +02:00
parent 9e5d030b0c
commit 4837d39ab7
3 changed files with 22 additions and 3 deletions
+9
View File
@@ -89,6 +89,15 @@ pub struct ClassConstructor {
pub body: Block,
}
#[derive(Debug, Clone, Serialize)]
pub struct ClassMethod {
export: bool,
name: String,
params: ParamList,
return_type: TypeExpr,
body: Block,
}
#[derive(Debug, Clone, Serialize)]
pub enum Postfix {
FieldAccess(String),