예제 #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());
        }
예제 #2
0
 protected override void ComputeHashCodePartsSpecific(Action <int> addPart)
 {
     addPart(SourceInfos.GetHashCode());
     addPart(SanitizerInfos.GetHashCode());
     addPart(SinkInfos.GetHashCode());
 }
예제 #3
0
 protected override void ComputeHashCodePartsSpecific(ref RoslynHashCode hashCode)
 {
     hashCode.Add(SourceInfos.GetHashCode());
     hashCode.Add(SanitizerInfos.GetHashCode());
     hashCode.Add(SinkInfos.GetHashCode());
 }
예제 #4
0
 protected override void ComputeHashCodePartsSpecific(ArrayBuilder <int> builder)
 {
     builder.Add(SourceInfos.GetHashCode());
     builder.Add(SanitizerInfos.GetHashCode());
     builder.Add(SinkInfos.GetHashCode());
 }