1 write to MappedSpan
Microsoft.CodeAnalysis (1)
Syntax\LineMapping.cs (1)
38MappedSpan = mappedSpan;
10 references to MappedSpan
Microsoft.CodeAnalysis (5)
Syntax\LineMapping.cs (5)
45=> !MappedSpan.IsValid; 51=> Span.Equals(other.Span) && CharacterOffset.Equals(other.CharacterOffset) && MappedSpan.Equals(other.MappedSpan); 54=> Hash.Combine(Hash.Combine(Span.GetHashCode(), CharacterOffset.GetHashCode()), MappedSpan.GetHashCode()); 72builder.Append(MappedSpan);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\LocationsTests.cs (1)
77return tree.GetLineMappings().Select(mapping => $"[|{text.GetSubText(text.Lines.GetTextSpan(mapping.Span))}|] -> {(mapping.IsHidden ? "<hidden>" : mapping.MappedSpan)}");
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\ActiveStatementsMap.cs (1)
207var mappedSection = lineMapping.MappedSpan;
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (2)
161var newLineMappingContainingActiveSpan = newLineMappings.FirstOrDefault(mapping => mapping.MappedSpan.Span.Contains(newMappedDocumentActiveSpan.LineSpan)); 163var unmappedSpan = newLineMappingContainingActiveSpan.MappedSpan.IsValid ? newLineMappingContainingActiveSpan.Span : default;
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
LocationTests.vb (1)
64Return tree.GetLineMappings().Select(Function(mapping) $"[|{text.GetSubText(text.Lines.GetTextSpan(mapping.Span))}|] -> {If(mapping.IsHidden, "<hidden>", mapping.MappedSpan.ToString())}")