Re: DECL_SOURCE_LINE of else

2010-10-11 Thread Ian Lance Taylor
Peter Jensen writes: > I am creating a plugin which parses the generic tree and inserts a function > call in a if/else clause. > The function writes which lineno gets executed to stdout. > I wish to get the line number for the if statement and for the else > statement. (and not the body. eg ELS

DECL_SOURCE_LINE of else

2010-10-11 Thread Peter Jensen
Hi, I am creating a plugin which parses the generic tree and inserts a function call in a if/else clause. The function writes which lineno gets executed to stdout. I wish to get the line number for the if statement and for the else statement. (and not the body. eg ELSE_CLAUSE). My problem is tha