5 instantiations of VirtualCharGreen
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (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);
19 references to VirtualCharGreen
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (5)
160
var result = ImmutableSegmentedList.CreateBuilder<
VirtualCharGreen
>();
190
protected static int ConvertTextAtIndexToVirtualChar(string tokenText, int index, ImmutableSegmentedList<
VirtualCharGreen
>.Builder result)
193
protected static int ConvertTextAtIndexToVirtualChar(SourceText tokenText, int index, ImmutableSegmentedList<
VirtualCharGreen
>.Builder result)
197
T tokenText, int index, TTextInfo info, ImmutableSegmentedList<
VirtualCharGreen
>.Builder result)
212
ImmutableSegmentedList<
VirtualCharGreen
>.Builder result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualChar.cs (7)
12
/// <see cref="
VirtualCharGreen
"/> provides a uniform view of a language's string token characters regardless if they
16
/// <c>t</c>). <see cref="
VirtualCharGreen
"/> will represent both, providing the raw <see cref="char"/> value of
39
/// The width of characters in the original <see cref="SourceText"/> that represent this <see cref="
VirtualCharGreen
"/>.
58
public
VirtualCharGreen
WithOffset(int offset)
79
public VirtualChar(
VirtualCharGreen
green, int tokenStart)
87
internal
VirtualCharGreen
Green { get; }
93
/// <inheritdoc cref="
VirtualCharGreen
.Char"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharGreenSequence.Chunks.cs (4)
22
public abstract
VirtualCharGreen
this[int index] { get; }
31
private sealed class ImmutableSegmentedListChunk(ImmutableSegmentedList<
VirtualCharGreen
> array) : Chunk
34
public override
VirtualCharGreen
this[int index] => array[index];
86
public override
VirtualCharGreen
this[int index]
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (3)
33
public static readonly VirtualCharGreenSequence Empty = Create(ImmutableSegmentedList<
VirtualCharGreen
>.Empty);
35
public static VirtualCharGreenSequence Create(ImmutableSegmentedList<
VirtualCharGreen
> virtualChars)
77
public
VirtualCharGreen
this[int index] => _leafCharacters[_span.Start + index];