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