Added SuperStatementExpression
This commit is contained in:
parent
34b33d7353
commit
352531d680
@ -38,7 +38,7 @@ public class AssignStatementExpression extends AbstractType implements IExpressi
|
|||||||
right.CodeGen(mv);
|
right.CodeGen(mv);
|
||||||
|
|
||||||
if (left instanceof VarRefExpression varRef) {
|
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
|
// for that to determine if the variable is a local or field variable
|
||||||
} else if (left instanceof InstVarExpression instVar) {
|
} else if (left instanceof InstVarExpression instVar) {
|
||||||
mv.visitInsn(Opcodes.DUP_X1);
|
mv.visitInsn(Opcodes.DUP_X1);
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user