# HG changeset patch # User Jan Vrany # Date 1311778783 -7200 # Node ID 571b921019230c42b407383cfef099c2d853362c # Parent 02cf4816ae5e8706ecdb8b70f990a3426f2ecc95 More fixes to keep node position in the source. Not yet fully implemented diff -r 02cf4816ae5e -r 571b92101923 AssignmentNode.st --- a/AssignmentNode.st Tue Jul 26 00:37:30 2011 +0200 +++ b/AssignmentNode.st Wed Jul 27 16:59:43 2011 +0200 @@ -79,7 +79,9 @@ expression := something. expression notNil ifTrue:[expression parent: self]. - "Modified: / 20-07-2011 / 19:48:47 / Jan Vrany " + endPosition := expression endPosition. + + "Modified: / 27-07-2011 / 13:50:23 / Jan Vrany " ! lineNr @@ -118,7 +120,9 @@ variable := something. variable notNil ifTrue:[variable parent: self]. - "Modified: / 20-07-2011 / 19:48:53 / Jan Vrany " + startPosition := variable startPosition. + + "Modified: / 27-07-2011 / 13:50:36 / Jan Vrany " ! variable:v expression:e @@ -131,6 +135,9 @@ expression := e. expression notNil ifTrue:[expression parent: self]. + startPosition := variable startPosition. + endPosition := expression endPosition. + "/ any block, which gets assigned to something "/ cannot be inlined. (e notNil and:[e isBlockNode]) ifTrue:[ @@ -138,7 +145,7 @@ ] "Modified: / 22-02-2011 / 12:52:56 / Jakub " - "Modified: / 20-07-2011 / 19:49:02 / Jan Vrany " + "Modified: / 27-07-2011 / 13:50:46 / Jan Vrany " ! ! !AssignmentNode methodsFor:'code generation'! @@ -340,7 +347,7 @@ !AssignmentNode class methodsFor:'documentation'! version_CVS - ^ '$Header: /cvs/stx/stx/libcomp/AssignmentNode.st,v 1.42 2011-07-25 22:35:50 vrany Exp $' + ^ '$Header: /cvs/stx/stx/libcomp/AssignmentNode.st,v 1.43 2011-07-27 14:59:43 vrany Exp $' ! version_SVN