1 write to MappedSpan
Microsoft.CodeAnalysis (1)
Syntax\LineMapping.cs (1)
38MappedSpan = mappedSpan;
9 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)
213var mappedSection = lineMapping.MappedSpan;
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (2)
166var newLineMappingContainingActiveSpan = newLineMappings.FirstOrDefault(mapping => mapping.MappedSpan.Span.Contains(newMappedDocumentActiveSpan.LineSpan)); 168var unmappedSpan = newLineMappingContainingActiveSpan.MappedSpan.IsValid ? newLineMappingContainingActiveSpan.Span : default;