27 references to TryAccept
Microsoft.CodeAnalysis.Razor.Compiler (27)
Language\Legacy\CSharpCodeParser.cs (25)
1147
TryAccept
(SyntaxKind.RightBrace);
1736
TryAccept
(SyntaxKind.RightBracket);
1844
TryAccept
(SyntaxKind.Semicolon);
2220
if (!
TryAccept
(SyntaxKind.RightBrace))
2366
TryAccept
(SyntaxKind.RightParenthesis);
2448
TryAccept
(SyntaxKind.Colon);
2619
if (TryParseCondition(builder) &&
TryAccept
(SyntaxKind.Semicolon))
2779
hasExplicitSemicolon =
TryAccept
(SyntaxKind.Semicolon);
2821
if (
TryAccept
(SyntaxKind.LeftParenthesis))
2823
while (!
TryAccept
(SyntaxKind.RightParenthesis) && !EndOfFile)
2825
TryAccept
(SyntaxKind.Whitespace);
2832
TryAccept
(SyntaxKind.Whitespace);
2833
TryAccept
(SyntaxKind.Identifier);
2834
TryAccept
(SyntaxKind.Whitespace);
2835
TryAccept
(SyntaxKind.Comma);
2844
TryAccept
(SyntaxKind.QuestionMark); // Nullable
2848
else if (
TryAccept
(SyntaxKind.Identifier) ||
TryAccept
(SyntaxKind.Keyword))
2850
if (
TryAccept
(SyntaxKind.DoubleColon))
2852
if (!
TryAccept
(SyntaxKind.Identifier))
2854
TryAccept
(SyntaxKind.Keyword);
2861
if (
TryAccept
(SyntaxKind.Dot))
2872
TryAccept
(SyntaxKind.QuestionMark); // Nullable
2883
if (!
TryAccept
(SyntaxKind.RightBracket))
2900
if (!
TryAccept
(SyntaxKind.GreaterThan))
Language\Legacy\HtmlMarkupParser.cs (2)
399
TryAccept
(SyntaxKind.NewLine);
1358
TryAccept
(quote);