13 instantiations of VirtualCharGreen
Roslyn.Diagnostics.Analyzers (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);
Roslyn.Diagnostics.CSharp.Analyzers (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));
27 references to VirtualCharGreen
Roslyn.Diagnostics.Analyzers (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];
Roslyn.Diagnostics.CSharp.Analyzers (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (8)
25
private static readonly ObjectPool<ImmutableSegmentedList<
VirtualCharGreen
>.Builder> s_pooledBuilders = new(() => ImmutableSegmentedList.CreateBuilder<
VirtualCharGreen
>());
133
var result = ImmutableSegmentedList.CreateBuilder<
VirtualCharGreen
>();
201
var result = ImmutableSegmentedList.CreateBuilder<
VirtualCharGreen
>();
306
ImmutableSegmentedList<
VirtualCharGreen
>.Builder result,
322
ImmutableSegmentedList<
VirtualCharGreen
>.Builder result, string tokenText, int index)
357
ImmutableSegmentedList<
VirtualCharGreen
>.Builder result, string tokenText, int index)
377
ImmutableSegmentedList<
VirtualCharGreen
>.Builder result,