Reuse closed events and line breaking after a checkpoint
This commit is contained in:
1 parent
fc6786d9f4
commit
393fba42d8
7 files changed
+140
-16
No files matched your search
@@ -3,8 +3,8 @@ use sha2::{Digest, Sha256};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use super::{
|
||||
Cancellation, EntryCheckpoint, Error, Execution, ExecutionFailure, Executor, SourceFile,
|
||||
SourceProvider,
|
||||
Cancellation, EntryCheckpoint, Error, Execution, ExecutionFailure, Executor, LineBreakCache,
|
||||
SourceFile, SourceProvider,
|
||||
};
|
||||
|
||||
#[derive(Clone, Default)]
|
||||
@@ -203,6 +203,7 @@ impl RevisionJob {
|
||||
checkpoint: &EntryCheckpoint,
|
||||
source: SourceFile,
|
||||
files: &mut F,
|
||||
line_break_cache: Arc<LineBreakCache>,
|
||||
select: impl FnMut(usize, usize) -> Option<S>,
|
||||
capture: impl FnMut(S, EntryCheckpoint, &mut F),
|
||||
) -> Option<Result<Arc<RevisionExecution>, RevisionFailure>> {
|
||||
@@ -210,6 +211,7 @@ impl RevisionJob {
|
||||
source,
|
||||
files,
|
||||
self.cancellation.clone(),
|
||||
line_break_cache,
|
||||
select,
|
||||
capture,
|
||||
)?;
|
||||
|
||||
Reference in new issue
Block a user