[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: relating a unit to a sourceFile
You are right, but I believe no one needs this before. Look at how line
number attributes were generated, you should be about to produce the same
thing for the source file name. Looking at following files:
coffi.CFG which parses class files, the tag for attributes should
originate from there
define source file name attributes as in the "tagkit" directory, but the
you may have to decide what's the host of this tag (e.g, class file,
method, or unit).
Cheers,
Feng
---------------------------------------------------------------------
Feng Qian fqian@sable.mcgill.ca
Sable Research Group http://www.sable.mcgill.ca
School of Computer Science, McGill University Montreal, Canada
On Tue, 14 Jan 2003, david shepherd wrote:
> Has anyone solved the problem of, when given a Unit,
> finding the source file name? I realize that
> lineNumber has been implemented, and that getting the
> source file name as an attribute is probably simply a
> matter of adding attributes at some time in the
> translation from .class to a jimple representation,
> but I want to avoid searching for this spot if someone
> else has already solved the problem . . .
> Hopefully,
> David Shepherd
> University of Delaware
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>