2 instantiations of VirtualCharSequence
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (2)
87=> new(_leafCharacters, new TextSpan(_span.Start + span.Start, span.Length)); 209return new VirtualCharSequence(
37 references to VirtualCharSequence
Microsoft.CodeAnalysis.CodeStyle (37)
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
185var sequence = virtualCharService.TryConvertToVirtualChars(formatToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxHelpers.cs (1)
15public static TextSpan GetSpan(VirtualCharSequence virtualChars)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (3)
19public readonly VirtualCharSequence VirtualChars; 32VirtualCharSequence virtualChars, 59Optional<VirtualCharSequence> virtualChars = default,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTree.cs (2)
15public readonly VirtualCharSequence Text; 20VirtualCharSequence text,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTrivia.cs (2)
18public readonly VirtualCharSequence VirtualChars; 26public EmbeddedSyntaxTrivia(TSyntaxKind kind, VirtualCharSequence virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (9)
21protected abstract VirtualCharSequence TryConvertToVirtualCharsWorker(SyntaxToken token); 48public VirtualCharSequence TryConvertToVirtualChars(SyntaxToken token) 58var result = TryConvertToVirtualCharsWorker(token); 65private void CheckInvariants(SyntaxToken token, VirtualCharSequence result) 133protected static VirtualCharSequence TryConvertSimpleDoubleQuoteString( 229protected static VirtualCharSequence CreateVirtualCharSequence( 241var sequence = VirtualCharSequence.Create(offset, tokenText); 245return VirtualCharSequence.Create(result.ToImmutable());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\IVirtualCharService.cs (1)
62VirtualCharSequence TryConvertToVirtualChars(SyntaxToken token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.Chunks.cs (1)
78/// do not want that should then ask for an appropriate <see cref="VirtualCharSequence.GetSubSequence"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (16)
30public static readonly VirtualCharSequence Empty = Create(ImmutableSegmentedList<VirtualChar>.Empty); 32public static VirtualCharSequence Create(ImmutableSegmentedList<VirtualChar> virtualChars) 35public static VirtualCharSequence Create(int firstVirtualCharPosition, string underlyingData) 39/// The actual characters that this <see cref="VirtualCharSequence"/> is a portion of. 67/// Gets the number of elements contained in the <see cref="VirtualCharSequence"/>. 77/// Gets a value indicating whether the <see cref="VirtualCharSequence"/> was declared but not initialized. 84/// Retreives a sub-sequence from this <see cref="VirtualCharSequence"/>. 86public VirtualCharSequence GetSubSequence(TextSpan span) 164public VirtualCharSequence Skip(int count) 167public VirtualCharSequence SkipWhile(Func<VirtualChar, bool> predicate) 182/// Create a <see cref="string"/> from the <see cref="VirtualCharSequence"/>. 194public void AssertAdjacentTo(VirtualCharSequence virtualChars) 201/// Combines two <see cref="VirtualCharSequence"/>s, producing a final 205public static VirtualCharSequence FromBounds( 206VirtualCharSequence chars1, VirtualCharSequence chars2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.Enumerator.cs (1)
13public struct Enumerator(VirtualCharSequence virtualCharSequence) : IEnumerator<VirtualChar>