204 references to ThrowIfNull
Microsoft.CodeAnalysis.Workspaces (204)
CodeCleanup\AbstractCodeCleanerService.cs (1)
668Contract.ThrowIfNull(annotation.Data);
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
314Contract.ThrowIfNull(project);
CodeRefactorings\FixAllOccurences\FixAllState.cs (2)
96Contract.ThrowIfNull(Document); 107Contract.ThrowIfNull(Document);
Diagnostics\AnalysisResultPair.cs (5)
51Contract.ThrowIfNull(arg.hostDiagnostics); 76Contract.ThrowIfNull(arg.hostDiagnostics); 101Contract.ThrowIfNull(arg.hostDiagnostics); 126Contract.ThrowIfNull(arg.hostDiagnostics); 151Contract.ThrowIfNull(arg.hostTelemetryInfo);
Diagnostics\DiagnosticAnalysisResult.cs (4)
219Contract.ThrowIfNull(_syntaxLocals); 220Contract.ThrowIfNull(_semanticLocals); 221Contract.ThrowIfNull(_nonLocals); 249Contract.ThrowIfNull(map);
Diagnostics\DiagnosticDataLocation.cs (1)
62Contract.ThrowIfNull(unmappedFileSpan.Path);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
182Contract.ThrowIfNull(language);
Editing\SyntaxGenerator.cs (3)
1022Contract.ThrowIfNull(attribute.AttributeClass); 1534Contract.ThrowIfNull(currentFirst); 1913Contract.ThrowIfNull(name);
ErrorReporting\InfoBarUI.cs (1)
20Contract.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)
310Contract.ThrowIfNull(symbolOrigination.assembly); 311Contract.ThrowIfNull(project);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
347Contract.ThrowIfNull(symbolTreeInfo);
FindSymbols\FindReferences\Finders\AbstractTypeParameterSymbolReferenceFinder.cs (1)
61Contract.ThrowIfNull(token.Parent?.Parent);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
47Contract.ThrowIfNull(underlyingNamedType);
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
60Contract.ThrowIfNull(symbol.DeclaringMethod);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
130Contract.ThrowIfNull(searchSymbol);
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
33Contract.ThrowIfNull(index);
FindSymbols\SymbolFinder_Helpers.cs (1)
130Contract.ThrowIfNull(equivalentTypesWithDifferingAssemblies);
FindSymbols\SymbolTree\MetadataInfo.cs (1)
31Contract.ThrowIfNull(info);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
153Contract.ThrowIfNull(queryName);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
57Contract.ThrowIfNull(result);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (2)
179Contract.ThrowIfNull(info); 201Contract.ThrowIfNull(info);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
88Contract.ThrowIfNull(node);
Formatting\AbstractFormattingService.cs (1)
20Contract.ThrowIfNull(syntaxFormattingOptions);
Formatting\Formatter.cs (1)
137Contract.ThrowIfNull(formattingOptions);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
53Contract.ThrowIfNull(documentForLocation);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (1)
35Contract.ThrowIfNull(filePath);
Remote\RemoteServiceCallbackDispatchers.cs (1)
24Contract.ThrowIfNull(serviceInterface);
Rename\ConflictEngine\ConflictResolver.cs (3)
191Contract.ThrowIfNull(implicitUsageConflict.SourceTree); 215Contract.ThrowIfNull(implicitConflict.SourceTree); 335Contract.ThrowIfNull(oldLocation.SourceTree);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
105Contract.ThrowIfNull(directory);
Rename\IRemoteRenamerService.cs (2)
123Contract.ThrowIfNull(serializableLocations); 190Contract.ThrowIfNull(Resolution);
Rename\LightweightRenameLocations.cs (2)
76Contract.ThrowIfNull(solution); 77Contract.ThrowIfNull(symbol);
Rename\Renamer.cs (4)
152Contract.ThrowIfNull(solution); 153Contract.ThrowIfNull(symbol); 197Contract.ThrowIfNull(solution); 198Contract.ThrowIfNull(symbol);
Rename\RenameUtilities.cs (3)
313Contract.ThrowIfNull(definitionSymbol); 324Contract.ThrowIfNull(symbol); 325Contract.ThrowIfNull(solution);
Rename\SymbolicRenameLocations.cs (1)
61Contract.ThrowIfNull(symbol);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
273Contract.ThrowIfNull(aliasLocation.SourceTree); 292Contract.ThrowIfNull(aliasLocation.SourceTree);
Rename\SymbolicRenameLocations.SearchResult.cs (1)
24Contract.ThrowIfNull(locations);
Shared\Extensions\DocumentExtensions.cs (1)
18Contract.ThrowIfNull(result);
Shared\Extensions\ISymbolExtensions.cs (1)
364Contract.ThrowIfNull(candidate);
Shared\Extensions\TelemetryExtensions.cs (1)
18Contract.ThrowIfNull(type.FullName);
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
21Contract.ThrowIfNull(name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (2)
166Contract.ThrowIfNull(context.FilterTree); 178Contract.ThrowIfNull(context.FilterTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
331Contract.ThrowIfNull(classOrStructType); 332Contract.ThrowIfNull(interfacesOrAbstractClasses); 333Contract.ThrowIfNull(isImplemented);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (7)
88Contract.ThrowIfNull(symbol); 89Contract.ThrowIfNull(within); 177Contract.ThrowIfNull(type); 215Contract.ThrowIfNull(assembly); 252Contract.ThrowIfNull(containingType); 429Contract.ThrowIfNull(withinType); 430Contract.ThrowIfNull(originalContainingType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\LocationExtensions.cs (1)
15Contract.ThrowIfNull(location.SourceTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
109Contract.ThrowIfNull(semanticModel.ParentModel);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SourceTextExtensions_SharedWithCodeStyle.cs (1)
19Contract.ThrowIfNull(text);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StackExtensions.cs (2)
49Contract.ThrowIfNull(stack); 50Contract.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)
69Contract.ThrowIfNull(syntaxTree); 131Contract.ThrowIfNull(syntaxTree);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
34Contract.ThrowIfNull(formattingRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
58Contract.ThrowIfNull(engine); 59Contract.ThrowIfNull(tokenStream); 125Contract.ThrowIfNull(operations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
35Contract.ThrowIfNull(tokenStream); 36Contract.ThrowIfNull(formattingRules); 37Contract.ThrowIfNull(rootNode);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
32Contract.ThrowIfNull(node); 33Contract.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)
23Contract.ThrowIfNull(treeInfo);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
31Contract.ThrowIfNull(treeInfo);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (1)
27Contract.ThrowIfNull(original);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (1)
34Contract.ThrowIfNull(formattingRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (2)
30Contract.ThrowIfNull(tokenStream); 84Contract.ThrowIfNull(commonRoot);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenPairWithOperations.cs (1)
28Contract.ThrowIfNull(tokenStream);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (3)
237Contract.ThrowIfNull(data); 243Contract.ThrowIfNull(data); 249Contract.ThrowIfNull(data);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
41Contract.ThrowIfNull(root);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.NodeAndText.cs (1)
20Contract.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)
72Contract.ThrowIfNull(context); 73Contract.ThrowIfNull(formattingRules); 74Contract.ThrowIfNull(originalString);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
21Contract.ThrowIfNull(s_currentLogger);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (4)
91Contract.ThrowIfNull(option.PublicOption); 97Contract.ThrowIfNull(option.PublicOption); 103Contract.ThrowIfNull(option.PublicOption); 109Contract.ThrowIfNull(option.PublicOption);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
52Contract.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)
48Contract.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 (1)
115Contract.ThrowIfNull(asynchronousComputeFunction);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (5)
48Contract.ThrowIfNull(root); 84Contract.ThrowIfNull(root); 148Contract.ThrowIfNull(tree); 311Contract.ThrowIfNull(parentNode); 360Contract.ThrowIfNull(root);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (5)
80Contract.ThrowIfNull(enumType.EnumUnderlyingType); 121Contract.ThrowIfNull(finalNode); 151Contract.ThrowIfNull(field.ConstantValue); 174Contract.ThrowIfNull(enumType.EnumUnderlyingType); 190Contract.ThrowIfNull(enumType.EnumUnderlyingType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
181Contract.ThrowIfNull(attribute);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (1)
43Contract.ThrowIfNull(document.Project.ParseOptions);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
450Contract.ThrowIfNull(type);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
66Contract.ThrowIfNull(expression);
Storage\SQLite\v2\SQLitePersistentStorage.cs (3)
100Contract.ThrowIfNull(solutionKey.FilePath); 148Contract.ThrowIfNull(directoryName); 158Contract.ThrowIfNull(directory);
Utilities\Documentation\XmlDocumentationProvider.cs (2)
106Contract.ThrowIfNull(xmlDocCommentBytes); 155Contract.ThrowIfNull(filePath);
Utilities\TaskQueue.cs (2)
24Contract.ThrowIfNull(operationListener); 25Contract.ThrowIfNull(taskScheduler);
Workspace\DocumentActiveContextChangedEventArgs.cs (4)
22Contract.ThrowIfNull(solution); 23Contract.ThrowIfNull(sourceTextContainer); 24Contract.ThrowIfNull(oldActiveContextDocumentId); 25Contract.ThrowIfNull(newActiveContextDocumentId);
Workspace\DocumentEventArgs.cs (1)
18Contract.ThrowIfNull(document);
Workspace\Host\EventListener\EventListenerTracker.cs (1)
30Contract.ThrowIfNull(workspace.Kind);
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (1)
54Contract.ThrowIfNull(fileName);
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
956Contract.ThrowIfNull(providerForFileInfo); 1395Contract.ThrowIfNull(originalMetadataReferences); 1396Contract.ThrowIfNull(originalAnalyzerReferences);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
603Contract.ThrowIfNull(projectWithMetadataReference); 604Contract.ThrowIfNull(referencedProject);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
231Contract.ThrowIfNull(sender);
Workspace\Solution\Document.cs (2)
357Contract.ThrowIfNull(result); 558Contract.ThrowIfNull(_cachedOptions);
Workspace\Solution\DocumentState.cs (3)
74Contract.ThrowIfNull(options); 174Contract.ThrowIfNull(tree); 518Contract.ThrowIfNull(ParseOptions);
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
78Contract.ThrowIfNull(siblingTreeSource);
Workspace\Solution\Project.cs (2)
36Contract.ThrowIfNull(solution); 37Contract.ThrowIfNull(projectState);
Workspace\Solution\ProjectDependencyGraph.cs (2)
96Contract.ThrowIfNull(transitiveReferencesMap); 97Contract.ThrowIfNull(reverseTransitiveReferencesMap);
Workspace\Solution\ProjectReference.cs (1)
21Contract.ThrowIfNull(projectId);
Workspace\Solution\ProjectState.cs (3)
97Contract.ThrowIfNull(projectInfo); 98Contract.ThrowIfNull(languageServices); 355Contract.ThrowIfNull(projectDirectory);
Workspace\Solution\Solution.cs (3)
157Contract.ThrowIfNull(state); 251Contract.ThrowIfNull(documentId); 266Contract.ThrowIfNull(documentId);
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
182Contract.ThrowIfNull(finalCompilationWithGeneratedDocuments); 272Contract.ThrowIfNull(projectId);
Workspace\Solution\SolutionCompilationState.cs (1)
1092Contract.ThrowIfNull(projectState);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
63Contract.ThrowIfNull(project); 202Contract.ThrowIfNull(compilation);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (4)
245Contract.ThrowIfNull(generatorDriver); 268Contract.ThrowIfNull(generatorDriver); 412Contract.ThrowIfNull(stateMember); 414Contract.ThrowIfNull(additionalTextsMember);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
82Contract.ThrowIfNull(syntaxTree);
Workspace\Solution\SolutionCompilationState_Checksum.cs (2)
76Contract.ThrowIfNull(projectId); 86Contract.ThrowIfNull(projectCone);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
74Contract.ThrowIfNull(map);
Workspace\Solution\SolutionState.cs (1)
316Contract.ThrowIfNull(result);
Workspace\Solution\SolutionState_Checksum.cs (1)
75Contract.ThrowIfNull(projectId);
Workspace\Solution\TextDocument.cs (2)
27Contract.ThrowIfNull(project); 28Contract.ThrowIfNull(state);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (2)
173Contract.ThrowIfNull(_storageHandle); 183Contract.ThrowIfNull(_storageHandle);
Workspace\Workspace.cs (4)
495Contract.ThrowIfNull(transformation); 1287Contract.ThrowIfNull(newDocument); 1660Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1661Contract.ThrowIfNull(projectChanges.NewProject.CompilationOptions);