<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto">Hi all,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Using "CodeGen/LexicalScopes" pass, I could collect scope information i.e. start and end line numbers.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I also want to collect information of variables within the scope. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">For the below example:</div>
<div style="RIGHT: auto"> </div>
<DIV style="RIGHT: auto">int global;</DIV>
<DIV style="RIGHT: auto">int func( int t)</DIV>
<DIV style="RIGHT: auto">{  </DIV>
<DIV style="RIGHT: auto">  //scope 1</DIV>
<DIV style="RIGHT: auto">  { </DIV>
<DIV style="RIGHT: auto">     int a;</DIV>
<DIV style="RIGHT: auto">     ....</DIV>
<DIV style="RIGHT: auto">  } </DIV>
<DIV style="RIGHT: auto">  return x;</DIV>
<DIV style="RIGHT: auto">} <VAR id=yiv1358224140yui-ie-cursor></VAR></DIV>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR>For "scope 1", I should be able to collect that "a" is a local variable in scope1 and should also be able to identify whether "a" is static or non-static.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Regards,<BR>Pankaj</div></div></body></html>