From 214fb9a93d5456d06f5097e7e01b1a436d710362 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Mon, 21 Oct 2019 12:13:46 -0700 Subject: [PATCH] Comment --- .../UseSystemHashCode/Analyzer.OperationDeconstructor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Features/Core/Portable/UseSystemHashCode/Analyzer.OperationDeconstructor.cs b/src/Features/Core/Portable/UseSystemHashCode/Analyzer.OperationDeconstructor.cs index 3b955570a93..e03f3d2ace4 100644 --- a/src/Features/Core/Portable/UseSystemHashCode/Analyzer.OperationDeconstructor.cs +++ b/src/Features/Core/Portable/UseSystemHashCode/Analyzer.OperationDeconstructor.cs @@ -47,6 +47,10 @@ public void Dispose() /// Recursive function that decomposes , looking for particular /// forms that VS or ReSharper generate to hash fields in the containing type. /// + /// 'seenHash' is used to determine if we actually saw something + /// that indicates that we really hashed a field/property and weren't just simply + /// referencing it. This is used as we recurse down to make sure we've seen a + /// pattern we explicitly recognize by the time we hit a field/prop. public bool TryAddHashedSymbol(IOperation value, bool seenHash) { value = Unwrap(value); -- GitLab