chore: let add_definition_location take a Location
#7185
Merged
add_definition_location take a Location
#7185