RE Xcode, the ‘edit all in scope’ feature seems to cope with this. Would you happen to know how that tool is working? I might just be missing some SourceKit feature
I added the radar link. Edit-all-in-scope works because it is built on top of the AST directly and checks for pointer equality of Decls being referenced, not for the USR. That approach only works because it’s is limited to a single file.