use of org.eclipse.xtext.generator.trace.LocationData in project xtext-core by eclipse.
the class TracingSugar method location.
/**
* @return ILocationData covering the <code>fullTextRegion</code> of the given EObject.
*/
public ILocationData location(EObject obj) {
ITextRegion region = locationProvider.getFullTextRegion(obj);
SourceRelativeURI uri = traceURIConverter.getURIForTrace(obj.eResource());
return new LocationData((ITextRegionWithLineInformation) region, uri);
}
Aggregations