1039 references to ThrowIfNull
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (2)
45
Contract.
ThrowIfNull
(undoHistoryRegistry);
46
Contract.
ThrowIfNull
(editorOperationsFactoryService);
DecompiledSource\AssemblyResolver.cs (1)
176
Contract.
ThrowIfNull
(fileName);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
440
Contract.
ThrowIfNull
(n);
CSharpRemoveRedundantNullableDirectiveTests.cs (1)
255
Contract.
ThrowIfNull
(compilationOptions);
CSharpRemoveUnnecessaryNullableDirectiveTests.cs (1)
242
Contract.
ThrowIfNull
(compilationOptions);
QuickInfo\SemanticQuickInfoSourceTests.cs (3)
49
Contract.
ThrowIfNull
(service);
105
Contract.
ThrowIfNull
(service);
257
Contract.
ThrowIfNull
(service);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (2)
128
Contract.
ThrowIfNull
(pasteText);
130
Contract.
ThrowIfNull
(json);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
EmbeddedLanguages\Json\CSharpJsonParserTests_NstTests.cs (1)
19
Roslyn.Utilities.Contract.
ThrowIfNull
(tree);
Microsoft.CodeAnalysis.CSharp.Features (100)
AbstractAssignOutParametersCodeFixProvider.cs (1)
111
Contract.
ThrowIfNull
(parameterList);
AnalyzedPattern.cs (1)
31
Contract.
ThrowIfNull
(operation.SemanticModel);
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
338
Contract.
ThrowIfNull
(syntaxRoot);
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
242
Contract.
ThrowIfNull
(attributeType);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
76
Contract.
ThrowIfNull
(semanticModel);
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
110
Contract.
ThrowIfNull
(namedType);
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
110
Contract.
ThrowIfNull
(directive);
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
48
Contract.
ThrowIfNull
(context);
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
50
Contract.
ThrowIfNull
(newRoot);
54
Contract.
ThrowIfNull
(newRoot);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (3)
33
Contract.
ThrowIfNull
(typeDeclaration); // checked by analyzer
185
Contract.
ThrowIfNull
(methodDeclaration.Body); // checked by analyzer
258
Contract.
ThrowIfNull
(field);
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
113
Contract.
ThrowIfNull
(nextStatement);
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (6)
94
Contract.
ThrowIfNull
(_assignmentTarget);
210
Contract.
ThrowIfNull
(result);
237
Contract.
ThrowIfNull
(armExpression);
279
Contract.
ThrowIfNull
(node.Expression);
285
Contract.
ThrowIfNull
(node.Expression);
294
Contract.
ThrowIfNull
(result);
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (3)
45
Contract.
ThrowIfNull
(dataFlow);
64
Contract.
ThrowIfNull
(declaration);
70
Contract.
ThrowIfNull
(beforeSwitch);
CSharpAddBracesDiagnosticAnalyzer.cs (1)
58
Contract.
ThrowIfNull
(embeddedStatement);
CSharpAsAndMemberAccessCodeFixProvider.cs (2)
66
Contract.
ThrowIfNull
(parent);
126
Contract.
ThrowIfNull
(binaryExpression);
CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
133
Contract.
ThrowIfNull
(isPatternExpression);
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (7)
35
Contract.
ThrowIfNull
(semanticModel);
36
Contract.
ThrowIfNull
(localSymbol);
37
Contract.
ThrowIfNull
(comparison);
38
Contract.
ThrowIfNull
(operand);
283
Contract.
ThrowIfNull
(statement);
309
Contract.
ThrowIfNull
(scope);
377
Contract.
ThrowIfNull
(dataFlow);
CSharpConvertTypeOfToNameOfCodeFixProvider.cs (1)
35
Contract.
ThrowIfNull
(typeSymbol);
CSharpForEachCastCodeFixProvider.cs (1)
33
Contract.
ThrowIfNull
(result);
CSharpInlineDeclarationDiagnosticAnalyzer.cs (2)
260
Contract.
ThrowIfNull
(nextStatement);
265
Contract.
ThrowIfNull
(dataFlow);
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
128
Contract.
ThrowIfNull
(semanticModel);
CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
79
Contract.
ThrowIfNull
(currentAccessorList);
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
125
Contract.
ThrowIfNull
(currentOptionsDirective);
157
Contract.
ThrowIfNull
(currentOptionsDirective);
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
38
Contract.
ThrowIfNull
(options);
CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
46
Contract.
ThrowIfNull
(compilationOptions);
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
199
Contract.
ThrowIfNull
(semanticModel);
CSharpUseNameofInAttributeCodeFixProvider.cs (1)
52
Contract.
ThrowIfNull
(name);
CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
91
Contract.
ThrowIfNull
(semanticModel);
CSharpUseRangeOperatorCodeFixProvider.cs (2)
147
Contract.
ThrowIfNull
(instance);
199
Contract.
ThrowIfNull
(result.Op2);
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (4)
85
Contract.
ThrowIfNull
(semanticModel);
148
Contract.
ThrowIfNull
(invocation.Instance);
165
Contract.
ThrowIfNull
(invocation.Instance);
214
Contract.
ThrowIfNull
(invocation.Instance);
EditAndContinue\BreakpointSpans.cs (2)
246
Contract.
ThrowIfNull
(property.AccessorList);
261
Contract.
ThrowIfNull
(indexer.AccessorList);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (9)
569
Contract.
ThrowIfNull
(oldDeclaration.Parent);
570
Contract.
ThrowIfNull
(newDeclaration.Parent);
1259
Contract.
ThrowIfNull
(oldNode);
1287
Contract.
ThrowIfNull
(oldNode);
1288
Contract.
ThrowIfNull
(newNode);
1289
Contract.
ThrowIfNull
(oldModel);
1411
Contract.
ThrowIfNull
(oldNode);
1412
Contract.
ThrowIfNull
(newNode);
1413
Contract.
ThrowIfNull
(oldModel);
ExtractMethod\CSharpMethodExtractor.cs (2)
100
Contract.
ThrowIfNull
(memberNode);
174
Contract.
ThrowIfNull
(type);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (6)
37
Contract.
ThrowIfNull
(outmostCallSiteContainer);
38
Contract.
ThrowIfNull
(variableToRemoveMap);
39
Contract.
ThrowIfNull
(firstStatementOrFieldToReplace);
40
Contract.
ThrowIfNull
(lastStatementOrFieldToReplace);
41
Contract.
ThrowIfNull
(statementsOrFieldToInsert);
280
Contract.
ThrowIfNull
(statement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
217
Contract.
ThrowIfNull
(declStatement);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
161
Contract.
ThrowIfNull
(container);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
112
Contract.
ThrowIfNull
(node);
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (4)
26
Contract.
ThrowIfNull
(semanticModel);
116
Contract.
ThrowIfNull
(statement);
119
Contract.
ThrowIfNull
(type);
153
Contract.
ThrowIfNull
(statement);
ExtractMethod\CSharpSelectionResult.cs (4)
35
Contract.
ThrowIfNull
(status);
36
Contract.
ThrowIfNull
(document);
114
Contract.
ThrowIfNull
(statement);
126
Contract.
ThrowIfNull
(statement);
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
41
Contract.
ThrowIfNull
(SemanticDocument);
ExtractMethod\CSharpSelectionResult.StatementResult.cs (1)
51
Contract.
ThrowIfNull
(SemanticDocument);
ExtractMethod\Extensions.cs (3)
34
Contract.
ThrowIfNull
(node);
69
Contract.
ThrowIfNull
(node);
100
Contract.
ThrowIfNull
(node);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
60
Contract.
ThrowIfNull
(member);
LineSeparators\CSharpLineSeparatorService.cs (2)
247
Contract.
ThrowIfNull
(spans);
262
Contract.
ThrowIfNull
(spans);
MakeLocalFunctionStaticCodeFixHelper.cs (1)
219
Contract.
ThrowIfNull
(symbolType);
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
250
Contract.
ThrowIfNull
(rewritten);
Structure\CSharpStructureHelpers.cs (2)
134
Contract.
ThrowIfNull
(text);
135
Contract.
ThrowIfNull
(prefix);
Structure\Providers\DisabledTextTriviaStructureProvider.cs (1)
21
Contract.
ThrowIfNull
(trivia.SyntaxTree);
UseExpressionBodyHelper`1.cs (1)
84
Contract.
ThrowIfNull
(body);
UseUtf8StringLiteralCodeFixProvider.cs (2)
53
Contract.
ThrowIfNull
(readOnlySpanType);
61
Contract.
ThrowIfNull
(arrayOp.Initializer);
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
87
Contract.
ThrowIfNull
(semanticModel);
Microsoft.CodeAnalysis.CSharp.Workspaces (44)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
831
Contract.
ThrowIfNull
(type);
1227
Contract.
ThrowIfNull
(result);
2083
Contract.
ThrowIfNull
(vd.Parent);
3159
Contract.
ThrowIfNull
(expression);
CSharpAddImportsService.cs (1)
140
Contract.
ThrowIfNull
(rewritten);
CSharpCodeGenerationHelpers.cs (2)
114
Contract.
ThrowIfNull
(syntax);
268
Contract.
ThrowIfNull
(symbol);
CSharpIndentationService.cs (2)
54
Contract.
ThrowIfNull
(formattingRules);
55
Contract.
ThrowIfNull
(root);
CSharpIndentationService.Indenter.cs (2)
76
Contract.
ThrowIfNull
(indenter.Tree);
127
Contract.
ThrowIfNull
(interpolatedExpression);
CSharpInferredMemberNameSimplifier.cs (2)
64
Contract.
ThrowIfNull
(toRemove.NameColon);
86
Contract.
ThrowIfNull
(toRemove.NameEquals);
CSharpRemoveUnnecessaryImportsService.cs (1)
57
Contract.
ThrowIfNull
(formattingOptions);
CSharpSmartTokenFormatter.cs (1)
36
Contract.
ThrowIfNull
(root);
FormattingHelpers.cs (1)
486
Contract.
ThrowIfNull
(node);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
489
Contract.
ThrowIfNull
(syntaxTree);
NamedTypeGenerator.cs (1)
228
Contract.
ThrowIfNull
(invokeMethod);
OrganizeImports\CSharpOrganizeImportsService.Rewriter.cs (1)
60
Contract.
ThrowIfNull
(node);
Rename\CSharpRenameRewriterLanguageService.cs (1)
875
Contract.
ThrowIfNull
(tree);
SemanticModelExtensions.cs (1)
170
Contract.
ThrowIfNull
(@using.NamespaceOrType);
Simplification\CSharpSimplificationService.cs (2)
81
Contract.
ThrowIfNull
(token.Parent);
174
Contract.
ThrowIfNull
(syntaxNodeToSpeculate);
Simplification\Reducers\AbstractCSharpReducer.AbstractReductionRewriter.cs (7)
42
Contract.
ThrowIfNull
(options);
65
Contract.
ThrowIfNull
(ParseOptions);
66
Contract.
ThrowIfNull
(Options);
67
Contract.
ThrowIfNull
(SemanticModel);
90
Contract.
ThrowIfNull
(lastExpression.Parent);
105
Contract.
ThrowIfNull
(lastPattern.Parent);
116
Contract.
ThrowIfNull
(topMostCref.Parent);
SyntaxTriviaExtensions.cs (2)
121
Contract.
ThrowIfNull
(trivia);
137
Contract.
ThrowIfNull
(trivia);
TriviaDataFactory.FormattedComplexTrivia.cs (3)
32
Contract.
ThrowIfNull
(context);
33
Contract.
ThrowIfNull
(formattingRules);
34
Contract.
ThrowIfNull
(originalString);
TriviaDataFactory.ModifiedComplexTrivia.cs (1)
24
Contract.
ThrowIfNull
(original);
TriviaRewriter.cs (2)
34
Contract.
ThrowIfNull
(node);
35
Contract.
ThrowIfNull
(map);
TypeDeclarationSyntaxExtensions.cs (1)
71
Contract.
ThrowIfNull
(typeNode);
TypeStyleHelper.cs (1)
133
Contract.
ThrowIfNull
(containingType);
UsingsAndExternAliasesDirectiveComparer.cs (2)
128
Contract.
ThrowIfNull
(using1!.Name);
129
Contract.
ThrowIfNull
(using2!.Name);
UsingsAndExternAliasesOrganizer.cs (2)
84
Contract.
ThrowIfNull
(using1.Name);
85
Contract.
ThrowIfNull
(using2.Name);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
50
Contract.
ThrowIfNull
(tokens);
Microsoft.CodeAnalysis.EditorFeatures (58)
BracePairs\BracePairsTaggerProvider.cs (1)
64
Contract.
ThrowIfNull
(textView);
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (2)
62
Contract.
ThrowIfNull
(textView);
82
Contract.
ThrowIfNull
(textView);
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
388
Contract.
ThrowIfNull
(lastProcessedSnapshot);
CommentSelection\AbstractCommentSelectionBase.cs (2)
56
Contract.
ThrowIfNull
(undoHistoryRegistry);
57
Contract.
ThrowIfNull
(editorOperationsFactoryService);
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (3)
41
Contract.
ThrowIfNull
(uiThreadOperationExecutor);
42
Contract.
ThrowIfNull
(undoHistoryRegistry);
43
Contract.
ThrowIfNull
(editorOperationsFactoryService);
EditAndContinue\EditAndContinueLanguageService.cs (4)
90
Contract.
ThrowIfNull
(debuggingSession);
219
Contract.
ThrowIfNull
(committedDesignTimeSolution);
247
Contract.
ThrowIfNull
(Interlocked.Exchange(ref _pendingUpdatedDesignTimeSolution, null));
309
Contract.
ThrowIfNull
(_committedDesignTimeSolution);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
80
Contract.
ThrowIfNull
(oldDocument.FilePath);
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
87
Contract.
ThrowIfNull
(document);
ExternalAccess\VSTypeScript\VSTypeScriptInProcLanguageClient.cs (1)
91
Contract.
ThrowIfNull
(typeScriptServerCapabilities);
ExtractMethod\ExtractMethodCommandHandler.cs (4)
61
Contract.
ThrowIfNull
(threadingContext);
62
Contract.
ThrowIfNull
(undoManager);
63
Contract.
ThrowIfNull
(renameService);
152
Contract.
ThrowIfNull
(result);
FindReferences\FindReferencesCommandHandler.cs (1)
47
Contract.
ThrowIfNull
(listenerProvider);
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
89
Contract.
ThrowIfNull
(document);
InlineHints\InlineHintsDataTaggerProvider.cs (2)
67
Contract.
ThrowIfNull
(textView);
89
Contract.
ThrowIfNull
(textView);
InlineRename\InlineRenameSession.cs (2)
226
Contract.
ThrowIfNull
(text);
235
Contract.
ThrowIfNull
(textSnapshot.TextBuffer);
IntelliSense\AsyncCompletion\CommitManager.cs (2)
241
Contract.
ThrowIfNull
(_languageServerSnippetExpander);
245
Contract.
ThrowIfNull
(lspSnippetText);
IntelliSense\QuickInfo\Model.cs (1)
26
Contract.
ThrowIfNull
(item);
Intents\RenameIntentProvider.cs (1)
39
Contract.
ThrowIfNull
(renameIntentData);
Interactive\InteractiveWorkspace.cs (1)
57
Contract.
ThrowIfNull
(_openTextContainer);
Preview\DifferenceViewerPreview.cs (1)
20
Contract.
ThrowIfNull
(viewer);
Shared\Extensions\ITextSelectionExtensions.cs (2)
16
Contract.
ThrowIfNull
(selection);
17
Contract.
ThrowIfNull
(subjectBuffer);
Shared\Extensions\ITextViewExtensions.cs (9)
207
Contract.
ThrowIfNull
(textView);
208
Contract.
ThrowIfNull
(subjectBuffer);
209
Contract.
ThrowIfNull
(valueCreator);
220
Contract.
ThrowIfNull
(textView);
221
Contract.
ThrowIfNull
(subjectBuffer);
232
Contract.
ThrowIfNull
(textView);
233
Contract.
ThrowIfNull
(subjectBuffer);
243
Contract.
ThrowIfNull
(textView);
244
Contract.
ThrowIfNull
(subjectBuffer);
Shared\Tagging\EventSources\TaggerEventSources.CaretPositionChangedEventSource.cs (2)
19
Contract.
ThrowIfNull
(textView);
20
Contract.
ThrowIfNull
(subjectBuffer);
Shared\Tagging\EventSources\TaggerEventSources.CompositionEventSource.cs (1)
19
Contract.
ThrowIfNull
(providers);
Shared\Tagging\EventSources\TaggerEventSources.ReadOnlyRegionsChangedEventSource.cs (1)
19
Contract.
ThrowIfNull
(subjectBuffer);
Shared\Tagging\EventSources\TaggerEventSources.TextChangedEventSource.cs (1)
19
Contract.
ThrowIfNull
(subjectBuffer);
Shared\Utilities\AbstractClassificationTypeMap.cs (1)
37
Contract.
ThrowIfNull
(rawValue);
Shared\Utilities\LinkedEditsTracker.cs (1)
27
Contract.
ThrowIfNull
(subjectBuffer);
Shared\Utilities\UIThreadOperationContextProgressTracker.cs (1)
19
Contract.
ThrowIfNull
(scope);
Shared\Utilities\VirtualTreePoint.cs (1)
21
Contract.
ThrowIfNull
(tree);
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
263
Contract.
ThrowIfNull
(_textView);
TextStructureNavigation\AbstractTextStructureNavigatorProvider.cs (2)
26
Contract.
ThrowIfNull
(selectorService);
27
Contract.
ThrowIfNull
(contentTypeService);
TextStructureNavigation\AbstractTextStructureNavigatorProvider.TextStructureNavigator.cs (3)
34
Contract.
ThrowIfNull
(subjectBuffer);
35
Contract.
ThrowIfNull
(naturalLanguageNavigator);
36
Contract.
ThrowIfNull
(provider);
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (25)
Model.cs (1)
44
Contract.
ThrowIfNull
(selectedItem);
NavigableSymbolService.NavigableSymbol.cs (1)
33
Contract.
ThrowIfNull
(location);
NavigationCommandHandlers\AbstractNavigationCommandHandler.cs (1)
29
Contract.
ThrowIfNull
(streamingPresenters);
NavigationCommandHandlers\FindBaseSymbolsCommandHandler.cs (1)
44
Contract.
ThrowIfNull
(listenerProvider);
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (1)
43
Contract.
ThrowIfNull
(listenerProvider);
NavigationCommandHandlers\FindExtensionMethodsCommandHandler.cs (1)
48
Contract.
ThrowIfNull
(listenerProvider);
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
46
Contract.
ThrowIfNull
(listenerProvider);
NavigationCommandHandlers\FindMemberOverloadsCommandHandler.cs (1)
41
Contract.
ThrowIfNull
(listenerProvider);
NavigationCommandHandlers\FindReferencesOfOverloadsCommandHandler.cs (3)
49
Contract.
ThrowIfNull
(streamingPresenters);
50
Contract.
ThrowIfNull
(listenerProvider);
51
Contract.
ThrowIfNull
(threadingContext);
Preview\ICocoaDifferenceViewerExtensions.cs (1)
79
Contract.
ThrowIfNull
(_diffViewer.DifferenceBuffer.CurrentInlineBufferSnapshot);
SignatureHelpPresenter.SignatureHelpPresenterSession.cs (1)
103
Contract.
ThrowIfNull
(_signatureMap);
Snippets\AbstractSnippetExpansionClient.cs (2)
90
Contract.
ThrowIfNull
(ExpansionSession);
114
Contract.
ThrowIfNull
(ExpansionSession);
Snippets\CSharpSnippets\SnippetExpansionClient.cs (1)
35
Contract.
ThrowIfNull
(ExpansionSession);
Snippets\CSharpSnippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
55
Contract.
ThrowIfNull
(_snippetExpansionClient.ExpansionSession);
Snippets\SnippetFunctions\AbstractSnippetFunctionClassName.cs (1)
33
Contract.
ThrowIfNull
(_snippetExpansionClient.ExpansionSession);
Snippets\SnippetFunctions\AbstractSnippetFunctionGenerateSwitchCases.cs (1)
80
Contract.
ThrowIfNull
(_snippetExpansionClient.ExpansionSession);
Snippets\SnippetFunctions\AbstractSnippetFunctionSimpleTypeName.cs (1)
57
Contract.
ThrowIfNull
(_snippetExpansionClient.ExpansionSession);
SuggestedAction.CaretPositionRestorer.cs (1)
34
Contract.
ThrowIfNull
(associatedViewService);
SuggestedAction.cs (2)
56
Contract.
ThrowIfNull
(provider);
57
Contract.
ThrowIfNull
(codeAction);
SuggestedActionsSourceProvider.cs (2)
91
Contract.
ThrowIfNull
(textView);
92
Contract.
ThrowIfNull
(textBuffer);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
Completion\AbstractArgumentProviderTests`1.cs (1)
69
Contract.
ThrowIfNull
(parameter);
EditAndContinue\EditAndContinueTestHelpers.cs (3)
150
Contract.
ThrowIfNull
(oldModel);
151
Contract.
ThrowIfNull
(newModel);
350
Contract.
ThrowIfNull
(actualSyntaxMap);
NavigateTo\NavigateToTestAggregator.Callback.cs (1)
27
Contract.
ThrowIfNull
(options);
NavigateTo\NavigateToTestAggregator.cs (1)
26
Contract.
ThrowIfNull
(itemProvider);
Workspaces\TestHostDocument.cs (5)
70
Contract.
ThrowIfNull
(_id);
79
Contract.
ThrowIfNull
(_project);
126
Contract.
ThrowIfNull
(filePath);
278
Contract.
ThrowIfNull
(document);
318
Contract.
ThrowIfNull
(_initialTextSnapshot);
Workspaces\TestWorkspace.cs (1)
750
Contract.
ThrowIfNull
(document);
Microsoft.CodeAnalysis.EditorFeatures.Text (10)
Extensions.SnapshotSourceText.cs (4)
42
Contract.
ThrowIfNull
(editorSnapshot);
53
Contract.
ThrowIfNull
(textImage);
230
Contract.
ThrowIfNull
(editorSnapshot);
233
Contract.
ThrowIfNull
(textImage);
Extensions.TextBufferContainer.cs (1)
30
Contract.
ThrowIfNull
(editorBuffer);
Shared\Extensions\ITextSnapshotExtensions.cs (3)
112
Contract.
ThrowIfNull
(snapshot);
119
Contract.
ThrowIfNull
(snapshot);
137
Contract.
ThrowIfNull
(snapshot);
Shared\Extensions\ITextSnapshotLineExtensions.cs (2)
23
Contract.
ThrowIfNull
(line);
45
Contract.
ThrowIfNull
(line);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (12)
Diagnostics\DiagnosticsSquiggleTaggerProviderTests.cs (2)
153
Contract.
ThrowIfNull
(tagger);
201
Contract.
ThrowIfNull
(tagger);
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
172
Contract.
ThrowIfNull
(sessionProxy);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (4)
77
Contract.
ThrowIfNull
(symbol);
97
Contract.
ThrowIfNull
(symbol);
192
Contract.
ThrowIfNull
(assemblySymbol);
329
Contract.
ThrowIfNull
(symbol);
Preview\PreviewWorkspaceTests.cs (2)
202
Contract.
ThrowIfNull
(leftTagger);
203
Contract.
ThrowIfNull
(rightTagger);
Tagging\AsynchronousTaggerTests.cs (3)
77
Contract.
ThrowIfNull
(tagger);
103
Contract.
ThrowIfNull
(tagger);
129
Contract.
ThrowIfNull
(tagger);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (19)
Adornments\AbstractAdornmentManager.cs (7)
66
Contract.
ThrowIfNull
(threadingContext);
67
Contract.
ThrowIfNull
(textView);
68
Contract.
ThrowIfNull
(tagAggregatorFactoryService);
69
Contract.
ThrowIfNull
(adornmentLayerName);
70
Contract.
ThrowIfNull
(asyncListener);
142
Contract.
ThrowIfNull
(spans);
230
Contract.
ThrowIfNull
(changedSpanCollection);
Interactive\InteractiveEvaluator.cs (1)
242
Contract.
ThrowIfNull
(currentSubmissionBuffer);
IWpfDifferenceViewerExtensions.cs (1)
80
Contract.
ThrowIfNull
(_diffViewer.DifferenceBuffer.CurrentInlineBufferSnapshot);
NavigableSymbols\NavigableSymbolService.NavigableSymbol.cs (1)
33
Contract.
ThrowIfNull
(location);
NavigateTo\NavigateToItemProvider.cs (2)
36
Contract.
ThrowIfNull
(workspace);
37
Contract.
ThrowIfNull
(asyncListener);
SignatureHelp\Model.cs (1)
44
Contract.
ThrowIfNull
(selectedItem);
SignatureHelp\Presentation\SignatureHelpPresenter.SignatureHelpPresenterSession.cs (1)
103
Contract.
ThrowIfNull
(_signatureMap);
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (1)
34
Contract.
ThrowIfNull
(associatedViewService);
Suggestions\SuggestedActions\SuggestedAction.cs (2)
56
Contract.
ThrowIfNull
(provider);
57
Contract.
ThrowIfNull
(codeAction);
Suggestions\SuggestedActionsSourceProvider.cs (2)
91
Contract.
ThrowIfNull
(textView);
92
Contract.
ThrowIfNull
(textBuffer);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Internal\Editor\FSharpSmartIndentProvider.cs (1)
100
Contract.
ThrowIfNull
(_provider._legacyService);
SignatureHelp\FSharpSignatureHelpItems.cs (1)
67
Contract.
ThrowIfNull
(items);
Microsoft.CodeAnalysis.Features (257)
AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
54
Contract.
ThrowIfNull
(symbol);
AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
78
Contract.
ThrowIfNull
(obsoleteAttribute);
AbstractForEachCastCodeFixProvider.cs (2)
70
Contract.
ThrowIfNull
(variableDeclarator.Symbol.Type);
71
Contract.
ThrowIfNull
(enumerableType);
AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
81
Contract.
ThrowIfNull
(symbol);
AbstractMakeMethodAsynchronousCodeFixProvider.cs (2)
110
Contract.
ThrowIfNull
(node);
117
Contract.
ThrowIfNull
(methodSymbol);
AbstractMakeMethodSynchronousCodeFixProvider.cs (2)
59
Contract.
ThrowIfNull
(methodSymbol);
256
Contract.
ThrowIfNull
(currentInvocationExpression);
AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
36
Contract.
ThrowIfNull
(options);
AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
82
Contract.
ThrowIfNull
(newRoot);
AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
59
Contract.
ThrowIfNull
(symbol);
72
Contract.
ThrowIfNull
(fieldDeclarator);
AbstractRemoveUnusedValuesCodeFixProvider.cs (5)
485
Contract.
ThrowIfNull
(variableDeclarator);
591
Contract.
ThrowIfNull
(type);
592
Contract.
ThrowIfNull
(newLocalNameOpt);
853
Contract.
ThrowIfNull
(declStatement);
894
Contract.
ThrowIfNull
(rootWithRemovedDeclaration);
AbstractSimplifyInterpolationHelpers.cs (3)
79
Contract.
ThrowIfNull
(expression.SemanticModel);
139
Contract.
ThrowIfNull
(operation.SemanticModel);
158
Contract.
ThrowIfNull
(operation.SemanticModel);
AbstractUseCollectionInitializerCodeFixProvider.cs (1)
94
Contract.
ThrowIfNull
(statement);
AbstractUseNullPropagationCodeFixProvider.cs (1)
161
Contract.
ThrowIfNull
(newWhenTrueStatement);
AbstractUseObjectInitializerCodeFixProvider.cs (1)
95
Contract.
ThrowIfNull
(statement);
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
80
Contract.
ThrowIfNull
(semanticModel);
AddAccessibilityModifiersHelpers.cs (1)
17
Contract.
ThrowIfNull
(symbol);
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (1)
72
Contract.
ThrowIfNull
(constructorDocument);
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
185
Contract.
ThrowIfNull
(changedSolution);
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
190
Contract.
ThrowIfNull
(category);
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
113
Contract.
ThrowIfNull
(defaultValue);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
172
Contract.
ThrowIfNull
(targetSymbol);
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (2)
93
Contract.
ThrowIfNull
(result);
123
Contract.
ThrowIfNull
(localFunctionResult);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
273
Contract.
ThrowIfNull
(symbol);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
872
Contract.
ThrowIfNull
(x);
873
Contract.
ThrowIfNull
(y);
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
200
Contract.
ThrowIfNull
(expr);
Completion\Providers\AbstractCrefCompletionProvider.cs (1)
36
Contract.
ThrowIfNull
(semanticModel);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (2)
131
Contract.
ThrowIfNull
(containingType);
218
Contract.
ThrowIfNull
(root);
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
52
Contract.
ThrowIfNull
(enclosing);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (1)
114
Contract.
ThrowIfNull
(containingType);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
213
Contract.
ThrowIfNull
(context);
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
246
Contract.
ThrowIfNull
(syntaxContext);
324
Contract.
ThrowIfNull
(syntaxContext);
Completion\Providers\CompletionUtilities.cs (1)
47
Contract.
ThrowIfNull
(solution);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
58
Contract.
ThrowIfNull
(snippetText);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
82
Contract.
ThrowIfNull
(document.DocumentState.ParseOptions);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
236
Contract.
ThrowIfNull
(literalExpression);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
212
Contract.
ThrowIfNull
(document.FilePath);
Diagnostics\LiveDiagnosticUpdateArgsId.cs (1)
19
Contract.
ThrowIfNull
(projectOrDocumentId);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
115
Contract.
ThrowIfNull
(symbol);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (40)
544
Contract.
ThrowIfNull
(newTree);
864
Contract.
ThrowIfNull
(newStatement);
1011
Contract.
ThrowIfNull
(oldStatementSyntax);
1332
Contract.
ThrowIfNull
(newStatementSyntax);
2043
Contract.
ThrowIfNull
(oldNode);
2044
Contract.
ThrowIfNull
(newNode);
2461
Contract.
ThrowIfNull
(symbol);
2596
Contract.
ThrowIfNull
(oldModel);
2597
Contract.
ThrowIfNull
(oldSymbol);
2598
Contract.
ThrowIfNull
(oldDeclaration);
2772
Contract.
ThrowIfNull
(newModel);
2773
Contract.
ThrowIfNull
(newSymbol);
2774
Contract.
ThrowIfNull
(newDeclaration);
2802
Contract.
ThrowIfNull
(oldDeclaration);
2827
Contract.
ThrowIfNull
(oldDeclaration);
2995
Contract.
ThrowIfNull
(newContainingType);
2996
Contract.
ThrowIfNull
(oldContainingType);
3032
Contract.
ThrowIfNull
(oldModel);
3033
Contract.
ThrowIfNull
(newModel);
3034
Contract.
ThrowIfNull
(oldSymbol);
3035
Contract.
ThrowIfNull
(newSymbol);
3046
Contract.
ThrowIfNull
(oldDeclaration);
3047
Contract.
ThrowIfNull
(newDeclaration);
3118
Contract.
ThrowIfNull
(oldSymbol);
3171
Contract.
ThrowIfNull
(oldDeclaration);
3175
Contract.
ThrowIfNull
(newDeclaration);
3204
Contract.
ThrowIfNull
(oldModel);
3205
Contract.
ThrowIfNull
(newModel);
3210
Contract.
ThrowIfNull
(newSymbol);
3211
Contract.
ThrowIfNull
(oldSymbol);
3220
Contract.
ThrowIfNull
(oldDeclaration);
3221
Contract.
ThrowIfNull
(newDeclaration);
3225
Contract.
ThrowIfNull
(oldContainingType);
3226
Contract.
ThrowIfNull
(newContainingType);
3495
Contract.
ThrowIfNull
(processedSymbols);
3521
Contract.
ThrowIfNull
(processedSymbols);
3573
Contract.
ThrowIfNull
(oldType);
3606
Contract.
ThrowIfNull
(newType);
3911
Contract.
ThrowIfNull
(newType.DelegateInvokeMethod);
4937
Contract.
ThrowIfNull
(oldModel);
EditAndContinue\CommittedSolution.cs (4)
222
Contract.
ThrowIfNull
(document.FilePath);
312
Contract.
ThrowIfNull
(document.FilePath);
382
Contract.
ThrowIfNull
(sourceFilePath);
473
Contract.
ThrowIfNull
(document.FilePath);
EditAndContinue\DebuggingSession.cs (2)
655
Contract.
ThrowIfNull
(document.FilePath);
782
Contract.
ThrowIfNull
(mappedDocument.FilePath);
EditAndContinue\EditAndContinueWorkspaceService.cs (3)
187
Contract.
ThrowIfNull
(debuggingSession);
217
Contract.
ThrowIfNull
(debuggingSession);
225
Contract.
ThrowIfNull
(debuggingSession);
EditAndContinue\EditSession.cs (8)
683
Contract.
ThrowIfNull
(oldResolution.Symbol);
694
Contract.
ThrowIfNull
(newResolution.Symbol);
700
Contract.
ThrowIfNull
(newResolution.Symbol);
720
Contract.
ThrowIfNull
(newSymbol);
980
Contract.
ThrowIfNull
(oldCompilation);
981
Contract.
ThrowIfNull
(newCompilation);
991
Contract.
ThrowIfNull
(newCompilation);
1013
Contract.
ThrowIfNull
(emitResult.Baseline);
EditAndContinue\EmitSolutionUpdateResults.cs (1)
113
Contract.
ThrowIfNull
(document);
EditAndContinue\TraceLog.cs (1)
143
Contract.
ThrowIfNull
(_logDirectory);
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (3)
221
Contract.
ThrowIfNull
(startString);
222
Contract.
ThrowIfNull
(lengthString);
223
Contract.
ThrowIfNull
(newText);
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
1394
Contract.
ThrowIfNull
(last);
ExternalAccess\UnitTesting\API\NewUnitTestingIncrementalAnalyzerProvider.cs (1)
45
Contract.
ThrowIfNull
(workspaceKind);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (3)
60
Contract.
ThrowIfNull
(workspaceKind);
135
Contract.
ThrowIfNull
(workspaceKind);
158
Contract.
ThrowIfNull
(workspaceKind);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (10)
266
Contract.
ThrowIfNull
(args.ProjectId);
272
Contract.
ThrowIfNull
(args.ProjectId);
277
Contract.
ThrowIfNull
(args.ProjectId);
282
Contract.
ThrowIfNull
(args.DocumentId);
288
Contract.
ThrowIfNull
(args.DocumentId);
293
Contract.
ThrowIfNull
(args.DocumentId);
306
Contract.
ThrowIfNull
(args.ProjectId);
704
Contract.
ThrowIfNull
(_projectOrDocumentIds);
752
Contract.
ThrowIfNull
(_projectOrDocumentIds);
795
Contract.
ThrowIfNull
(_projectOrDocumentIds);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (2)
112
Contract.
ThrowIfNull
(lowPriorityDocumentId);
118
Contract.
ThrowIfNull
(item.DocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
122
Contract.
ThrowIfNull
(item.DocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
273
Contract.
ThrowIfNull
(workItem.DocumentId);
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
88
Contract.
ThrowIfNull
(containingType);
ExtractMethod\AbstractSyntaxTriviaService.cs (4)
30
Contract.
ThrowIfNull
(root);
56
Contract.
ThrowIfNull
(root);
57
Contract.
ThrowIfNull
(oldTokens);
58
Contract.
ThrowIfNull
(computeReplacementToken);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
34
Contract.
ThrowIfNull
(root);
35
Contract.
ThrowIfNull
(annotations);
36
Contract.
ThrowIfNull
(triviaList);
ExtractMethod\Extensions.cs (1)
75
Contract.
ThrowIfNull
(typeSymbol);
ExtractMethod\InsertionPoint.cs (2)
29
Contract.
ThrowIfNull
(document);
30
Contract.
ThrowIfNull
(annotation);
ExtractMethod\MethodExtractor.Analyzer.cs (5)
31
Contract.
ThrowIfNull
(selectionResult);
416
Contract.
ThrowIfNull
(model);
417
Contract.
ThrowIfNull
(dataFlowAnalysisData);
533
Contract.
ThrowIfNull
(model);
534
Contract.
ThrowIfNull
(type);
ExtractMethod\MethodExtractor.Analyzer.SymbolMapBuilder.cs (3)
35
Contract.
ThrowIfNull
(semanticModel);
36
Contract.
ThrowIfNull
(service);
37
Contract.
ThrowIfNull
(root);
ExtractMethod\MethodExtractor.AnalyzerResult.cs (1)
135
Contract.
ThrowIfNull
(_variableToUseAsReturnValue);
ExtractMethod\MethodExtractor.cs (1)
32
Contract.
ThrowIfNull
(selectionResult);
ExtractMethod\MethodExtractor.GeneratedCode.cs (4)
22
Contract.
ThrowIfNull
(document);
23
Contract.
ThrowIfNull
(methodNameAnnotation);
24
Contract.
ThrowIfNull
(callsiteAnnotation);
25
Contract.
ThrowIfNull
(methodDefinitionAnnotation);
ExtractMethod\MethodExtractor.VariableInfo.cs (1)
98
Contract.
ThrowIfNull
(variable);
ExtractMethod\MethodExtractor.VariableSymbol.cs (8)
112
Contract.
ThrowIfNull
(parameterSymbol);
123
Contract.
ThrowIfNull
(other);
191
Contract.
ThrowIfNull
(localSymbol);
192
Contract.
ThrowIfNull
(nonNoisySet);
205
Contract.
ThrowIfNull
(other);
236
Contract.
ThrowIfNull
(_localSymbol.Locations[0].SourceTree);
305
Contract.
ThrowIfNull
(symbol);
316
Contract.
ThrowIfNull
(other);
ExtractMethod\OperationStatus.cs (1)
25
Contract.
ThrowIfNull
(reasons);
ExtractMethod\SelectionResult.cs (1)
23
Contract.
ThrowIfNull
(status);
ExtractMethod\SelectionValidator.cs (2)
34
Contract.
ThrowIfNull
(document);
57
Contract.
ThrowIfNull
(range);
ExtractMethod\UniqueNameGenerator.cs (3)
18
Contract.
ThrowIfNull
(semanticModel);
24
Contract.
ThrowIfNull
(contextNode);
25
Contract.
ThrowIfNull
(baseName);
FindUsages\DefinitionItem.cs (1)
250
Contract.
ThrowIfNull
(projectId);
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
50
Contract.
ThrowIfNull
(project);
FindUsages\IRemoteFindUsagesService.cs (1)
182
Contract.
ThrowIfNull
(document);
FullyQualify\AbstractFullyQualifyService.cs (2)
167
Contract.
ThrowIfNull
(rightSide);
197
Contract.
ThrowIfNull
(symbolResult.OriginalSymbol);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.ConstructorDelegatingCodeAction.cs (1)
58
Contract.
ThrowIfNull
(_state.DelegatedConstructor);
GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (2)
46
Contract.
ThrowIfNull
(_state.ClassType);
68
Contract.
ThrowIfNull
(classType);
GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.CodeAction.cs (1)
30
Contract.
ThrowIfNull
(state.ClassType);
GenerateMember\AbstractGenerateMemberService.cs (1)
141
Contract.
ThrowIfNull
(attributeNode);
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
88
Contract.
ThrowIfNull
(state.TypeToGenerateIn);
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (9)
115
Contract.
ThrowIfNull
(TypeToGenerateIn);
187
Contract.
ThrowIfNull
(TypeToGenerateIn);
188
Contract.
ThrowIfNull
(TypeToGenerateIn.BaseType);
209
Contract.
ThrowIfNull
(TypeToGenerateIn);
240
Contract.
ThrowIfNull
(TypeToGenerateIn);
523
Contract.
ThrowIfNull
(TypeToGenerateIn);
580
Contract.
ThrowIfNull
(TypeToGenerateIn);
615
Contract.
ThrowIfNull
(TypeToGenerateIn);
638
Contract.
ThrowIfNull
(TypeToGenerateIn);
GenerateType\AbstractGenerateTypeService.State.cs (1)
121
Contract.
ThrowIfNull
(generateTypeServiceStateOptions.NameOrMemberAccessExpression);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
150
Contract.
ThrowIfNull
(parameterSyntax);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
155
Contract.
ThrowIfNull
(parameterList);
462
Contract.
ThrowIfNull
(newMethodDeclaration);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
113
Contract.
ThrowIfNull
(type);
MetadataAsSource\AbstractMetadataAsSourceService.cs (1)
41
Contract.
ThrowIfNull
(rootNamespace);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (4)
250
Contract.
ThrowIfNull
(workspace);
309
Contract.
ThrowIfNull
(documentId);
387
Contract.
ThrowIfNull
(filePath);
398
Contract.
ThrowIfNull
(assemblyIdentity);
MetadataAsSource\MetadataAsSourceFileService.cs (3)
98
Contract.
ThrowIfNull
(_workspace);
209
Contract.
ThrowIfNull
(document.FilePath);
219
Contract.
ThrowIfNull
(_workspace);
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (1)
53
Contract.
ThrowIfNull
(containingType);
NamingStyleCodeFixProvider.cs (1)
53
Contract.
ThrowIfNull
(serializedNamingStyle);
PdbSourceDocument\PdbFileLocatorService.cs (1)
51
Contract.
ThrowIfNull
(pdbReaderProvider);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (3)
94
Contract.
ThrowIfNull
(telemetryMessage);
266
Contract.
ThrowIfNull
(navigateDocument);
353
Contract.
ThrowIfNull
(workspace);
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
39
Contract.
ThrowIfNull
(options);
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
62
Contract.
ThrowIfNull
(containingType);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
251
Contract.
ThrowIfNull
(initializer);
319
Contract.
ThrowIfNull
(containerWithConditionalReplaced);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
56
Contract.
ThrowIfNull
(propertySymbol);
266
Contract.
ThrowIfNull
(parent);
SignatureHelp\SignatureHelpItems.cs (1)
65
Contract.
ThrowIfNull
(items);
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
82
Contract.
ThrowIfNull
(options);
Snippets\RoslynLSPSnippetConverter.cs (2)
39
Contract.
ThrowIfNull
(textChangeText);
129
Contract.
ThrowIfNull
(textChangeText);
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
108
Contract.
ThrowIfNull
(snippetExpressionNode);
Snippets\SnippetProviders\AbstractConstructorSnippetProvider.cs (1)
38
Contract.
ThrowIfNull
(containingType);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (3)
113
Contract.
ThrowIfNull
(caretTarget);
114
Contract.
ThrowIfNull
(mainChangeNode);
234
Contract.
ThrowIfNull
(snippetExpressionNode);
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
68
Contract.
ThrowIfNull
(oldRoot);
69
Contract.
ThrowIfNull
(newRoot);
SolutionCrawler\SolutionCrawlerRegistrationService.cs (2)
77
Contract.
ThrowIfNull
(workspace.Kind);
137
Contract.
ThrowIfNull
(workspace.Kind);
SolutionCrawler\WorkCoordinator.AsyncDocumentWorkItemQueue.cs (2)
91
Contract.
ThrowIfNull
(lowPriorityDocumentId);
97
Contract.
ThrowIfNull
(item.DocumentId);
SolutionCrawler\WorkCoordinator.cs (10)
215
Contract.
ThrowIfNull
(args.ProjectId);
220
Contract.
ThrowIfNull
(args.ProjectId);
226
Contract.
ThrowIfNull
(args.ProjectId);
231
Contract.
ThrowIfNull
(args.DocumentId);
236
Contract.
ThrowIfNull
(args.DocumentId);
242
Contract.
ThrowIfNull
(args.DocumentId);
255
Contract.
ThrowIfNull
(args.ProjectId);
637
Contract.
ThrowIfNull
(_projectOrDocumentIds);
685
Contract.
ThrowIfNull
(_projectOrDocumentIds);
728
Contract.
ThrowIfNull
(_projectOrDocumentIds);
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (2)
116
Contract.
ThrowIfNull
(item.DocumentId);
184
Contract.
ThrowIfNull
(workItem.DocumentId);
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (1)
106
Contract.
ThrowIfNull
(item.DocumentId);
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (1)
259
Contract.
ThrowIfNull
(workItem.DocumentId);
SymbolMapping\SymbolMappingResult.cs (2)
16
Contract.
ThrowIfNull
(project);
17
Contract.
ThrowIfNull
(symbol);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
225
Contract.
ThrowIfNull
(newFieldTreeRoot);
UseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
73
Contract.
ThrowIfNull
(expression); // checked in analyzer.
UseExplicitTupleNameCodeFixProvider.cs (1)
50
Contract.
ThrowIfNull
(preferredName);
ValueTracking\SerializableValueTrackedItem.cs (1)
57
Contract.
ThrowIfNull
(symbolResolution.Symbol);
ValueTracking\ValueTrackedItem.cs (1)
51
Contract.
ThrowIfNull
(location.SourceTree);
Wrapping\AbstractCodeActionComputer.cs (2)
232
Contract.
ThrowIfNull
(nodeToFormat);
264
Contract.
ThrowIfNull
(rewrittenRoot);
Microsoft.CodeAnalysis.LanguageServer.Protocol (37)
Extensions\Extensions.cs (1)
27
Contract.
ThrowIfNull
(document.FilePath);
Extensions\ProtocolConversions.cs (4)
114
Contract.
ThrowIfNull
(context.TriggerCharacter);
126
Contract.
ThrowIfNull
(context.TriggerCharacter);
212
Contract.
ThrowIfNull
(textChange.NewText);
274
Contract.
ThrowIfNull
(textDiffService);
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
189
Contract.
ThrowIfNull
(solution);
Features\CodeFixes\CodeFixService.cs (3)
315
Contract.
ThrowIfNull
(solution);
962
Contract.
ThrowIfNull
(x);
963
Contract.
ThrowIfNull
(y);
Features\Diagnostics\DiagnosticService.cs (1)
314
Contract.
ThrowIfNull
(workspace);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.cs (1)
54
Contract.
ThrowIfNull
(analyzerService);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (1)
193
Contract.
ThrowIfNull
(result.DocumentIds);
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
65
Contract.
ThrowIfNull
(tree);
Handler\CodeActions\CodeActionResolveHandler.cs (4)
81
Contract.
ThrowIfNull
(codeActionToResolve);
181
Contract.
ThrowIfNull
(oldTextDoc);
182
Contract.
ThrowIfNull
(newTextDoc);
192
Contract.
ThrowIfNull
(textDiffService);
Handler\CodeActions\CodeActionsHandler.cs (1)
56
Contract.
ThrowIfNull
(document);
Handler\Completion\CompletionHandler.cs (3)
66
Contract.
ThrowIfNull
(document);
67
Contract.
ThrowIfNull
(context.Solution);
284
Contract.
ThrowIfNull
(mostUsedCommitCharacters);
Handler\Completion\CompletionResolveHandler.cs (2)
148
Contract.
ThrowIfNull
(newText);
182
Contract.
ThrowIfNull
(request.Data);
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
208
Contract.
ThrowIfNull
(context.Solution);
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (2)
141
Contract.
ThrowIfNull
(context.Solution);
165
Contract.
ThrowIfNull
(context.Solution);
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (2)
35
Contract.
ThrowIfNull
(context.Workspace);
36
Contract.
ThrowIfNull
(context.Solution);
Handler\References\FindAllReferencesHandler.cs (2)
55
Contract.
ThrowIfNull
(document);
56
Contract.
ThrowIfNull
(workspace);
Handler\Rename\RenameHandler.cs (1)
41
Contract.
ThrowIfNull
(document);
Handler\SemanticTokens\SemanticTokensRangeHandler.cs (1)
36
Contract.
ThrowIfNull
(request.TextDocument);
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
164
Contract.
ThrowIfNull
(_semanticTokenRefreshQueue);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (2)
134
Contract.
ThrowIfNull
(context.Solution);
171
Contract.
ThrowIfNull
(context.Solution);
Handler\SpellCheck\WorkspaceSpellCheckHandler.cs (1)
33
Contract.
ThrowIfNull
(context.Solution);
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
56
Contract.
ThrowIfNull
(context.Solution);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (9)
CodeActions\RunCodeActionsTests.cs (1)
76
Contract.
ThrowIfNull
(result);
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (1)
105
Contract.
ThrowIfNull
(lspDocument);
InlineCompletions\InlineCompletionsTests.cs (1)
308
Contract.
ThrowIfNull
(response);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (3)
151
Contract.
ThrowIfNull
(miscWorkspace);
152
Contract.
ThrowIfNull
(miscDocument);
226
Contract.
ThrowIfNull
(result);
Ordering\RequestOrderingTests.cs (2)
260
Contract.
ThrowIfNull
(response);
264
Contract.
ThrowIfNull
(solution);
SemanticTokens\AbstractSemanticTokensTests.cs (1)
32
Contract.
ThrowIfNull
(result);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (3)
Generator.cs (1)
106
Contract.
ThrowIfNull
(projectPath);
Program.cs (1)
107
Contract.
ThrowIfNull
(binLog);
VisualStudioMefHostServices.cs (1)
28
Contract.
ThrowIfNull
(exportProvider);
Microsoft.CodeAnalysis.Remote.ServiceHub (11)
Host\RemoteDocumentDifferenceService.cs (2)
64
Contract.
ThrowIfNull
(oldRoot);
65
Contract.
ThrowIfNull
(newRoot);
Host\RemoteWorkspace.cs (1)
112
Contract.
ThrowIfNull
(solutionChecksum);
Host\RemoteWorkspace.InFlightSolution.cs (1)
110
Contract.
ThrowIfNull
(updatePrimaryBranchAsync);
Host\RemoteWorkspace.SolutionCreator.cs (1)
421
Contract.
ThrowIfNull
(document);
Host\Storage\RemoteCloudCachePersistentStorageService.cs (1)
63
Contract.
ThrowIfNull
(cacheService);
Services\BrokeredServiceBase.cs (1)
60
Contract.
ThrowIfNull
(traceSource);
Services\BrokeredServiceBase.FactoryBase.cs (1)
133
Contract.
ThrowIfNull
(descriptor.ClientInterface);
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
247
Contract.
ThrowIfNull
(analyzerId);
Services\NavigationBar\RemoteNavigationBarItemService.cs (1)
33
Contract.
ThrowIfNull
(document);
Services\SemanticClassification\RemoteSemanticClassificationService.cs (1)
35
Contract.
ThrowIfNull
(document);
Microsoft.CodeAnalysis.Remote.Workspaces (3)
BrokeredServiceConnection.cs (1)
98
Contract.
ThrowIfNull
(service);
RemoteCallback.cs (1)
54
Contract.
ThrowIfNull
(rental.Proxy);
VisualStudioMefHostServices.cs (1)
28
Contract.
ThrowIfNull
(exportProvider);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (14)
AutomaticEndConstructCorrection\AutomaticEndConstructCorrector.vb (1)
26
Contract.
ThrowIfNull
(subjectBuffer)
AutomaticEndConstructCorrection\LetterOnlyTrackingSpan.vb (1)
20
Contract.
ThrowIfNull
(span.Snapshot)
EndConstructGeneration\EndConstructState.vb (1)
14
ThrowIfNull
(syntaxTree)
EndConstructGeneration\ReplaceSpanResult.vb (1)
20
ThrowIfNull
(replacementText)
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (4)
38
ThrowIfNull
(smartIndentationService)
39
ThrowIfNull
(undoHistoryRegistry)
40
ThrowIfNull
(editorOperationsFactoryService)
41
ThrowIfNull
(editorOptionsFactoryService)
LineCommit\CommitBufferManager.DirtyState.vb (2)
15
Contract.
ThrowIfNull
(baseDocument)
16
Contract.
ThrowIfNull
(baseSnapshot)
LineCommit\CommitBufferManager.vb (4)
48
Contract.
ThrowIfNull
(buffer)
49
Contract.
ThrowIfNull
(commitFormatter)
50
Contract.
ThrowIfNull
(inlineRenameService)
333
Contract.
ThrowIfNull
(manager)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
Utils.vb (2)
116
Contract.
ThrowIfNull
(syntaxTree)
117
Contract.
ThrowIfNull
(node)
Microsoft.CodeAnalysis.VisualBasic.Features (32)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (5)
661
Contract.
ThrowIfNull
(oldDeclaration.Parent)
662
Contract.
ThrowIfNull
(newDeclaration.Parent)
1330
Contract.
ThrowIfNull
(oldNode)
1331
Contract.
ThrowIfNull
(newNode)
1332
Contract.
ThrowIfNull
(oldModel)
ExtractMethod\Extensions.vb (7)
28
Contract.
ThrowIfNull
(node)
40
Contract.
ThrowIfNull
(node)
57
Contract.
ThrowIfNull
(node)
58
Contract.
ThrowIfNull
(statement)
300
Contract.
ThrowIfNull
(node)
326
Contract.
ThrowIfNull
(node)
373
Contract.
ThrowIfNull
(tuple.Item1)
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (4)
17
Contract.
ThrowIfNull
(semanticModel)
59
Contract.
ThrowIfNull
(statement)
65
Contract.
ThrowIfNull
(type)
100
Contract.
ThrowIfNull
(statement)
ExtractMethod\VisualBasicMethodExtractor.vb (2)
54
Contract.
ThrowIfNull
(enclosingTopLevelNode)
89
Contract.
ThrowIfNull
(type)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (5)
27
Contract.
ThrowIfNull
(outmostCallSiteContainer)
28
Contract.
ThrowIfNull
(variableToRemoveMap)
29
Contract.
ThrowIfNull
(firstStatementOrFieldToReplace)
30
Contract.
ThrowIfNull
(lastStatementOrFieldToReplace)
310
Contract.
ThrowIfNull
(statement)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (1)
102
Contract.
ThrowIfNull
(container)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (1)
151
Contract.
ThrowIfNull
(declStatement)
ExtractMethod\VisualBasicSelectionResult.vb (4)
31
Contract.
ThrowIfNull
(document)
118
Contract.
ThrowIfNull
(Me.SemanticDocument)
246
Contract.
ThrowIfNull
(statement)
261
Contract.
ThrowIfNull
(lastStatement)
LineSeparators\VisualBasicLineSeparatorService.vb (2)
104
Contract.
ThrowIfNull
(spans)
152
Contract.
ThrowIfNull
(node)
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
44
Contract.
ThrowIfNull
(semanticModel)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (21)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
203
Contract.
ThrowIfNull
(methodDeclaration)
204
Contract.
ThrowIfNull
(_semanticModel)
CodeGeneration\VisualBasicCodeGenerationHelpers.vb (1)
199
ThrowIfNull
(symbol)
Formatting\Engine\Trivia\TriviaDataFactory.ComplexTrivia.vb (1)
22
Contract.
ThrowIfNull
(treeInfo)
Formatting\Engine\Trivia\TriviaDataFactory.FormattedComplexTrivia.vb (3)
27
Contract.
ThrowIfNull
(context)
28
Contract.
ThrowIfNull
(formattingRules)
29
Contract.
ThrowIfNull
(originalString)
Formatting\Engine\Trivia\TriviaDataFactory.ModifiedComplexTrivia.vb (1)
19
Contract.
ThrowIfNull
(original)
Formatting\Engine\Trivia\TriviaDataFactory.TriviaRewriter.vb (2)
24
Contract.
ThrowIfNull
(node)
25
Contract.
ThrowIfNull
(map)
Formatting\Engine\VisualBasicFormatEngine.vb (1)
34
Contract.
ThrowIfNull
(tokenStream)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
239
Contract.
ThrowIfNull
(syntaxTree)
Simplification\Reducers\AbstractVisualBasicReducer.AbstractReductionRewriter.vb (1)
53
Contract.
ThrowIfNull
(ParseOptions)
Simplification\VisualBasicSimplificationService.vb (2)
78
Contract.
ThrowIfNull
(nodeToSpeculate)
79
Contract.
ThrowIfNull
(originalNode)
StringExtensions.vb (2)
62
Contract.
ThrowIfNull
(text)
91
Contract.
ThrowIfNull
(text)
SyntaxNodeExtensions.vb (1)
114
Contract.
ThrowIfNull
(node)
VisualBasicRemoveUnnecessaryImportsService.vb (1)
32
Contract.
ThrowIfNull
(formattingOptions)
VisualBasicSemanticFacts.vb (1)
134
Contract.
ThrowIfNull
(model)
VisualBasicSmartTokenFormatter.vb (1)
26
Contract.
ThrowIfNull
(root)
Microsoft.CodeAnalysis.Workspaces (209)
AbstractAggregatedFormattingResult.cs (2)
32
Contract.
ThrowIfNull
(node);
33
Contract.
ThrowIfNull
(formattingResults);
AbstractDocumentationCommentService.cs (1)
52
Contract.
ThrowIfNull
(documentationComment);
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);
AbstractFormatEngine.OperationApplier.cs (1)
271
Contract.
ThrowIfNull
(previousChangesMap);
AbstractTriviaDataFactory.AbstractComplexTrivia.cs (1)
27
Contract.
ThrowIfNull
(treeInfo);
AbstractTriviaDataFactory.cs (1)
25
Contract.
ThrowIfNull
(treeInfo);
AbstractTriviaDataFactory.ModifiedWhitespace.cs (1)
27
Contract.
ThrowIfNull
(original);
AbstractTriviaFormatter.cs (3)
72
Contract.
ThrowIfNull
(context);
73
Contract.
ThrowIfNull
(formattingRules);
74
Contract.
ThrowIfNull
(originalString);
AlignTokensOperation.cs (1)
18
Contract.
ThrowIfNull
(tokens);
AnnotationTable.cs (1)
108
Contract.
ThrowIfNull
(ra.Data);
AsyncLazy`1.cs (3)
114
Contract.
ThrowIfNull
(asynchronousComputeFunction);
248
Contract.
ThrowIfNull
(_synchronousComputeFunction);
361
Contract.
ThrowIfNull
(_asynchronousComputeFunction);
BottomUpBaseIndentationFinder.cs (1)
34
Contract.
ThrowIfNull
(formattingRules);
ChainedFormattingRules.cs (1)
33
Contract.
ThrowIfNull
(formattingRules);
Classification\IRemoteSemanticClassificationService.cs (2)
94
Contract.
ThrowIfNull
(ClassificationTypes);
95
Contract.
ThrowIfNull
(ClassificationTriples);
CodeCleanup\AbstractCodeCleanerService.cs (1)
669
Contract.
ThrowIfNull
(annotation.Data);
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
315
Contract.
ThrowIfNull
(project);
CodeGenerationHelpers.cs (1)
182
Contract.
ThrowIfNull
(attribute);
CodeGenerationOptions.cs (1)
138
Contract.
ThrowIfNull
(document.Project.ParseOptions);
CodeRefactorings\FixAllOccurences\FixAllState.cs (2)
101
Contract.
ThrowIfNull
(Document);
112
Contract.
ThrowIfNull
(Document);
CommonFormattingHelpers.cs (5)
44
Contract.
ThrowIfNull
(root);
80
Contract.
ThrowIfNull
(root);
144
Contract.
ThrowIfNull
(tree);
307
Contract.
ThrowIfNull
(parentNode);
362
Contract.
ThrowIfNull
(root);
Diagnostics\DiagnosticAnalysisResult.cs (4)
219
Contract.
ThrowIfNull
(_syntaxLocals);
220
Contract.
ThrowIfNull
(_semanticLocals);
221
Contract.
ThrowIfNull
(_nonLocals);
257
Contract.
ThrowIfNull
(map);
Diagnostics\DiagnosticDataLocation.cs (1)
62
Contract.
ThrowIfNull
(unmappedFileSpan.Path);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
181
Contract.
ThrowIfNull
(language);
Editing\SyntaxEditor.cs (1)
303
Contract.
ThrowIfNull
(node);
Editing\SyntaxGenerator.cs (3)
1027
Contract.
ThrowIfNull
(attribute.AttributeClass);
1531
Contract.
ThrowIfNull
(currentFirst);
1903
Contract.
ThrowIfNull
(name);
ErrorReporting\InfoBarUI.cs (1)
20
Contract.
ThrowIfNull
(title);
FindSymbols\Declarations\DeclarationFinder.cs (1)
87
Contract.
ThrowIfNull
(info);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
33
Contract.
ThrowIfNull
(query.Name);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (2)
121
Contract.
ThrowIfNull
(index);
124
Contract.
ThrowIfNull
(_stringValue);
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
263
Contract.
ThrowIfNull
(symbolOrigination.assembly);
264
Contract.
ThrowIfNull
(project);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
347
Contract.
ThrowIfNull
(symbolTreeInfo);
FindSymbols\FindReferences\Finders\AbstractTypeParameterSymbolReferenceFinder.cs (1)
56
Contract.
ThrowIfNull
(token.Parent?.Parent);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
45
Contract.
ThrowIfNull
(underlyingNamedType);
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
57
Contract.
ThrowIfNull
(symbol.DeclaringMethod);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
121
Contract.
ThrowIfNull
(searchSymbol);
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
32
Contract.
ThrowIfNull
(index);
FindSymbols\SymbolFinder_Helpers.cs (1)
148
Contract.
ThrowIfNull
(equivalentTypesWithDifferingAssemblies);
FindSymbols\SymbolTree\MetadataInfo.cs (1)
31
Contract.
ThrowIfNull
(info);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
156
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)
85
Contract.
ThrowIfNull
(node);
Formatting\AbstractFormattingService.cs (1)
20
Contract.
ThrowIfNull
(syntaxFormattingOptions);
Formatting\Formatter.cs (1)
138
Contract.
ThrowIfNull
(formattingOptions);
FormattingContext.cs (3)
59
Contract.
ThrowIfNull
(engine);
60
Contract.
ThrowIfNull
(tokenStream);
125
Contract.
ThrowIfNull
(operations);
FormattingContext.InitialContextFinder.cs (3)
32
Contract.
ThrowIfNull
(tokenStream);
33
Contract.
ThrowIfNull
(formattingRules);
34
Contract.
ThrowIfNull
(rootNode);
ImmutableHashMapExtensions.cs (2)
28
Contract.
ThrowIfNull
(valueProvider);
31
Contract.
ThrowIfNull
(map);
ISymbolExtensions_Accessibility.cs (7)
88
Contract.
ThrowIfNull
(symbol);
89
Contract.
ThrowIfNull
(within);
183
Contract.
ThrowIfNull
(type);
221
Contract.
ThrowIfNull
(assembly);
258
Contract.
ThrowIfNull
(containingType);
435
Contract.
ThrowIfNull
(withinType);
436
Contract.
ThrowIfNull
(originalContainingType);
ISyntaxFactsExtensions.cs (1)
29
Contract.
ThrowIfNull
(node);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (3)
338
Contract.
ThrowIfNull
(classOrStructType);
339
Contract.
ThrowIfNull
(interfacesOrAbstractClasses);
340
Contract.
ThrowIfNull
(isImplemented);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs\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);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
69
Contract.
ThrowIfNull
(syntaxTree);
131
Contract.
ThrowIfNull
(syntaxTree);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
54
Contract.
ThrowIfNull
(documentForLocation);
ListExtensions.cs (2)
68
Contract.
ThrowIfNull
(list);
69
Contract.
ThrowIfNull
(predicate);
LocationExtensions.cs (1)
15
Contract.
ThrowIfNull
(location.SourceTree);
Logger.LogBlock.cs (1)
21
Contract.
ThrowIfNull
(s_currentLogger);
PublicOptionFactory.cs (4)
101
Contract.
ThrowIfNull
(option.PublicOption);
107
Contract.
ThrowIfNull
(option.PublicOption);
113
Contract.
ThrowIfNull
(option.PublicOption);
119
Contract.
ThrowIfNull
(option.PublicOption);
ReferenceCountedDisposable.cs (1)
294
Contract.
ThrowIfNull
(weakInstance);
Remote\RemoteServiceCallbackDispatchers.cs (1)
24
Contract.
ThrowIfNull
(serviceInterface);
Rename\ConflictEngine\ConflictResolver.cs (6)
193
Contract.
ThrowIfNull
(implicitUsageConflict.SourceTree);
217
Contract.
ThrowIfNull
(implicitConflict.SourceTree);
243
Contract.
ThrowIfNull
(projectOpt);
295
Contract.
ThrowIfNull
(projectOpt);
310
Contract.
ThrowIfNull
(languageConflict.SourceTree);
337
Contract.
ThrowIfNull
(oldLocation.SourceTree);
Rename\ConflictEngine\MutableConflictResolution.cs (1)
117
Contract.
ThrowIfNull
(directory);
Rename\IRemoteRenamerService.cs (2)
157
Contract.
ThrowIfNull
(serializableLocations);
239
Contract.
ThrowIfNull
(Resolution);
Rename\LightweightRenameLocations.cs (2)
80
Contract.
ThrowIfNull
(solution);
81
Contract.
ThrowIfNull
(symbol);
Rename\Renamer.cs (4)
163
Contract.
ThrowIfNull
(solution);
164
Contract.
ThrowIfNull
(symbol);
211
Contract.
ThrowIfNull
(solution);
212
Contract.
ThrowIfNull
(symbol);
Rename\RenameUtilities.cs (3)
307
Contract.
ThrowIfNull
(definitionSymbol);
318
Contract.
ThrowIfNull
(symbol);
319
Contract.
ThrowIfNull
(solution);
Rename\SymbolicRenameLocations.cs (1)
68
Contract.
ThrowIfNull
(symbol);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
266
Contract.
ThrowIfNull
(aliasLocation.SourceTree);
285
Contract.
ThrowIfNull
(aliasLocation.SourceTree);
Rename\SymbolicRenameLocations.SearchResult.cs (1)
24
Contract.
ThrowIfNull
(locations);
SemanticModelExtensions.cs (1)
109
Contract.
ThrowIfNull
(semanticModel.ParentModel);
Shared\Extensions\DocumentExtensions.cs (1)
19
Contract.
ThrowIfNull
(result);
Shared\Extensions\ISymbolExtensions.cs (1)
370
Contract.
ThrowIfNull
(candidate);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
179
Contract.
ThrowIfNull
(type);
Shared\Extensions\TelemetryExtensions.cs (1)
18
Contract.
ThrowIfNull
(type.FullName);
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
22
Contract.
ThrowIfNull
(name);
SimplificationHelpers.cs (1)
66
Contract.
ThrowIfNull
(expression);
SourceTextExtensions_SharedWithCodeStyle.cs (1)
19
Contract.
ThrowIfNull
(text);
StackExtensions.cs (2)
34
Contract.
ThrowIfNull
(stack);
35
Contract.
ThrowIfNull
(range);
Storage\AbstractPersistentStorageService.cs (1)
84
Contract.
ThrowIfNull
(storage);
Storage\SQLite\v2\SQLiteConnectionPoolService.cs (2)
139
Contract.
ThrowIfNull
(directoryName);
150
Contract.
ThrowIfNull
(directory);
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
59
Contract.
ThrowIfNull
(solutionKey.FilePath);
SymbolKey.BuiltinOperatorSymbolKey.cs (1)
48
Contract.
ThrowIfNull
(returnTypeSymbol);
SymbolKey.SymbolKeyReader.cs (1)
126
Contract.
ThrowIfNull
(result);
SyntaxNodeExtensions.cs (6)
102
Contract.
ThrowIfNull
(node);
292
Contract.
ThrowIfNull
(root);
293
Contract.
ThrowIfNull
(pairs);
306
Contract.
ThrowIfNull
(root);
307
Contract.
ThrowIfNull
(pairs);
315
Contract.
ThrowIfNull
(nodes);
TemporaryStorage\TemporaryStorageServiceFactory.cs (1)
160
Contract.
ThrowIfNull
(_name);
TokenData.cs (1)
25
Contract.
ThrowIfNull
(tokenStream);
TokenPairWithOperations.cs (1)
28
Contract.
ThrowIfNull
(tokenStream);
TokenStream.cs (3)
237
Contract.
ThrowIfNull
(data);
243
Contract.
ThrowIfNull
(data);
249
Contract.
ThrowIfNull
(data);
TreeData.cs (1)
42
Contract.
ThrowIfNull
(root);
TreeData.NodeAndText.cs (1)
20
Contract.
ThrowIfNull
(text);
Utilities\Documentation\XmlDocumentationProvider.cs (2)
106
Contract.
ThrowIfNull
(xmlDocCommentBytes);
155
Contract.
ThrowIfNull
(filePath);
Utilities\TaskQueue.cs (2)
25
Contract.
ThrowIfNull
(operationListener);
26
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\PersistentStorage\IPersistentStorageConfiguration.cs (1)
54
Contract.
ThrowIfNull
(fileName);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
200
Contract.
ThrowIfNull
(documentInfo.FilePath);
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
811
Contract.
ThrowIfNull
(providerForFileInfo);
1302
Contract.
ThrowIfNull
(remainingMetadataReferences);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
448
Contract.
ThrowIfNull
(projectWithMetadataReference);
449
Contract.
ThrowIfNull
(referencedProject);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
218
Contract.
ThrowIfNull
(sender);
Workspace\Solution\Document.cs (2)
291
Contract.
ThrowIfNull
(result);
485
Contract.
ThrowIfNull
(_cachedOptions);
Workspace\Solution\DocumentState.cs (4)
72
Contract.
ThrowIfNull
(options);
159
Contract.
ThrowIfNull
(tree);
231
Contract.
ThrowIfNull
(newTree);
521
Contract.
ThrowIfNull
(_options);
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
36
Contract.
ThrowIfNull
(siblingTreeSource);
Workspace\Solution\Project.cs (2)
38
Contract.
ThrowIfNull
(solution);
39
Contract.
ThrowIfNull
(projectState);
Workspace\Solution\ProjectDependencyGraph.cs (2)
92
Contract.
ThrowIfNull
(transitiveReferencesMap);
93
Contract.
ThrowIfNull
(reverseTransitiveReferencesMap);
Workspace\Solution\ProjectReference.cs (1)
25
Contract.
ThrowIfNull
(projectId);
Workspace\Solution\ProjectState.cs (3)
96
Contract.
ThrowIfNull
(projectInfo);
97
Contract.
ThrowIfNull
(languageServices);
287
Contract.
ThrowIfNull
(projectDirectory);
Workspace\Solution\RecoverableTextAndVersion.cs (2)
177
Contract.
ThrowIfNull
(_storage);
187
Contract.
ThrowIfNull
(_storage);
Workspace\Solution\Solution.cs (3)
130
Contract.
ThrowIfNull
(state);
219
Contract.
ThrowIfNull
(documentId);
234
Contract.
ThrowIfNull
(documentId);
Workspace\Solution\SolutionState.CompilationTracker.CompilationTrackerState.cs (2)
271
Contract.
ThrowIfNull
(finalCompilation);
333
Contract.
ThrowIfNull
(projectId);
Workspace\Solution\SolutionState.CompilationTracker.cs (3)
55
Contract.
ThrowIfNull
(project);
821
Contract.
ThrowIfNull
(stateMember);
823
Contract.
ThrowIfNull
(additionalTextsMember);
Workspace\Solution\SolutionState.cs (3)
399
Contract.
ThrowIfNull
(result);
423
Contract.
ThrowIfNull
(projectState);
1921
Contract.
ThrowIfNull
(replacingItemTracker);
Workspace\Solution\SolutionState.SymbolToProjectId.cs (1)
38
Contract.
ThrowIfNull
(syntaxTree);
Workspace\Solution\SolutionState_Checksum.cs (1)
56
Contract.
ThrowIfNull
(projectId);
Workspace\Solution\TextDocument.cs (2)
27
Contract.
ThrowIfNull
(project);
28
Contract.
ThrowIfNull
(state);
Workspace\Workspace.cs (4)
342
Contract.
ThrowIfNull
(transformation);
1078
Contract.
ThrowIfNull
(newDocument);
1410
Contract.
ThrowIfNull
(projectChanges.OldProject.CompilationOptions);
1411
Contract.
ThrowIfNull
(projectChanges.NewProject.CompilationOptions);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
476
Contract.
ThrowIfNull
(dir);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Remote\InProcRemostHostClient.cs (2)
57
Contract.
ThrowIfNull
(client);
143
Contract.
ThrowIfNull
(options.ClientRpcTarget);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
685
Contract.
ThrowIfNull
(document);
Microsoft.VisualStudio.IntegrationTest.Utilities (29)
AutomationElementHelper.cs (1)
57
Contract.
ThrowIfNull
(element);
InProcess\Editor_InProc.cs (2)
74
Contract.
ThrowIfNull
(textViewHost);
234
Contract.
ThrowIfNull
(subjectBuffer);
InProcess\InteractiveWindow_InProc.cs (7)
52
Contract.
ThrowIfNull
(_interactiveWindow);
59
Contract.
ThrowIfNull
(_interactiveWindow);
65
Contract.
ThrowIfNull
(_interactiveWindow);
71
Contract.
ThrowIfNull
(_interactiveWindow);
178
Contract.
ThrowIfNull
(_interactiveWindow);
217
Contract.
ThrowIfNull
(_interactiveWindow);
262
Contract.
ThrowIfNull
(_interactiveWindow);
InProcess\SolutionExplorer_InProc.cs (10)
90
Contract.
ThrowIfNull
(_solution);
91
Contract.
ThrowIfNull
(_fileName);
176
Contract.
ThrowIfNull
(_solution);
254
Contract.
ThrowIfNull
(_solution);
261
Contract.
ThrowIfNull
(_solution);
475
Contract.
ThrowIfNull
(_solution);
831
Contract.
ThrowIfNull
(_solution);
873
Contract.
ThrowIfNull
(_solution);
898
Contract.
ThrowIfNull
(item);
910
Contract.
ThrowIfNull
(item);
InProcess\TestWaitingService.cs (1)
33
Contract.
ThrowIfNull
(featureWaiter);
InProcess\TextViewWindow_InProc.cs (2)
268
Contract.
ThrowIfNull
(session);
284
Contract.
ThrowIfNull
(session);
IntegrationHelper.cs (1)
276
Contract.
ThrowIfNull
(moniker);
OutOfProcess\Editor_OutOfProc.Verifier.cs (2)
159
Contract.
ThrowIfNull
(currentParameter);
169
Contract.
ThrowIfNull
(currentParameters);
OutOfProcess\TextViewWindow_OutOfProc.Verifier.cs (1)
95
Contract.
ThrowIfNull
(applyFix);
VisualStudioInstanceFactory.cs (2)
125
Contract.
ThrowIfNull
(_currentlyRunningInstance);
195
Contract.
ThrowIfNull
(_currentlyRunningInstance);
Microsoft.VisualStudio.LanguageServices (79)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
199
Contract.
ThrowIfNull
(workspace);
206
Contract.
ThrowIfNull
(document);
ColorSchemes\ColorSchemeApplier.ClassificationVerifier.cs (1)
165
Contract.
ThrowIfNull
(_fontAndColorUtilities);
DebuggerIntelliSense\DebuggerIntellisenseFilter.cs (1)
156
Contract.
ThrowIfNull
(_context);
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
317
Contract.
ThrowIfNull
(_projectSystemNotificationQueue);
Diagnostics\DiagnosticProgressReporter.cs (1)
167
Contract.
ThrowIfNull
(_taskCenterService);
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (2)
38
Contract.
ThrowIfNull
(extensionManager);
39
Contract.
ThrowIfNull
(typeIExtensionContent);
DocumentationComments\VisualStudioDocumentationProvider.cs (2)
27
Contract.
ThrowIfNull
(memberIndexService);
28
Contract.
ThrowIfNull
(filePath);
ErrorReporting\VisualStudioInfoBar.cs (1)
129
Contract.
ThrowIfNull
(onClose);
FindReferences\Entries\SimpleMessageEntry.cs (1)
55
Contract.
ThrowIfNull
(_navigationBucket);
Implementation\AbstractEditorFactory.cs (2)
74
Contract.
ThrowIfNull
(_oleServiceProvider);
160
Contract.
ThrowIfNull
(_oleServiceProvider);
Implementation\AbstractOleCommandTarget.cs (4)
30
Contract.
ThrowIfNull
(wpfTextView);
31
Contract.
ThrowIfNull
(componentModel);
59
Contract.
ThrowIfNull
(vsTextView);
64
Contract.
ThrowIfNull
(nextCommandTarget);
InheritanceMargin\InheritanceMarginTaggerProvider.cs (2)
59
Contract.
ThrowIfNull
(textView);
78
Contract.
ThrowIfNull
(textView);
LanguageService\AbstractLanguageService`2.cs (2)
179
Contract.
ThrowIfNull
(textView);
214
Contract.
ThrowIfNull
(openDocument);
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (3)
49
Contract.
ThrowIfNull
(languageService);
50
Contract.
ThrowIfNull
(languageServiceProvider);
320
Contract.
ThrowIfNull
(tree);
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
36
Contract.
ThrowIfNull
(serviceProvider);
Options\LocalUserRegistryOptionPersister.cs (5)
38
Contract.
ThrowIfNull
(localRegistry);
133
Contract.
ThrowIfNull
(_registryKey);
144
Contract.
ThrowIfNull
(value);
151
Contract.
ThrowIfNull
(value);
159
Contract.
ThrowIfNull
(value);
Options\NamingPreferencesReadFallback.cs (1)
26
Contract.
ThrowIfNull
(language);
Options\VisualStudioSettingsOptionPersister.cs (3)
66
Contract.
ThrowIfNull
(_settingManager);
105
Contract.
ThrowIfNull
(_settingManager);
197
Contract.
ThrowIfNull
(_settingManager);
PreviewPane\PreviewPane.xaml.cs (1)
77
Contract.
ThrowIfNull
(helpLinkToolTipText);
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
70
Contract.
ThrowIfNull
(hierarchy);
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.MetadataCache.cs (1)
78
Contract.
ThrowIfNull
(newMetadata);
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
291
Contract.
ThrowIfNull
(languageInformation);
RoslynActivityLogger.cs (2)
32
Contract.
ThrowIfNull
(traceSource);
43
Contract.
ThrowIfNull
(traceSource);
RoslynPackage.cs (5)
362
Contract.
ThrowIfNull
(globalNotificationService);
376
Contract.
ThrowIfNull
(gate);
377
Contract.
ThrowIfNull
(globalNotificationService);
395
Contract.
ThrowIfNull
(gate);
396
Contract.
ThrowIfNull
(globalNotificationService);
Snippets\AbstractSnippetExpansionClient.cs (2)
1013
Contract.
ThrowIfNull
(expansion);
1040
Contract.
ThrowIfNull
(vsTextView);
SolutionEventMonitor.cs (1)
30
Contract.
ThrowIfNull
(notificationService);
Storage\VisualStudioCloudCacheStorageService.cs (1)
66
Contract.
ThrowIfNull
(cacheService);
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
54
Contract.
ThrowIfNull
(serviceProvider);
TableDataSource\DiagnosticTableItem.cs (1)
27
Contract.
ThrowIfNull
(data);
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
219
Contract.
ThrowIfNull
(_tableControl);
302
Contract.
ThrowIfNull
(project);
TableDataSource\TableEntriesFactory.cs (1)
222
Contract.
ThrowIfNull
(primary);
TableDataSource\TableItem.cs (3)
28
Contract.
ThrowIfNull
(workspace);
29
Contract.
ThrowIfNull
(projectNames);
30
Contract.
ThrowIfNull
(projectGuids);
TableDataSource\TaskList\VisualStudioTaskListTable.cs (3)
125
Contract.
ThrowIfNull
(args.Solution);
126
Contract.
ThrowIfNull
(args.DocumentId);
133
Contract.
ThrowIfNull
(data.Solution);
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
366
Contract.
ThrowIfNull
(projectGroup.Key);
TaskList\HostDiagnosticUpdateSource.cs (6)
75
Contract.
ThrowIfNull
(projectId);
76
Contract.
ThrowIfNull
(key);
77
Contract.
ThrowIfNull
(items);
89
Contract.
ThrowIfNull
(projectId);
113
Contract.
ThrowIfNull
(projectId);
114
Contract.
ThrowIfNull
(key);
Telemetry\FileLogger.cs (1)
57
Contract.
ThrowIfNull
(e.Value);
Telemetry\VisualStudioWorkspaceTelemetryService.cs (1)
57
Contract.
ThrowIfNull
(settings);
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (1)
63
Contract.
ThrowIfNull
(serviceProvider);
ValueTracking\ValueTrackingCommandHandler.cs (1)
172
Contract.
ThrowIfNull
(roslynPackage);
Venus\VenusCommandFilter.cs (3)
31
Contract.
ThrowIfNull
(wpfTextView);
32
Contract.
ThrowIfNull
(subjectBuffer);
33
Contract.
ThrowIfNull
(nextCommandTarget);
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
60
Contract.
ThrowIfNull
(visualStudioWorkspace);
Workspace\SourceGeneratedFileManager.cs (1)
287
Contract.
ThrowIfNull
(sourceGeneratedDocument);
Workspace\VisualStudioActiveDocumentTracker.cs (1)
146
Contract.
ThrowIfNull
(frame);
Workspace\VisualStudioDocumentNavigationService.cs (1)
428
Contract.
ThrowIfNull
(textBuffer);
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CodeModel\CSharpCodeModelService.cs (12)
968
Contract.
ThrowIfNull
(symbol);
1734
Contract.
ThrowIfNull
(parsedArgumentList);
1761
Contract.
ThrowIfNull
(node.Parent);
2723
Contract.
ThrowIfNull
(typeSymbol);
2756
Contract.
ThrowIfNull
(fieldDeclaration);
2766
Contract.
ThrowIfNull
(newFieldDeclaration);
2795
Contract.
ThrowIfNull
(attributeList);
2813
Contract.
ThrowIfNull
(newAttributeList);
2822
Contract.
ThrowIfNull
(argumentList);
2824
Contract.
ThrowIfNull
(newArgumentList);
2832
Contract.
ThrowIfNull
(parameterList);
2834
Contract.
ThrowIfNull
(newParameterList);
Microsoft.VisualStudio.LanguageServices.Implementation (11)
CodeModel\AbstractCodeModelObject_CodeGen.cs (3)
50
Contract.
ThrowIfNull
(method);
64
Contract.
ThrowIfNull
(method);
170
Contract.
ThrowIfNull
(method);
CodeModel\AbstractCodeModelService.cs (4)
424
Contract.
ThrowIfNull
(node.Parent);
818
Contract.
ThrowIfNull
(typeSymbol);
826
Contract.
ThrowIfNull
(typeSymbol);
1035
Contract.
ThrowIfNull
(annotatedNode);
CodeModel\ProjectCodeModel.cs (2)
57
Contract.
ThrowIfNull
(_projectId);
58
Contract.
ThrowIfNull
(_visualStudioWorkspace);
RoslynVisualStudioWorkspace.cs (1)
87
Contract.
ThrowIfNull
(textDocument.FilePath);
SolutionExplorer\AnalyzerReferenceManager.cs (1)
64
Contract.
ThrowIfNull
(_tracker.SelectedHierarchy);
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (2)
InProcess\EditorInProcess.cs (1)
147
Contract.
ThrowIfNull
(subjectBuffer);
IntegrationHelper.cs (1)
276
Contract.
ThrowIfNull
(moniker);
Microsoft.VisualStudio.LanguageServices.Xaml (7)
Implementation\LanguageServer\Handler\Commands\CreateEventCommandHandler.cs (1)
47
Contract.
ThrowIfNull
(request.Arguments);
Implementation\LanguageServer\Handler\Completion\CompletionResolveHandler.cs (1)
48
Contract.
ThrowIfNull
(context.Solution);
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (2)
111
Contract.
ThrowIfNull
(sourceDefinition.FilePath);
153
Contract.
ThrowIfNull
(symbolDefinition.Symbol);
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
64
Contract.
ThrowIfNull
(context.Solution);
Implementation\LanguageServer\Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
43
Contract.
ThrowIfNull
(context.Solution);
Implementation\LanguageServer\Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
56
Contract.
ThrowIfNull
(result.TextChange.NewText);
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\SerializationValidator.cs (2)
83
Contract.
ThrowIfNull
(data.Value);
97
Contract.
ThrowIfNull
<object?>(result);