42 references to ThrowStatement
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Statements.cs (2)
119case SyntaxKind.ThrowStatement: 334case SyntaxKind.ThrowStatement:
Binder\ExpressionVariableFinder.cs (1)
41case SyntaxKind.ThrowStatement:
Binder\LocalBinderFactory.cs (1)
956case SyntaxKind.ThrowStatement:
Binder\LocalScopeBinder.cs (1)
228case SyntaxKind.ThrowStatement:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4948case SyntaxKind.ThrowStatement:
Syntax\LambdaUtilities.cs (1)
412case SyntaxKind.ThrowStatement:
Syntax\LookupPosition.cs (2)
352case SyntaxKind.ThrowStatement: 417case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
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;
CSharpSyntaxKinds.cs (1)
136public int ThrowStatement => (int)SyntaxKind.ThrowStatement;
ExpressionSyntaxExtensions.cs (1)
567case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
114Debug.Assert(nextStatement.Kind() is SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement);
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (3)
51var rewriter = new Rewriter(model, isAllThrowStatements: nodeToGenerate == SyntaxKind.ThrowStatement, cancellationToken); 77case SyntaxKind.ThrowStatement: 234if (nextStatement is (kind: SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
342case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.Features (14)
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
114Debug.Assert(nextStatement.Kind() is SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement);
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (3)
51var rewriter = new Rewriter(model, isAllThrowStatements: nodeToGenerate == SyntaxKind.ThrowStatement, cancellationToken); 77case SyntaxKind.ThrowStatement: 234if (nextStatement is (kind: SyntaxKind.ThrowStatement or SyntaxKind.ReturnStatement))
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;
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
151var throwExpressionsAndStatements = member.DescendantNodes().Where(n => n.Kind() is SyntaxKind.ThrowExpression or SyntaxKind.ThrowStatement);
EditAndContinue\BreakpointSpans.cs (1)
576case SyntaxKind.ThrowStatement:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1813case SyntaxKind.ThrowStatement:
EditAndContinue\SyntaxComparer.cs (1)
359case SyntaxKind.ThrowStatement:
LambdaUtilities.cs (1)
412case SyntaxKind.ThrowStatement:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\StatementAttributeParsingTests.cs (1)
600N(SyntaxKind.ThrowStatement);
Parsing\StatementParsingTests.cs (2)
1188Assert.Equal(SyntaxKind.ThrowStatement, statement.Kind()); 1208Assert.Equal(SyntaxKind.ThrowStatement, statement.Kind());
Parsing\SwitchExpressionParsingTests.cs (1)
425N(SyntaxKind.ThrowStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\ClassificationHelpers.cs (1)
114case SyntaxKind.ThrowStatement:
CSharpSyntaxKinds.cs (1)
136public int ThrowStatement => (int)SyntaxKind.ThrowStatement;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
567case SyntaxKind.ThrowStatement: