Converts a location to annotation properties, so errors and warnings point at the file and lines.
Optional
Converts a location to annotation properties, so errors and warnings point at the file and lines.