14 references to VirtualCharGreen
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.CSharp.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (8)
274
charResults.Add(new
VirtualCharGreen
(ch, index, braceWidth));
279
charResults.Add(new
VirtualCharGreen
(ch, index, width: 1));
351
result.Add(new
VirtualCharGreen
(ch, offset: index, width: 2));
423
result.Add(new
VirtualCharGreen
((char)uintChar, offset: startIndex, width: 2 + 8));
435
result.Add(new
VirtualCharGreen
((char)highSurrogate, offset: startIndex, width: prefix.Length));
436
result.Add(new
VirtualCharGreen
((char)lowSurrogate, offset: startIndex + prefix.Length, width: 4));
466
result.Add(new
VirtualCharGreen
(character, offset: startIndex, width));
497
result.Add(new
VirtualCharGreen
(character, offset: startIndex, width));
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (3)
166
result.Add(new
VirtualCharGreen
('"', offset: index, width: 2));
175
result.Add(new
VirtualCharGreen
(tokenText[index], offset: index, width: width));
201
result.Add(new
VirtualCharGreen
(ch, offset: index, width: 1));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (1)
59
=>
new
(this.Char, offset, this.Width);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (1)
87
=>
new
(data[index], offset: index, width: 1);