27 references to TryAccept
Microsoft.CodeAnalysis.Razor.Compiler (27)
Language\Legacy\CSharpCodeParser.cs (25)
1134
TryAccept
(SyntaxKind.RightBrace);
1714
TryAccept
(SyntaxKind.RightBracket);
1822
TryAccept
(SyntaxKind.Semicolon);
2054
if (!
TryAccept
(SyntaxKind.RightBrace))
2200
TryAccept
(SyntaxKind.RightParenthesis);
2282
TryAccept
(SyntaxKind.Colon);
2453
if (TryParseCondition(builder) &&
TryAccept
(SyntaxKind.Semicolon))
2613
hasExplicitSemicolon =
TryAccept
(SyntaxKind.Semicolon);
2658
if (
TryAccept
(SyntaxKind.LeftParenthesis))
2660
while (!
TryAccept
(SyntaxKind.RightParenthesis) && !EndOfFile)
2662
TryAccept
(SyntaxKind.Whitespace);
2669
TryAccept
(SyntaxKind.Whitespace);
2670
TryAccept
(SyntaxKind.Identifier);
2671
TryAccept
(SyntaxKind.Whitespace);
2672
TryAccept
(SyntaxKind.Comma);
2681
TryAccept
(SyntaxKind.QuestionMark); // Nullable
2685
else if (
TryAccept
(SyntaxKind.Identifier) ||
TryAccept
(SyntaxKind.Keyword))
2687
if (
TryAccept
(SyntaxKind.DoubleColon))
2689
if (!
TryAccept
(SyntaxKind.Identifier))
2691
TryAccept
(SyntaxKind.Keyword);
2698
if (
TryAccept
(SyntaxKind.Dot))
2709
TryAccept
(SyntaxKind.QuestionMark); // Nullable
2720
if (!
TryAccept
(SyntaxKind.RightBracket))
2737
if (!
TryAccept
(SyntaxKind.GreaterThan))
Language\Legacy\HtmlMarkupParser.cs (2)
386
TryAccept
(SyntaxKind.NewLine);
1336
TryAccept
(quote);