20 references to DisposeMethodKind
Microsoft.CodeAnalysis.AnalyzerUtilities (20)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (12)
318
/// Gets the <see cref="
DisposeMethodKind
"/> for the given method.
320
public static
DisposeMethodKind
GetDisposeMethodKind(this IMethodSymbol method, Compilation compilation)
332
/// Gets the <see cref="
DisposeMethodKind
"/> for the given method.
334
public static
DisposeMethodKind
GetDisposeMethodKind(
354
return
DisposeMethodKind
.Dispose;
358
return
DisposeMethodKind
.DisposeBool;
362
return
DisposeMethodKind
.DisposeAsync;
366
return
DisposeMethodKind
.DisposeCoreAsync;
370
return
DisposeMethodKind
.DisposeCoreAsync;
374
return
DisposeMethodKind
.Close;
378
return
DisposeMethodKind
.CloseAsync;
382
return
DisposeMethodKind
.None;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (6)
266
var
disposeMethodKind = GetDisposeMethodKind(method);
269
case
DisposeMethodKind
.Dispose:
270
case
DisposeMethodKind
.DisposeBool:
271
case
DisposeMethodKind
.DisposeAsync:
275
case
DisposeMethodKind
.Close:
279
goto case
DisposeMethodKind
.Dispose;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
222
public
DisposeMethodKind
GetDisposeMethodKind(IMethodSymbol method)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4223
private protected
DisposeMethodKind
GetDisposeMethodKind(IMethodSymbol method)