attachLocation method
Internal helper to attach the location to the event, do not call directly.
Implementation
@internal
void attachLocation(int? start, int? stop) {
assert(_start == null && _stop == null, 'Location is already initialized.');
_start = start;
_stop = stop;
}