> On Apr 28, 2020, at 3:26 PM, Michael Van Canneyt <mich...@freepascal.org> 
> wrote:
> 
> That's a wrong approach. Pascal units are in a uses-tree. You need a starting 
> point, the top of the tree: a single module.

I can make the user provide the program file and start from there but then the 
references in other units not related to the  main program will not be found.

Mattias says we can call AddStartUnit multiple times but there's no logic I can 
use besides adding all files in the provided directories.

Here's what I'm trying to implement:

https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#textDocument_references

It's just a project wide search so what can we do besides just add all files 
found in the project?

Regards,
        Ryan Joseph

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

Reply via email to