Example #1
0
 protected override void ComputeHashCodeParts(Action <int> addPart)
 {
     addPart(Operation.GetHashCode());
     addPart(AnalysisEntityOpt.GetHashCodeOrDefault());
     addPart(InstanceLocation.GetHashCode());
     addPart(Value.GetHashCode());
 }
Example #2
0
 protected override void ComputeHashCodeParts(ArrayBuilder <int> builder)
 {
     builder.Add(Operation.GetHashCode());
     builder.Add(AnalysisEntityOpt.GetHashCodeOrDefault());
     builder.Add(InstanceLocation.GetHashCode());
     builder.Add(Value.GetHashCode());
 }
 protected override int ComputeHashCode()
 {
     return(HashUtilities.Combine(CreationOpt?.GetHashCode() ?? 0,
                                  HashUtilities.Combine(SymbolOpt?.GetHashCode() ?? 0,
                                                        HashUtilities.Combine(AnalysisEntityOpt?.GetHashCode() ?? 0,
                                                                              HashUtilities.Combine(LocationTypeOpt?.GetHashCode() ?? 0,
                                                                                                    HashUtilities.Combine(_isSpecialSingleton.GetHashCode(), IsNull.GetHashCode()))))));
 }
Example #4
0
 protected override void ComputeHashCodeParts(ArrayBuilder <int> builder)
 {
     builder.Add(CreationOpt.GetHashCodeOrDefault());
     builder.Add(HashUtilities.Combine(CreationCallStack));
     builder.Add(SymbolOpt.GetHashCodeOrDefault());
     builder.Add(AnalysisEntityOpt.GetHashCodeOrDefault());
     builder.Add(LocationTypeOpt.GetHashCodeOrDefault());
     builder.Add(_isSpecialSingleton.GetHashCode());
     builder.Add(IsNull.GetHashCode());
 }
Example #5
0
 protected override void ComputeHashCodeParts(Action <int> addPart)
 {
     addPart(CreationOpt.GetHashCodeOrDefault());
     addPart(HashUtilities.Combine(CreationCallStack));
     addPart(SymbolOpt.GetHashCodeOrDefault());
     addPart(CaptureIdOpt.GetHashCodeOrDefault());
     addPart(AnalysisEntityOpt.GetHashCodeOrDefault());
     addPart(LocationTypeOpt.GetHashCodeOrDefault());
     addPart(_isSpecialSingleton.GetHashCode());
     addPart(IsNull.GetHashCode());
 }
 protected override int ComputeHashCode()
 {
     return(HashUtilities.Combine(CreationOpt?.GetHashCode() ?? 0,
                                  HashUtilities.Combine(SymbolOpt?.GetHashCode() ?? 0,
                                                        HashUtilities.Combine(AnalysisEntityOpt?.GetHashCode() ?? 0, LocationTypeOpt?.GetHashCode() ?? 0))));
 }