7 references to Assert
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
37
Assert
(value is object, "Unexpected null reference");
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\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\PredicatedAnalysisData.cs (3)
106
RoslynDebug.
Assert
(predicatedEntity.CaptureId != null, "Currently we only support predicated data tracking for flow captures");
130
RoslynDebug.
Assert
(fromEntity.CaptureId != null, "Currently we only support predicated data tracking for flow captures");
131
RoslynDebug.
Assert
(toEntity.CaptureId != null, "Currently we only support predicated data tracking for flow captures");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (2)
121
RoslynDebug.
Assert
(adjustment != 0, $"Indentation with no adjustment should be represented by {nameof(BaseIndentationData)} directly.");
122
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.");