1 write to VirtualChars
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (1)
32
VirtualChars
= virtualChars;
38 references to VirtualChars
Microsoft.AspNetCore.App.Analyzers (38)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxHelpers.cs (5)
14
if (token2.
VirtualChars
.IsEmpty)
16
return GetSpan(token1.
VirtualChars
[0], token1.
VirtualChars
.Last());
19
return GetSpan(token1.
VirtualChars
[0], token2.
VirtualChars
.Last());
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNode.cs (3)
102
start = Math.Min(token.
VirtualChars
[0].Span.Start, start);
103
end = Math.Max(token.
VirtualChars
.Last().Span.End, end);
122
if (child.Token.
VirtualChars
.Contains(virtualChar))
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (10)
37
public bool IsMissing =>
VirtualChars
.Length == 0;
53
virtualChars.HasValue ? virtualChars.Value :
VirtualChars
,
59
=> EmbeddedSyntaxHelpers.GetSpan(
VirtualChars
);
63
if (
VirtualChars
.Length == 0)
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;
86
sb.Append(
VirtualChars
.CreateString());
Infrastructure\RoutePattern\RoutePatternLexer.cs (6)
141
token = token.With(value: token.
VirtualChars
.CreateString());
219
token = token.With(value: token.
VirtualChars
.CreateString());
292
token = token.With(value: token.
VirtualChars
.CreateString());
382
token = token.With(value: token.
VirtualChars
.CreateString());
425
token = token.With(value: token.
VirtualChars
.CreateString());
466
token = token.With(value: token.
VirtualChars
.CreateString());
Infrastructure\RoutePattern\RoutePatternParser.cs (4)
254
encodeSlashes = catchAllNode.AsteriskToken.
VirtualChars
.Length == 1;
507
VirtualCharSequence.FromBounds(firstAsteriskToken.
VirtualChars
, _currentToken.
VirtualChars
));
621
: new TextSpan(token.
VirtualChars
[0].Span.Start, 0);
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (8)
69
parameter.OpenBraceToken.
VirtualChars
.Contains(c) || parameter.CloseBraceToken.
VirtualChars
.Contains(c));
73
fragment.OpenParenToken.
VirtualChars
.Contains(c) || fragment.CloseParenToken.
VirtualChars
.Contains(c));
77
fragment.OpenBracketToken.
VirtualChars
.Contains(c) || fragment.CloseBracketToken.
VirtualChars
.Contains(c));
105
: new AspNetCoreBraceMatchingResult(open.
VirtualChars
[0].Span, close.
VirtualChars
[0].Span);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
296
if (child.Token.
VirtualChars
.Contains(ch))
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (1)
109
=> FindNode<RoutePatternNameParameterPartNode>(node, ch, (parameter, c) => parameter.ParameterNameToken.
VirtualChars
.Contains(c));