Working constructor and statements

This commit is contained in:
2026-05-21 14:19:32 +02:00
parent f2257a4e81
commit 80ff10503a
3 changed files with 18 additions and 9 deletions
+2 -1
View File
@@ -87,6 +87,7 @@ impl GenRust for Expression {
} => {
cg.add(&prefixes.get_rust());
initial.gen_rust(ctx, cg);
cg.add(&Some(prefixes).get_rust());
for postfix in postfixes {
postfix.gen_rust(ctx, cg);
}
@@ -126,7 +127,7 @@ impl GetRust for Vec<Prefix> {
}
}
impl GetRust for Option<Vec<Prefix>> {
impl GetRust for Option<&Vec<Prefix>> {
fn get_rust(&self) -> String {
if let Some(prefixes) = self {
prefixes