Pass Summary::Context
to Item::summarize
(#18510)
We are going to use this in the multi-buffer to produce a summary for an `Excerpt` that contains a `Range<Anchor>`. Release Notes: - N/A Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
8aeab4800c
commit
84ce81caf1
21 changed files with 31 additions and 31 deletions
|
@ -224,7 +224,7 @@ impl DiagnosticSet {
|
|||
impl sum_tree::Item for DiagnosticEntry<Anchor> {
|
||||
type Summary = Summary;
|
||||
|
||||
fn summary(&self) -> Self::Summary {
|
||||
fn summary(&self, _cx: &text::BufferSnapshot) -> Self::Summary {
|
||||
Summary {
|
||||
start: self.range.start,
|
||||
end: self.range.end,
|
||||
|
|
|
@ -1739,7 +1739,7 @@ impl<'a> SeekTarget<'a, SyntaxLayerSummary, SyntaxLayerSummary>
|
|||
impl sum_tree::Item for SyntaxLayerEntry {
|
||||
type Summary = SyntaxLayerSummary;
|
||||
|
||||
fn summary(&self) -> Self::Summary {
|
||||
fn summary(&self, _cx: &BufferSnapshot) -> Self::Summary {
|
||||
SyntaxLayerSummary {
|
||||
min_depth: self.depth,
|
||||
max_depth: self.depth,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue