mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 07:18:03 +00:00
set field in recipient for method to true and update test
This commit is contained in:
parent
4efa45f668
commit
eee1c139a7
@ -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();
|
||||
|
@ -94,7 +94,7 @@ public class AST_ComplexCalls {
|
||||
true,
|
||||
new MethodCall(
|
||||
new FieldVarAccess(
|
||||
false,
|
||||
true,
|
||||
null,
|
||||
"getClassObject"
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user