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