Lines Matching defs:SourceFile
361 pub(crate) enum SourceFile {
362 Compiler(proc_macro::SourceFile),
363 Fallback(fallback::SourceFile),
367 impl SourceFile {
368 fn nightly(sf: proc_macro::SourceFile) -> Self {
369 SourceFile::Compiler(sf)
375 SourceFile::Compiler(a) => a.path(),
376 SourceFile::Fallback(a) => a.path(),
382 SourceFile::Compiler(a) => a.is_real(),
383 SourceFile::Fallback(a) => a.is_real(),
389 impl Debug for SourceFile {
392 SourceFile::Compiler(a) => Debug::fmt(a, f),
393 SourceFile::Fallback(a) => Debug::fmt(a, f),
456 pub fn source_file(&self) -> SourceFile {
458 Span::Compiler(s) => SourceFile::nightly(s.source_file()),
459 Span::Fallback(s) => SourceFile::Fallback(s.source_file()),