[Soot-list] Position Tagger

Tristan RATCHFORD tratch at cs.mcgill.ca
Thu Mar 11 15:45:31 EST 2010


Hi Eric,

This information should be sufficient to accomplish what I am trying to 
do, but I still can't seem to get the SourceLnPosTag in the TagList of a 
Unit. When I set the option, set_keep_line_number(true), all I get is a 
Tag of type LineNumberTag. Can you tell me which option includes the 
SourceLnPosTag?

Thanks for you time,

Tristan


On 11/03/10 01:18 PM, Eric Bodden wrote:
>> My apologies, I should of been more specific. I'm looking for the offset
>> from the beginning of the source file, not within a particular line.
>>      
> I see. There's no way to retrieve that information because it is
> nowhere stored during Java->  Jimple conversion. But assuming that you
> have the source file, it should be no problem to compute the offset
> based on line and column number.
>
> Eric
>    



More information about the Soot-list mailing list