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