compiler/PPCAbstractLiteralNode.st
changeset 421 7e08b31e0dae
parent 414 0eaf09920532
child 422 116d2b2af905
--- a/compiler/PPCAbstractLiteralNode.st	Wed Nov 19 10:52:37 2014 +0000
+++ b/compiler/PPCAbstractLiteralNode.st	Mon Nov 24 00:09:23 2014 +0000
@@ -37,6 +37,17 @@
 	^ #lit
 ! !
 
+!PPCAbstractLiteralNode methodsFor:'comparison'!
+
+= anotherNode
+	super = anotherNode ifFalse: [ ^ false ].
+	^ literal = anotherNode literal.
+!
+
+hash
+	^ super hash bitXor: literal hash
+! !
+
 !PPCAbstractLiteralNode methodsFor:'compiling'!
 
 encodeQuotes: string