Exemplo n.º 1
0
#pragma warning disable CA1307 // Specify StringComparison - string.GetHashCode(StringComparison) not available in all projects that reference this shared project
        protected override void ComputeHashCodePartsSpecific(ArrayBuilder <int> builder)
        {
            builder.Add(ValueContentAnalysisResultOpt.GetHashCodeOrDefault());
            builder.Add(TypeToTrackMetadataName.GetHashCode());
            builder.Add(ConstructorMapper.GetHashCode());
            builder.Add(PropertyMappers.GetHashCode());
            builder.Add(HazardousUsageEvaluators.GetHashCode());
        }
 protected sealed override void ComputeHashCodeParts(ArrayBuilder <int> builder)
 {
     builder.Add(ValueDomain.GetHashCode());
     builder.Add(OwningSymbol.GetHashCode());
     builder.Add(ControlFlowGraph.OriginalOperation.GetHashCode());
     builder.Add(InterproceduralAnalysisConfiguration.GetHashCode());
     builder.Add(PessimisticAnalysis.GetHashCode());
     builder.Add(PredicateAnalysis.GetHashCode());
     builder.Add(ExceptionPathsAnalysis.GetHashCode());
     builder.Add(CopyAnalysisResultOpt.GetHashCodeOrDefault());
     builder.Add(PointsToAnalysisResultOpt.GetHashCodeOrDefault());
     builder.Add(ValueContentAnalysisResultOpt.GetHashCodeOrDefault());
     builder.Add(InterproceduralAnalysisDataOpt.GetHashCodeOrDefault());
     builder.Add(InterproceduralAnalysisPredicateOpt.GetHashCodeOrDefault());
     ComputeHashCodePartsSpecific(builder);
 }
Exemplo n.º 3
0
 protected sealed override void ComputeHashCodeParts(Action <int> addPart)
 {
     addPart(ValueDomain.GetHashCode());
     addPart(OwningSymbol.GetHashCode());
     addPart(ControlFlowGraph.OriginalOperation.GetHashCode());
     addPart(AnalyzerOptions.GetHashCode());
     addPart(InterproceduralAnalysisConfiguration.GetHashCode());
     addPart(PessimisticAnalysis.GetHashCode());
     addPart(PredicateAnalysis.GetHashCode());
     addPart(ExceptionPathsAnalysis.GetHashCode());
     addPart(CopyAnalysisResultOpt.GetHashCodeOrDefault());
     addPart(PointsToAnalysisResultOpt.GetHashCodeOrDefault());
     addPart(ValueContentAnalysisResultOpt.GetHashCodeOrDefault());
     addPart(InterproceduralAnalysisDataOpt.GetHashCodeOrDefault());
     addPart(InterproceduralAnalysisPredicateOpt.GetHashCodeOrDefault());
     ComputeHashCodePartsSpecific(addPart);
 }