fn same_loc(loc: &SourceElement, other: &SourceElement) -> bool
Returns whether both source elements refer to the same source location.