Stuck on another code tools problem.

I've been using code like this to find words at node offsets and this works 
well until there are $ifdefs in the file and then the text position getting 
offset and fail to return the correct identifiers.

GetIdentifier(@Code.Source[Node.StartPos]);

How should this be resolved? I don't see there is a copy of the actual text 
parsed (without ifdefs) so I don't know how to reference the text that the 
parser actually used.

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