101 references to Add
Microsoft.CodeAnalysis.AnalyzerUtilities (101)
src\RoslynAnalyzers\Utilities\Compiler\HashUtilities.cs (3)
34hashCode.Add(element); 49hashCode.Add(element); 64hashCode.Add(element);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAbstractValue.cs (2)
80hashCode.Add(HashUtilities.Combine(AnalysisEntities)); 81hashCode.Add(((int)Kind).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAbstractValue.cs (2)
76hashCode.Add(HashUtilities.Combine(DisposingOrEscapingOperations)); 77hashCode.Add(((int)Kind).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisContext.cs (4)
116hashCode.Add(TrackInstanceFields.GetHashCode()); 117hashCode.Add(DisposeOwnershipTransferAtConstructor.GetHashCode()); 118hashCode.Add(DisposeOwnershipTransferAtMethodCall.GetHashCode()); 119hashCode.Add(HashUtilities.Combine(DisposeOwnershipTransferLikelyTypes));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisValueSet.cs (4)
169hashCode.Add(HashUtilities.Combine(AnalysisValues)); 170hashCode.Add(HashUtilities.Combine(Parents)); 171hashCode.Add(Height.GetHashCode()); 172hashCode.Add(((int)Kind).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysisContext.cs (2)
105hashCode.Add(TrackHazardousParameterUsages.GetHashCode()); 106hashCode.Add(NullCheckValidationMethodNames.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAbstractValue.cs (4)
188hashCode.Add(HashUtilities.Combine(Locations)); 189hashCode.Add(HashUtilities.Combine(LValueCapturedOperations)); 190hashCode.Add(((int)Kind).GetHashCode()); 191hashCode.Add(((int)NullState).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysisContext.cs (1)
86hashCode.Add(((int)PointsToAnalysisKind).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (2)
105hashCode.Add(MapFromValueContentAbstractValue.GetHashCodeOrDefault()); 106hashCode.Add(MapFromPointsToAbstractValue.GetHashCodeOrDefault());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisContext.cs (4)
162hashCode.Add(TypeToTrackMetadataNames.GetHashCode()); 163hashCode.Add(ConstructorMapper.GetHashCode()); 164hashCode.Add(PropertyMappers.GetHashCode()); 165hashCode.Add(HazardousUsageEvaluators.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SanitizerInfo.cs (2)
90hashCode.Add(StringComparer.Ordinal.GetHashCode(this.FullTypeName)); 91hashCode.Add(this.IsConstructorSanitizing.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SinkInfo.cs (3)
78hashCode.Add(StringComparer.Ordinal.GetHashCode(this.FullTypeName)); 80hashCode.Add(this.IsInterface.GetHashCode()); 81hashCode.Add(this.IsAnyStringParameterInConstructorASink.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SourceInfo.cs (3)
196hashCode.Add(this.TaintConstantArray.GetHashCode()); 205hashCode.Add(this.IsInterface.GetHashCode()); 206hashCode.Add(StringComparer.Ordinal.GetHashCode(this.FullTypeName));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\SymbolAccess.cs (3)
53hashCode.Add(Location.GetHashCode()); 54hashCode.Add(Symbol.GetHashCode()); 55hashCode.Add(AccessingMethod.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAbstractValue.cs (2)
40hashCode.Add(HashUtilities.Combine(SourceOrigins)); 41hashCode.Add(((int)Kind).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysisContext.cs (3)
146hashCode.Add(SourceInfos.GetHashCode()); 147hashCode.Add(SanitizerInfos.GetHashCode()); 148hashCode.Add(SinkInfos.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (2)
152hashCode.Add(HashUtilities.Combine(LiteralValues)); 153hashCode.Add(((int)NonLiteralState).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysisContext.cs (1)
92hashCode.Add(HashUtilities.Combine(AdditionalSupportedValueTypes));
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (13)
161hashCode.Add(ValueDomain.GetHashCode()); 162hashCode.Add(OwningSymbol.GetHashCode()); 163hashCode.Add(ControlFlowGraph.GetHashCode()); 164hashCode.Add(AnalyzerOptions.GetHashCode()); 165hashCode.Add(InterproceduralAnalysisConfiguration.GetHashCode()); 166hashCode.Add(PessimisticAnalysis.GetHashCode()); 167hashCode.Add(PredicateAnalysis.GetHashCode()); 168hashCode.Add(ExceptionPathsAnalysis.GetHashCode()); 169hashCode.Add(CopyAnalysisResult.GetHashCodeOrDefault()); 170hashCode.Add(PointsToAnalysisResult.GetHashCodeOrDefault()); 171hashCode.Add(ValueContentAnalysisResult.GetHashCodeOrDefault()); 172hashCode.Add(InterproceduralAnalysisData.GetHashCodeOrDefault()); 173hashCode.Add(InterproceduralAnalysisPredicate.GetHashCodeOrDefault());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractIndex.ConstantValueIndex.cs (2)
22hashCode.Add(Index.GetHashCode()); 23hashCode.Add(nameof(ConstantValueIndex).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractIndex.OperationBasedIndex.cs (2)
22hashCode.Add(Operation.GetHashCode()); 23hashCode.Add(nameof(OperationBasedIndex).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractIndex.SymbolBasedIndex.cs (2)
22hashCode.Add(AnalysisEntity.GetHashCode()); 23hashCode.Add(nameof(AnalysisEntityBasedIndex).GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractLocation.cs (8)
100hashCode.Add(Creation.GetHashCodeOrDefault()); 101hashCode.Add(HashUtilities.Combine(CreationCallStack)); 102hashCode.Add(Symbol.GetHashCodeOrDefault()); 103hashCode.Add(CaptureId.GetHashCodeOrDefault()); 104hashCode.Add(AnalysisEntity.GetHashCodeOrDefault()); 105hashCode.Add(LocationType.GetHashCodeOrDefault()); 106hashCode.Add(_isSpecialSingleton.GetHashCode()); 107hashCode.Add(IsNull.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (9)
248hashCode.Add(InstanceLocation.GetHashCode()); 261hashCode.Add(Symbol.GetHashCodeOrDefault()); 262hashCode.Add(HashUtilities.Combine(Indices)); 263hashCode.Add(InstanceReferenceOperationSyntax.GetHashCodeOrDefault()); 264hashCode.Add(CaptureId.GetHashCodeOrDefault()); 265hashCode.Add(Type.GetHashCode()); 266hashCode.Add(Parent.GetHashCodeOrDefault()); 267hashCode.Add(EntityForInstanceLocation.GetHashCodeOrDefault()); 268hashCode.Add(IsThisOrMeInstance.GetHashCode());
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ArgumentInfo.cs (4)
35hashCode.Add(Operation.GetHashCode()); 36hashCode.Add(AnalysisEntity.GetHashCodeOrDefault()); 37hashCode.Add(InstanceLocation.GetHashCode()); 38hashCode.Add(Value?.GetHashCode() ?? 0);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisData.cs (9)
72hashCode.Add(InitialAnalysisData.GetHashCodeOrDefault()); 75hashCode.Add(HashUtilities.Combine(ArgumentValuesMap)); 76hashCode.Add(HashUtilities.Combine(CapturedVariablesMap)); 77hashCode.Add(HashUtilities.Combine(AddressSharedEntities)); 78hashCode.Add(HashUtilities.Combine(CallStack)); 79hashCode.Add(HashUtilities.Combine(MethodsBeingAnalyzed)); 101hashCode.Add(instanceAndPointsToValue.Value.Instance.GetHashCodeOrDefault()); 102hashCode.Add(instanceAndPointsToValue.Value.PointsToValue.GetHashCode()); 106hashCode.Add(0);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (5)
111hashCode.Add(BasicBlockOrdinal.GetHashCode()); 112hashCode.Add(HandlingCatchRegion.GetHashCodeOrDefault()); 113hashCode.Add(ContainingFinallyRegion.GetHashCodeOrDefault()); 114hashCode.Add(ExceptionType.GetHashCode()); 115hashCode.Add(IsDefaultExceptionForExceptionsPathAnalysis.GetHashCode());