13 references to Assert
Microsoft.CodeAnalysis (13)
ConstantValueSpecialized.cs (2)
148
RoslynDebug.
Assert
(value != null, "null strings should be represented as Null constant.");
155
RoslynDebug.
Assert
(value != null, "null strings should be represented as Null constant.");
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1006
RoslynDebug.
Assert
(!actionsForKind.IsEmpty, $"Unexpected empty action collection in {nameof(nodeActionsByKind)}");
1106
RoslynDebug.
Assert
(!actionsForKind.IsEmpty, $"Unexpected empty action collection in {nameof(operationActionsByKind)}");
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (4)
225
RoslynDebug.
Assert
(_lazyPendingMemberSymbolsMap != null, $"{nameof(_lazyPendingMemberSymbolsMap)} was expected to be a non-null value.");
231
RoslynDebug.
Assert
(dependentSymbols == null, $"{nameof(dependentSymbols)} was expected to be null.");
235
RoslynDebug.
Assert
(dependentSymbols != null, $"{nameof(dependentSymbols)} was expected to be a non-null value.");
236
RoslynDebug.
Assert
(existingDependentSymbols.IsSubsetOf(dependentSymbols), $"{nameof(existingDependentSymbols)} was expected to be a subset of {nameof(dependentSymbols)}");
InternalUtilities\Debug.cs (1)
37
Assert
(value is object, "Unexpected null reference");
InternalUtilities\StringTable.cs (1)
730
RoslynDebug.
Assert
((ascii[i] & 0x80) == 0, $"The {nameof(ascii)} input to this method must be valid ASCII.");
Syntax\GreenNode.cs (1)
116
RoslynDebug.
Assert
(node != null, "PERF: caller must ensure that node!=null, we do not want to re-check that here.");
Syntax\SyntaxNode.cs (2)
33
RoslynDebug.
Assert
(position >= 0, "position cannot be negative");
34
RoslynDebug.
Assert
(parent?.Green.IsList != true, "list cannot be a parent");