6 references to ThrowIfTrue
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
65
Contract.
ThrowIfTrue
(ReferenceEquals(registeredSink, sink), "The sink instance is already registered.");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
140
Contract.
ThrowIfTrue
(Monitor.IsEntered(SyncObject), "Attempt to take the lock while already holding it!");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
55
Contract.
ThrowIfTrue
(nodes.IsDefault, $"{nameof(nodes)}.{nameof(nodes.IsDefault)}");
56
Contract.
ThrowIfTrue
(edges.IsDefault, $"{nameof(edges)}.{nameof(edges.IsDefault)}");
69
Contract.
ThrowIfTrue
(_nodes.IsDefault, $"{nameof(_nodes)}.{nameof(_nodes.IsDefault)}");
70
Contract.
ThrowIfTrue
(_edges.IsDefault, $"{nameof(_edges)}.{nameof(_edges.IsDefault)}");