1 write to LineSpan
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatementSpan.cs (1)
52LineSpan = lineSpan;
17 references to LineSpan
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditAndContinue\ActiveStatementTrackingServiceTests.cs (1)
209AssertEx.Equal(new[] { "(0,10)-(0,15)", "(0,20)-(0,25)" }, spans2.Select(s => s.LineSpan.ToString()));
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\ActiveStatementTrackingService.cs (1)
273var 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())))); 3616AssertEx.Equal(new[] { adjustedActiveLineSpan1, adjustedActiveLineSpan2 }, currentSpans.Select(s => s.LineSpan)); 3687AssertEx.Equal(new[] { activeLineSpan11, activeLineSpan12 }, currentSpans.Select(s => s.LineSpan)); 3693Assert.Equal(baseSpans[0].LineSpan, currentSpan1.Value); 3694Assert.Equal(baseSpans[1].LineSpan, currentSpan2.Value); 3844}, spans.Select(docSpans => string.Join(", ", docSpans.Select(span => span.LineSpan)))); 3927AssertEx.Equal(new[] { $"(9,18)-(9,22)" }, baseSpans.Single().Select(s => s.LineSpan.ToString())); 3937AssertEx.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. 62LineSpan.Equals(other.LineSpan) && 67=> Hash.Combine(Ordinal, Hash.Combine(LineSpan.GetHashCode(), Hash.Combine(UnmappedDocumentId, (int)Flags)));
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (2)
127return newMappedDocumentSpans.SelectAsArray(s => s.LineSpan); 161var newLineMappingContainingActiveSpan = newLineMappings.FirstOrDefault(mapping => mapping.MappedSpan.Span.Contains(newMappedDocumentActiveSpan.LineSpan));