Lines Matching defs:source
38 fn source(&self) -> Option<&(dyn StdError + 'static)> {
40 Error::Fs(err) => err.source(),
42 Error::Syn(err) => err.source(),
60 pub(super) fn format_err(path: &Path, source: &str, error: Error) -> ! {
68 display_syn_error(stderr, path, source, error);
93 while let Some(cause) = error.source() {
114 fn display_syn_error(stderr: &mut dyn WriteColor, path: &Path, source: &str, error: syn::Error) {
121 start_offset += source[start_offset..].find('\n').unwrap() + 1;
123 let start_column = source[start_offset..]
135 end_offset += source[end_offset..].find('\n').unwrap() + 1;
138 end_offset += source[end_offset..]
150 let file = files.add(path, source);