80 references to CurrentCharacter
Microsoft.CodeAnalysis.Razor.Compiler (80)
Language\Legacy\HtmlTokenizer.cs (16)
150
if (SyntaxFacts.IsWhitespace(
CurrentCharacter
))
154
else if (SyntaxFacts.IsNewLine(
CurrentCharacter
))
158
else if (
CurrentCharacter
== '@')
161
if (
CurrentCharacter
== '*')
167
else if (
CurrentCharacter
== '@')
197
!(SyntaxFacts.IsWhitespace(
CurrentCharacter
) || SyntaxFacts.IsNewLine(
CurrentCharacter
)) &&
200
prev =
CurrentCharacter
;
204
if (
CurrentCharacter
== '@')
223
var sym =
CurrentCharacter
;
249
Debug.Assert(
CurrentCharacter
== '-');
261
while (SyntaxFacts.IsWhitespace(
CurrentCharacter
))
271
Debug.Assert(SyntaxFacts.IsNewLine(
CurrentCharacter
));
274
var checkTwoCharNewline =
CurrentCharacter
== '\r';
277
if (checkTwoCharNewline &&
CurrentCharacter
== '\n')
286
=>
CurrentCharacter
switch
Language\Legacy\NativeCSharpTokenizer.cs (45)
363
if (SyntaxFacts.IsNewLine(
CurrentCharacter
))
366
var checkTwoCharNewline =
CurrentCharacter
== '\r';
368
if (checkTwoCharNewline &&
CurrentCharacter
== '\n')
374
else if (SyntaxFacts.IsWhitespace(
CurrentCharacter
))
380
else if (SyntaxFacts.IsIdentifierStartCharacter(
CurrentCharacter
))
384
else if (char.IsDigit(
CurrentCharacter
))
388
switch (
CurrentCharacter
)
406
if (
CurrentCharacter
== '/')
411
else if (
CurrentCharacter
== '*')
416
else if (
CurrentCharacter
== '=')
433
if (
CurrentCharacter
== '"')
438
else if (
CurrentCharacter
== '*')
444
else if (
CurrentCharacter
== '@')
463
var first =
CurrentCharacter
;
475
if (
CurrentCharacter
== '=')
485
if (
CurrentCharacter
== '=')
495
if (
CurrentCharacter
== '>')
500
else if (
CurrentCharacter
== '-')
505
else if (
CurrentCharacter
== '=')
517
if (
CurrentCharacter
== second)
530
if (
CurrentCharacter
== option1)
535
else if (
CurrentCharacter
== option2)
547
if (
CurrentCharacter
== '"')
550
if (
CurrentCharacter
== '"')
576
if (
CurrentCharacter
== '\\')
581
if (
CurrentCharacter
== quote ||
CurrentCharacter
== '\\')
587
else if (EndOfFile || SyntaxFacts.IsNewLine(
CurrentCharacter
))
612
if (
CurrentCharacter
== '*')
615
if (
CurrentCharacter
== '/')
654
if (
CurrentCharacter
== '.' && Char.IsDigit(Peek()))
658
else if (IsRealLiteralSuffix(
CurrentCharacter
) ||
659
CurrentCharacter
== 'E' ||
CurrentCharacter
== 'e')
672
if (
CurrentCharacter
== 'E' ||
CurrentCharacter
== 'e')
675
if (
CurrentCharacter
== '+' ||
CurrentCharacter
== '-')
681
if (IsRealLiteralSuffix(
CurrentCharacter
))
693
Debug.Assert(Char.IsDigit(
CurrentCharacter
));
700
if (Char.ToLowerInvariant(
CurrentCharacter
) == 'u')
703
if (Char.ToLowerInvariant(
CurrentCharacter
) == 'l')
708
else if (Char.ToLowerInvariant(
CurrentCharacter
) == 'l')
711
if (Char.ToLowerInvariant(
CurrentCharacter
) == 'u')
721
Debug.Assert(SyntaxFacts.IsIdentifierStartCharacter(
CurrentCharacter
));
Language\Legacy\RoslynCSharpTokenizer.cs (10)
236
if (SyntaxFacts.IsNewLine(
CurrentCharacter
) || SyntaxFacts.IsWhitespace(
CurrentCharacter
))
241
if (SyntaxFacts.IsIdentifierStartCharacter(
CurrentCharacter
))
245
else if (char.IsDigit(
CurrentCharacter
))
249
switch (
CurrentCharacter
)
406
if (
CurrentCharacter
!= '"')
422
if (
CurrentCharacter
== '$')
427
else if (
CurrentCharacter
== '"')
441
if (
CurrentCharacter
== '"')
483
Debug.Assert(
CurrentCharacter
== '@');
Language\Legacy\Tokenizer.cs (9)
242
while (!EndOfFile && !predicate(
CurrentCharacter
))
257
Buffer.Append(
CurrentCharacter
);
278
return
CurrentCharacter
;
283
if (
CurrentCharacter
!= '*')
297
if (
CurrentCharacter
== '*')
349
if (expected.Length == 0 || filter(
CurrentCharacter
) != filter(expected[0]))
365
if (filter(
CurrentCharacter
) != filter(expected[i]))
396
Debug.Assert(
CurrentCharacter
== current, "CurrentCharacter Assumption violated", "Assumed that the current character would be {0}, but it is actually {1}", current,
CurrentCharacter
);