diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-09 12:49:39 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-13 17:16:03 +1000 |
| commit | 7a090fbe02b6b20f0dce8acf07a0328375f91d68 (patch) | |
| tree | b75e60117cb9b618b1cf3eb2f26a23802f87b63b /src/rustllvm/RustWrapper.cpp | |
| parent | b1aae607c56d26333589dc45daa20859950bf6e1 (diff) | |
| download | rust-7a090fbe02b6b20f0dce8acf07a0328375f91d68.tar.gz rust-7a090fbe02b6b20f0dce8acf07a0328375f91d68.zip | |
Rename some stuff in `StringReader`.
- `source_text` becomes `src`, matching `FileMap::src`. - `byte_offset()` becomes `src_index()`, which makes it clearer that it's an index into `src`. (Likewise for variables containing `byte_offset` in their name.) This function also now returns a `usize` instead of a `BytePos`, because every callsite immediately converted the `BytePos` to a `usize`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
