27 references to TryAccept
Microsoft.CodeAnalysis.Razor.Compiler (27)
Language\Legacy\CSharpCodeParser.cs (25)
1129
TryAccept
(SyntaxKind.RightBrace);
1709
TryAccept
(SyntaxKind.RightBracket);
1817
TryAccept
(SyntaxKind.Semicolon);
2049
if (!
TryAccept
(SyntaxKind.RightBrace))
2195
TryAccept
(SyntaxKind.RightParenthesis);
2277
TryAccept
(SyntaxKind.Colon);
2448
if (TryParseCondition(builder) &&
TryAccept
(SyntaxKind.Semicolon))
2608
hasExplicitSemicolon =
TryAccept
(SyntaxKind.Semicolon);
2650
if (
TryAccept
(SyntaxKind.LeftParenthesis))
2652
while (!
TryAccept
(SyntaxKind.RightParenthesis) && !EndOfFile)
2654
TryAccept
(SyntaxKind.Whitespace);
2661
TryAccept
(SyntaxKind.Whitespace);
2662
TryAccept
(SyntaxKind.Identifier);
2663
TryAccept
(SyntaxKind.Whitespace);
2664
TryAccept
(SyntaxKind.Comma);
2673
TryAccept
(SyntaxKind.QuestionMark); // Nullable
2677
else if (
TryAccept
(SyntaxKind.Identifier) ||
TryAccept
(SyntaxKind.Keyword))
2679
if (
TryAccept
(SyntaxKind.DoubleColon))
2681
if (!
TryAccept
(SyntaxKind.Identifier))
2683
TryAccept
(SyntaxKind.Keyword);
2690
if (
TryAccept
(SyntaxKind.Dot))
2701
TryAccept
(SyntaxKind.QuestionMark); // Nullable
2712
if (!
TryAccept
(SyntaxKind.RightBracket))
2729
if (!
TryAccept
(SyntaxKind.GreaterThan))
Language\Legacy\HtmlMarkupParser.cs (2)
381
TryAccept
(SyntaxKind.NewLine);
1330
TryAccept
(quote);