43 references to ThrowStatement
Microsoft.Analyzers.Local (1)
CallAnalysis\Throws.cs (1)
35if (op.Syntax.IsKind(SyntaxKind.ThrowStatement))
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Statements.cs (2)
120case SyntaxKind.ThrowStatement: 337case SyntaxKind.ThrowStatement:
Binder\ExpressionVariableFinder.cs (1)
41case SyntaxKind.ThrowStatement:
Binder\LocalBinderFactory.cs (1)
1052case SyntaxKind.ThrowStatement:
Binder\LocalScopeBinder.cs (1)
264case SyntaxKind.ThrowStatement:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5231case SyntaxKind.ThrowStatement:
Syntax\LambdaUtilities.cs (1)
413case SyntaxKind.ThrowStatement:
Syntax\LookupPosition.cs (2)
352case SyntaxKind.ThrowStatement: 415case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (5)
183return SyntaxKind.ThrowStatement; 193if (left == SyntaxKind.ThrowStatement) 198if (right == SyntaxKind.ThrowStatement) 214return nextStatement is (kind: SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement) 287return node.Expression is null ? default : SyntaxKind.ThrowStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
583case SyntaxKind.ThrowStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
153public int ThrowStatement => (int)SyntaxKind.ThrowStatement;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
110Debug.Assert(nextStatement.Kind() is SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (3)
52var rewriter = new Rewriter(model, isAllThrowStatements: nodeToGenerate == SyntaxKind.ThrowStatement, cancellationToken); 78case SyntaxKind.ThrowStatement: 234if (nextStatement is (kind: SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
384case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.Features (13)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
149var throwExpressionsAndStatements = member.DescendantNodes().Where(n => n.Kind() is SyntaxKind.ThrowExpression or SyntaxKind.ThrowStatement);
EditAndContinue\BreakpointSpans.cs (1)
757case SyntaxKind.ThrowStatement:
EditAndContinue\SyntaxComparer.cs (1)
360case SyntaxKind.ThrowStatement:
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (5)
183return SyntaxKind.ThrowStatement; 193if (left == SyntaxKind.ThrowStatement) 198if (right == SyntaxKind.ThrowStatement) 214return nextStatement is (kind: SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement) 287return node.Expression is null ? default : SyntaxKind.ThrowStatement;
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
110Debug.Assert(nextStatement.Kind() is SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (3)
52var rewriter = new Rewriter(model, isAllThrowStatements: nodeToGenerate == SyntaxKind.ThrowStatement, cancellationToken); 78case SyntaxKind.ThrowStatement: 234if (nextStatement is (kind: SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement))
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
413case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Parsing\MemberDeclarationParsingTests.cs (1)
12504N(SyntaxKind.ThrowStatement);
Parsing\StatementAttributeParsingTests.cs (1)
601N(SyntaxKind.ThrowStatement);
Parsing\StatementParsingTests.cs (2)
1188Assert.Equal(SyntaxKind.ThrowStatement, statement.Kind()); 1208Assert.Equal(SyntaxKind.ThrowStatement, statement.Kind());
Parsing\SwitchExpressionParsingTests.cs (1)
426N(SyntaxKind.ThrowStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
112case SyntaxKind.ThrowStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
583case SyntaxKind.ThrowStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
153public int ThrowStatement => (int)SyntaxKind.ThrowStatement;