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