set field in recipient for method to true and update test

This commit is contained in:
Boolean-true 2024-06-25 20:50:50 +02:00
parent 4efa45f668
commit eee1c139a7
2 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@ import de.maishai.ast.UnaryOperator;
import de.maishai.ast.records.Expression;
import de.maishai.ast.Operator;
import de.maishai.ast.records.*;
import de.maishai.typedast.Type;
import java.util.ArrayList;
import java.util.List;
@ -139,7 +138,7 @@ public class ExpressionGenerator extends DecafBaseVisitor<Expression> {
args.add(astExpr);
}
}
return new MethodCall(new FieldVarAccess(false, generateRecursiveOwnerChain(ctxList, recipient), ctx.methName().id().IDENTIFIER().getText()), args);
return new MethodCall(new FieldVarAccess(true, generateRecursiveOwnerChain(ctxList, recipient), ctx.methName().id().IDENTIFIER().getText()), args);
}
throw new RuntimeException();

View File

@ -94,7 +94,7 @@ public class AST_ComplexCalls {
true,
new MethodCall(
new FieldVarAccess(
false,
true,
null,
"getClassObject"
),