Move file_id into Span#363
Conversation
539748d to
37ab542
Compare
|
|
||
| /// Since `ids` and `paths` are equal, we can return len one of them | ||
| fn len(&self) -> usize { | ||
| self.paths.len() |
There was a problem hiding this comment.
Maybe we should have a guard here to make sure that ids and paths are equal?
There was a problem hiding this comment.
Add debug_assert_eq! inside the insert function to verify this
|
37ab542 needs rebase |
37ab542 to
ebf0d21
Compare
|
ebf0d21 needs rebase |
ebf0d21 to
c81d8d0
Compare
|
In c81d8d0: Can wait for another PR, but we should also change Sadly we can't store a range inside |
|
Hm, interesting; imo it would be better to make |
c81d8d0 to
7b6db6c
Compare
This PR moves
file_idintoSpanas a structural component of the source location. It also removes the unnecessaryfile_idandset_file_idmethods from theparse.rsfile.Refactored the driver code a bit