1 write to Span
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualChar.cs (1)
84Span = span;
30 references to Span
Microsoft.AspNetCore.App.Analyzers (30)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxHelpers.cs (2)
26=> TextSpan.FromBounds(firstChar.Span.Start, lastChar.Span.End);
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNode.cs (2)
102start = Math.Min(token.VirtualChars[0].Span.Start, start); 103end = Math.Max(token.VirtualChars.Last().Span.End, end);
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (2)
68var start = VirtualChars.Length == 0 ? int.MaxValue : VirtualChars[0].Span.Start; 69var end = VirtualChars.Length == 0 ? int.MinValue : VirtualChars[VirtualChars.Length - 1].Span.End;
Infrastructure\RoutePattern\RoutePatternLexer.cs (2)
68=> TextSpan.FromBounds(Text[startInclusive].Span.Start, Text[endExclusive - 1].Span.End);
Infrastructure\RoutePattern\RoutePatternParser.cs (2)
620? new TextSpan(_lexer.Text.Last().Span.End, 0) 621: new TextSpan(token.VirtualChars[0].Span.Start, 0);
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (10)
82Debug.Assert(currentVC.Span.Start >= token.SpanStart, "First span has to start after the start of the string token"); 86Debug.Assert(currentVC.Span.Start == token.SpanStart + 1 || 87currentVC.Span.Start == token.SpanStart + 2, "First span should start on the second or third char of the string."); 95Debug.Assert(currentVC.Span.End <= nextVC.Span.Start, "Virtual character spans have to be ordered."); 104Debug.Assert(currentVC.Span.End == nextVC.Span.Start, "Virtual character spans have to be touching."); 114Debug.Assert(lastVC.Span.End == token.Span.End - "\"".Length, "Last span has to end right before the end of the string token."); 118Debug.Assert(lastVC.Span.End == token.Span.End - "\"u8".Length, "Last span has to end right before the end of the string token."); 176index += result[result.Count - 1].Span.Length;
Infrastructure\VirtualChars\IVirtualCharService.cs (1)
51/// Similarly, each VirtualChar's <see cref="VirtualChar.Span"/> will abut each other, and
Infrastructure\VirtualChars\VirtualChar.cs (3)
123Span == other.Span; 130hashCode = hashCode * -1521134295 + Span.GetHashCode();
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (4)
54if (position < _array[0].Span.Start || position >= _array[_array.Count - 1].Span.End) 60if (position < ch.Span.Start) 65if (position >= ch.Span.End)
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (2)
105: new AspNetCoreBraceMatchingResult(open.VirtualChars[0].Span, close.VirtualChars[0].Span);