locationFromElement method
Create a location based on an the given element
.
Implementation
// TODO(srawlins): Deprecate this.
plugin.Location? locationFromElement(analyzer.Element? element,
{int? offset, int? length}) =>
element.toLocation(offset: offset, length: length);