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