sphinx/
debug.rs

1use std::error::Error;
2
3pub mod symbol;
4pub mod dasm;
5pub mod traceback;
6pub mod snapshot;
7
8pub use symbol::{DebugSymbol, DebugSymbolResolver, TokenIndex, TokenLength};
9
10mod tests;
11
12
13/// trait for syntax or compile errors that are directly related to a piece of source code
14pub trait SourceError: Error {
15    fn debug_symbol(&self) -> Option<&DebugSymbol>;
16}