37 references to Assert
Microsoft.CodeAnalysis.Workspaces (37)
Diagnostics\Extensions.cs (2)
144
RoslynDebug.
Assert
(treeToAnalyze != null || additionalFileToAnalyze != null);
285
RoslynDebug.
Assert
(additionalDocumentId != null);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
233
RoslynDebug.
Assert
(location.IsInSource);
src\Compilers\Core\Portable\AssemblyUtilitiesCore.cs (1)
29
RoslynDebug.
Assert
(PathUtilities.IsAbsolute(filePath));
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)
49
RoslynDebug.
Assert
(searchPaths != null);
50
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\EnumerableExtensions.cs (1)
836
RoslynDebug.
Assert
(comparer != null);
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\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
276
RoslynDebug.
Assert
(value != null);
374
RoslynDebug.
Assert
(value != 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)
1182
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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (2)
86
RoslynDebug.
Assert
(beginningNode is object);
87
RoslynDebug.
Assert
(endNode is object);
TemporaryStorage\TemporaryStorageService.DirectMemoryAccessStreamReader.cs (2)
22
RoslynDebug.
Assert
(src != null);
23
RoslynDebug.
Assert
(length >= 0);
Workspace\Solution\Document.cs (1)
462
RoslynDebug.
Assert
(oldTree is object);
Workspace\Solution\DocumentState.cs (3)
557
RoslynDebug.
Assert
(TreeSource != null);
614
RoslynDebug.
Assert
(TreeSource != null);
626
RoslynDebug.
Assert
(TreeSource != null);
Workspace\Solution\ProjectDependencyGraph.cs (1)
469
RoslynDebug.
Assert
(referencesMap is object);
Workspace\Solution\SolutionState_Checksum.cs (1)
154
RoslynDebug.
Assert
(Equals(projectConeTemp, stateChecksums.ProjectCone));