AssignmentNode.st
changeset 2609 571b92101923
parent 2603 342b2361b791
child 3163 a404d6ce2caf
equal deleted inserted replaced
2608:02cf4816ae5e 2609:571b92101923
    77 
    77 
    78     expression notNil ifTrue:[expression parent: nil].
    78     expression notNil ifTrue:[expression parent: nil].
    79     expression := something.
    79     expression := something.
    80     expression notNil ifTrue:[expression parent: self].
    80     expression notNil ifTrue:[expression parent: self].
    81 
    81 
    82     "Modified: / 20-07-2011 / 19:48:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    82     endPosition := expression endPosition.
       
    83 
       
    84     "Modified: / 27-07-2011 / 13:50:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    83 !
    85 !
    84 
    86 
    85 lineNr
    87 lineNr
    86     ^ lineNr
    88     ^ lineNr
    87 !
    89 !
   116 
   118 
   117     variable notNil ifTrue:[variable parent: nil].
   119     variable notNil ifTrue:[variable parent: nil].
   118     variable := something.
   120     variable := something.
   119     variable notNil ifTrue:[variable parent: self].
   121     variable notNil ifTrue:[variable parent: self].
   120 
   122 
   121     "Modified: / 20-07-2011 / 19:48:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   123     startPosition := variable startPosition.
       
   124 
       
   125     "Modified: / 27-07-2011 / 13:50:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   122 !
   126 !
   123 
   127 
   124 variable:v expression:e
   128 variable:v expression:e
   125 
   129 
   126     variable notNil ifTrue:[variable parent: nil].
   130     variable notNil ifTrue:[variable parent: nil].
   128     variable notNil ifTrue:[variable parent: self].
   132     variable notNil ifTrue:[variable parent: self].
   129 
   133 
   130     expression notNil ifTrue:[expression parent: nil].
   134     expression notNil ifTrue:[expression parent: nil].
   131     expression := e.
   135     expression := e.
   132     expression notNil ifTrue:[expression parent: self].
   136     expression notNil ifTrue:[expression parent: self].
       
   137 
       
   138     startPosition := variable startPosition.
       
   139     endPosition := expression endPosition.
   133 
   140 
   134     "/ any block, which gets assigned to something
   141     "/ any block, which gets assigned to something
   135     "/ cannot be inlined.
   142     "/ cannot be inlined.
   136     (e notNil and:[e isBlockNode]) ifTrue:[
   143     (e notNil and:[e isBlockNode]) ifTrue:[
   137         e possiblyInlined:false
   144         e possiblyInlined:false
   138     ]
   145     ]
   139 
   146 
   140     "Modified: / 22-02-2011 / 12:52:56 / Jakub <zelenja7@fel.cvut.cz>"
   147     "Modified: / 22-02-2011 / 12:52:56 / Jakub <zelenja7@fel.cvut.cz>"
   141     "Modified: / 20-07-2011 / 19:49:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   148     "Modified: / 27-07-2011 / 13:50:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   142 ! !
   149 ! !
   143 
   150 
   144 !AssignmentNode methodsFor:'code generation'!
   151 !AssignmentNode methodsFor:'code generation'!
   145 
   152 
   146 checkIncDecOn:aStream
   153 checkIncDecOn:aStream
   338 ! !
   345 ! !
   339 
   346 
   340 !AssignmentNode class methodsFor:'documentation'!
   347 !AssignmentNode class methodsFor:'documentation'!
   341 
   348 
   342 version_CVS
   349 version_CVS
   343     ^ '$Header: /cvs/stx/stx/libcomp/AssignmentNode.st,v 1.42 2011-07-25 22:35:50 vrany Exp $'
   350     ^ '$Header: /cvs/stx/stx/libcomp/AssignmentNode.st,v 1.43 2011-07-27 14:59:43 vrany Exp $'
   344 !
   351 !
   345 
   352 
   346 version_SVN
   353 version_SVN
   347     ^ '§ Id §'
   354     ^ '§ Id §'
   348 ! !
   355 ! !