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