Lines Matching refs:source_text
329 source_text: String::new(),
339 source_text: String,
369 fn source_text(&mut self, span: Span) -> String {
384 let total_byte_offset = match self.source_text[last_byte_offset..]
389 None => self.source_text.len(),
396 let trunc_lo = &self.source_text[lo_byte..];
398 let source_text = match trunc_lo.char_indices().nth(char_len) {
402 source_text.to_owned()
447 source_text: src.to_owned(),
450 // Populated lazily by source_text().
598 pub fn source_text(&self) -> Option<String> {
603 pub fn source_text(&self) -> Option<String> {
612 Some(SOURCE_MAP.with(|cm| cm.borrow_mut().fileinfo_mut(*self).source_text(*self)))