3 instantiations of ThrownExceptionInfo
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (3)
33
return new
ThrownExceptionInfo
(block, exceptionType, interproceduralCallStack, isDefaultExceptionForExceptionsPathAnalysis: false);
40
return new
ThrownExceptionInfo
(block, exceptionNamedType, interproceduralCallStack, isDefaultExceptionForExceptionsPathAnalysis: true);
72
return new
ThrownExceptionInfo
(block, ExceptionType, interproceduralCallStack, IsDefaultExceptionForExceptionsPathAnalysis);
30 references to ThrownExceptionInfo
Microsoft.CodeAnalysis.AnalyzerUtilities (30)
src\1e7e9f16bf7f1945\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
174
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(ValueContentAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\2e2796bccd1466f6\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
117
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(TaintedDataAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\66dd3055a1c91c38\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
588
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(PointsToAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\683181b2796de991\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (1)
214
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(ParameterValidationAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\97c55a67c449f67c\GlobalFlowStateDataFlowOperationVisitor.cs (1)
139
protected sealed override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(DictionaryAnalysisData<AnalysisEntity, TAbstractAnalysisValue> dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\a03b2aad21e28a8a\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (1)
122
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(PropertySetAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\a172c07bebba4cd8\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (1)
214
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(DisposeAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.CopyDataFlowOperationVisitor.cs (1)
447
protected override void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(CopyAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
736
ThrownExceptionInfo
throwBranchWithExceptionType)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
56
Dictionary<
ThrownExceptionInfo
, TAnalysisData>? analysisDataForUnhandledThrowOperations,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (14)
151
internal Dictionary<
ThrownExceptionInfo
, TAnalysisData>? AnalysisDataForUnhandledThrowOperations { get; private set; }
229
private Dictionary<BasicBlock,
ThrownExceptionInfo
>? _exceptionPathsThrownExceptionInfoMap;
230
private
ThrownExceptionInfo
DefaultThrownExceptionInfo
237
if (!_exceptionPathsThrownExceptionInfoMap.TryGetValue(CurrentBasicBlock, out
var
info))
239
info =
ThrownExceptionInfo
.CreateDefaultInfoForExceptionsPathAnalysis(
732
var
info =
ThrownExceptionInfo
.Create(CurrentBasicBlock, exceptionType, DataFlowAnalysisContext.InterproceduralAnalysisData?.CallStack);
2095
protected abstract void ApplyMissingCurrentAnalysisDataForUnhandledExceptionData(TAnalysisData dataAtException,
ThrownExceptionInfo
throwBranchWithExceptionType);
2146
private void ApplyInterproceduralAnalysisDataForUnhandledThrowOperations(Dictionary<
ThrownExceptionInfo
, TAnalysisData> interproceduralUnhandledThrowOperationsData)
2158
var
adjustedExceptionInfo = exceptionInfo.With(CurrentBasicBlock, DataFlowAnalysisContext.InterproceduralAnalysisData?.CallStack);
2167
void ApplyInterproceduralAnalysisDataForUnhandledThrowOperation(
ThrownExceptionInfo
exceptionInfo, TAnalysisData analysisDataAtException)
2316
if (analysisResult.AnalysisDataForUnhandledThrowOperations is Dictionary<
ThrownExceptionInfo
, TAnalysisData> interproceduralUnhandledThrowOperationsDataOpt)
3765
foreach (
ThrownExceptionInfo
pendingThrow in AnalysisDataForUnhandledThrowOperations.Keys.ToArray())
3783
bool ShouldHandlePendingThrow(
ThrownExceptionInfo
pendingThrow)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (6)
15
public sealed class ThrownExceptionInfo : IEquatable<
ThrownExceptionInfo
?>
31
internal static
ThrownExceptionInfo
Create(BasicBlock block, INamedTypeSymbol exceptionType, ImmutableStack<IOperation>? interproceduralCallStack)
36
internal static
ThrownExceptionInfo
CreateDefaultInfoForExceptionsPathAnalysis(BasicBlock block, WellKnownTypeProvider wellKnownTypeProvider, ImmutableStack<IOperation>? interproceduralCallStack)
69
internal
ThrownExceptionInfo
With(BasicBlock block, ImmutableStack<IOperation>? interproceduralCallStack)
94
public bool Equals(
ThrownExceptionInfo
? other)
106
=> Equals(obj as
ThrownExceptionInfo
);