From: Andre B. <and...@gm...> - 2003-04-05 08:47:38
|
Hello, I was debugging the problem which has been reported by Baptiste, luckily the problem is not located in the identifier resolver. The Problem lies within the refactoring routines. the code searches for the surrounding Compound Statement of the currently selected temporary variable and parses only this source code area: int x; { // parsing from here y = x; // <-- select this "x" for refactoring } // parsing ends here If you select the inner variable 'x' the refactoring will report 'x' is not a local variable because it does not parse the declaration. I'll check how to get arround this. Currently I have in mind to implement an iterative procedure which first parses the inner compound and than takes more code if the declaration was not found. However with this we can run into a problem if we get out side the function which is analysed. Parsing will than fail. until later, andré |