20 references to DisposeMethodKind
Microsoft.CodeAnalysis.AnalyzerUtilities (20)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (12)
254
/// Gets the <see cref="
DisposeMethodKind
"/> for the given method.
256
public static
DisposeMethodKind
GetDisposeMethodKind(this IMethodSymbol method, Compilation compilation)
268
/// Gets the <see cref="
DisposeMethodKind
"/> for the given method.
270
public static
DisposeMethodKind
GetDisposeMethodKind(
290
return
DisposeMethodKind
.Dispose;
294
return
DisposeMethodKind
.DisposeBool;
298
return
DisposeMethodKind
.DisposeAsync;
302
return
DisposeMethodKind
.DisposeCoreAsync;
306
return
DisposeMethodKind
.DisposeCoreAsync;
310
return
DisposeMethodKind
.Close;
314
return
DisposeMethodKind
.CloseAsync;
318
return
DisposeMethodKind
.None;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (6)
268
var
disposeMethodKind = GetDisposeMethodKind(method);
271
case
DisposeMethodKind
.Dispose:
272
case
DisposeMethodKind
.DisposeBool:
273
case
DisposeMethodKind
.DisposeAsync:
277
case
DisposeMethodKind
.Close:
281
goto case
DisposeMethodKind
.Dispose;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
223
public
DisposeMethodKind
GetDisposeMethodKind(IMethodSymbol method)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4225
private protected
DisposeMethodKind
GetDisposeMethodKind(IMethodSymbol method)