12 references to Throw
Microsoft.Analyzers.Local (1)
CallAnalysis\CallAnalyzer.cs (1)
39compilationStartContext.RegisterOperationAction(handlers.HandleThrow, OperationKind.Throw);
Microsoft.CodeAnalysis (7)
Generated\Operations.Generated.cs (2)
2219/// <item><description><see cref="OperationKind.Throw"/></description></item> 7365public override OperationKind Kind => OperationKind.Throw;
Operations\ControlFlowGraphBuilder.cs (5)
1619if (operation.WhenTrue is IConversionOperation whenTrueConversion && whenTrueConversion.Operand.Kind == OperationKind.Throw) 1631else if (operation.WhenFalse is IConversionOperation whenFalseConversion && whenFalseConversion.Operand.Kind == OperationKind.Throw) 2925if (conversion.Operand.Kind == OperationKind.Throw) 3045bool alternativeThrows = conversion?.Operand.Kind == OperationKind.Throw; 3565else if (operation.Operation.Kind == OperationKind.Throw)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
66startContext.RegisterOperationAction(operationContext => AnalyzeOperation(operationContext, expressionType), OperationKind.Throw);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
66startContext.RegisterOperationAction(operationContext => AnalyzeOperation(operationContext, expressionType), OperationKind.Throw);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\ControlFlowGraphVerifier.cs (1)
1862case OperationKind.Throw:
Compilation\TestOperationVisitor.cs (1)
1003Assert.Equal(OperationKind.Throw, operation.Kind);