private void ComputeHashCodePartsIgnoringLocation(Action <int> addPart) { addPart(SymbolOpt.GetHashCodeOrDefault()); addPart(HashUtilities.Combine(Indices)); addPart(InstanceReferenceOperationSyntaxOpt.GetHashCodeOrDefault()); addPart(CaptureIdOpt.GetHashCodeOrDefault()); addPart(Type.GetHashCode()); addPart(ParentOpt.GetHashCodeOrDefault()); addPart(IsThisOrMeInstance.GetHashCode()); }
private void ComputeHashCodePartsIgnoringLocation(ArrayBuilder <int> builder) { builder.Add(SymbolOpt.GetHashCodeOrDefault()); builder.Add(HashUtilities.Combine(Indices)); builder.Add(InstanceReferenceOperationSyntaxOpt.GetHashCodeOrDefault()); builder.Add(CaptureIdOpt.GetHashCodeOrDefault()); builder.Add(Type.GetHashCode()); builder.Add(ParentOpt.GetHashCodeOrDefault()); builder.Add(IsThisOrMeInstance.GetHashCode()); }