4 instantiations of VirtualCharSequence
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\VirtualChars\VirtualCharSequence.cs (4)
33
=>
new
(new ImmutableSegmentedListChunk(virtualChars));
36
=>
new
(new StringChunk(firstVirtualCharPosition, underlyingData));
91
=>
new
(_leafCharacters, new TextSpan(_span.Start + span.Start, span.Length));
227
return new
VirtualCharSequence
(
58 references to VirtualCharSequence
Microsoft.AspNetCore.App.Analyzers (56)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxHelpers.cs (1)
22
public static TextSpan GetSpan(
VirtualCharSequence
virtualChars)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (3)
16
public readonly
VirtualCharSequence
VirtualChars;
27
VirtualCharSequence
virtualChars,
47
Optional<
VirtualCharSequence
> virtualChars = default,
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxTree.cs (2)
14
public readonly
VirtualCharSequence
Text;
19
VirtualCharSequence
text,
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxTrivia.cs (2)
17
public readonly
VirtualCharSequence
VirtualChars;
25
public EmbeddedSyntaxTrivia(TSyntaxKind kind,
VirtualCharSequence
virtualChars, ImmutableArray<EmbeddedDiagnostic> diagnostics)
Infrastructure\RoutePattern\RoutePatternHelpers.cs (2)
16
public static RoutePatternToken CreateToken(RoutePatternKind kind,
VirtualCharSequence
virtualChars)
20
=> CreateToken(kind,
VirtualCharSequence
.Empty);
Infrastructure\RoutePattern\RoutePatternLexer.cs (5)
16
public readonly
VirtualCharSequence
Text;
20
public RoutePatternLexer(
VirtualCharSequence
text, RoutePatternOptions routePatternOptions) : this()
28
public
VirtualCharSequence
GetSubPatternToCurrentPos(int start)
31
public
VirtualCharSequence
GetSubPattern(int start, int end)
38
return CreateToken(RoutePatternKind.EndOfFile,
VirtualCharSequence
.Empty);
Infrastructure\RoutePattern\RoutePatternParser.cs (3)
25
private RoutePatternParser(
VirtualCharSequence
text, RoutePatternOptions routePatternOptions) : this()
50
public static RoutePatternTree? TryParse(
VirtualCharSequence
text, RoutePatternOptions routePatternOptions)
507
VirtualCharSequence
.FromBounds(firstAsteriskToken.VirtualChars, _currentToken.VirtualChars));
Infrastructure\RoutePattern\RoutePatternTree.cs (1)
18
VirtualCharSequence
text,
Infrastructure\RouteUsageCache.cs (1)
64
var
virtualChars = CSharpVirtualCharService.Instance.TryConvertToVirtualChars(token);
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (9)
18
protected abstract
VirtualCharSequence
TryConvertToVirtualCharsWorker(SyntaxToken token);
45
public
VirtualCharSequence
TryConvertToVirtualChars(SyntaxToken token)
55
var
result = TryConvertToVirtualCharsWorker(token);
62
private void CheckInvariants(SyntaxToken token,
VirtualCharSequence
result)
129
protected static
VirtualCharSequence
TryConvertSimpleDoubleQuoteString(
227
protected static
VirtualCharSequence
CreateVirtualCharSequence(
239
var
sequence =
VirtualCharSequence
.Create(offset, tokenText);
243
return
VirtualCharSequence
.Create(result.ToImmutable());
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (7)
41
protected override
VirtualCharSequence
TryConvertToVirtualCharsWorker(SyntaxToken token)
129
private static
VirtualCharSequence
TryConvertVerbatimStringToVirtualChars(SyntaxToken token, string startDelimiter, string endDelimiter, bool escapeBraces)
132
private static
VirtualCharSequence
TryConvertSingleLineRawStringToVirtualChars(SyntaxToken token)
183
private static
VirtualCharSequence
TryConvertMultiLineRawStringToVirtualChars(
241
return
VirtualCharSequence
.Create(result.ToImmutable());
244
private static
VirtualCharSequence
TryConvertStringToVirtualChars(
303
private static
VirtualCharSequence
CreateVirtualCharSequence(
Infrastructure\VirtualChars\IVirtualCharService.cs (1)
62
VirtualCharSequence
TryConvertToVirtualChars(SyntaxToken token);
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (1)
117
/// do not want that should then ask for an appropriate <see cref="
VirtualCharSequence
.GetSubSequence"/>
Infrastructure\VirtualChars\VirtualCharSequence.cs (16)
30
public static readonly
VirtualCharSequence
Empty = Create(ImmutableList<VirtualChar>.Empty);
32
public static
VirtualCharSequence
Create(ImmutableList<VirtualChar> virtualChars)
35
public static
VirtualCharSequence
Create(int firstVirtualCharPosition, string underlyingData)
39
/// The actual characters that this <see cref="
VirtualCharSequence
"/> is a portion of.
71
/// Gets the number of elements contained in the <see cref="
VirtualCharSequence
"/>.
81
/// Gets a value indicating whether the <see cref="
VirtualCharSequence
"/> was declared but not initialized.
88
/// Retreives a sub-sequence from this <see cref="
VirtualCharSequence
"/>.
90
public
VirtualCharSequence
GetSubSequence(TextSpan span)
178
public
VirtualCharSequence
Skip(int count)
181
public
VirtualCharSequence
SkipWhile(Func<VirtualChar, bool> predicate)
198
/// Create a <see cref="string"/> from the <see cref="
VirtualCharSequence
"/>.
212
public void AssertAdjacentTo(
VirtualCharSequence
virtualChars)
219
/// Combines two <see cref="
VirtualCharSequence
"/>s, producing a final
223
public static
VirtualCharSequence
FromBounds(
224
VirtualCharSequence
chars1,
VirtualCharSequence
chars2)
Infrastructure\VirtualChars\VirtualCharSequence.Enumerator.cs (2)
14
private readonly
VirtualCharSequence
_virtualCharSequence;
17
public Enumerator(
VirtualCharSequence
virtualCharSequence)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Infrastructure\AmbiguousRoutePatternComparerTests.cs (1)
90
var
allChars = CSharpVirtualCharService.Instance.TryConvertToVirtualChars(token);
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
123
var
allChars = CSharpVirtualCharService.Instance.TryConvertToVirtualChars(token);