23 references to ThrowExpression
Microsoft.Analyzers.Local (1)
CallAnalysis\Throws.cs (1)
44else if (op.Syntax.IsKind(SyntaxKind.ThrowExpression))
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
810case SyntaxKind.ThrowExpression:
Binder\Binder_Statements.cs (1)
3534return IsValidStatementExpression(expressionSyntax, expression) || expressionSyntax.Kind() == SyntaxKind.ThrowExpression;
Parser\LanguageParser.cs (1)
10709case SyntaxKind.ThrowExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
29for (var current = SyntaxKind.None; current <= SyntaxKind.ThrowExpression; current++)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
194if (expressionBody!.Expression.IsKind(SyntaxKind.ThrowExpression))
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
56if (expressionBodyOpt.IsKind(SyntaxKind.ThrowExpression) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
95if (expression.IsKind(SyntaxKind.ThrowExpression)) 238if (expression.IsKind(SyntaxKind.ThrowExpression) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
117public int? ThrowExpression => (int)SyntaxKind.ThrowExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
44if (expression.IsKind(SyntaxKind.ThrowExpression))
Microsoft.CodeAnalysis.CSharp.Features (5)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
149var throwExpressionsAndStatements = member.DescendantNodes().Where(n => n.Kind() is SyntaxKind.ThrowExpression or SyntaxKind.ThrowStatement);
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
126if (expression.IsKind(SyntaxKind.ThrowExpression))
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
29for (var current = SyntaxKind.None; current <= SyntaxKind.ThrowExpression; current++)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
194if (expressionBody!.Expression.IsKind(SyntaxKind.ThrowExpression))
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
56if (expressionBodyOpt.IsKind(SyntaxKind.ThrowExpression) &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\CollectionExpressionParsingTests.cs (1)
6501N(SyntaxKind.ThrowExpression);
Parsing\PatternParsingTests.cs (1)
205N(SyntaxKind.ThrowExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
133case SyntaxKind.ThrowExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (2)
95if (expression.IsKind(SyntaxKind.ThrowExpression)) 238if (expression.IsKind(SyntaxKind.ThrowExpression) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
117public int? ThrowExpression => (int)SyntaxKind.ThrowExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
44if (expression.IsKind(SyntaxKind.ThrowExpression))