On Thu, 7 May 2020 12:26:53 +0200 Mattias Gaertner via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
>[...]how do I know which include a > > node came from? > > Nodes are always associated with a Tool. Tool.MainFilename gives the > file, where parsing started. > > > I need this information so I can get navigate to the include file > > AND relative text offset into the include file text. > > There are plenty of functions for include files. Can you give an > example what you need? Tool.CleanPosToCaret(Node.StartPos,CXY) Tool.CleanPosToCodePos(Node.StartPos,CP) Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal