29 references to ThrowKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (7)
7415case SyntaxKind.ThrowKeyword: 8222case SyntaxKind.ThrowKeyword: 9214Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ThrowKeyword); 9217this.EatToken(SyntaxKind.ThrowKeyword), 9969case SyntaxKind.ThrowKeyword: 10354else if (tk == SyntaxKind.ThrowKeyword) 10612this.EatToken(SyntaxKind.ThrowKeyword),
Syntax\SyntaxKindFacts.cs (2)
889return SyntaxKind.ThrowKeyword; 1541case SyntaxKind.ThrowKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
79Token(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2622if (token.IsKind(SyntaxKind.ThrowKeyword))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
13: base(SyntaxKind.ThrowKeyword)
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
79Token(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
ExtractMethod\Extensions.cs (1)
153if (token.Kind() != SyntaxKind.ThrowKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Generated\Syntax.Test.xml.Generated.cs (8)
260=> InternalSyntaxFactory.ThrowExpression(InternalSyntaxFactory.Token(SyntaxKind.ThrowKeyword), GenerateIdentifierName()); 374=> InternalSyntaxFactory.ThrowStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.ThrowKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken)); 1712Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 2163Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 10236=> SyntaxFactory.ThrowExpression(SyntaxFactory.Token(SyntaxKind.ThrowKeyword), GenerateIdentifierName()); 10350=> SyntaxFactory.ThrowStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.ThrowKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 11688Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind()); 12139Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind());
Parsing\PatternParsingTests.cs (1)
207N(SyntaxKind.ThrowKeyword);
Parsing\StatementAttributeParsingTests.cs (1)
614N(SyntaxKind.ThrowKeyword);
Parsing\StatementParsingTests.cs (2)
1195Assert.Equal(SyntaxKind.ThrowKeyword, ts.ThrowKeyword.ContextualKind()); 1215Assert.Equal(SyntaxKind.ThrowKeyword, ts.ThrowKeyword.ContextualKind());
Parsing\SwitchExpressionParsingTests.cs (1)
427N(SyntaxKind.ThrowKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
90case SyntaxKind.ThrowKeyword:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2622if (token.IsKind(SyntaxKind.ThrowKeyword))