On Mon, 27 Apr 2020 22:12:30 +0700
Ryan Joseph via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:

> > On Apr 26, 2020, at 4:46 PM, Ryan Joseph <generic...@gmail.com>
> > wrote:
> > 
> > The other thing I'm stuck on with code tools. In TCodeManagerTool:
> > 
> >    function FindReferences(IdentifierCode: TCodeBuffer;
> >          X, Y: integer; SearchInCode: TCodeBuffer; SkipComments:
> > boolean; var ListOfPCodeXYPosition: TFPList;
> >          var Cache: TFindIdentifierReferenceCache  // you must free
> > Cache ): boolean;  
> 
> Any word on this? Is it even possible to find all references in a
> project or do we need to extend code tools for this to work?

No, codetools have everything needed. FindReferences is merely one part.
You need a combination of several tools. Depending on your needs these
may vary.

I added an example for FindReferences:
lazarus/components/codetools/example/findreferences.lpi

Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to