diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-11-29 13:28:47 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-11-29 13:28:47 -0800 |
| commit | fe897409579177d1ffd964b6d5a8de0024e5df68 (patch) | |
| tree | 1422bb80ad3e65a3542d5386c5a0bc979d7df874 /src/libsyntax/codemap.rs | |
| parent | ea51b19dc7587bac0011282506ad4678cca9c1eb (diff) | |
| download | rust-fe897409579177d1ffd964b6d5a8de0024e5df68.tar.gz rust-fe897409579177d1ffd964b6d5a8de0024e5df68.zip | |
Point to next token when it is in the expected line
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 3464db2a811..8a7a023cfd2 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -358,7 +358,7 @@ impl CodeMap { } // If the relevant filemap is empty, we don't return a line number. - fn lookup_line(&self, pos: BytePos) -> Result<FileMapAndLine, Rc<FileMap>> { + pub fn lookup_line(&self, pos: BytePos) -> Result<FileMapAndLine, Rc<FileMap>> { let idx = self.lookup_filemap_idx(pos); let files = self.files.borrow(); |
