diff --git a/Source/TypeCheck/AbstractType.java b/Source/TypeCheck/AbstractType.java index 068b139..ea2fd30 100644 --- a/Source/TypeCheck/AbstractType.java +++ b/Source/TypeCheck/AbstractType.java @@ -12,4 +12,4 @@ public abstract class AbstractType { public TypeCheckResult getTypeCheckResult() { return typeCheckResult; } -} +} \ No newline at end of file diff --git a/Source/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java b/Source/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java index 11c7fb1..5538467 100644 --- a/Source/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java +++ b/Source/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java @@ -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); diff --git a/Source/abstractSyntaxTree/StatementExpression/SuperStatementExpression.java b/Source/abstractSyntaxTree/StatementExpression/SuperStatementExpression.java new file mode 100644 index 0000000..61fa3cc --- /dev/null +++ b/Source/abstractSyntaxTree/StatementExpression/SuperStatementExpression.java @@ -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 arguments) { + super(methodName, arguments); + } +}