mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 15:18:04 +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.records.Expression;
|
||||||
import de.maishai.ast.Operator;
|
import de.maishai.ast.Operator;
|
||||||
import de.maishai.ast.records.*;
|
import de.maishai.ast.records.*;
|
||||||
import de.maishai.typedast.Type;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -139,7 +138,7 @@ public class ExpressionGenerator extends DecafBaseVisitor<Expression> {
|
|||||||
args.add(astExpr);
|
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();
|
throw new RuntimeException();
|
||||||
|
@ -94,7 +94,7 @@ public class AST_ComplexCalls {
|
|||||||
true,
|
true,
|
||||||
new MethodCall(
|
new MethodCall(
|
||||||
new FieldVarAccess(
|
new FieldVarAccess(
|
||||||
false,
|
true,
|
||||||
null,
|
null,
|
||||||
"getClassObject"
|
"getClassObject"
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user