5 references to VirtualChar
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (1)
379
Assert.True(RegexLexer.IsEscapeCategoryChar(
new
(new(ch, offset: 0, width: 1), tokenStart: 0)));
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (3)
41
if (position < new
VirtualChar
(array[0], tokenStart).Span.Start ||
42
position >= new
VirtualChar
(array[^1], tokenStart).Span.End)
50
var span = new
VirtualChar
(ch, tokenStart).Span;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (1)
142
=>
new
(_sequence[index], _tokenStart);