78 references to RoslynDebug
Microsoft.CodeAnalysis.CodeStyle (78)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
75
RoslynDebug
.Assert(options != null);
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (2)
74
RoslynDebug
.Assert(invocation.Instance is not null);
102
RoslynDebug
.Assert(conditional.WhenFalse is not null);
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (2)
72
RoslynDebug
.AssertNotNull(symbol);
80
RoslynDebug
.AssertNotNull(nameSyntax);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
97
RoslynDebug
.Assert(!string.IsNullOrEmpty(targetSymbolString));
98
RoslynDebug
.Assert(targetValueOperation != null);
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
233
RoslynDebug
.AssertNotNull(intervalTree);
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
345
RoslynDebug
.AssertNotNull(match);
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)
864
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\InternalUtilities\StringTable.cs (1)
730
RoslynDebug
.Assert((ascii[i] & 0x80) == 0, $"The {nameof(ascii)} input to this method must be valid ASCII.");
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\Collections\MutableIntervalTree`1.Node.cs (6)
72
RoslynDebug
.AssertNotNull(Left);
92
RoslynDebug
.AssertNotNull(Right);
111
RoslynDebug
.AssertNotNull(Right);
112
RoslynDebug
.AssertNotNull(Right.Left);
135
RoslynDebug
.AssertNotNull(Left);
136
RoslynDebug
.AssertNotNull(Left.Right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
40
RoslynDebug
.AssertNotNull(containingDirectory);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedDiagnostic.cs (1)
27
RoslynDebug
.AssertNotNull(message);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (1)
69
RoslynDebug
.AssertNotNull(nodeOrToken.Node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (6)
28
RoslynDebug
.AssertNotNull(list);
29
RoslynDebug
.AssertNotNull(transform);
47
RoslynDebug
.AssertNotNull(list);
48
RoslynDebug
.AssertNotNull(transform);
66
RoslynDebug
.AssertNotNull(list);
67
RoslynDebug
.AssertNotNull(transform);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (2)
356
RoslynDebug
.AssertNotNull(operationBlock);
357
RoslynDebug
.AssertNotNull(predicate);
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\Formatting\BottomUpBaseIndentationFinder.cs (1)
155
RoslynDebug
.AssertNotNull(baseToken.SyntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (2)
122
RoslynDebug
.Assert(adjustment != 0, $"Indentation with no adjustment should be represented by {nameof(BaseIndentationData)} directly.");
123
RoslynDebug
.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)
171
RoslynDebug
.AssertNotNull(tree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
63
RoslynDebug
.AssertNotNull(_logMessage);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
142
RoslynDebug
.Assert(false, $"Unexpected XML syntax kind {attribute.RawKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (20)
144
RoslynDebug
.AssertNotNull(_lazySemanticRootOfOriginalExpression);
218
RoslynDebug
.AssertNotNull(_lazyReplacedExpression);
260
RoslynDebug
.AssertNotNull(originalExpression);
262
RoslynDebug
.AssertNotNull(newExpression);
284
RoslynDebug
.AssertNotNull(originalExpression);
286
RoslynDebug
.AssertNotNull(newExpression);
296
RoslynDebug
.AssertNotNull(originalExpression);
298
RoslynDebug
.AssertNotNull(newExpression);
306
RoslynDebug
.AssertNotNull(originalExpression);
308
RoslynDebug
.AssertNotNull(newExpression);
310
RoslynDebug
.AssertNotNull(originalTargetType);
311
RoslynDebug
.AssertNotNull(newTargetType);
318
RoslynDebug
.AssertNotNull(originalNode);
320
RoslynDebug
.AssertNotNull(newNode);
543
RoslynDebug
.AssertNotNull(currentOriginalNode.Parent);
544
RoslynDebug
.AssertNotNull(currentReplacedNode.Parent);
627
RoslynDebug
.AssertNotNull(originalExpression);
629
RoslynDebug
.AssertNotNull(newExpression);
1125
RoslynDebug
.AssertNotNull(parameter1);
1182
RoslynDebug
.Assert(object.Equals(parameter2.ExplicitDefaultValue, 0.0));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
580
RoslynDebug
.AssertNotNull(task.Exception);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
242
RoslynDebug
.Assert(node.SpilloverEdges is null);
248
RoslynDebug
.AssertNotNull(node.SpilloverEdges);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
226
RoslynDebug
.AssertNotNull(obj);