1 write to Span
Microsoft.CodeAnalysis.CodeStyle (1)
VirtualChar.cs (1)
80Span = span;
26 references to Span
Microsoft.CodeAnalysis.CodeStyle (26)
AbstractSimplifyInterpolationHelpers.cs (2)
188: TextSpan.FromBounds(sequence.First().Span.Start, sequence.Last().Span.End);
AbstractVirtualCharService.cs (10)
86Debug.Assert(currentVC.Span.Start >= token.SpanStart, "First span has to start after the start of the string token"); 90Debug.Assert(currentVC.Span.Start == token.SpanStart + 1 || 91currentVC.Span.Start == token.SpanStart + 2, "First span should start on the second or third char of the string."); 99Debug.Assert(currentVC.Span.End <= nextVC.Span.Start, "Virtual character spans have to be ordered."); 108Debug.Assert(currentVC.Span.End == nextVC.Span.Start, "Virtual character spans have to be touching."); 118Debug.Assert(lastVC.Span.End == token.Span.End - "\"".Length, "Last span has to end right before the end of the string token."); 122Debug.Assert(lastVC.Span.End == token.Span.End - "\"u8".Length, "Last span has to end right before the end of the string token."); 178index += result[^1].Span.Length;
EmbeddedSyntaxHelpers.cs (2)
19=> TextSpan.FromBounds(firstChar.Span.Start, lastChar.Span.End);
EmbeddedSyntaxNode.cs (2)
118start = Math.Min(token.VirtualChars[0].Span.Start, start); 119end = Math.Max(token.VirtualChars.Last().Span.End, end);
EmbeddedSyntaxToken.cs (2)
83Math.Min(VirtualChars.Length == 0 ? int.MaxValue : VirtualChars[0].Span.Start, 88Math.Max(VirtualChars.Length == 0 ? int.MinValue : VirtualChars[^1].Span.End,
IVirtualCharService.cs (1)
51/// Similarly, each VirtualChar's <see cref="VirtualChar.Span"/> will abut each other, and
VirtualChar.cs (3)
119Span == other.Span; 126hashCode = hashCode * -1521134295 + Span.GetHashCode();
VirtualCharSequence.Chunks.cs (4)
52if (position < _array[0].Span.Start || position >= _array[^1].Span.End) 57if (position < ch.Span.Start) 60if (position >= ch.Span.End)