[fpc-pascal] Pascal Language Server

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 27 23:18:13 CEST 2020


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

> > On Apr 26, 2020, at 4:46 PM, Ryan Joseph <genericptr at 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


More information about the fpc-pascal mailing list