Re: [fpc-pascal] Codetools, identity nodes from includes

2020-07-07 Thread Mattias Gaertner via fpc-pascal
On Tue, 7 Jul 2020 14:09:09 +0700 Ryan Joseph via fpc-pascal wrote: > > On Jul 7, 2020, at 4:57 AM, Mattias Gaertner via fpc-pascal > > wrote: > > > > Something like this: > > > > Node:=AItem.Node; > > if Node<>nil then > > begin > > Scanner:=Tool.Scanner; Scanner:=AItem.Tool.Scanner; > >

Re: [fpc-pascal] Codetools, identity nodes from includes

2020-07-07 Thread Ryan Joseph via fpc-pascal
> On Jul 7, 2020, at 4:57 AM, Mattias Gaertner via fpc-pascal > wrote: > > Something like this: > > Node:=AItem.Node; > if Node<>nil then > begin > Scanner:=Tool.Scanner; > LinkIndex:=Scanner.LinkIndexAtCleanPos(Node.StartPos); > if LinkIndex<0 then >// dangling node, e.g. syntax

Re: [fpc-pascal] Codetools, identity nodes from includes

2020-07-06 Thread Mattias Gaertner via fpc-pascal
On Mon, 6 Jul 2020 10:27:55 +0700 Ryan Joseph via fpc-pascal wrote: > Currently I walk the node tree for a given unit and collect all the > relevant symbols into a list which represents the symbols in the > current document. I'm running into problems with include files > because I'm getting

[fpc-pascal] Codetools, identity nodes from includes

2020-07-05 Thread Ryan Joseph via fpc-pascal
Currently I walk the node tree for a given unit and collect all the relevant symbols into a list which represents the symbols in the current document. I'm running into problems with include files because I'm getting symbols which technically belong to another file which should not be displayed