6 references to ThrowIfNull
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
312
Contract.
ThrowIfNull
(_cachedResult, $"We called {nameof(CompleteWithTask)} with a result, there should be a cached result.");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (3)
54
Contract.
ThrowIfNull
(concatenatedLowerCaseWords, nameof(_concatenatedLowerCaseWords));
67
Contract.
ThrowIfNull
(value, nameof(value));
68
Contract.
ThrowIfNull
(_concatenatedLowerCaseWords, nameof(_concatenatedLowerCaseWords));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (2)
267
Contract.
ThrowIfNull
(nonTerminalNode, @"Malformed code or bug in parser???");
280
Contract.
ThrowIfNull
(nonTerminalNode, @"Malformed code or bug in parser???");