95 references to Assert
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
423
RoslynDebug.
Assert
(!baseObjectCreationExpressionNode.NewKeyword.IsMissing);
Microsoft.CodeAnalysis.CSharp.Features (19)
ChangeSignature\CSharpChangeSignatureService.cs (1)
922
RoslynDebug.
Assert
(parameterSymbol.IsParams);
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (2)
144
RoslynDebug.
Assert
(nameRef.Parent is object);
161
RoslynDebug.
Assert
(nameRef.Parent is object);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (12)
897
RoslynDebug.
Assert
(oldTokens != null);
898
RoslynDebug.
Assert
(newTokens != null);
2083
RoslynDebug.
Assert
(node.Parent.Parent.IsKind(SyntaxKind.IndexerDeclaration));
2095
RoslynDebug.
Assert
(node.Parent.Parent.IsKind(SyntaxKind.IndexerDeclaration));
2265
RoslynDebug.
Assert
(((LocalDeclarationStatementSyntax)node.Parent!.Parent!).AwaitKeyword.IsKind(SyntaxKind.AwaitKeyword));
2296
RoslynDebug.
Assert
(oldNode != null || newNode != null);
2299
RoslynDebug.
Assert
(newNode != null || match != null);
2593
RoslynDebug.
Assert
(current.Parent is object);
2594
RoslynDebug.
Assert
(current.Parent.Kind() == SyntaxKind.TryStatement);
2682
RoslynDebug.
Assert
(tryStatement.Finally != null);
2738
RoslynDebug.
Assert
(node is object);
2739
RoslynDebug.
Assert
(node.Parent is object);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
100
RoslynDebug.
Assert
(node is object);
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\CSharpUseConditionalExpressionHelpers.cs (1)
21
RoslynDebug.
Assert
(throwStatement.Expression != null);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
126
RoslynDebug.
Assert
(semanticModel != null);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (1)
178
RoslynDebug.
Assert
(parent is object);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\Worker_DocumentationComments.cs (1)
161
RoslynDebug.
Assert
(token.Parent is object);
Rename\CSharpRenameRewriterLanguageService.cs (2)
117
RoslynDebug.
Assert
(_modifiedSubSpans != null);
524
RoslynDebug.
Assert
(_speculativeModel != null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
199
RoslynDebug.
Assert
(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
42
RoslynDebug.
Assert
(node != null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
45
RoslynDebug.
Assert
(previousToken.Parent != null && currentToken.Parent != null);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
219
RoslynDebug.
Assert
(
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
ITextImageHelpers.cs (1)
77
RoslynDebug.
Assert
(range.HasValue);
Microsoft.CodeAnalysis.Features (23)
CodeFixes\Configuration\ConfigurationUpdater.cs (2)
521
RoslynDebug.
Assert
(_diagnostic != null);
535
RoslynDebug.
Assert
(_categoryToBulkConfigure != null);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (2)
85
RoslynDebug.
Assert
(_switchTargetExpression is object);
461
RoslynDebug.
Assert
(_switchTargetType is null);
Debugging\DebugLocationInfo.cs (1)
16
RoslynDebug.
Assert
(name != null);
Diagnostics\Service\DocumentAnalysisExecutor.cs (8)
154
RoslynDebug.
Assert
(_compilationWithAnalyzers != null);
171
RoslynDebug.
Assert
(analyzer.IsCompilerAnalyzer());
172
RoslynDebug.
Assert
(_compilationWithAnalyzers != null);
173
RoslynDebug.
Assert
(_compilationBasedProjectAnalyzersInAnalysisScope.Contains(analyzer) || _compilationBasedHostAnalyzersInAnalysisScope.Contains(analyzer));
174
RoslynDebug.
Assert
(AnalysisScope.TextDocument is Document);
196
RoslynDebug.
Assert
(_compilationWithAnalyzers != null);
197
RoslynDebug.
Assert
(_compilationBasedProjectAnalyzersInAnalysisScope.Contains(analyzer) || _compilationBasedHostAnalyzersInAnalysisScope.Contains(analyzer));
231
RoslynDebug.
Assert
(_compilationWithAnalyzers != null);
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
151
RoslynDebug.
Assert
(location.SourceTree != null);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
1948
RoslynDebug.
Assert
(newNode != null);
1953
RoslynDebug.
Assert
(oldNode != null);
5342
RoslynDebug.
Assert
(attribute.AttributeClass is object);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (1)
144
RoslynDebug.
Assert
(DocumentId != null);
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (1)
74
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\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
96
RoslynDebug.
Assert
(!string.IsNullOrEmpty(targetSymbolString));
97
RoslynDebug.
Assert
(targetValueOperation != null);
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (4)
59
RoslynDebug.
Assert
(_configurationItems.Length == _optionsAndLanguageNamesToRefresh.Length);
93
RoslynDebug.
Assert
(configurationsFromClient.Length == SupportedOptions.Sum(option => option is IPerLanguageValuedOption ? 2 : 1));
199
RoslynDebug.
Assert
(!string.IsNullOrEmpty(optionGroupName));
200
RoslynDebug.
Assert
(!string.IsNullOrEmpty(option.Definition.ConfigName));
Handler\RequestContext.cs (3)
181
RoslynDebug.
Assert
(solution is not null);
186
RoslynDebug.
Assert
(solution is null);
187
RoslynDebug.
Assert
(document is null);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\SolutionAssetCache.cs (1)
26
RoslynDebug.
Assert
(Marshal.SizeOf(typeof(SharedStopwatch)) == 8);
Microsoft.CodeAnalysis.Workspaces (34)
Diagnostics\Extensions.cs (2)
147
RoslynDebug.
Assert
(treeToAnalyze != null || additionalFileToAnalyze != null);
283
RoslynDebug.
Assert
(additionalDocumentId != null);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
234
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)
50
RoslynDebug.
Assert
(searchPaths != null);
51
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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (1)
68
RoslynDebug.
Assert
(text is object);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1179
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)
83
RoslynDebug.
Assert
(beginningNode is object);
84
RoslynDebug.
Assert
(endNode is object);
TemporaryStorage\TemporaryStorageService.DirectMemoryAccessStreamReader.cs (2)
22
RoslynDebug.
Assert
(src != null);
23
RoslynDebug.
Assert
(length >= 0);
Workspace\Solution\Document.cs (2)
499
RoslynDebug.
Assert
(tree is object);
500
RoslynDebug.
Assert
(oldTree is object);
Workspace\Solution\DocumentState.cs (3)
554
RoslynDebug.
Assert
(TreeSource != null);
601
RoslynDebug.
Assert
(TreeSource != null);
613
RoslynDebug.
Assert
(TreeSource != null);
Workspace\Solution\ProjectDependencyGraph.cs (1)
492
RoslynDebug.
Assert
(referencesMap is object);
Workspace\Solution\SolutionState_Checksum.cs (1)
143
RoslynDebug.
Assert
(Equals(projectConeTemp, stateChecksums.ProjectCone));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
1671
RoslynDebug.
Assert
(attributeNode.Parent is AttributeListSyntax);
1679
RoslynDebug.
Assert
(attributeNode.Parent is AttributeListSyntax);