30 references to ComputeType
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\CSharpPreferHashDataOverComputeHash.Fixer.cs (4)
34
protected override SyntaxNode GetHashDataSyntaxNode(PreferHashDataOverComputeHashAnalyzer.
ComputeType
computeType, string? namespacePrefix, string hashTypeName, SyntaxNode computeHashNode)
46
case PreferHashDataOverComputeHashAnalyzer.
ComputeType
.ComputeHash:
62
case PreferHashDataOverComputeHashAnalyzer.
ComputeType
.ComputeHashSection:
101
case PreferHashDataOverComputeHashAnalyzer.
ComputeType
.TryComputeHash:
Microsoft.CodeAnalysis.NetAnalyzers (22)
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.cs (17)
131
else if (methodHelper.IsComputeHashMethod(invocationOperation, out
ComputeType
computeType))
212
static void CaptureOrReportComputeHashInvocationOperation(OperationAnalysisContext context, MethodHelper methodHelper, DataCollector dataCollector, IInvocationOperation computeHashInvocation,
ComputeType
computeType)
258
ComputeType
computeType)
272
ComputeType
computeType,
403
public bool IsComputeHashMethod(IInvocationOperation invocationOperation, out
ComputeType
computeType)
407
computeType =
ComputeType
.ComputeHash;
413
computeType =
ComputeType
.ComputeHashSection;
419
computeType =
ComputeType
.TryComputeHash;
435
public bool TryGetHashDataMethod(ITypeSymbol? originalHashType,
ComputeType
computeType, [NotNullWhen(true)] out IMethodSymbol? staticHashMethod)
440
ComputeType
.ComputeHash => TryGetHashDataMethodByteArg(originalHashType, out staticHashMethod),
441
ComputeType
.ComputeHashSection => TryGetHashDataMethodSpanArg(originalHashType, out staticHashMethod),
442
ComputeType
.TryComputeHash => TryGetTryHashDataMethod(originalHashType, out staticHashMethod),
581
private readonly PooledConcurrentDictionary<IInvocationOperation,
ComputeType
> _computeHashMap = PooledConcurrentDictionary<IInvocationOperation,
ComputeType
>.GetInstance();
587
public void CollectComputeHashInvocation(IInvocationOperation computeHashInvocation,
ComputeType
computeType) => _computeHashMap.TryAdd(computeHashInvocation, computeType);
711
PooledConcurrentDictionary<IInvocationOperation,
ComputeType
> computeHashMap)
719
public PooledConcurrentDictionary<IInvocationOperation,
ComputeType
> ComputeHashMap { get; }
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (5)
216
public ComputeHashSyntaxHolder(SyntaxNode computeHashNode, PreferHashDataOverComputeHashAnalyzer.
ComputeType
computeType, string hashTypeName)
223
public PreferHashDataOverComputeHashAnalyzer.
ComputeType
ComputeType { get; }
271
if (!Enum.TryParse<PreferHashDataOverComputeHashAnalyzer.
ComputeType
>(diagnostic.Properties[PreferHashDataOverComputeHashAnalyzer.ComputeTypePropertyKey],
272
out
var
computeType))
449
protected abstract SyntaxNode GetHashDataSyntaxNode(PreferHashDataOverComputeHashAnalyzer.
ComputeType
computeType, string? namespacePrefix, string hashTypeName, SyntaxNode computeHashNode);
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicPreferHashDataOverComputeHash.Fixer.vb (4)
92
Protected Overrides Function GetHashDataSyntaxNode(computeType As PreferHashDataOverComputeHashAnalyzer.
ComputeType
, namespacePrefix As String, hashTypeName As String, computeHashNode As SyntaxNode) As SyntaxNode
100
Case PreferHashDataOverComputeHashAnalyzer.
ComputeType
.ComputeHash
113
Case PreferHashDataOverComputeHashAnalyzer.
ComputeType
.ComputeHashSection
149
Case PreferHashDataOverComputeHashAnalyzer.
ComputeType
.TryComputeHash