delphistructuretoolsapi

How to get the structure of a module by ToolsAPI in Delphi?


I want to get the structure information of a module (pascal unit) by ToolsAPI. just like the structure view of the IDE does.

Classes, Records, Interfaces, Variables/Constants, etc Members, Parameters, etc.

Is there already an easy & efficient way to get these metadata?


Solution

  • Maybe using a parser is not so bad idea?