Home
last modified time | relevance | path

Searched refs:source_text (Results 1 – 3 of 3) sorted by relevance

/linux/rust/proc-macro2/
H A Dfallback.rs324 source_text: String::new(),
340 source_text: String, field
385 let total_byte_offset = match self.source_text[last_byte_offset..] in byte_range()
390 None => self.source_text.len(), in byte_range()
397 let trunc_lo = &self.source_text[lo_byte..]; in byte_range()
401 None => self.source_text.len(), in byte_range()
405 fn source_text(&mut self, span: Span) -> String { in source_text() method
407 self.source_text[byte_range].to_owned() in source_text()
452 source_text: src.to_owned(), in add_file()
623 pub(crate) fn source_text(&self) -> Option<String> { in source_text() method
[all …]
H A Dwrapper.rs511 pub(crate) fn source_text(&self) -> Option<String> { in source_text() method
514 Span::Compiler(s) => s.source_text(), in source_text()
517 Span::Fallback(s) => s.source_text(), in source_text()
H A Dlib.rs521 pub fn source_text(&self) -> Option<String> { in source_text() method
522 self.inner.source_text() in source_text()