1 implementation of Exception
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6952public IOperation? Exception { get; }
17 references to Exception
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
3905LinkThrowStatement(Visit(operation.Exception));
Microsoft.CodeAnalysis.CodeStyle (5)
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
74if (throwOperation.Exception == null) 130throwOperation.Exception.Syntax.GetLocation(),
OperationExtensions.cs (1)
447throwOperation.Exception.UnwrapImplicitConversion() is IObjectCreationOperation objectCreation &&
UseConditionalExpressionForAssignmentHelpers.cs (1)
70return throwOperation.Exception != null;
UseConditionalExpressionForReturnHelpers.cs (1)
131return throwOperation.Exception != null;
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
63IThrowOperation { Exception: { } exception } => ThrowExpression((ExpressionSyntax)exception.Syntax),
Microsoft.CodeAnalysis.Features (6)
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
74if (throwOperation.Exception == null) 130throwOperation.Exception.Syntax.GetLocation(),
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
127nextStatement is IReturnOperation { ReturnedValue: not null } or IThrowOperation { Exception: not null })
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
144case IThrowOperation { Exception: { } }:
UseConditionalExpressionForAssignmentHelpers.cs (1)
70return throwOperation.Exception != null;
UseConditionalExpressionForReturnHelpers.cs (1)
131return throwOperation.Exception != null;
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1419Visit(operation.Exception);
Compilation\TestOperationVisitor.cs (2)
986if (operation.Exception == null) 992Assert.Same(operation.Exception, operation.ChildOperations.Single());
Microsoft.CodeAnalysis.Workspaces (1)
OperationExtensions.cs (1)
447throwOperation.Exception.UnwrapImplicitConversion() is IObjectCreationOperation objectCreation &&