1 write to Span
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualChar.cs (1)
84
Span
= 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)
102
start = Math.Min(token.VirtualChars[0].
Span
.Start, start);
103
end = Math.Max(token.VirtualChars.Last().
Span
.End, end);
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (2)
68
var start = VirtualChars.Length == 0 ? int.MaxValue : VirtualChars[0].
Span
.Start;
69
var 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)
82
Debug.Assert(currentVC.
Span
.Start >= token.SpanStart, "First span has to start after the start of the string token");
86
Debug.Assert(currentVC.
Span
.Start == token.SpanStart + 1 ||
87
currentVC.
Span
.Start == token.SpanStart + 2, "First span should start on the second or third char of the string.");
95
Debug.Assert(currentVC.
Span
.End <= nextVC.
Span
.Start, "Virtual character spans have to be ordered.");
104
Debug.Assert(currentVC.
Span
.End == nextVC.
Span
.Start, "Virtual character spans have to be touching.");
114
Debug.Assert(lastVC.
Span
.End == token.Span.End - "\"".Length, "Last span has to end right before the end of the string token.");
118
Debug.Assert(lastVC.
Span
.End == token.Span.End - "\"u8".Length, "Last span has to end right before the end of the string token.");
176
index += 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)
123
Span
== other.
Span
;
130
hashCode = hashCode * -1521134295 +
Span
.GetHashCode();
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (4)
54
if (position < _array[0].
Span
.Start || position >= _array[_array.Count - 1].
Span
.End)
60
if (position < ch.
Span
.Start)
65
if (position >= ch.
Span
.End)
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (2)
105
: new AspNetCoreBraceMatchingResult(open.VirtualChars[0].
Span
, close.VirtualChars[0].
Span
);