1 implementation of Exception
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7325public IOperation? Exception { get; }
19 references to Exception
Microsoft.Analyzers.Local (2)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
116if (op.Exception is IConversionOperation convOp)
CallAnalysis\Throws.cs (1)
30var convOp = (IConversionOperation?)op.Exception;
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
3922LinkThrowStatement(Visit(operation.Exception));
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
150return throwOperation.Exception != null;
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
131return throwOperation.Exception != null;
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
75if (throwOperation.Exception == null) 131throwOperation.Exception.Syntax.GetLocation(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
453throwOperation.Exception.UnwrapImplicitConversion() is IObjectCreationOperation objectCreation &&
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
64IThrowOperation { Exception: { } exception } => ThrowExpression((ExpressionSyntax)exception.Syntax),
Microsoft.CodeAnalysis.Features (6)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
134nextStatement is IReturnOperation { ReturnedValue: not null } or IThrowOperation { Exception: not null })
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
143case IThrowOperation { Exception: { } }:
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
150return throwOperation.Exception != null;
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
131return throwOperation.Exception != null;
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
75if (throwOperation.Exception == null) 131throwOperation.Exception.Syntax.GetLocation(),
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1428Visit(operation.Exception);
Compilation\TestOperationVisitor.cs (2)
1004if (operation.Exception == null) 1010Assert.Same(operation.Exception, operation.ChildOperations.Single());
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
453throwOperation.Exception.UnwrapImplicitConversion() is IObjectCreationOperation objectCreation &&