Re: [CIL users] Access to Parent Structure

2013-07-03 Thread Gabriel Kerneis
On Wed, Jul 03, 2013 at 03:59:10PM +0300, Alex Susu wrote: > A suggestion (this is actually the main reason I wrote this email): the > ChangeDoChildrenPost is a very useful feature - I used it to build and > update at the end of the visit the stackStmt. Now I wonder if it is > worthy to have a simp

Re: [CIL users] Access to Parent Structure

2013-07-03 Thread Alex Susu
Hi. I also needed for one of my CIL modules to access the parent statement of a statement, but also the parent of the parent, etc. So I follow up this thread of discussion. You can find a possible implementation of obtaining the parents of AST nodes below - the code worked well fo