88 references to RoslynDebug
Microsoft.CodeAnalysis.Workspaces (88)
Diagnostics\Extensions.cs (3)
144RoslynDebug.Assert(treeToAnalyze != null || additionalFileToAnalyze != null); 282RoslynDebug.Assert(additionalDocumentId != null); 382RoslynDebug.AssertNotNull(compilationWithAnalyzers.HostCompilationWithAnalyzers);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
233RoslynDebug.Assert(location.IsInSource);
Serialization\SerializableSourceText.cs (1)
161RoslynDebug.AssertNotNull(_text);
Shared\Extensions\SafeHandleExtensions.cs (1)
28RoslynDebug.AssertNotNull(handle);
src\Compilers\Core\Portable\AssemblyUtilitiesCore.cs (1)
29RoslynDebug.Assert(PathUtilities.IsAbsolute(filePath));
src\Compilers\Core\Portable\EncodedStringText.cs (6)
90RoslynDebug.Assert(stream != null); 91RoslynDebug.Assert(stream.CanRead); 134RoslynDebug.Assert(data != null); 135RoslynDebug.Assert(encoding != null); 196RoslynDebug.Assert(stream != null); 197RoslynDebug.Assert(stream.Position == 0);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
49RoslynDebug.Assert(searchPaths != null); 50RoslynDebug.Assert(fileExists != null);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
438RoslynDebug.Assert(!RoslynString.IsNullOrEmpty(root)); 495RoslynDebug.Assert(assemblyDisplayNameOrPath != null);
src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (1)
158RoslynDebug.Assert(comparer != null);
src\Compilers\Core\Portable\InternalUtilities\ConsList`1.cs (1)
111RoslynDebug.Assert(_tail is object);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
836RoslynDebug.Assert(comparer != null);
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (1)
121RoslynDebug.Assert((object?)value != null);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
196RoslynDebug.Assert(_value is V); // Implies value != null
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
730RoslynDebug.Assert((ascii[i] & 0x80) == 0, $"The {nameof(ascii)} input to this method must be valid ASCII.");
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (2)
21RoslynDebug.Assert(symbol != null); 22RoslynDebug.Assert(generatedCodeAttribute != null);
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
276RoslynDebug.Assert(value != null); 374RoslynDebug.Assert(value != null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.Node.cs (6)
72RoslynDebug.AssertNotNull(Left); 92RoslynDebug.AssertNotNull(Right); 111RoslynDebug.AssertNotNull(Right); 112RoslynDebug.AssertNotNull(Right.Left); 135RoslynDebug.AssertNotNull(Left); 136RoslynDebug.AssertNotNull(Left.Right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
40RoslynDebug.AssertNotNull(containingDirectory);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedDiagnostic.cs (1)
27RoslynDebug.AssertNotNull(message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (1)
69RoslynDebug.AssertNotNull(nodeOrToken.Node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (6)
28RoslynDebug.AssertNotNull(list); 29RoslynDebug.AssertNotNull(transform); 47RoslynDebug.AssertNotNull(list); 48RoslynDebug.AssertNotNull(transform); 66RoslynDebug.AssertNotNull(list); 67RoslynDebug.AssertNotNull(transform);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (2)
356RoslynDebug.AssertNotNull(operationBlock); 357RoslynDebug.AssertNotNull(predicate);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
64RoslynDebug.Assert(TypeOrNamespaceUsageInfoOpt.HasValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
68RoslynDebug.Assert(text is object);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
155RoslynDebug.AssertNotNull(baseToken.SyntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (2)
122RoslynDebug.Assert(adjustment != 0, $"Indentation with no adjustment should be represented by {nameof(BaseIndentationData)} directly."); 123RoslynDebug.Assert(baseIndentationData is not AdjustedIndentationData, $"Indentation data should only involve one layer of adjustment (multiples can be combined by adding the {nameof(Adjustment)} fields.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
171RoslynDebug.AssertNotNull(tree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
63RoslynDebug.AssertNotNull(_logMessage);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
142RoslynDebug.Assert(false, $"Unexpected XML syntax kind {attribute.RawKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (20)
144RoslynDebug.AssertNotNull(_lazySemanticRootOfOriginalExpression); 218RoslynDebug.AssertNotNull(_lazyReplacedExpression); 260RoslynDebug.AssertNotNull(originalExpression); 262RoslynDebug.AssertNotNull(newExpression); 284RoslynDebug.AssertNotNull(originalExpression); 286RoslynDebug.AssertNotNull(newExpression); 296RoslynDebug.AssertNotNull(originalExpression); 298RoslynDebug.AssertNotNull(newExpression); 306RoslynDebug.AssertNotNull(originalExpression); 308RoslynDebug.AssertNotNull(newExpression); 310RoslynDebug.AssertNotNull(originalTargetType); 311RoslynDebug.AssertNotNull(newTargetType); 318RoslynDebug.AssertNotNull(originalNode); 320RoslynDebug.AssertNotNull(newNode); 543RoslynDebug.AssertNotNull(currentOriginalNode.Parent); 544RoslynDebug.AssertNotNull(currentReplacedNode.Parent); 627RoslynDebug.AssertNotNull(originalExpression); 629RoslynDebug.AssertNotNull(newExpression); 1125RoslynDebug.AssertNotNull(parameter1); 1182RoslynDebug.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
580RoslynDebug.AssertNotNull(task.Exception);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
242RoslynDebug.Assert(node.SpilloverEdges is null); 248RoslynDebug.AssertNotNull(node.SpilloverEdges);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
226RoslynDebug.AssertNotNull(obj);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (2)
86RoslynDebug.Assert(beginningNode is object); 87RoslynDebug.Assert(endNode is object);
TemporaryStorage\TemporaryStorageService.DirectMemoryAccessStreamReader.cs (2)
22RoslynDebug.Assert(src != null); 23RoslynDebug.Assert(length >= 0);
Workspace\Solution\Document.cs (1)
462RoslynDebug.Assert(oldTree is object);
Workspace\Solution\DocumentState.cs (3)
557RoslynDebug.Assert(TreeSource != null); 614RoslynDebug.Assert(TreeSource != null); 626RoslynDebug.Assert(TreeSource != null);
Workspace\Solution\ProjectDependencyGraph.cs (1)
469RoslynDebug.Assert(referencesMap is object);
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (2)
121RoslynDebug.AssertNotNull(this.NewProjectState.CompilationOptions); 225RoslynDebug.AssertNotNull(this.NewProjectState.ParseOptions);
Workspace\Solution\SolutionState_Checksum.cs (1)
154RoslynDebug.Assert(Equals(projectConeTemp, stateChecksums.ProjectCone));