Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[imp-dev] A useful addition to ISourceLocation

Hi imps,

I'm planning to add the following feature to ISourceLocation's: the ability to store a protocol string.

The idea of source locations is that they encapsulate a file's path and a source range within a file.

By adding a protocol string (by default "file"), we can distinguish among different sources of locations, such
as from the local file system, from a jar, from svn, from cvs, etc.

This protocol string is not interpreted in any way by pdb.values, instead clients of the API can interpret the protocol
string as they see fit, adding their own protocols if necessary (like "bundle" for example...).

Currently I already print and parse sourceLocations with a URL-like syntax, for easy of integration with other tools,
so this is a simple extension.

Comments are welcome.

Cheers,

Jurgen

Back to the top