diff options
| author | Donato Sciarra <sciarp@gmail.com> | 2018-08-18 12:14:14 +0200 |
|---|---|---|
| committer | Donato Sciarra <sciarp@gmail.com> | 2018-08-19 23:01:01 +0200 |
| commit | 062bfbf39bef9360e1553f293f4f1015c5680dec (patch) | |
| tree | 84cc72ecf00df5fec9af315ff8d0aef52c55684c /src/libsyntax/source_map.rs | |
| parent | d3fe97f3d32b4cef1c22b6a5ba5326b1b195e262 (diff) | |
| download | rust-062bfbf39bef9360e1553f293f4f1015c5680dec.tar.gz rust-062bfbf39bef9360e1553f293f4f1015c5680dec.zip | |
mv codemap source_map
Diffstat (limited to 'src/libsyntax/source_map.rs')
| -rw-r--r-- | src/libsyntax/source_map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/source_map.rs b/src/libsyntax/source_map.rs index 34cd026f7a0..457a44b9cbb 100644 --- a/src/libsyntax/source_map.rs +++ b/src/libsyntax/source_map.rs @@ -206,7 +206,7 @@ impl SourceMap { match self.files.borrow().file_maps.last() { None => 0, // Add one so there is some space between files. This lets us distinguish - // positions in the codemap, even in the presence of zero-length files. + // positions in the source_map, even in the presence of zero-length files. Some(last) => last.end_pos.to_usize() + 1, } } @@ -895,7 +895,7 @@ impl SourceMap { /// /// Attention: The method used is very fragile since it essentially duplicates the work of the /// parser. If you need to use this function or something similar, please consider updating the - /// codemap functions and this function to something more robust. + /// source_map functions and this function to something more robust. pub fn generate_local_type_param_snippet(&self, span: Span) -> Option<(Span, String)> { // Try to extend the span to the previous "fn" keyword to retrieve the function // signature |
