Added SuperStatementExpression

This commit is contained in:
Jochen Seyfried 2024-05-08 10:40:44 +02:00
parent 34b33d7353
commit 352531d680
3 changed files with 12 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class AssignStatementExpression extends AbstractType implements IExpressi
right.CodeGen(mv);
if (left instanceof VarRefExpression varRef) {
//TODO: Implement the handling of a variable reference --> I need a lis of local variables
//TODO: Implement the handling of a variable reference --> I need a list of local variables
// for that to determine if the variable is a local or field variable
} else if (left instanceof InstVarExpression instVar) {
mv.visitInsn(Opcodes.DUP_X1);

View File

@ -0,0 +1,10 @@
package abstractSyntaxTree.StatementExpression;
import abstractSyntaxTree.Expression.IExpression;
import java.util.List;
public class SuperStatementExpression extends MethodCallStatementExpression{
public SuperStatementExpression(String methodName, List<IExpression> arguments) {
super(methodName, arguments);
}
}