From 5fc3927c5db4a01f92bb8851e0d3332019dc65ef Mon Sep 17 00:00:00 2001 From: i22007 Date: Thu, 4 Jul 2024 13:59:12 -0400 Subject: [PATCH] Revert "Add typenode again" This reverts commit fbff03c3d796e06e7dd573dce2e4d9f8e70cab6a. --- .../expressions/unaryexpressions/MemberAccessNode.java | 10 ---------- .../crementexpressions/DecrementNode.java | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/main/java/ast/expressions/unaryexpressions/MemberAccessNode.java b/src/main/java/ast/expressions/unaryexpressions/MemberAccessNode.java index 01f220f..29de4dd 100644 --- a/src/main/java/ast/expressions/unaryexpressions/MemberAccessNode.java +++ b/src/main/java/ast/expressions/unaryexpressions/MemberAccessNode.java @@ -1,7 +1,6 @@ package ast.expressions.unaryexpressions; import ast.ASTNode; -import ast.type.type.ITypeNode; import bytecode.visitor.MethodVisitor; import semantic.SemanticVisitor; @@ -14,7 +13,6 @@ import java.util.List; public class MemberAccessNode implements ASTNode, Visitable { public Boolean thisExpr; public List identifiers = new ArrayList<>(); - private ITypeNode typeNode; public MemberAccessNode(Boolean thisExpr) { this.thisExpr = thisExpr; @@ -33,13 +31,5 @@ public class MemberAccessNode implements ASTNode, Visitable { return visitor.analyze(this); } - public ITypeNode getTypeNode() { - return typeNode; - } - - public void setTypeNode(ITypeNode typeNode) { - this.typeNode = typeNode; - } - } diff --git a/src/main/java/ast/statementexpressions/crementexpressions/DecrementNode.java b/src/main/java/ast/statementexpressions/crementexpressions/DecrementNode.java index 3af44e2..df49a87 100644 --- a/src/main/java/ast/statementexpressions/crementexpressions/DecrementNode.java +++ b/src/main/java/ast/statementexpressions/crementexpressions/DecrementNode.java @@ -2,10 +2,8 @@ package ast.statementexpressions.crementexpressions; import ast.statementexpressions.AssignableNode; import ast.statementexpressions.IStatementExpressionNode; -import bytecode.visitor.MethodVisitor; import semantic.SemanticVisitor; import semantic.TypeCheckResult; -import visitor.Visitable; public class DecrementNode implements IStatementExpressionNode, Visitable { public CrementType crementType;