Page 1 of 1

IDE - Access to internal code information

Posted: Sun Jul 28, 2013 2:37 pm
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.