Re: [fpc-pascal] Request to make TJSONStreamer.StreamProperty virtual

2022-10-17 Thread Michael Van Canneyt via fpc-pascal
On Mon, 17 Oct 2022, Michael Van Canneyt via fpc-pascal wrote: On Mon, 17 Oct 2022, Hairy Pixels via fpc-pascal wrote: For the JSON RPC library I wanted to supported dynamic arrays but in order to do this I needed to duplicate TJSONStreamer's ObjectToJSON and StreamProperty in order to

Re: [fpc-pascal] Exploring block statements with CodeTools not working

2022-10-17 Thread Mattias Gaertner via fpc-pascal
On Mon, 17 Oct 2022 08:41:23 +0700 Hairy Pixels via fpc-pascal wrote: > > On Oct 16, 2022, at 9:53 PM, Mattias Gaertner via fpc-pascal > > wrote: > > > > Blocks like WHILE and TRY. > > > > Codetools are optimized for finding declarations of a few > > expressions between edits. To find the para

Re: [fpc-pascal] Exploring block statements with CodeTools not working

2022-10-17 Thread Hairy Pixels via fpc-pascal
> On Oct 17, 2022, at 3:31 PM, Mattias Gaertner via fpc-pascal > wrote: > >> So inlay hints need to be computed with a document range so we don’t >> know a single X,Y position we could use to call FindCodeContext. If I >> had a list of identifiers which were function calls in begin blocks I >>

Re: [fpc-pascal] Request to make TJSONStreamer.StreamProperty virtual

2022-10-17 Thread Hairy Pixels via fpc-pascal
> On Oct 17, 2022, at 2:48 PM, Michael Van Canneyt via fpc-pascal > wrote: > > Small follow-up: > > If you want to extend it, you can find the necessary code in the restbase > unit. It already implements the necessary code to (de)stream arrays, plus > some other enhancements as well. It's on