77 references to Assert
Microsoft.CodeAnalysis.AnalyzerUtilities (77)
src\Compilers\Core\Portable\EncodedStringText.cs (6)
90
RoslynDebug.
Assert
(stream != null);
91
RoslynDebug.
Assert
(stream.CanRead);
134
RoslynDebug.
Assert
(data != null);
135
RoslynDebug.
Assert
(encoding != null);
196
RoslynDebug.
Assert
(stream != null);
197
RoslynDebug.
Assert
(stream.Position == 0);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
50
RoslynDebug.
Assert
(searchPaths != null);
51
RoslynDebug.
Assert
(fileExists != null);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
438
RoslynDebug.
Assert
(!RoslynString.IsNullOrEmpty(root));
495
RoslynDebug.
Assert
(assemblyDisplayNameOrPath != null);
src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (1)
158
RoslynDebug.
Assert
(comparer != null);
src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
111
RoslynDebug.
Assert
(_tail is object);
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (1)
121
RoslynDebug.
Assert
((object?)value != null);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
196
RoslynDebug.
Assert
(_value is V); // Implies value != null
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (2)
21
RoslynDebug.
Assert
(symbol != null);
22
RoslynDebug.
Assert
(generatedCodeAttribute != null);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
96
RoslynDebug.
Assert
(_enablingMethodAttributeFullyQualifiedName != null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
244
RoslynDebug.
Assert
(s_syntaxTreeDiagnosticOptionsProperty != null);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
280
RoslynDebug.
Assert
(operation.SemanticModel is not null);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (2)
502
RoslynDebug.
Assert
(optionDefaultValue != null);
512
RoslynDebug.
Assert
(optionValue != null);
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
73
RoslynDebug.
Assert
(_analyzerConfigOptions != null);
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (7)
316
RoslynDebug.
Assert
(_root is object);
486
RoslynDebug.
Assert
(unbalanced.Right is object);
498
RoslynDebug.
Assert
(unbalanced.Left is object);
510
RoslynDebug.
Assert
(unbalanced.Right is object);
511
RoslynDebug.
Assert
(unbalanced.Right.Left is object);
538
RoslynDebug.
Assert
(unbalanced.Left != null);
539
RoslynDebug.
Assert
(unbalanced.Left.Right != null);
src\RoslynAnalyzers\Utilities\Compiler\SymbolByDisplayStringComparer.cs (2)
52
RoslynDebug.
Assert
(x != null);
53
RoslynDebug.
Assert
(y != null);
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (2)
143
RoslynDebug.
Assert
(namespaceNames != null);
217
RoslynDebug.
Assert
(namespaceNamesBuilder != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (2)
145
RoslynDebug.
Assert
(pointsToAnalysisResult is object);
183
RoslynDebug.
Assert
(_lazyDisposableFieldsMap != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysis.cs (1)
103
RoslynDebug.
Assert
(owningSymbol != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisContext.cs (1)
82
RoslynDebug.
Assert
(copyAnalysisResult == null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
49
RoslynDebug.
Assert
(_hazardousParameterUsageBuilder != null);
189
RoslynDebug.
Assert
(_hazardousParameterUsageBuilder != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (1)
490
RoslynDebug.
Assert
(propertySetInstance != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AddressSharedEntitiesProvider.cs (1)
60
RoslynDebug.
Assert
(assignedValue?.AnalysisEntity != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
605
RoslynDebug.
Assert
(pointsToValues != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (3)
318
RoslynDebug.
Assert
(type != null);
364
RoslynDebug.
Assert
(parentEntity != null);
557
RoslynDebug.
Assert
(instanceLocation != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (2)
130
RoslynDebug.
Assert
(normalPathsExitBlockData != null);
407
RoslynDebug.
Assert
(currentSuccessorInput != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (21)
176
RoslynDebug.
Assert
(_currentAnalysisData != null);
565
RoslynDebug.
Assert
(analysisEntity != null);
744
RoslynDebug.
Assert
(branch.BranchValue != null);
925
RoslynDebug.
Assert
(data != null);
1155
RoslynDebug.
Assert
(DataFlowAnalysisContext.PointsToAnalysisResult != null);
1163
RoslynDebug.
Assert
(DataFlowAnalysisContext.PointsToAnalysisResult != null);
1177
RoslynDebug.
Assert
(DataFlowAnalysisContext.PointsToAnalysisResult != null);
1437
RoslynDebug.
Assert
(flowCaptureReferenceEntity != null);
1438
RoslynDebug.
Assert
(flowCaptureReferenceEntity.CaptureId != null);
1685
RoslynDebug.
Assert
(flowCaptureReferenceEntity != null);
1686
RoslynDebug.
Assert
(flowCaptureReferenceEntity.CaptureId != null);
2169
RoslynDebug.
Assert
(AnalysisDataForUnhandledThrowOperations != null);
2353
RoslynDebug.
Assert
(invokedMethod.ReturnsVoid == !analysisResult.ReturnValueAndPredicateKind.HasValue);
2359
RoslynDebug.
Assert
(analysisResult.ReturnValueAndPredicateKind != null);
2433
RoslynDebug.
Assert
(cfg != null);
2599
RoslynDebug.
Assert
(cfg != null);
2625
RoslynDebug.
Assert
(capturedEntity != null);
3001
RoslynDebug.
Assert
(flowCaptureReferenceEntity != null);
3002
RoslynDebug.
Assert
(flowCaptureReferenceEntity.CaptureId != null);
3511
RoslynDebug.
Assert
(mergedAnalysisData != null);
3554
RoslynDebug.
Assert
(_interproceduralMethodToCfgMap != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (4)
104
RoslynDebug.
Assert
(_lazyPredicateDataMap != null);
129
RoslynDebug.
Assert
(_lazyPredicateDataMap != null);
174
RoslynDebug.
Assert
(_lazyPredicateDataMap != null);
446
RoslynDebug.
Assert
(_lazyPredicateDataMap != null);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\ThrownExceptionInfo.cs (1)
39
RoslynDebug.
Assert
(exceptionNamedType != null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
64
RoslynDebug.
Assert
(TypeOrNamespaceUsageInfoOpt.HasValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
68
RoslynDebug.
Assert
(text is object);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1178
RoslynDebug.
Assert
(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
242
RoslynDebug.
Assert
(node.SpilloverEdges is null);