1 instantiation of SlidingTextWindow
Microsoft.CodeAnalysis.CSharp (1)
Parser\AbstractLexer.cs (1)
21
this.TextWindow = new
SlidingTextWindow
(text);
51 references to SlidingTextWindow
Microsoft.CodeAnalysis.CSharp (51)
Parser\AbstractLexer.cs (1)
16
internal readonly
SlidingTextWindow
TextWindow;
Parser\LanguageParser_InterpolatedString.cs (2)
144
var afterNewLine =
SlidingTextWindow
.GetNewLineWidth(closeQuoteText[0], closeQuoteText[1]);
343
currentIndex +=
SlidingTextWindow
.GetNewLineWidth(ch, currentIndex + 1 < text.Length ? text[currentIndex + 1] : '\0');
Parser\Lexer.cs (40)
685
case
SlidingTextWindow
.InvalidCharacter:
1457
char surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
1481
case
SlidingTextWindow
.InvalidCharacter:
1594
if (surrogateCharacter !=
SlidingTextWindow
.InvalidCharacter)
1693
consumedSurrogate =
SlidingTextWindow
.InvalidCharacter;
1715
Debug.Assert(consumedSurrogate ==
SlidingTextWindow
.InvalidCharacter, "Since consumedChar == '\\'");
1761
case
SlidingTextWindow
.InvalidCharacter:
1796
if (consumedSurrogate !=
SlidingTextWindow
.InvalidCharacter)
2123
if (ch ==
SlidingTextWindow
.InvalidCharacter)
2176
if (ch ==
SlidingTextWindow
.InvalidCharacter || SyntaxFacts.IsNewLine(ch))
2211
if ((ch = TextWindow.PeekChar()) ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd())
2233
(ch !=
SlidingTextWindow
.InvalidCharacter || !TextWindow.IsReallyAtEnd()))
2329
private static SyntaxTrivia CreateWhitespaceTrivia(
SlidingTextWindow
textWindow)
2419
case
SlidingTextWindow
.InvalidCharacter:
2489
else if (ch is
SlidingTextWindow
.InvalidCharacter && this.TextWindow.IsReallyAtEnd())
2526
case
SlidingTextWindow
.InvalidCharacter:
2775
Debug.Assert(this.LocationIs(XmlDocCommentLocation.End) || TextWindow.PeekChar() ==
SlidingTextWindow
.InvalidCharacter);
2836
case
SlidingTextWindow
.InvalidCharacter:
3005
char highSurrogate =
SlidingTextWindow
.GetCharsFromUtf32(charValue, out lowSurrogate);
3008
if (lowSurrogate !=
SlidingTextWindow
.InvalidCharacter)
3100
case
SlidingTextWindow
.InvalidCharacter:
3233
case
SlidingTextWindow
.InvalidCharacter:
3398
case
SlidingTextWindow
.InvalidCharacter:
3454
case
SlidingTextWindow
.InvalidCharacter:
3524
case
SlidingTextWindow
.InvalidCharacter:
3580
char consumedSurrogate =
SlidingTextWindow
.InvalidCharacter;
3609
case
SlidingTextWindow
.InvalidCharacter:
3882
&& nextChar == ch && nextSurrogate ==
SlidingTextWindow
.InvalidCharacter)
4001
case
SlidingTextWindow
.InvalidCharacter:
4045
case
SlidingTextWindow
.InvalidCharacter:
4132
case
SlidingTextWindow
.InvalidCharacter:
4175
case
SlidingTextWindow
.InvalidCharacter:
4254
case
SlidingTextWindow
.InvalidCharacter:
4299
case
SlidingTextWindow
.InvalidCharacter:
4557
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
4577
Debug.Assert(ch !=
SlidingTextWindow
.InvalidCharacter, "Precondition established by all callers; required for correctness of AdvanceChar() call.");
4587
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
4600
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
4714
surrogate =
SlidingTextWindow
.InvalidCharacter;
4818
lowSurrogate =
SlidingTextWindow
.InvalidCharacter;
Parser\Lexer_RawStringLiteral.cs (1)
55
=> currentChar ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd();
Parser\Lexer_StringLiteral.cs (7)
47
if (c2 !=
SlidingTextWindow
.InvalidCharacter)
58
(ch ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd()))
91
info.CharValue =
SlidingTextWindow
.InvalidCharacter;
132
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
229
if (ch ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd())
364
(ch ==
SlidingTextWindow
.InvalidCharacter && _lexer.TextWindow.IsReallyAtEnd());
414
var
window = _lexer.TextWindow;