4 instantiations of HashInstanceTarget
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (4)
40var hashInstanceTarget = new HashInstanceTarget(new List<ComputeHashSyntaxHolder> { computeHashSyntaxHolder }); 46var hashInstanceTarget = new HashInstanceTarget(createHashNode, disposeNodes); 149var hashInstanceTargets = dictionary.Values.Append(new HashInstanceTarget(chainedComputeHashList)).ToArray(); 171hashInstanceTarget = new HashInstanceTarget(createNode, disposeNodes);
13 references to HashInstanceTarget
Microsoft.CodeAnalysis.NetAnalyzers (13)
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (13)
40var hashInstanceTarget = new HashInstanceTarget(new List<ComputeHashSyntaxHolder> { computeHashSyntaxHolder }); 46var hashInstanceTarget = new HashInstanceTarget(createHashNode, disposeNodes); 55private readonly HashInstanceTarget _hashInstanceTarget; 58public HashDataCodeAction(Document document, HashInstanceTarget hashInstanceTarget, PreferHashDataOverComputeHashFixHelper helper, SyntaxNode root) 138private HashInstanceTarget[]? CollectTargets(SyntaxNode root, IGrouping<SyntaxTree, Diagnostic> grouping, CancellationToken cancellationToken) 140var dictionary = PooledDictionary<SyntaxNode, HashInstanceTarget>.GetInstance(); 168if (!dictionary.TryGetValue(createNode, out HashInstanceTarget hashInstanceTarget)) 182internal SyntaxNode FixDocumentRoot(SyntaxNode root, HashInstanceTarget[] hashInstanceTargets) 184foreach (var target in hashInstanceTargets) 342public SyntaxNode TrackTargets(SyntaxNode root, HashInstanceTarget[] targets) 345foreach (var t in targets) 366public SyntaxNode TrackTarget(SyntaxNode root, HashInstanceTarget target) 387public SyntaxNode FixHashInstanceTarget(SyntaxNode root, HashInstanceTarget hashInstanceTarget)