aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-10-31 16:09:03 +0000
committerMichael Williamson <mike@zwobble.org>2015-10-31 16:09:03 +0000
commit34d35e70455756f9a17e7713ae58fd3cf56e2355 (patch)
tree18e9ef36b6a034d22f038828ef9a9fcf2e3da63c /src/main/java
parentad4903f04c757779b2e9a875298ef8418cb140b4 (diff)
Remove custom equality and hashCode from Python AST
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonAssignmentNode.java25
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonAttributeAccessNode.java25
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonBooleanLiteralNode.java17
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonCallNode.java25
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonClassNode.java25
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonConditionalExpressionNode.java30
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonFunctionDefinitionNode.java30
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonGetSliceNode.java25
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportAliasNode.java20
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportNode.java25
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonIntegerLiteralNode.java17
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonModuleNode.java20
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonReturnNode.java20
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonStringLiteralNode.java20
-rw-r--r--src/main/java/org/zwobble/couscous/backends/python/ast/PythonVariableReferenceNode.java20
15 files changed, 0 insertions, 344 deletions
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAssignmentNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAssignmentNode.java
index 37ca7b7..e00627f 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAssignmentNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAssignmentNode.java
@@ -29,31 +29,6 @@ public final class PythonAssignmentNode implements PythonStatementNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonAssignmentNode)) return false;
- final PythonAssignmentNode other = (PythonAssignmentNode)o;
- final java.lang.Object this$target = this.getTarget();
- final java.lang.Object other$target = other.getTarget();
- if (this$target == null ? other$target != null : !this$target.equals(other$target)) return false;
- final java.lang.Object this$value = this.getValue();
- final java.lang.Object other$value = other.getValue();
- if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $target = this.getTarget();
- result = result * PRIME + ($target == null ? 43 : $target.hashCode());
- final java.lang.Object $value = this.getValue();
- result = result * PRIME + ($value == null ? 43 : $value.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonAssignmentNode(target=" + this.getTarget() + ", value=" + this.getValue() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAttributeAccessNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAttributeAccessNode.java
index bb46af3..95e6cf0 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAttributeAccessNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonAttributeAccessNode.java
@@ -29,31 +29,6 @@ public final class PythonAttributeAccessNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonAttributeAccessNode)) return false;
- final PythonAttributeAccessNode other = (PythonAttributeAccessNode)o;
- final java.lang.Object this$left = this.getLeft();
- final java.lang.Object other$left = other.getLeft();
- if (this$left == null ? other$left != null : !this$left.equals(other$left)) return false;
- final java.lang.Object this$attributeName = this.getAttributeName();
- final java.lang.Object other$attributeName = other.getAttributeName();
- if (this$attributeName == null ? other$attributeName != null : !this$attributeName.equals(other$attributeName)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $left = this.getLeft();
- result = result * PRIME + ($left == null ? 43 : $left.hashCode());
- final java.lang.Object $attributeName = this.getAttributeName();
- result = result * PRIME + ($attributeName == null ? 43 : $attributeName.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonAttributeAccessNode(left=" + this.getLeft() + ", attributeName=" + this.getAttributeName() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonBooleanLiteralNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonBooleanLiteralNode.java
index 3f3d9a0..893f2e1 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonBooleanLiteralNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonBooleanLiteralNode.java
@@ -23,23 +23,6 @@ public final class PythonBooleanLiteralNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonBooleanLiteralNode)) return false;
- final PythonBooleanLiteralNode other = (PythonBooleanLiteralNode)o;
- if (this.getValue() != other.getValue()) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- result = result * PRIME + (this.getValue() ? 79 : 97);
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonBooleanLiteralNode(value=" + this.getValue() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonCallNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonCallNode.java
index 6cc5b11..ae3761b 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonCallNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonCallNode.java
@@ -30,31 +30,6 @@ public final class PythonCallNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonCallNode)) return false;
- final PythonCallNode other = (PythonCallNode)o;
- final java.lang.Object this$callee = this.getCallee();
- final java.lang.Object other$callee = other.getCallee();
- if (this$callee == null ? other$callee != null : !this$callee.equals(other$callee)) return false;
- final java.lang.Object this$arguments = this.getArguments();
- final java.lang.Object other$arguments = other.getArguments();
- if (this$arguments == null ? other$arguments != null : !this$arguments.equals(other$arguments)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $callee = this.getCallee();
- result = result * PRIME + ($callee == null ? 43 : $callee.hashCode());
- final java.lang.Object $arguments = this.getArguments();
- result = result * PRIME + ($arguments == null ? 43 : $arguments.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonCallNode(callee=" + this.getCallee() + ", arguments=" + this.getArguments() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonClassNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonClassNode.java
index 8fe2ffe..d4df450 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonClassNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonClassNode.java
@@ -58,31 +58,6 @@ public final class PythonClassNode implements PythonStatementNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonClassNode)) return false;
- final PythonClassNode other = (PythonClassNode)o;
- final java.lang.Object this$name = this.getName();
- final java.lang.Object other$name = other.getName();
- if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
- final java.lang.Object this$body = this.getBody();
- final java.lang.Object other$body = other.getBody();
- if (this$body == null ? other$body != null : !this$body.equals(other$body)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $name = this.getName();
- result = result * PRIME + ($name == null ? 43 : $name.hashCode());
- final java.lang.Object $body = this.getBody();
- result = result * PRIME + ($body == null ? 43 : $body.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonClassNode(name=" + this.getName() + ", body=" + this.getBody() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonConditionalExpressionNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonConditionalExpressionNode.java
index 13f5e99..a320cd2 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonConditionalExpressionNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonConditionalExpressionNode.java
@@ -35,36 +35,6 @@ public final class PythonConditionalExpressionNode implements PythonExpressionNo
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonConditionalExpressionNode)) return false;
- final PythonConditionalExpressionNode other = (PythonConditionalExpressionNode)o;
- final java.lang.Object this$condition = this.getCondition();
- final java.lang.Object other$condition = other.getCondition();
- if (this$condition == null ? other$condition != null : !this$condition.equals(other$condition)) return false;
- final java.lang.Object this$trueValue = this.getTrueValue();
- final java.lang.Object other$trueValue = other.getTrueValue();
- if (this$trueValue == null ? other$trueValue != null : !this$trueValue.equals(other$trueValue)) return false;
- final java.lang.Object this$falseValue = this.getFalseValue();
- final java.lang.Object other$falseValue = other.getFalseValue();
- if (this$falseValue == null ? other$falseValue != null : !this$falseValue.equals(other$falseValue)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $condition = this.getCondition();
- result = result * PRIME + ($condition == null ? 43 : $condition.hashCode());
- final java.lang.Object $trueValue = this.getTrueValue();
- result = result * PRIME + ($trueValue == null ? 43 : $trueValue.hashCode());
- final java.lang.Object $falseValue = this.getFalseValue();
- result = result * PRIME + ($falseValue == null ? 43 : $falseValue.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonConditionalExpressionNode(condition=" + this.getCondition() + ", trueValue=" + this.getTrueValue() + ", falseValue=" + this.getFalseValue() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonFunctionDefinitionNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonFunctionDefinitionNode.java
index 8c50ebd..c497a26 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonFunctionDefinitionNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonFunctionDefinitionNode.java
@@ -62,36 +62,6 @@ public final class PythonFunctionDefinitionNode implements PythonStatementNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonFunctionDefinitionNode)) return false;
- final PythonFunctionDefinitionNode other = (PythonFunctionDefinitionNode)o;
- final java.lang.Object this$name = this.getName();
- final java.lang.Object other$name = other.getName();
- if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
- final java.lang.Object this$argumentNames = this.getArgumentNames();
- final java.lang.Object other$argumentNames = other.getArgumentNames();
- if (this$argumentNames == null ? other$argumentNames != null : !this$argumentNames.equals(other$argumentNames)) return false;
- final java.lang.Object this$body = this.getBody();
- final java.lang.Object other$body = other.getBody();
- if (this$body == null ? other$body != null : !this$body.equals(other$body)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $name = this.getName();
- result = result * PRIME + ($name == null ? 43 : $name.hashCode());
- final java.lang.Object $argumentNames = this.getArgumentNames();
- result = result * PRIME + ($argumentNames == null ? 43 : $argumentNames.hashCode());
- final java.lang.Object $body = this.getBody();
- result = result * PRIME + ($body == null ? 43 : $body.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonFunctionDefinitionNode(name=" + this.getName() + ", argumentNames=" + this.getArgumentNames() + ", body=" + this.getBody() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonGetSliceNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonGetSliceNode.java
index 2298086..70343d8 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonGetSliceNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonGetSliceNode.java
@@ -30,31 +30,6 @@ public final class PythonGetSliceNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonGetSliceNode)) return false;
- final PythonGetSliceNode other = (PythonGetSliceNode)o;
- final java.lang.Object this$receiver = this.getReceiver();
- final java.lang.Object other$receiver = other.getReceiver();
- if (this$receiver == null ? other$receiver != null : !this$receiver.equals(other$receiver)) return false;
- final java.lang.Object this$arguments = this.getArguments();
- final java.lang.Object other$arguments = other.getArguments();
- if (this$arguments == null ? other$arguments != null : !this$arguments.equals(other$arguments)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $receiver = this.getReceiver();
- result = result * PRIME + ($receiver == null ? 43 : $receiver.hashCode());
- final java.lang.Object $arguments = this.getArguments();
- result = result * PRIME + ($arguments == null ? 43 : $arguments.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonGetSliceNode(receiver=" + this.getReceiver() + ", arguments=" + this.getArguments() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportAliasNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportAliasNode.java
index 783eb4e..1066cf2 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportAliasNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportAliasNode.java
@@ -16,26 +16,6 @@ public final class PythonImportAliasNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonImportAliasNode)) return false;
- final PythonImportAliasNode other = (PythonImportAliasNode)o;
- final java.lang.Object this$name = this.getName();
- final java.lang.Object other$name = other.getName();
- if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $name = this.getName();
- result = result * PRIME + ($name == null ? 43 : $name.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonImportAliasNode(name=" + this.getName() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportNode.java
index 4916cf7..c884a4a 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonImportNode.java
@@ -30,31 +30,6 @@ public final class PythonImportNode implements PythonStatementNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonImportNode)) return false;
- final PythonImportNode other = (PythonImportNode)o;
- final java.lang.Object this$moduleName = this.getModuleName();
- final java.lang.Object other$moduleName = other.getModuleName();
- if (this$moduleName == null ? other$moduleName != null : !this$moduleName.equals(other$moduleName)) return false;
- final java.lang.Object this$aliases = this.getAliases();
- final java.lang.Object other$aliases = other.getAliases();
- if (this$aliases == null ? other$aliases != null : !this$aliases.equals(other$aliases)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $moduleName = this.getModuleName();
- result = result * PRIME + ($moduleName == null ? 43 : $moduleName.hashCode());
- final java.lang.Object $aliases = this.getAliases();
- result = result * PRIME + ($aliases == null ? 43 : $aliases.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonImportNode(moduleName=" + this.getModuleName() + ", aliases=" + this.getAliases() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonIntegerLiteralNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonIntegerLiteralNode.java
index 459ad6d..ce09767 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonIntegerLiteralNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonIntegerLiteralNode.java
@@ -23,23 +23,6 @@ public final class PythonIntegerLiteralNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonIntegerLiteralNode)) return false;
- final PythonIntegerLiteralNode other = (PythonIntegerLiteralNode)o;
- if (this.getValue() != other.getValue()) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- result = result * PRIME + this.getValue();
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonIntegerLiteralNode(value=" + this.getValue() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonModuleNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonModuleNode.java
index a95b6c5..f0f624f 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonModuleNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonModuleNode.java
@@ -24,26 +24,6 @@ public final class PythonModuleNode implements PythonNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonModuleNode)) return false;
- final PythonModuleNode other = (PythonModuleNode)o;
- final java.lang.Object this$statements = this.getStatements();
- final java.lang.Object other$statements = other.getStatements();
- if (this$statements == null ? other$statements != null : !this$statements.equals(other$statements)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $statements = this.getStatements();
- result = result * PRIME + ($statements == null ? 43 : $statements.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonModuleNode(statements=" + this.getStatements() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonReturnNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonReturnNode.java
index 1967dd3..b84f186 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonReturnNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonReturnNode.java
@@ -23,26 +23,6 @@ public final class PythonReturnNode implements PythonStatementNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonReturnNode)) return false;
- final PythonReturnNode other = (PythonReturnNode)o;
- final java.lang.Object this$value = this.getValue();
- final java.lang.Object other$value = other.getValue();
- if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $value = this.getValue();
- result = result * PRIME + ($value == null ? 43 : $value.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonReturnNode(value=" + this.getValue() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonStringLiteralNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonStringLiteralNode.java
index 3907555..d64be5f 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonStringLiteralNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonStringLiteralNode.java
@@ -23,26 +23,6 @@ public final class PythonStringLiteralNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonStringLiteralNode)) return false;
- final PythonStringLiteralNode other = (PythonStringLiteralNode)o;
- final java.lang.Object this$value = this.getValue();
- final java.lang.Object other$value = other.getValue();
- if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $value = this.getValue();
- result = result * PRIME + ($value == null ? 43 : $value.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonStringLiteralNode(value=" + this.getValue() + ")";
}
diff --git a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonVariableReferenceNode.java b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonVariableReferenceNode.java
index 4edad3e..876ac14 100644
--- a/src/main/java/org/zwobble/couscous/backends/python/ast/PythonVariableReferenceNode.java
+++ b/src/main/java/org/zwobble/couscous/backends/python/ast/PythonVariableReferenceNode.java
@@ -23,26 +23,6 @@ public final class PythonVariableReferenceNode implements PythonExpressionNode {
}
@java.lang.Override
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof PythonVariableReferenceNode)) return false;
- final PythonVariableReferenceNode other = (PythonVariableReferenceNode)o;
- final java.lang.Object this$name = this.getName();
- final java.lang.Object other$name = other.getName();
- if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- final java.lang.Object $name = this.getName();
- result = result * PRIME + ($name == null ? 43 : $name.hashCode());
- return result;
- }
-
- @java.lang.Override
public java.lang.String toString() {
return "PythonVariableReferenceNode(name=" + this.getName() + ")";
}