Fixed MNU in PPCSpecializingVisitor>>visitTrimmingTokenNode: node
Set child of PPCTrimmingCharacterTokenNode before setting name
as child is used to compute meaningful name.
--- a/compiler/PPCSpecializingVisitor.st Thu May 21 14:35:34 2015 +0100
+++ b/compiler/PPCSpecializingVisitor.st Thu May 21 14:43:38 2015 +0100
@@ -9,6 +9,7 @@
category:'PetitCompiler-Visitors'
!
+
!PPCSpecializingVisitor methodsFor:'visiting'!
visitActionNode: node
@@ -188,13 +189,22 @@
(node child isKindOf: PPCCharacterNode) ifTrue: [
self change.
^ PPCTrimmingCharacterTokenNode new
- name: node name;
+ child: node child;
whitespace: node whitespace;
tokenClass: node tokenClass;
- child: node child;
+ name: node name;
yourself
].
^ node
+
+ "Modified: / 21-05-2015 / 14:41:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
+!PPCSpecializingVisitor class methodsFor:'documentation'!
+
+version_HG
+
+ ^ '$Changeset: <not expanded> $'
+! !
+