72 references to ThrowIfNull
Microsoft.CodeAnalysis.CodeStyle (72)
src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (2)
62
Contract.
ThrowIfNull
(change.NewText);
89
Contract.
ThrowIfNull
(change.NewText);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (3)
79
Contract.
ThrowIfNull
(expression.SemanticModel);
139
Contract.
ThrowIfNull
(operation.SemanticModel);
158
Contract.
ThrowIfNull
(operation.SemanticModel);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
207
Contract.
ThrowIfNull
(context.FilterTree);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
81
Contract.
ThrowIfNull
(semanticModel);
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)
333
Contract.
ThrowIfNull
(classOrStructType);
334
Contract.
ThrowIfNull
(interfacesOrAbstractClasses);
335
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)
70
Contract.
ThrowIfNull
(syntaxTree);
132
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\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);