[Lazarus] Procedure List + CodeTools not showing nested procedures

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Jul 13 17:53:58 CEST 2016


Hi,

See the attached screenshots showing a comparative Procedure List result
for the same unit with the same search term. The one screenshot is of
Maximus IDE, and the other is from Lazarus IDE.

Lazarus IDE’s Procedure List uses CodeTools to find and populate the
ListView, but it doesn’t find any nested procedures or functions.

eg:

  TMainForm.SomeMethod;
  var
    x,y: integer;

    procedure LocalProc;
    begin
      // some code here
    end;

  begin
    // some code here.
  end;

Lazarus’s Procedure List will not find the LocalProc procedure. The code
to populate the ListView is here…

  procedure TProcedureListForm.PopulateListview;

in the <laz>/ide/procedurelist.pas unit.

Anybody with more CodeTools knowledge than I know what should be changed
to find such nested procedures or functions?


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_lazarus.png
Type: image/png
Size: 9865 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160713/cd5e7d00/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_maximus.png
Type: image/png
Size: 10901 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160713/cd5e7d00/attachment-0003.png>


More information about the Lazarus mailing list