Patrick Flannery wrote:
Any suggestions or pointers to related work would be much appreciated.
The GNAT front end generates the kind of information you are suggesting for Ada (see format of ali files), and GPS has a refactoring tool that makes use of this information, so that might be one place to look for ideas.