On Sun, 16 Oct 2022 21:05:23 +0700
Hairy Pixels via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:

> > On Oct 16, 2022, at 4:17 PM, Mattias Gaertner via fpc-pascal
> > <fpc-pascal@lists.freepascal.org> wrote:
> > 
> > That's correct. There are no nodes for simple statements like
> > "a:=1".  
> 
> Really? I was going to use this to find unknown identifiers (for LSP
> diagnostics) and try to implement LSP’s new inlay parameter hints
> feature. I didn’t see function calls appear as nodes either. Is there
> anything at all that’s captured in code blocks?

Blocks like WHILE and TRY.

Codetools are optimized for finding declarations of a few expressions
between edits. To find the parameters, call for each identifier
followed by ( the FindCodeContext function.

Mattias

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

Reply via email to