1 write to VirtualChars
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (1)
42
VirtualChars
= virtualChars;
14 references to VirtualChars
Microsoft.CodeAnalysis.CodeStyle (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxHelpers.cs (2)
13
=> GetSpan(token1.
VirtualChars
[0], token2.
VirtualChars
.Last());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (3)
118
start = Math.Min(token.
VirtualChars
[0].Span.Start, start);
119
end = Math.Max(token.
VirtualChars
.Last().Span.End, end);
138
if (child.Token.
VirtualChars
.Contains(virtualChar))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (9)
48
public bool IsMissing =>
VirtualChars
.IsEmpty;
67
virtualChars.HasValue ? virtualChars.Value :
VirtualChars
,
74
=> EmbeddedSyntaxHelpers.GetSpan(this.
VirtualChars
);
78
if (LeadingTrivia.Length == 0 &&
VirtualChars
.Length == 0 && TrailingTrivia.Length == 0)
83
Math.Min(
VirtualChars
.Length == 0 ? int.MaxValue :
VirtualChars
[0].Span.Start,
88
Math.Max(
VirtualChars
.Length == 0 ? int.MinValue :
VirtualChars
[^1].Span.End,
123
sb.Append(
VirtualChars
.CreateString());