872 references to ThrowIfNull
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (2)
45Contract.ThrowIfNull(undoHistoryRegistry); 46Contract.ThrowIfNull(editorOperationsFactoryService);
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
296Contract.ThrowIfNull(eventHookupExpression);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
404Contract.ThrowIfNull(n);
QuickInfo\SemanticQuickInfoSourceTests.cs (3)
54Contract.ThrowIfNull(service); 135Contract.ThrowIfNull(service); 304Contract.ThrowIfNull(service);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (2)
126Contract.ThrowIfNull(pasteText); 128Contract.ThrowIfNull(json);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
EmbeddedLanguages\Json\CSharpJsonParserTests_NstTests.cs (1)
19Contract.ThrowIfNull(tree);
Microsoft.CodeAnalysis.CSharp.Features (115)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
180Contract.ThrowIfNull(additionalTypeArguments);
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
347Contract.ThrowIfNull(syntaxRoot);
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
242Contract.ThrowIfNull(attributeType);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
72Contract.ThrowIfNull(semanticModel);
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
109Contract.ThrowIfNull(namedType);
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
128Contract.ThrowIfNull(directive);
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
48Contract.ThrowIfNull(context);
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
47Contract.ThrowIfNull(newRoot); 51Contract.ThrowIfNull(newRoot);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (3)
34Contract.ThrowIfNull(typeDeclaration); // checked by analyzer 226Contract.ThrowIfNull(methodDeclaration.Body); // checked by analyzer 299Contract.ThrowIfNull(field);
EditAndContinue\BreakpointSpans.cs (2)
353Contract.ThrowIfNull(property.AccessorList); 368Contract.ThrowIfNull(indexer.AccessorList);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (8)
1015Contract.ThrowIfNull(declaration.Parent); 1017Contract.ThrowIfNull(recordType); 1154Contract.ThrowIfNull(oldNode); 1171Contract.ThrowIfNull(oldNode); 1172Contract.ThrowIfNull(newNode); 1353Contract.ThrowIfNull(oldNode); 1354Contract.ThrowIfNull(newNode); 1407Contract.ThrowIfNull(node.Parent);
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (5)
120Contract.ThrowIfNull(newPropertyBody.ExplicitBody); 132Contract.ThrowIfNull(ExplicitBody); 133Contract.ThrowIfNull(newPropertyBody.ExplicitBody); 134Contract.ThrowIfNull(MatchRoot); 135Contract.ThrowIfNull(newPropertyBody.MatchRoot);
EditAndContinue\SyntaxUtilities.cs (1)
217Contract.ThrowIfNull(declaration.Parent);
ExtractMethod\CSharpMethodExtractor.cs (1)
126Contract.ThrowIfNull(memberNode);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (5)
37Contract.ThrowIfNull(outmostCallSiteContainer); 38Contract.ThrowIfNull(variableToRemoveMap); 39Contract.ThrowIfNull(firstStatementOrFieldToReplace); 40Contract.ThrowIfNull(lastStatementOrFieldToReplace); 275Contract.ThrowIfNull(statement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
331Contract.ThrowIfNull(declStatement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
68Contract.ThrowIfNull(node);
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (4)
30Contract.ThrowIfNull(semanticModel); 120Contract.ThrowIfNull(statement); 123Contract.ThrowIfNull(type); 157Contract.ThrowIfNull(statement);
ExtractMethod\CSharpSelectionResult.cs (2)
35Contract.ThrowIfNull(document); 75Contract.ThrowIfNull(statement);
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (3)
35Contract.ThrowIfNull(SemanticDocument); 42Contract.ThrowIfNull(scope); 150Contract.ThrowIfNull(container);
ExtractMethod\CSharpSelectionValidator.cs (2)
366Contract.ThrowIfNull(firstStatement); 367Contract.ThrowIfNull(lastStatement);
ExtractMethod\Extensions.cs (3)
21Contract.ThrowIfNull(node); 56Contract.ThrowIfNull(node); 97Contract.ThrowIfNull(node);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
60Contract.ThrowIfNull(member);
LineSeparators\CSharpLineSeparatorService.cs (2)
245Contract.ThrowIfNull(spans); 260Contract.ThrowIfNull(spans);
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
246Contract.ThrowIfNull(rewritten);
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
84Contract.ThrowIfNull(property);
Snippets\CSharpConstructorSnippetProvider.cs (2)
65Contract.ThrowIfNull(containingType); 68Contract.ThrowIfNull(containingTypeSymbol);
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
58Contract.ThrowIfNull(embeddedStatement);
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (3)
45Contract.ThrowIfNull(dataFlow); 64Contract.ThrowIfNull(declaration); 70Contract.ThrowIfNull(beforeSwitch);
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (2)
266Contract.ThrowIfNull(nextStatement); 271Contract.ThrowIfNull(dataFlow);
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (2)
77Contract.ThrowIfNull(context.FilterTree); 220Contract.ThrowIfNull(semanticModel);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
117Contract.ThrowIfNull(currentOptionsDirective); 149Contract.ThrowIfNull(currentOptionsDirective);
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
87Contract.ThrowIfNull(body);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
198Contract.ThrowIfNull(semanticModel);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (5)
79Contract.ThrowIfNull(semanticModel); 141Contract.ThrowIfNull(invocation.Instance); 165Contract.ThrowIfNull(invocation.Instance); 227Contract.ThrowIfNull(invocation.Instance); 276Contract.ThrowIfNull(invocation.Instance);
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
90Contract.ThrowIfNull(semanticModel);
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
33Contract.ThrowIfNull(operation.SemanticModel);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
132Contract.ThrowIfNull(isPatternExpression);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (7)
38Contract.ThrowIfNull(semanticModel); 39Contract.ThrowIfNull(localSymbol); 40Contract.ThrowIfNull(comparison); 41Contract.ThrowIfNull(operand); 323Contract.ThrowIfNull(statement); 349Contract.ThrowIfNull(scope); 417Contract.ThrowIfNull(dataFlow);
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
547Contract.ThrowIfNull(semanticModel);
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
86Contract.ThrowIfNull(semanticModel);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (1)
110Contract.ThrowIfNull(parameterList);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
107Contract.ThrowIfNull(nextStatement);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (6)
95Contract.ThrowIfNull(_assignmentTarget); 210Contract.ThrowIfNull(result); 237Contract.ThrowIfNull(armExpression); 279Contract.ThrowIfNull(node.Expression); 285Contract.ThrowIfNull(node.Expression); 294Contract.ThrowIfNull(result);
src\Analyzers\CSharp\CodeFixes\ConvertTypeOfToNameOf\CSharpConvertTypeOfToNameOfCodeFixProvider.cs (1)
37Contract.ThrowIfNull(typeSymbol);
src\Analyzers\CSharp\CodeFixes\ForEachCast\CSharpForEachCastCodeFixProvider.cs (1)
26Contract.ThrowIfNull(result);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
210Contract.ThrowIfNull(symbolType);
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
73Contract.ThrowIfNull(currentAccessorList);
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
41Contract.ThrowIfNull(compilationOptions);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
543Contract.ThrowIfNull(expression.Parent); 810Contract.ThrowIfNull(expression.Parent);
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
98Contract.ThrowIfNull(expression.Parent);
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
120Contract.ThrowIfNull(arrayType); // Validated in RegisterCodeFixesAsync
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (2)
137Contract.ThrowIfNull(instance); 250Contract.ThrowIfNull(result.Op2);
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
45Contract.ThrowIfNull(name);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
62Contract.ThrowIfNull(parent); 135Contract.ThrowIfNull(binaryExpression);
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
453Contract.ThrowIfNull(constructorDeclaration.Body); 522Contract.ThrowIfNull(parameterName);
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
50Contract.ThrowIfNull(readOnlySpanType); 58Contract.ThrowIfNull(arrayOp.Initializer);
Structure\CSharpStructureHelpers.cs (2)
110Contract.ThrowIfNull(text); 111Contract.ThrowIfNull(prefix);
Structure\Providers\DisabledTextTriviaStructureProvider.cs (1)
20Contract.ThrowIfNull(trivia.SyntaxTree);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (6)
EditAndContinue\Helpers\EditingTestBase.cs (4)
184Contract.ThrowIfNull(match); 224Contract.ThrowIfNull(body); 256Contract.ThrowIfNull(oldBody); 260Contract.ThrowIfNull(newBody);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveTests.cs (1)
454Contract.ThrowIfNull(compilationOptions);
src\Analyzers\CSharp\Tests\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveTests.cs (1)
252Contract.ThrowIfNull(compilationOptions);
Microsoft.CodeAnalysis.CSharp.Workspaces (42)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
874Contract.ThrowIfNull(type); 1247Contract.ThrowIfNull(result); 2249Contract.ThrowIfNull(vd.Parent);
OrganizeImports\CSharpOrganizeImportsService.cs (1)
26Contract.ThrowIfNull(newRoot);
OrganizeImports\CSharpOrganizeImportsService.Rewriter.cs (1)
40Contract.ThrowIfNull(node);
Rename\CSharpRenameRewriterLanguageService.cs (1)
866Contract.ThrowIfNull(tree);
Simplification\CSharpSimplificationService.cs (2)
79Contract.ThrowIfNull(token.Parent); 172Contract.ThrowIfNull(syntaxNodeToSpeculate);
Simplification\Reducers\AbstractCSharpReducer.AbstractReductionRewriter.cs (6)
41Contract.ThrowIfNull(options); 64Contract.ThrowIfNull(ParseOptions); 65Contract.ThrowIfNull(Options); 66Contract.ThrowIfNull(SemanticModel); 107Contract.ThrowIfNull(lastPattern.Parent); 118Contract.ThrowIfNull(topMostCref.Parent);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
170Contract.ThrowIfNull(@using.NamespaceOrType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
472Contract.ThrowIfNull(syntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (2)
121Contract.ThrowIfNull(trivia); 137Contract.ThrowIfNull(trivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.FormattedComplexTrivia.cs (3)
31Contract.ThrowIfNull(context); 32Contract.ThrowIfNull(formattingRules); 33Contract.ThrowIfNull(originalString);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.ModifiedComplexTrivia.cs (1)
22Contract.ThrowIfNull(original);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (2)
33Contract.ThrowIfNull(node); 34Contract.ThrowIfNull(map);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
488Contract.ThrowIfNull(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
35Contract.ThrowIfNull(root);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpInferredMemberNameSimplifier.cs (2)
62Contract.ThrowIfNull(toRemove.NameColon); 84Contract.ThrowIfNull(toRemove.NameEquals);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesDirectiveComparer.cs (2)
134Contract.ThrowIfNull(using1!.Name); 135Contract.ThrowIfNull(using2!.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
93Contract.ThrowIfNull(using1.Name); 94Contract.ThrowIfNull(using2.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
117Contract.ThrowIfNull(syntax); 272Contract.ThrowIfNull(symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
234Contract.ThrowIfNull(invokeMethod);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
72Contract.ThrowIfNull(typeNode);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (2)
53Contract.ThrowIfNull(formattingRules); 54Contract.ThrowIfNull(root);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (2)
73Contract.ThrowIfNull(indenter.Tree); 124Contract.ThrowIfNull(interpolatedExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (1)
134Contract.ThrowIfNull(rewritten);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
299Contract.ThrowIfNull(expression);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
49Contract.ThrowIfNull(tokens);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (13)
Completion\AbstractArgumentProviderTests`1.cs (1)
67Contract.ThrowIfNull(parameter);
NavigateTo\NavigateToTestAggregator.Callback.cs (1)
26Contract.ThrowIfNull(options);
NavigateTo\NavigateToTestAggregator.cs (1)
26Contract.ThrowIfNull(itemProvider);
Squiggles\TestDiagnosticTagProducer.cs (1)
28Contract.ThrowIfNull(document.FilePath);
Workspaces\EditorTestHostDocument.cs (2)
108Contract.ThrowIfNull(field); 171Contract.ThrowIfNull(document);
Workspaces\EditorTestWorkspace.cs (7)
142Contract.ThrowIfNull(testDocument); 149Contract.ThrowIfNull(testDocument); 156Contract.ThrowIfNull(testDocument); 164Contract.ThrowIfNull(testDocument); 174Contract.ThrowIfNull(testDocument); 184Contract.ThrowIfNull(testDocument); 194Contract.ThrowIfNull(testDocument);
Microsoft.CodeAnalysis.EditorFeatures.Text (9)
Extensions.SnapshotSourceText.cs (4)
40Contract.ThrowIfNull(editorSnapshot); 51Contract.ThrowIfNull(textImage); 228Contract.ThrowIfNull(editorSnapshot); 231Contract.ThrowIfNull(textImage);
Extensions.TextBufferContainer.cs (1)
30Contract.ThrowIfNull(editorBuffer);
Shared\Extensions\ITextSnapshotExtensions.cs (3)
107Contract.ThrowIfNull(snapshot); 114Contract.ThrowIfNull(snapshot); 132Contract.ThrowIfNull(snapshot);
Shared\Extensions\ITextSnapshotLineExtensions.cs (1)
35Contract.ThrowIfNull(line);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (4)
88Contract.ThrowIfNull(symbol); 107Contract.ThrowIfNull(symbol); 179Contract.ThrowIfNull(assemblySymbol); 320Contract.ThrowIfNull(symbol);
Tagging\AsynchronousTaggerTests.cs (5)
82Contract.ThrowIfNull(tagger); 110Contract.ThrowIfNull(tagger); 136Contract.ThrowIfNull(tagger); 188Contract.ThrowIfNull(tagger); 235Contract.ThrowIfNull(tagger);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (1)
164Contract.ThrowIfNull(GenerateImplementationService);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Internal\Editor\FSharpSmartIndentProvider.cs (1)
97Contract.ThrowIfNull(_provider._legacyService);
SignatureHelp\FSharpSignatureHelpItems.cs (1)
67Contract.ThrowIfNull(items);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Cohost\Handlers\CodeActions.cs (2)
34Contract.ThrowIfNull(codeAction.Data); 58Contract.ThrowIfNull(data.CodeActionPath);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
External\ResolveDataConversions.cs (1)
23Contract.ThrowIfNull(requestData);
Microsoft.CodeAnalysis.Features (235)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (1)
66Contract.ThrowIfNull(constructorDocument);
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
186Contract.ThrowIfNull(changedSolution);
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
186Contract.ThrowIfNull(category);
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
111Contract.ThrowIfNull(defaultValue);
CodeFixes\Service\CodeFixService.cs (3)
362Contract.ThrowIfNull(solution); 1020Contract.ThrowIfNull(x); 1021Contract.ThrowIfNull(y);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
164Contract.ThrowIfNull(targetSymbol);
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (2)
79Contract.ThrowIfNull(result); 110Contract.ThrowIfNull(localFunctionResult);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
312Contract.ThrowIfNull(symbol);
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameFileEditor.cs (1)
27Contract.ThrowIfNull(newSolution);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
908Contract.ThrowIfNull(x); 909Contract.ThrowIfNull(y);
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
217Contract.ThrowIfNull(expr);
Completion\Providers\AbstractCrefCompletionProvider.cs (1)
37Contract.ThrowIfNull(semanticModel);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
130Contract.ThrowIfNull(containingType);
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
43Contract.ThrowIfNull(enclosing);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
231Contract.ThrowIfNull(context);
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
326Contract.ThrowIfNull(syntaxContext); 423Contract.ThrowIfNull(syntaxContext);
Completion\Providers\CompletionUtilities.cs (1)
47Contract.ThrowIfNull(solution);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
91Contract.ThrowIfNull(document.DocumentState.ParseOptions);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
324Contract.ThrowIfNull(literalExpression);
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.cs (1)
35Contract.ThrowIfNull(analyzerService);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
117Contract.ThrowIfNull(symbol);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (49)
526Contract.ThrowIfNull(filePath); 918Contract.ThrowIfNull(oldProject.ParseOptions); 919Contract.ThrowIfNull(newProject.ParseOptions); 920Contract.ThrowIfNull(oldProject.CompilationOptions); 921Contract.ThrowIfNull(newProject.CompilationOptions); 991Contract.ThrowIfNull(oldStatementSyntax); 1028Contract.ThrowIfNull(newStatement); 1192Contract.ThrowIfNull(oldStatementSyntax); 1369Contract.ThrowIfNull(newStatementSyntax); 1370Contract.ThrowIfNull(newBody); 1550Contract.ThrowIfNull(newStatementSyntax); 2126Contract.ThrowIfNull(oldNode); 2148Contract.ThrowIfNull(oldType); 2149Contract.ThrowIfNull(newType); 2280Contract.ThrowIfNull(oldToken.Parent); 2281Contract.ThrowIfNull(newToken.Parent); 2771Contract.ThrowIfNull(symbol); 2869Contract.ThrowIfNull(oldSymbol); 2870Contract.ThrowIfNull(oldDeclaration); 3017Contract.ThrowIfNull(newSymbol); 3018Contract.ThrowIfNull(newDeclaration); 3149Contract.ThrowIfNull(newContainingType); 3150Contract.ThrowIfNull(oldContainingType); 3166Contract.ThrowIfNull(oldSymbol); 3167Contract.ThrowIfNull(newSymbol); 3173Contract.ThrowIfNull(oldSymbol); 3174Contract.ThrowIfNull(newSymbol); 3252Contract.ThrowIfNull(oldDeclaration); 3253Contract.ThrowIfNull(oldSymbol); 3296Contract.ThrowIfNull(oldSymbol); 3458Contract.ThrowIfNull(oldSymbol); 3459Contract.ThrowIfNull(newSymbol); 3462Contract.ThrowIfNull(oldDeclaration); 3463Contract.ThrowIfNull(newDeclaration); 3499Contract.ThrowIfNull(newBody); 3507Contract.ThrowIfNull(newBody); 3527Contract.ThrowIfNull(oldContainingType); 3528Contract.ThrowIfNull(newContainingType); 3596Contract.ThrowIfNull(symbol); 4451Contract.ThrowIfNull(newType.DelegateInvokeMethod); 4693Contract.ThrowIfNull(oldSynthesizedDeconstructor); 4694Contract.ThrowIfNull(newSynthesizedDeconstructor); 5051Contract.ThrowIfNull(oldSymbol); 5060Contract.ThrowIfNull(newSymbol); 5744Contract.ThrowIfNull(oldDeclaration); 6232Contract.ThrowIfNull(oldBackingField); 6307Contract.ThrowIfNull(symbol); 6918Contract.ThrowIfNull(current); 7026Contract.ThrowIfNull(oldProperty);
EditAndContinue\CommittedSolution.cs (4)
246Contract.ThrowIfNull(document.FilePath); 342Contract.ThrowIfNull(document.FilePath); 414Contract.ThrowIfNull(sourceFilePath); 515Contract.ThrowIfNull(document.FilePath);
EditAndContinue\DebuggingSession.cs (2)
766Contract.ThrowIfNull(document.FilePath); 896Contract.ThrowIfNull(mappedDocument.FilePath);
EditAndContinue\DocumentSemanticModel.cs (1)
42Contract.ThrowIfNull(Model);
EditAndContinue\EditAndContinueService.cs (4)
208Contract.ThrowIfNull(debuggingSession); 239Contract.ThrowIfNull(debuggingSession); 247Contract.ThrowIfNull(debuggingSession); 255Contract.ThrowIfNull(debuggingSession);
EditAndContinue\EditSession.cs (8)
776Contract.ThrowIfNull(oldResolution.Symbol); 787Contract.ThrowIfNull(newResolution.Symbol); 793Contract.ThrowIfNull(newResolution.Symbol); 813Contract.ThrowIfNull(newSymbol); 917Contract.ThrowIfNull(path); 1115Contract.ThrowIfNull(oldCompilation); 1126Contract.ThrowIfNull(newCompilation); 1213Contract.ThrowIfNull(emitResult.Baseline);
EditAndContinue\TraceLog.cs (1)
55Contract.ThrowIfNull(_logDirectory);
EditAndContinue\Utilities\Extensions.cs (1)
81Contract.ThrowIfNull(project.CompilationOptions);
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (3)
222Contract.ThrowIfNull(startString); 223Contract.ThrowIfNull(lengthString); 224Contract.ThrowIfNull(newText);
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
1388Contract.ThrowIfNull(last);
ExternalAccess\UnitTesting\API\NewUnitTestingIncrementalAnalyzerProvider.cs (1)
44Contract.ThrowIfNull(workspaceKind);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (3)
60Contract.ThrowIfNull(workspaceKind); 111Contract.ThrowIfNull(workspaceKind); 130Contract.ThrowIfNull(workspaceKind);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (10)
169Contract.ThrowIfNull(args.ProjectId); 175Contract.ThrowIfNull(args.ProjectId); 180Contract.ThrowIfNull(args.ProjectId); 185Contract.ThrowIfNull(args.DocumentId); 191Contract.ThrowIfNull(args.DocumentId); 196Contract.ThrowIfNull(args.DocumentId); 209Contract.ThrowIfNull(args.ProjectId); 561Contract.ThrowIfNull(_projectOrDocumentIds); 609Contract.ThrowIfNull(_projectOrDocumentIds); 652Contract.ThrowIfNull(_projectOrDocumentIds);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (2)
87Contract.ThrowIfNull(lowPriorityDocumentId); 93Contract.ThrowIfNull(item.DocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
76Contract.ThrowIfNull(item.DocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
172Contract.ThrowIfNull(workItem.DocumentId);
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
76Contract.ThrowIfNull(containingType);
ExtractMethod\AbstractSyntaxTriviaService.cs (4)
28Contract.ThrowIfNull(root); 54Contract.ThrowIfNull(root); 55Contract.ThrowIfNull(oldTokens); 56Contract.ThrowIfNull(computeReplacementToken);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
31Contract.ThrowIfNull(root); 32Contract.ThrowIfNull(annotations); 33Contract.ThrowIfNull(triviaList);
ExtractMethod\Extensions.cs (1)
42Contract.ThrowIfNull(typeSymbol);
ExtractMethod\MethodExtractor.Analyzer.cs (3)
41Contract.ThrowIfNull(selectionResult); 409Contract.ThrowIfNull(dataFlowAnalysisData); 605Contract.ThrowIfNull(type);
ExtractMethod\MethodExtractor.cs (1)
225Contract.ThrowIfNull(type);
ExtractMethod\MethodExtractor.VariableInfo.cs (1)
85Contract.ThrowIfNull(variable);
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
67Contract.ThrowIfNull(other);
ExtractMethod\SelectionResult.cs (2)
243Contract.ThrowIfNull(root); 256Contract.ThrowIfNull(root);
ExtractMethod\UniqueNameGenerator.cs (3)
15Contract.ThrowIfNull(semanticModel); 21Contract.ThrowIfNull(contextNode); 22Contract.ThrowIfNull(baseName);
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
47Contract.ThrowIfNull(project);
FindUsages\DefinitionItemFactory.cs (4)
126Contract.ThrowIfNull(originatingProjectId); 157Contract.ThrowIfNull(info); 207Contract.ThrowIfNull(containingAssembly); 210Contract.ThrowIfNull(info);
FindUsages\IRemoteFindUsagesService.cs (1)
177Contract.ThrowIfNull(document);
FullyQualify\AbstractFullyQualifyService.cs (2)
168Contract.ThrowIfNull(rightSide); 197Contract.ThrowIfNull(symbolResult.OriginalSymbol);
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.ConstructorDelegatingCodeAction.cs (1)
47Contract.ThrowIfNull(_state.DelegatedConstructor);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
248Contract.ThrowIfNull(globalOptions);
GenerateType\AbstractGenerateTypeService.State.cs (1)
116Contract.ThrowIfNull(generateTypeServiceStateOptions.NameOrMemberAccessExpression);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
729Contract.ThrowIfNull(symbol.ContainingAssembly);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
198Contract.ThrowIfNull(parameterSyntax);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
138Contract.ThrowIfNull(parameterList); 451Contract.ThrowIfNull(newMethodDeclaration);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
111Contract.ThrowIfNull(type);
MetadataAsSource\AbstractMetadataAsSourceService.cs (1)
30Contract.ThrowIfNull(rootNamespace);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (3)
324Contract.ThrowIfNull(documentId); 405Contract.ThrowIfNull(filePath); 416Contract.ThrowIfNull(assemblyIdentity);
MetadataAsSource\MetadataAsSourceFileService.cs (3)
101Contract.ThrowIfNull(_workspace); 250Contract.ThrowIfNull(document.FilePath); 260Contract.ThrowIfNull(_workspace);
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (1)
51Contract.ThrowIfNull(containingType);
PdbSourceDocument\PdbFileLocatorService.cs (1)
44Contract.ThrowIfNull(pdbReaderProvider);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (2)
98Contract.ThrowIfNull(telemetryMessage); 294Contract.ThrowIfNull(navigateDocument);
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
49Contract.ThrowIfNull(containingType);
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
92Contract.ThrowIfNull(part.NavigationTarget);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
233Contract.ThrowIfNull(initializer); 300Contract.ThrowIfNull(containerWithConditionalReplaced);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
52Contract.ThrowIfNull(propertySymbol); 258Contract.ThrowIfNull(parent);
SemanticSearch\IRemoteSemanticSearchService.cs (2)
135Contract.ThrowIfNull(client); 145Contract.ThrowIfNull(client);
SignatureHelp\SignatureHelpItems.cs (1)
69Contract.ThrowIfNull(items);
Snippets\RoslynLSPSnippetConverter.cs (2)
36Contract.ThrowIfNull(textChangeText); 126Contract.ThrowIfNull(textChangeText);
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
78Contract.ThrowIfNull(snippetExpressionNode);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
213Contract.ThrowIfNull(snippetExpressionNode);
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
69Contract.ThrowIfNull(oldRoot); 70Contract.ThrowIfNull(newRoot);
src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (2)
62Contract.ThrowIfNull(change.NewText); 89Contract.ThrowIfNull(change.NewText);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
125Contract.ThrowIfNull(symbolStartAnalyzer._symbolStartAnalysisContext.FilterTree);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (3)
91Contract.ThrowIfNull(expression.SemanticModel); 151Contract.ThrowIfNull(operation.SemanticModel); 170Contract.ThrowIfNull(operation.SemanticModel);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
200Contract.ThrowIfNull(context.FilterTree);
src\Analyzers\Core\Analyzers\UseConditionalExpression\UseConditionalExpressionHelpers.cs (1)
56Contract.ThrowIfNull(semanticModel);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
80Contract.ThrowIfNull(semanticModel);
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
52Contract.ThrowIfNull(symbol);
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
15Contract.ThrowIfNull(symbol);
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
77Contract.ThrowIfNull(obsoleteAttribute);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
81Contract.ThrowIfNull(newRoot);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
67Contract.ThrowIfNull(variableDeclarator.Symbol.Type); 68Contract.ThrowIfNull(enumerableType);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
89Contract.ThrowIfNull(state.TypeToGenerateIn);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (10)
105Contract.ThrowIfNull(TypeToGenerateIn); 125Contract.ThrowIfNull(TypeToGenerateIn); 142Contract.ThrowIfNull(TypeToGenerateIn); 185Contract.ThrowIfNull(TypeToGenerateIn); 186Contract.ThrowIfNull(TypeToGenerateIn.BaseType); 207Contract.ThrowIfNull(TypeToGenerateIn); 241Contract.ThrowIfNull(TypeToGenerateIn); 425Contract.ThrowIfNull(TypeToGenerateIn); 458Contract.ThrowIfNull(TypeToGenerateIn); 480Contract.ThrowIfNull(TypeToGenerateIn);
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
303Contract.ThrowIfNull(typeToGenerateIn);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
49Contract.ThrowIfNull(state.ClassType);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeAction.cs (2)
32Contract.ThrowIfNull(_state.ClassType); 53Contract.ThrowIfNull(classType);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
131Contract.ThrowIfNull(attributeNode);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
80Contract.ThrowIfNull(symbol);
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
109Contract.ThrowIfNull(node); 116Contract.ThrowIfNull(methodSymbol);
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (2)
59Contract.ThrowIfNull(methodSymbol); 252Contract.ThrowIfNull(currentInvocationExpression);
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
50Contract.ThrowIfNull(serializedNamingStyle);
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
57Contract.ThrowIfNull(symbol); 70Contract.ThrowIfNull(fieldDeclarator);
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (5)
496Contract.ThrowIfNull(variableDeclarator); 602Contract.ThrowIfNull(type); 603Contract.ThrowIfNull(newLocalNameOpt); 858Contract.ThrowIfNull(declStatement); 904Contract.ThrowIfNull(rootWithRemovedDeclaration);
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
89Contract.ThrowIfNull(expression); // checked in analyzer.
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
44Contract.ThrowIfNull(preferredName);
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
181Contract.ThrowIfNull(newWhenTrueStatement);
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
81Contract.ThrowIfNull(statement);
SymbolMapping\SymbolMappingResult.cs (2)
14Contract.ThrowIfNull(project); 15Contract.ThrowIfNull(symbol);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
262Contract.ThrowIfNull(newFieldTreeRoot);
ValueTracking\SerializableValueTrackedItem.cs (1)
48Contract.ThrowIfNull(symbolResolution.Symbol);
ValueTracking\ValueTrackedItem.cs (1)
46Contract.ThrowIfNull(location.SourceTree);
Wrapping\AbstractCodeActionComputer.cs (2)
233Contract.ThrowIfNull(nodeToFormat); 265Contract.ThrowIfNull(rewrittenRoot);
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueTestVerifier.cs (2)
187Contract.ThrowIfNull(oldModel); 188Contract.ThrowIfNull(newModel);
Microsoft.CodeAnalysis.Features.UnitTests (41)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
153Contract.ThrowIfNull(sessionProxy);
FindUsages\DefinitionItemFactoryTests.cs (40)
135Contract.ThrowIfNull(compilation); 171Contract.ThrowIfNull(compilation); 213Contract.ThrowIfNull(compilation); 249Contract.ThrowIfNull(compilation); 291Contract.ThrowIfNull(compilation); 333Contract.ThrowIfNull(compilation); 386Contract.ThrowIfNull(compilation); 440Contract.ThrowIfNull(compilation); 480Contract.ThrowIfNull(compilation); 520Contract.ThrowIfNull(compilation); 562Contract.ThrowIfNull(compilation); 620Contract.ThrowIfNull(compilation); 666Contract.ThrowIfNull(compilation); 703Contract.ThrowIfNull(compilation); 765Contract.ThrowIfNull(compilation); 821Contract.ThrowIfNull(compilation); 875Contract.ThrowIfNull(compilation); 932Contract.ThrowIfNull(tree); 935Contract.ThrowIfNull(compilation); 980Contract.ThrowIfNull(compilation); 1035Contract.ThrowIfNull(compilation); 1087Contract.ThrowIfNull(compilation); 1149Contract.ThrowIfNull(compilation); 1152Contract.ThrowIfNull(g); 1206Contract.ThrowIfNull(compilation); 1209Contract.ThrowIfNull(g); 1263Contract.ThrowIfNull(compilation); 1337Contract.ThrowIfNull(tree); 1340Contract.ThrowIfNull(compilation); 1397Contract.ThrowIfNull(tree); 1400Contract.ThrowIfNull(compilation); 1448Contract.ThrowIfNull(tree); 1451Contract.ThrowIfNull(compilation); 1455Contract.ThrowIfNull(f); 1512Contract.ThrowIfNull(tree); 1515Contract.ThrowIfNull(compilation); 1521Contract.ThrowIfNull(x); 1583Contract.ThrowIfNull(tree); 1586Contract.ThrowIfNull(compilation); 1592Contract.ThrowIfNull(r);
Microsoft.CodeAnalysis.LanguageServer (11)
BrokeredServices\ServiceBrokerFactory.cs (1)
56Contract.ThrowIfNull(_container);
FileBasedPrograms\FileBasedProgramsProjectSystem.cs (2)
81Contract.ThrowIfNull(metadataWorkspace); 86Contract.ThrowIfNull(primordialDoc.FilePath);
HostWorkspace\LoadedProject.cs (1)
48Contract.ThrowIfNull(projectSystemProject.FilePath);
HostWorkspace\WorkspaceProject.cs (1)
184Contract.ThrowIfNull(fileDirectory);
LanguageServer\Handler\Restore\RestorableProjectsHandler.cs (1)
30Contract.ThrowIfNull(context.Solution);
LanguageServer\Handler\Restore\RestoreHandler.cs (1)
33Contract.ThrowIfNull(context.Solution);
Logging\ServerLoggerFactory.cs (2)
32Contract.ThrowIfNull(_loggerFactory); 38Contract.ThrowIfNull(_loggerFactory);
Services\ExtensionAssemblyManager.cs (1)
142Contract.ThrowIfNull(devKitDependencyDirectory);
Testing\RunTestsHandler.cs (1)
38Contract.ThrowIfNull(context.Document);
Microsoft.CodeAnalysis.LanguageServer.Protocol (72)
Extensions\Extensions.cs (7)
28Contract.ThrowIfNull(document.FilePath); 40Contract.ThrowIfNull(document.FilePath); 41Contract.ThrowIfNull(document.Name); 45Contract.ThrowIfNull(directoryName); 52Contract.ThrowIfNull(document.Name); 53Contract.ThrowIfNull(document.Project.FilePath); 56Contract.ThrowIfNull(projectDirectoryName);
Extensions\ProtocolConversions.cs (4)
152Contract.ThrowIfNull(context.TriggerCharacter); 164Contract.ThrowIfNull(context.TriggerCharacter); 345Contract.ThrowIfNull(textChange.NewText); 410Contract.ThrowIfNull(textDiffService);
ExternalAccess\Razor\SemanticTokensRangesHandler.cs (1)
31Contract.ThrowIfNull(request.TextDocument);
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
185Contract.ThrowIfNull(solution);
Features\DecompiledSource\AssemblyResolver.cs (1)
175Contract.ThrowIfNull(fileName);
Handler\AbstractRefreshQueue.cs (1)
102Contract.ThrowIfNull(_refreshQueue);
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
62Contract.ThrowIfNull(tree);
Handler\CodeActions\CodeActionFixAllResolveHandler.cs (3)
41Contract.ThrowIfNull(request.Data); 53Contract.ThrowIfNull(data.CodeActionPath); 57Contract.ThrowIfNull(fixAllCodeAction);
Handler\CodeActions\CodeActionHelpers.cs (2)
467Contract.ThrowIfNull(matchingAction); 476Contract.ThrowIfNull(matchingAction);
Handler\CodeActions\CodeActionResolveHandler.cs (2)
57Contract.ThrowIfNull(codeAction.Data); 85Contract.ThrowIfNull(data.CodeActionPath);
Handler\CodeActions\CodeActionResolveHelper.cs (6)
27Contract.ThrowIfNull(solution); 222Contract.ThrowIfNull(oldTextDoc); 238Contract.ThrowIfNull(newTextDoc); 278Contract.ThrowIfNull(oldTextDoc); 279Contract.ThrowIfNull(newTextDoc); 292Contract.ThrowIfNull(textDiffService);
Handler\CodeLens\CodeLensResolveHandler.cs (1)
88Contract.ThrowIfNull(codeLens.Data);
Handler\Completion\CompletionHandler.cs (2)
48Contract.ThrowIfNull(context.Document); 49Contract.ThrowIfNull(context.Solution);
Handler\Completion\CompletionResolveHandler.cs (1)
127Contract.ThrowIfNull(request.Data);
Handler\Completion\CompletionResultFactory.cs (3)
278Contract.ThrowIfNull(commitCharacters); 516Contract.ThrowIfNull(lspItem.Label); 685Contract.ThrowIfNull(newText);
Handler\Completion\Extensions.cs (1)
53Contract.ThrowIfNull(request.Data);
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (1)
128Contract.ThrowIfNull(options);
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
114Contract.ThrowIfNull(context.Solution);
Handler\Diagnostics\BuildOnlyDiagnosticIdsHandler.cs (1)
42Contract.ThrowIfNull(context.Solution);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
52Contract.ThrowIfNull(context.Solution);
Handler\EditAndContinue\RegisterSolutionSnapshotHandler.cs (1)
35Contract.ThrowIfNull(context.Solution);
Handler\EditAndContinue\WorkspaceEditAndContinueDiagnosticSourceProvider.cs (1)
28Contract.ThrowIfNull(context.Solution);
Handler\Extensions\ActivateExtensionHandler.cs (1)
25Contract.ThrowIfNull(context.Solution);
Handler\Extensions\DeactivateExtensionHandler.cs (1)
25Contract.ThrowIfNull(context.Solution);
Handler\Extensions\DispatchDocumentExtensionMessageHandler.cs (1)
29Contract.ThrowIfNull(context.Document);
Handler\Extensions\DispatchWorkspaceExtensionMessageHandler.cs (1)
25Contract.ThrowIfNull(context.Solution);
Handler\InlayHint\InlayHintResolveHandler.cs (1)
83Contract.ThrowIfNull(inlayHint.Data);
Handler\MapCode\MapCodeHandler.cs (1)
37Contract.ThrowIfNull(context.Solution);
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (2)
31Contract.ThrowIfNull(context.Workspace); 32Contract.ThrowIfNull(context.Solution);
Handler\References\FindAllReferencesHandler.cs (2)
55Contract.ThrowIfNull(document); 56Contract.ThrowIfNull(workspace);
Handler\RelatedDocuments\RelatedDocumentsHandler.cs (2)
46Contract.ThrowIfNull(solution); 47Contract.ThrowIfNull(document);
Handler\SemanticTokens\SemanticTokensFullHandler.cs (2)
27Contract.ThrowIfNull(request.TextDocument); 36Contract.ThrowIfNull(request.TextDocument);
Handler\SemanticTokens\SemanticTokensRangeHandler.cs (1)
26Contract.ThrowIfNull(request.TextDocument);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (2)
138Contract.ThrowIfNull(context.Solution); 205Contract.ThrowIfNull(context.Solution);
Handler\SpellCheck\WorkspaceSpellCheckHandler.cs (1)
33Contract.ThrowIfNull(context.Solution);
Handler\Symbols\WorkspaceSymbolsHandler.cs (2)
52Contract.ThrowIfNull(context.Solution); 79Contract.ThrowIfNull(context.Solution);
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (1)
30Contract.ThrowIfNull(context.Solution);
LspServices\AbstractExportLspServiceAttribute.cs (2)
62Contract.ThrowIfNull(serviceType.FullName); 65Contract.ThrowIfNull(serviceType.Assembly.FullName);
LspServices\LspServiceMetadataView.cs (2)
54Contract.ThrowIfNull(requestContextTypeRef); 81Contract.ThrowIfNull(assemblyName);
LspServices\LspServices.cs (2)
123Contract.ThrowIfNull(typeName); 199Contract.ThrowIfNull(typeName);
RoslynLanguageServer.cs (1)
127Contract.ThrowIfNull(typeName);
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
61Contract.ThrowIfNull(metadataWorkspace);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
CodeActions\RunCodeActionsTests.cs (1)
76Contract.ThrowIfNull(result);
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (1)
107Contract.ThrowIfNull(lspDocument);
FormatNewFile\FormatNewFileTests.cs (1)
67Contract.ThrowIfNull(project.FilePath);
InlineCompletions\InlineCompletionsTests.cs (1)
275Contract.ThrowIfNull(response);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (3)
160Contract.ThrowIfNull(miscWorkspace); 161Contract.ThrowIfNull(miscDocument); 344Contract.ThrowIfNull(result);
Ordering\RequestOrderingTests.cs (2)
271Contract.ThrowIfNull(response); 275Contract.ThrowIfNull(solution);
SemanticTokens\AbstractSemanticTokensTests.cs (3)
33Contract.ThrowIfNull(result); 41Contract.ThrowIfNull(result); 49Contract.ThrowIfNull(result);
Microsoft.CodeAnalysis.Remote.ServiceHub (9)
Host\RemoteSolutionCache.cs (1)
96Contract.ThrowIfNull(_cacheNodes.First);
Host\RemoteWorkspace.InFlightSolution.cs (1)
109Contract.ThrowIfNull(updatePrimaryBranchAsync);
Host\RemoteWorkspace.SolutionCreator.cs (1)
528Contract.ThrowIfNull(document);
Host\SolutionAssetCache.cs (1)
69Contract.ThrowIfNull(value);
Services\BrokeredServiceBase.cs (1)
60Contract.ThrowIfNull(traceSource);
Services\BrokeredServiceBase.FactoryBase.cs (1)
131Contract.ThrowIfNull(descriptor.ClientInterface);
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
283Contract.ThrowIfNull(analyzerId);
Services\NavigationBar\RemoteNavigationBarItemService.cs (1)
28Contract.ThrowIfNull(document);
Services\SemanticClassification\RemoteSemanticClassificationService.cs (1)
34Contract.ThrowIfNull(document);
Microsoft.CodeAnalysis.Remote.Workspaces (14)
BrokeredServiceConnection.cs (1)
92Contract.ThrowIfNull(service);
EditAndContinue\ManagedHotReloadLanguageService.cs (3)
145Contract.ThrowIfNull(committedDesignTimeSolution); 198Contract.ThrowIfNull(Interlocked.Exchange(ref _pendingUpdatedDesignTimeSolution, null)); 257Contract.ThrowIfNull(_committedDesignTimeSolution);
RemoteCallback.cs (1)
52Contract.ThrowIfNull(rental.Proxy);
RemoteHostAssetReader.cs (1)
91Contract.ThrowIfNull(asset);
RemoteHostAssetWriter.cs (1)
120Contract.ThrowIfNull(asset);
ServiceBrokerExtensions.cs (4)
19Contract.ThrowIfNull(service); 29Contract.ThrowIfNull(service); 39Contract.ThrowIfNull(service); 49Contract.ThrowIfNull(service);
SolutionAssetStorage.Scope.cs (2)
106Contract.ThrowIfNull(foundAsset); 112Contract.ThrowIfNull(asset);
VisualStudioMefHostServices.cs (1)
28Contract.ThrowIfNull(exportProvider);
Microsoft.CodeAnalysis.Workspaces (208)
CodeCleanup\AbstractCodeCleanerService.cs (1)
668Contract.ThrowIfNull(annotation.Data);
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
311Contract.ThrowIfNull(project);
CodeRefactorings\FixAllOccurences\FixAllState.cs (2)
96Contract.ThrowIfNull(Document); 107Contract.ThrowIfNull(Document);
Diagnostics\AnalysisResultPair.cs (5)
43Contract.ThrowIfNull(arg.hostDiagnostics); 68Contract.ThrowIfNull(arg.hostDiagnostics); 93Contract.ThrowIfNull(arg.hostDiagnostics); 118Contract.ThrowIfNull(arg.hostDiagnostics); 143Contract.ThrowIfNull(arg.hostTelemetryInfo);
Diagnostics\DiagnosticAnalysisResult.cs (1)
135Contract.ThrowIfNull(map);
Diagnostics\DiagnosticDataLocation.cs (1)
62Contract.ThrowIfNull(unmappedFileSpan.Path);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
182Contract.ThrowIfNull(language);
Editing\SyntaxEditor.cs (1)
285Contract.ThrowIfNull(node);
Editing\SyntaxGenerator.cs (3)
1022Contract.ThrowIfNull(attribute.AttributeClass); 1538Contract.ThrowIfNull(currentFirst); 1920Contract.ThrowIfNull(name);
ErrorReporting\InfoBarUI.cs (1)
19Contract.ThrowIfNull(title);
FindSymbols\Declarations\DeclarationFinder.cs (1)
85Contract.ThrowIfNull(info);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
33Contract.ThrowIfNull(query.Name);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (2)
122Contract.ThrowIfNull(index); 125Contract.ThrowIfNull(_stringValue);
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
311Contract.ThrowIfNull(symbolOrigination.assembly); 312Contract.ThrowIfNull(project);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
348Contract.ThrowIfNull(symbolTreeInfo);
FindSymbols\FindReferences\Finders\AbstractTypeParameterSymbolReferenceFinder.cs (1)
61Contract.ThrowIfNull(token.Parent);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
47Contract.ThrowIfNull(underlyingNamedType);
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
61Contract.ThrowIfNull(symbol.DeclaringMethod);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
129Contract.ThrowIfNull(searchSymbol);
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
33Contract.ThrowIfNull(index);
FindSymbols\SymbolFinder_Helpers.cs (1)
124Contract.ThrowIfNull(equivalentTypesWithDifferingAssemblies);
FindSymbols\SymbolTree\MetadataInfo.cs (1)
30Contract.ThrowIfNull(info);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
154Contract.ThrowIfNull(queryName);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
57Contract.ThrowIfNull(result);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (2)
180Contract.ThrowIfNull(info); 202Contract.ThrowIfNull(info);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
90Contract.ThrowIfNull(node);
Formatting\AbstractFormattingService.cs (1)
19Contract.ThrowIfNull(syntaxFormattingOptions);
Formatting\Formatter.cs (1)
137Contract.ThrowIfNull(formattingOptions);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
54Contract.ThrowIfNull(documentForLocation);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (1)
36Contract.ThrowIfNull(filePath);
Remote\RemoteServiceCallbackDispatchers.cs (1)
24Contract.ThrowIfNull(serviceInterface);
Rename\ConflictEngine\ConflictResolver.cs (6)
184Contract.ThrowIfNull(implicitUsageConflict.SourceTree); 208Contract.ThrowIfNull(implicitConflict.SourceTree); 235Contract.ThrowIfNull(projectOpt); 287Contract.ThrowIfNull(projectOpt); 302Contract.ThrowIfNull(languageConflict.SourceTree); 329Contract.ThrowIfNull(oldLocation.SourceTree);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
108Contract.ThrowIfNull(directory);
Rename\IRemoteRenamerService.cs (2)
117Contract.ThrowIfNull(serializableLocations); 184Contract.ThrowIfNull(Resolution);
Rename\LightweightRenameLocations.cs (2)
75Contract.ThrowIfNull(solution); 76Contract.ThrowIfNull(symbol);
Rename\Renamer.cs (4)
149Contract.ThrowIfNull(solution); 150Contract.ThrowIfNull(symbol); 191Contract.ThrowIfNull(solution); 192Contract.ThrowIfNull(symbol);
Rename\RenameUtilities.cs (3)
307Contract.ThrowIfNull(definitionSymbol); 318Contract.ThrowIfNull(symbol); 319Contract.ThrowIfNull(solution);
Rename\SymbolicRenameLocations.cs (1)
60Contract.ThrowIfNull(symbol);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
274Contract.ThrowIfNull(aliasLocation.SourceTree); 297Contract.ThrowIfNull(aliasLocation.SourceTree);
Rename\SymbolicRenameLocations.SearchResult.cs (1)
23Contract.ThrowIfNull(locations);
Shared\Extensions\DocumentExtensions.cs (1)
17Contract.ThrowIfNull(result);
Shared\Extensions\ISymbolExtensions.cs (1)
363Contract.ThrowIfNull(candidate);
Shared\Extensions\TelemetryExtensions.cs (1)
18Contract.ThrowIfNull(type.FullName);
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
20Contract.ThrowIfNull(name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (2)
165Contract.ThrowIfNull(context.FilterTree); 177Contract.ThrowIfNull(context.FilterTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\LocationExtensions.cs (1)
14Contract.ThrowIfNull(location.SourceTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
101Contract.ThrowIfNull(semanticModel.ParentModel);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
18Contract.ThrowIfNull(text);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (2)
48Contract.ThrowIfNull(stack); 49Contract.ThrowIfNull(range);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (6)
16Contract.ThrowIfNull(line); 31Contract.ThrowIfNull(line); 46Contract.ThrowIfNull(lineText); 57Contract.ThrowIfNull(lineText); 208Contract.ThrowIfNull(line); 217Contract.ThrowIfNull(line);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
107Contract.ThrowIfNull(node); 298Contract.ThrowIfNull(nodes);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (2)
72Contract.ThrowIfNull(syntaxTree); 134Contract.ThrowIfNull(syntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
34Contract.ThrowIfNull(formattingRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
57Contract.ThrowIfNull(engine); 58Contract.ThrowIfNull(tokenStream); 124Contract.ThrowIfNull(operations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
34Contract.ThrowIfNull(tokenStream); 35Contract.ThrowIfNull(formattingRules); 36Contract.ThrowIfNull(rootNode);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
31Contract.ThrowIfNull(node); 32Contract.ThrowIfNull(formattingResults);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
262Contract.ThrowIfNull(previousChangesMap);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (1)
22Contract.ThrowIfNull(treeInfo);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
27Contract.ThrowIfNull(treeInfo);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (1)
25Contract.ThrowIfNull(original);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
33Contract.ThrowIfNull(formattingRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (2)
27Contract.ThrowIfNull(tokenStream); 81Contract.ThrowIfNull(commonRoot);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenPairWithOperations.cs (1)
27Contract.ThrowIfNull(tokenStream);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (3)
235Contract.ThrowIfNull(data); 241Contract.ThrowIfNull(data); 247Contract.ThrowIfNull(data);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
40Contract.ThrowIfNull(root);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.NodeAndText.cs (1)
19Contract.ThrowIfNull(text);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\AlignTokensOperation.cs (1)
18Contract.ThrowIfNull(tokens);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
71Contract.ThrowIfNull(context); 72Contract.ThrowIfNull(formattingRules); 73Contract.ThrowIfNull(originalString);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
21Contract.ThrowIfNull(logger);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (4)
89Contract.ThrowIfNull(option.PublicOption); 95Contract.ThrowIfNull(option.PublicOption); 101Contract.ThrowIfNull(option.PublicOption); 107Contract.ThrowIfNull(option.PublicOption);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
49Contract.ThrowIfNull(documentationComment);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
29Contract.ThrowIfNull(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
46Contract.ThrowIfNull(returnTypeSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
126Contract.ThrowIfNull(result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (1)
103Contract.ThrowIfNull(ra.Data);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (3)
116Contract.ThrowIfNull(asynchronousComputeFunction); 260Contract.ThrowIfNull(_synchronousComputeFunction); 378Contract.ThrowIfNull(_asynchronousComputeFunction);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (5)
47Contract.ThrowIfNull(root); 83Contract.ThrowIfNull(root); 147Contract.ThrowIfNull(tree); 310Contract.ThrowIfNull(parentNode); 359Contract.ThrowIfNull(root);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
294Contract.ThrowIfNull(weakInstance);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
336Contract.ThrowIfNull(classOrStructType); 337Contract.ThrowIfNull(interfacesOrAbstractClasses); 338Contract.ThrowIfNull(isImplemented);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (7)
90Contract.ThrowIfNull(symbol); 91Contract.ThrowIfNull(within); 180Contract.ThrowIfNull(type); 218Contract.ThrowIfNull(assembly); 255Contract.ThrowIfNull(containingType); 431Contract.ThrowIfNull(withinType); 432Contract.ThrowIfNull(originalContainingType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (5)
77Contract.ThrowIfNull(enumType.EnumUnderlyingType); 118Contract.ThrowIfNull(finalNode); 148Contract.ThrowIfNull(field.ConstantValue); 171Contract.ThrowIfNull(enumType.EnumUnderlyingType); 187Contract.ThrowIfNull(enumType.EnumUnderlyingType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
181Contract.ThrowIfNull(attribute);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (1)
42Contract.ThrowIfNull(document.Project.ParseOptions);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
442Contract.ThrowIfNull(type);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
65Contract.ThrowIfNull(expression);
Storage\SQLite\v2\SQLitePersistentStorage.cs (3)
101Contract.ThrowIfNull(solutionKey.FilePath); 149Contract.ThrowIfNull(directoryName); 159Contract.ThrowIfNull(directory);
Utilities\Documentation\XmlDocumentationProvider.cs (2)
105Contract.ThrowIfNull(xmlDocCommentBytes); 153Contract.ThrowIfNull(filePath);
Workspace\DocumentActiveContextChangedEventArgs.cs (4)
19Contract.ThrowIfNull(solution); 20Contract.ThrowIfNull(sourceTextContainer); 21Contract.ThrowIfNull(oldActiveContextDocumentId); 22Contract.ThrowIfNull(newActiveContextDocumentId);
Workspace\DocumentEventArgs.cs (1)
15Contract.ThrowIfNull(document);
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (1)
53Contract.ThrowIfNull(fileName);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
212Contract.ThrowIfNull(documentInfo.FilePath);
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
974Contract.ThrowIfNull(providerForFileInfo); 1413Contract.ThrowIfNull(originalMetadataReferences); 1414Contract.ThrowIfNull(originalAnalyzerReferences);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
203Contract.ThrowIfNull(sender);
Workspace\Solution\Document.cs (2)
356Contract.ThrowIfNull(result); 596Contract.ThrowIfNull(_cachedOptions);
Workspace\Solution\DocumentState.cs (4)
72Contract.ThrowIfNull(options); 172Contract.ThrowIfNull(tree); 244Contract.ThrowIfNull(newTree); 515Contract.ThrowIfNull(ParseOptions);
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
78Contract.ThrowIfNull(siblingTreeSource);
Workspace\Solution\Project.cs (2)
38Contract.ThrowIfNull(solution); 39Contract.ThrowIfNull(projectState);
Workspace\Solution\ProjectDependencyGraph.cs (2)
100Contract.ThrowIfNull(transitiveReferencesMap); 101Contract.ThrowIfNull(reverseTransitiveReferencesMap);
Workspace\Solution\ProjectReference.cs (1)
21Contract.ThrowIfNull(projectId);
Workspace\Solution\ProjectState.cs (3)
82Contract.ThrowIfNull(projectInfo); 83Contract.ThrowIfNull(languageServices); 372Contract.ThrowIfNull(projectDirectory);
Workspace\Solution\Solution.cs (3)
168Contract.ThrowIfNull(state); 262Contract.ThrowIfNull(documentId); 277Contract.ThrowIfNull(documentId);
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
182Contract.ThrowIfNull(finalCompilationWithGeneratedDocuments); 272Contract.ThrowIfNull(projectId);
Workspace\Solution\SolutionCompilationState.cs (2)
1159Contract.ThrowIfNull(projectState); 1411Contract.ThrowIfNull(syntaxNode);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
64Contract.ThrowIfNull(project); 206Contract.ThrowIfNull(compilation);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (4)
247Contract.ThrowIfNull(generatorDriver); 270Contract.ThrowIfNull(generatorDriver); 414Contract.ThrowIfNull(stateMember); 416Contract.ThrowIfNull(additionalTextsMember);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
83Contract.ThrowIfNull(syntaxTree);
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (1)
244Contract.ThrowIfNull(this.NewProjectState.CompilationOptions);
Workspace\Solution\SolutionCompilationState_Checksum.cs (2)
73Contract.ThrowIfNull(projectId); 83Contract.ThrowIfNull(projectCone);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
75Contract.ThrowIfNull(map);
Workspace\Solution\SolutionState.cs (1)
350Contract.ThrowIfNull(result);
Workspace\Solution\SolutionState_Checksum.cs (1)
67Contract.ThrowIfNull(projectId);
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
68Contract.ThrowIfNull(syntaxNode);
Workspace\Solution\TextDocument.cs (2)
26Contract.ThrowIfNull(project); 27Contract.ThrowIfNull(state);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (2)
173Contract.ThrowIfNull(_storageHandle); 183Contract.ThrowIfNull(_storageHandle);
Workspace\Workspace.cs (4)
507Contract.ThrowIfNull(transformation); 1357Contract.ThrowIfNull(newDocument); 1730Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1731Contract.ThrowIfNull(projectChanges.NewProject.CompilationOptions);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (1)
494Contract.ThrowIfNull(dir);
Rpc\RpcClient.cs (1)
71Contract.ThrowIfNull(response);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
72Contract.ThrowIfNull(request);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (20)
Fakes\SimpleAssetSource.cs (1)
37Contract.ThrowIfNull(asset);
Remote\InProcRemostHostClient.cs (2)
49Contract.ThrowIfNull(client); 133Contract.ThrowIfNull(options.ClientRpcTarget);
Workspaces\TestHostDocument.cs (3)
48Contract.ThrowIfNull(_id); 57Contract.ThrowIfNull(_project); 102Contract.ThrowIfNull(filePath);
Workspaces\TestWorkspace`1.cs (14)
375Contract.ThrowIfNull(hostProject); 389Contract.ThrowIfNull(hostProject); 392Contract.ThrowIfNull(hostDocument); 401Contract.ThrowIfNull(hostProject); 411Contract.ThrowIfNull(hostProject); 425Contract.ThrowIfNull(hostProject); 435Contract.ThrowIfNull(hostProject); 451Contract.ThrowIfNull(hostProject); 470Contract.ThrowIfNull(testDocument); 480Contract.ThrowIfNull(testDocument); 490Contract.ThrowIfNull(testDocument); 500Contract.ThrowIfNull(testDocument); 510Contract.ThrowIfNull(testDocument); 515Contract.ThrowIfNull(document);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
705Contract.ThrowIfNull(document);
Microsoft.VisualStudio.LanguageServices.CSharp (20)
CodeModel\CSharpCodeModelService.cs (12)
965Contract.ThrowIfNull(symbol); 1731Contract.ThrowIfNull(parsedArgumentList); 1758Contract.ThrowIfNull(node.Parent); 2719Contract.ThrowIfNull(typeSymbol); 2752Contract.ThrowIfNull(fieldDeclaration); 2762Contract.ThrowIfNull(newFieldDeclaration); 2791Contract.ThrowIfNull(attributeList); 2809Contract.ThrowIfNull(newAttributeList); 2818Contract.ThrowIfNull(argumentList); 2820Contract.ThrowIfNull(newArgumentList); 2828Contract.ThrowIfNull(parameterList); 2830Contract.ThrowIfNull(newParameterList);
SemanticSearch\SemanticSearchToolWindowImpl.cs (8)
304Contract.ThrowIfNull(textViewHost); 316Contract.ThrowIfNull(_executeButton); 324Contract.ThrowIfNull(_executeButton); 325Contract.ThrowIfNull(_cancelButton); 341Contract.ThrowIfNull(_textBuffer); 375Contract.ThrowIfNull(_textBuffer); 409Contract.ThrowIfNull(source); 424Contract.ThrowIfNull(_textView);
Microsoft.VisualStudio.LanguageServices.Xaml (7)
Implementation\LanguageServer\Handler\Commands\CreateEventCommandHandler.cs (1)
46Contract.ThrowIfNull(request.Arguments);
Implementation\LanguageServer\Handler\Completion\CompletionResolveHandler.cs (1)
46Contract.ThrowIfNull(context.Solution);
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (2)
113Contract.ThrowIfNull(sourceDefinition.FilePath); 155Contract.ThrowIfNull(symbolDefinition.Symbol);
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
64Contract.ThrowIfNull(context.Solution);
Implementation\LanguageServer\Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
41Contract.ThrowIfNull(context.Solution);
Implementation\LanguageServer\Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
55Contract.ThrowIfNull(result.TextChange.NewText);
Roslyn.VisualStudio.Next.UnitTests (6)
Remote\SerializationValidator.cs (4)
86Contract.ThrowIfNull(data); 93Contract.ThrowIfNull(data.Value); 103Contract.ThrowIfNull(reader); 107Contract.ThrowIfNull<object?>(result);
Remote\SnapshotSerializationTests.cs (1)
76Contract.ThrowIfNull(data);
Services\AssetProviderTests.cs (1)
212Contract.ThrowIfNull(deserialized);