Translate logical step counts when replaying native suffixes
This commit is contained in:
1 parent
9a6c162b46
commit
465a574124
8 files changed
+337
-86
No files matched your search
@@ -55,6 +55,7 @@ mod vertical_break;
|
||||
pub use statistics::{
|
||||
HostResourceUsage, MaterialUsage, ResourceUsage, StackUsage, StateUsage, StatisticsPhase,
|
||||
StatisticsReport,
|
||||
StepOffset,
|
||||
};
|
||||
use std::collections::{BTreeMap, BTreeSet};
|
||||
use std::fmt;
|
||||
@@ -375,6 +376,10 @@ pub trait SourceProvider {
|
||||
) -> Result<(), String> {
|
||||
Ok(())
|
||||
}
|
||||
/// Observe resource accounting while preserving the typed report for replay.
|
||||
fn observe_statistics(&mut self, report: &StatisticsReport) -> Result<(), String> {
|
||||
self.observe_diagnostic(report.destination, &report.text)
|
||||
}
|
||||
/// Observe a diagnostic that starts at the current output column.
|
||||
fn observe_inline_diagnostic(
|
||||
&mut self,
|
||||
|
||||
Reference in new issue
Block a user