Class method AST gen

This commit is contained in:
2026-05-05 21:44:36 +02:00
parent 4837d39ab7
commit 5b0cb74cee
4 changed files with 92 additions and 8 deletions
+2
View File
@@ -362,7 +362,9 @@ impl ToRust for TopLevelKind {
name,
fields,
constructor,
methods,
} => {
dbg!(methods);
// Struct decl
let vis = if *export { "pub " } else { "" };
cg.addln(&format!("{}struct {} {{", vis, name));