31 references to ThrowKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (7)
7963case SyntaxKind.ThrowKeyword: 8776case SyntaxKind.ThrowKeyword: 9811Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ThrowKeyword); 9814this.EatToken(SyntaxKind.ThrowKeyword), 10585case SyntaxKind.ThrowKeyword: 10968if (tk == SyntaxKind.ThrowKeyword) 11372this.EatToken(SyntaxKind.ThrowKeyword),
Syntax\SyntaxKindFacts.cs (2)
917return SyntaxKind.ThrowKeyword; 1577case SyntaxKind.ThrowKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
80Token(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2608if (token.IsKind(SyntaxKind.ThrowKeyword))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
13: base(SyntaxKind.ThrowKeyword)
ExtractMethod\Extensions.cs (1)
147if (token.Kind() != SyntaxKind.ThrowKeyword)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
80Token(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Generated\Syntax.Test.xml.Generated.cs (8)
272=> InternalSyntaxFactory.ThrowExpression(InternalSyntaxFactory.Token(SyntaxKind.ThrowKeyword), GenerateIdentifierName()); 386=> InternalSyntaxFactory.ThrowStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.ThrowKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 1773Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 2224Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 10488=> SyntaxFactory.ThrowExpression(SyntaxFactory.Token(SyntaxKind.ThrowKeyword), GenerateIdentifierName()); 10602=> SyntaxFactory.ThrowStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.ThrowKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 11989Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind()); 12440Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (1)
6503N(SyntaxKind.ThrowKeyword);
Parsing\MemberDeclarationParsingTests.cs (1)
12506N(SyntaxKind.ThrowKeyword);
Parsing\PatternParsingTests.cs (1)
207N(SyntaxKind.ThrowKeyword);
Parsing\StatementAttributeParsingTests.cs (1)
615N(SyntaxKind.ThrowKeyword);
Parsing\StatementParsingTests.cs (2)
1195Assert.Equal(SyntaxKind.ThrowKeyword, ts.ThrowKeyword.ContextualKind()); 1215Assert.Equal(SyntaxKind.ThrowKeyword, ts.ThrowKeyword.ContextualKind());
Parsing\SwitchExpressionParsingTests.cs (1)
428N(SyntaxKind.ThrowKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
90case SyntaxKind.ThrowKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2608if (token.IsKind(SyntaxKind.ThrowKeyword))