Just to double check: this is working out if the inner span is in the same file as the outer span?

Also, maybe this should be comparing the name, or the byte start position? (e.g. `outer.file.start_pos == inner.file.start_pos`.)

That feels a little nicer than "relying" on referential equality.