IDE - Access to internal code information

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

IDE - Access to internal code information

Post by c4s »

Sorry for the confusing title. What I mean is: The IDE already knows about all variables/procedures/macros of the loaded source code(s). Including all relevant information such as the parameters, (return) type, declaration location etc.

My simply yet extremely powerful request is to make this information publicly available. It would allow us to easily create all sorts of helpful tools such as code cleanup, refactoring, documentation creation and much more. This would be awesome! 8)


Edit, 2013-08-01:
E.g. for the following extremely simple example code...

Code: Select all

Procedure Test(string.s, number=42)
EndProcedure
...we could get: File="C:\test.pb", Line=1, Type=#PB_Procedure, Name="Test", Return-Type=#PB_Integer, Parameter-List={(Name="string", Type=#PB_String, Default=None), (Name="number", Type=#PB_Integer, Default=42)} and so on.

As I said, the IDE already has all this information otherwise it wouldn't be able to give us cool features such as code completion, list of procedures, jump to declaration etc.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!