1 write to LineSpan
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatementSpan.cs (1)
52
LineSpan
= lineSpan;
17 references to LineSpan
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditAndContinue\ActiveStatementTrackingServiceTests.cs (1)
209
AssertEx.Equal(new[] { "(0,10)-(0,15)", "(0,20)-(0,25)" }, spans2.Select(s => s.
LineSpan
.ToString()));
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\ActiveStatementTrackingService.cs (1)
273
var newTextSpan = snapshot.GetTextSpan(newSpan.
LineSpan
).ToSpan();
EditAndContinue\ActiveStatementTrackingSpan.cs (1)
32
=> new(snapshot.CreateTrackingSpan(snapshot.GetTextSpan(span.
LineSpan
).ToSpan(), SpanTrackingMode.EdgeExclusive), span.Ordinal, span.Flags, span.UnmappedDocumentId);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (8)
2129
}, baseSpans.Select(spans => spans.IsEmpty ? "<empty>" : string.Join(",", spans.Select(s => s.
LineSpan
.ToString()))));
3616
AssertEx.Equal(new[] { adjustedActiveLineSpan1, adjustedActiveLineSpan2 }, currentSpans.Select(s => s.
LineSpan
));
3687
AssertEx.Equal(new[] { activeLineSpan11, activeLineSpan12 }, currentSpans.Select(s => s.
LineSpan
));
3693
Assert.Equal(baseSpans[0].
LineSpan
, currentSpan1.Value);
3694
Assert.Equal(baseSpans[1].
LineSpan
, currentSpan2.Value);
3844
}, spans.Select(docSpans => string.Join(", ", docSpans.Select(span => span.
LineSpan
))));
3927
AssertEx.Equal(new[] { $"(9,18)-(9,22)" }, baseSpans.Single().Select(s => s.
LineSpan
.ToString()));
3937
AssertEx.Equal(new[] { $"(10,12)-(10,16)" }, baseSpans.Single().Select(s => s.
LineSpan
.ToString()));
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\ActiveStatementSpan.cs (4)
41
/// The id of the unmapped document where the source of the active statement is and from where the statement might be mapped to <see cref="
LineSpan
"/> via <c>#line</c> directive.
62
LineSpan
.Equals(other.
LineSpan
) &&
67
=> Hash.Combine(Ordinal, Hash.Combine(
LineSpan
.GetHashCode(), Hash.Combine(UnmappedDocumentId, (int)Flags)));
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (2)
127
return newMappedDocumentSpans.SelectAsArray(s => s.
LineSpan
);
161
var newLineMappingContainingActiveSpan = newLineMappings.FirstOrDefault(mapping => mapping.MappedSpan.Span.Contains(newMappedDocumentActiveSpan.
LineSpan
));