Beispiel #1
0
 protected override void ComputeHashCodeParts(Action <int> addPart)
 {
     addPart(Operation.GetHashCode());
     addPart(AnalysisEntity.GetHashCodeOrDefault());
     addPart(InstanceLocation.GetHashCode());
     addPart(Value.GetHashCodeOrDefault());
 }
Beispiel #2
0
 protected override void ComputeHashCodeParts(ref RoslynHashCode hashCode)
 {
     hashCode.Add(Operation.GetHashCode());
     hashCode.Add(AnalysisEntity.GetHashCodeOrDefault());
     hashCode.Add(InstanceLocation.GetHashCode());
     hashCode.Add(Value?.GetHashCode() ?? 0);
 }
Beispiel #3
0
        protected override bool ComputeEqualsByHashCodeParts(CacheBasedEquatable <ArgumentInfo <TAbstractAnalysisValue> > obj)
        {
            var other = (ArgumentInfo <TAbstractAnalysisValue>)obj;

            return(Operation.GetHashCode() == other.Operation.GetHashCode() &&
                   AnalysisEntity.GetHashCodeOrDefault() == other.AnalysisEntity.GetHashCodeOrDefault() &&
                   InstanceLocation.GetHashCode() == other.InstanceLocation.GetHashCode() &&
                   (Value?.GetHashCode() ?? 0) == (other.Value?.GetHashCode() ?? 0));
        }
Beispiel #4
0
 protected override void ComputeHashCodeParts(Action <int> addPart)
 {
     addPart(Creation.GetHashCodeOrDefault());
     addPart(HashUtilities.Combine(CreationCallStack));
     addPart(Symbol.GetHashCodeOrDefault());
     addPart(CaptureId.GetHashCodeOrDefault());
     addPart(AnalysisEntity.GetHashCodeOrDefault());
     addPart(LocationType.GetHashCodeOrDefault());
     addPart(_isSpecialSingleton.GetHashCode());
     addPart(IsNull.GetHashCode());
 }