public static void addLnPosTags(soot.tagkit.Host host, int sline, int eline, int spos, int epos) { if (soot.options.Options.v().keep_line_number()) { host.addTag(new soot.tagkit.SourceLnPosTag(sline, eline, spos, epos)); } }
public static void addLnPosTags(soot.tagkit.Host host, polyglot.util.Position pos) { if (pos != null) { if (soot.options.Options.v().keep_line_number()) { if (pos.file() != null) { host.addTag( new soot.tagkit.SourceLnNamePosTag(pos.file(), pos.line(), pos.endLine(), pos.column(), pos.endColumn())); } else { host.addTag(new soot.tagkit.SourceLnPosTag(pos.line(), pos.endLine(), pos.column(), pos.endColumn())); } } } }