31 references to ThrowKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (7)
7990case SyntaxKind.ThrowKeyword: 8798case SyntaxKind.ThrowKeyword: 9782Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ThrowKeyword); 9785this.EatToken(SyntaxKind.ThrowKeyword), 10556case SyntaxKind.ThrowKeyword: 10941else if (tk == SyntaxKind.ThrowKeyword) 11272this.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)
2602if (token.IsKind(SyntaxKind.ThrowKeyword))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
13: base(SyntaxKind.ThrowKeyword)
ExtractMethod\Extensions.cs (1)
158if (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)
269=> InternalSyntaxFactory.ThrowExpression(InternalSyntaxFactory.Token(SyntaxKind.ThrowKeyword), GenerateIdentifierName()); 383=> InternalSyntaxFactory.ThrowStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.ThrowKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 1760Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 2211Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 10446=> SyntaxFactory.ThrowExpression(SyntaxFactory.Token(SyntaxKind.ThrowKeyword), GenerateIdentifierName()); 10560=> SyntaxFactory.ThrowStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.ThrowKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 11937Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind()); 12388Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (1)
6503N(SyntaxKind.ThrowKeyword);
Parsing\MemberDeclarationParsingTests.cs (1)
12511N(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)
2602if (token.IsKind(SyntaxKind.ThrowKeyword))