[Lazarus] IDE package interface question

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 1 00:26:38 CET 2011


On Tue, 01 Feb 2011 00:13:50 +0100
<dhkblaszyk at zeelandnet.nl> wrote:

>  On Mon, 31 Jan 2011 23:35:11 +0100, Mattias Gaertner 
>  <nc-gaertnma at netcologne.de> wrote:
> >>   if AUnit <> CachedUnit then
> >>   begin
> >
> > Maybe the above if is the cause. Remove it.
> 
>  I found the problem. The line and column number were switched. 
>  Therefore CleanPos was bogus.
> 
>  Now one last problem, how to find the method name? 
>  ProcNode.DescAsString allways gves me "Procedure". Do I need to search 
>  for another NodeType or use some other method of TCodeTreeNode?

CodeTool.ExtractProcHead(ProcNode,Attributes);

Mattias




More information about the Lazarus mailing list