Beispiel #1
0
        protected override bool ComputeEqualsByHashCodeParts(AbstractDataFlowAnalysisContext <TaintedDataAnalysisData, TaintedDataAnalysisContext, TaintedDataAnalysisResult, TaintedDataAbstractValue> obj)
        {
            var other = (TaintedDataAnalysisContext)obj;

            return(SourceInfos.GetHashCode() == other.SourceInfos.GetHashCode() &&
                   SanitizerInfos.GetHashCode() == other.SanitizerInfos.GetHashCode() &&
                   SinkInfos.GetHashCode() == other.SinkInfos.GetHashCode());
        }
Beispiel #2
0
 protected override void ComputeHashCodePartsSpecific(Action <int> addPart)
 {
     addPart(SourceInfos.GetHashCode());
     addPart(SanitizerInfos.GetHashCode());
     addPart(SinkInfos.GetHashCode());
 }
Beispiel #3
0
 protected override void ComputeHashCodePartsSpecific(ref RoslynHashCode hashCode)
 {
     hashCode.Add(SourceInfos.GetHashCode());
     hashCode.Add(SanitizerInfos.GetHashCode());
     hashCode.Add(SinkInfos.GetHashCode());
 }
Beispiel #4
0
 protected override void ComputeHashCodePartsSpecific(ArrayBuilder <int> builder)
 {
     builder.Add(SourceInfos.GetHashCode());
     builder.Add(SanitizerInfos.GetHashCode());
     builder.Add(SinkInfos.GetHashCode());
 }