61 references to Assert
Microsoft.CodeAnalysis.AnalyzerUtilities (61)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
97RoslynDebug.Assert(_enablingMethodAttributeFullyQualifiedName != null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
249RoslynDebug.Assert(s_syntaxTreeDiagnosticOptionsProperty != null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (2)
452RoslynDebug.Assert(operation.SemanticModel is not null); 897RoslynDebug.Assert(argument.Parameter is not null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (3)
384RoslynDebug.Assert(iCollection != null); 385RoslynDebug.Assert(iCollectionOfT != null); 386RoslynDebug.Assert(iReadOnlyCollectionOfT != null);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (2)
500RoslynDebug.Assert(optionDefaultValue != null); 510RoslynDebug.Assert(optionValue != null);
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
72RoslynDebug.Assert(_analyzerConfigOptions != null);
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (7)
315RoslynDebug.Assert(_root is object); 485RoslynDebug.Assert(unbalanced.Right is object); 497RoslynDebug.Assert(unbalanced.Left is object); 509RoslynDebug.Assert(unbalanced.Right is object); 510RoslynDebug.Assert(unbalanced.Right.Left is object); 537RoslynDebug.Assert(unbalanced.Left != null); 538RoslynDebug.Assert(unbalanced.Left.Right != null);
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (2)
51RoslynDebug.Assert(x != null); 52RoslynDebug.Assert(y != null);
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (2)
141RoslynDebug.Assert(namespaceNames != null); 215RoslynDebug.Assert(namespaceNamesBuilder != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (2)
144RoslynDebug.Assert(pointsToAnalysisResult is object); 182RoslynDebug.Assert(_lazyDisposableFieldsMap != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysis.cs (1)
102RoslynDebug.Assert(owningSymbol != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisContext.cs (1)
81RoslynDebug.Assert(copyAnalysisResult == null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
48RoslynDebug.Assert(_hazardousParameterUsageBuilder != null); 188RoslynDebug.Assert(_hazardousParameterUsageBuilder != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (1)
488RoslynDebug.Assert(propertySetInstance != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AddressSharedEntitiesProvider.cs (1)
59RoslynDebug.Assert(assignedValue?.AnalysisEntity != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
605RoslynDebug.Assert(pointsToValues != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (3)
317RoslynDebug.Assert(type != null); 363RoslynDebug.Assert(parentEntity != null); 556RoslynDebug.Assert(instanceLocation != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (2)
128RoslynDebug.Assert(normalPathsExitBlockData != null); 405RoslynDebug.Assert(currentSuccessorInput != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (21)
174RoslynDebug.Assert(_currentAnalysisData != null); 563RoslynDebug.Assert(analysisEntity != null); 742RoslynDebug.Assert(branch.BranchValue != null); 923RoslynDebug.Assert(data != null); 1153RoslynDebug.Assert(DataFlowAnalysisContext.PointsToAnalysisResult != null); 1161RoslynDebug.Assert(DataFlowAnalysisContext.PointsToAnalysisResult != null); 1175RoslynDebug.Assert(DataFlowAnalysisContext.PointsToAnalysisResult != null); 1435RoslynDebug.Assert(flowCaptureReferenceEntity != null); 1436RoslynDebug.Assert(flowCaptureReferenceEntity.CaptureId != null); 1683RoslynDebug.Assert(flowCaptureReferenceEntity != null); 1684RoslynDebug.Assert(flowCaptureReferenceEntity.CaptureId != null); 2167RoslynDebug.Assert(AnalysisDataForUnhandledThrowOperations != null); 2351RoslynDebug.Assert(invokedMethod.ReturnsVoid == !analysisResult.ReturnValueAndPredicateKind.HasValue); 2357RoslynDebug.Assert(analysisResult.ReturnValueAndPredicateKind != null); 2431RoslynDebug.Assert(cfg != null); 2597RoslynDebug.Assert(cfg != null); 2623RoslynDebug.Assert(capturedEntity != null); 2999RoslynDebug.Assert(flowCaptureReferenceEntity != null); 3000RoslynDebug.Assert(flowCaptureReferenceEntity.CaptureId != null); 3509RoslynDebug.Assert(mergedAnalysisData != null); 3552RoslynDebug.Assert(_interproceduralMethodToCfgMap != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (4)
103RoslynDebug.Assert(_lazyPredicateDataMap != null); 128RoslynDebug.Assert(_lazyPredicateDataMap != null); 173RoslynDebug.Assert(_lazyPredicateDataMap != null); 445RoslynDebug.Assert(_lazyPredicateDataMap != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
38RoslynDebug.Assert(exceptionNamedType != null);