5 references to ThrowIfTrue
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
139
Contract.
ThrowIfTrue
(Monitor.IsEntered(SyncObject), "Attempt to take the lock while already holding it!");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (4)
54
Contract.
ThrowIfTrue
(nodes.IsDefault, $"{nameof(nodes)}.{nameof(nodes.IsDefault)}");
55
Contract.
ThrowIfTrue
(edges.IsDefault, $"{nameof(edges)}.{nameof(edges.IsDefault)}");
68
Contract.
ThrowIfTrue
(_nodes.IsDefault, $"{nameof(_nodes)}.{nameof(_nodes.IsDefault)}");
69
Contract.
ThrowIfTrue
(_edges.IsDefault, $"{nameof(_edges)}.{nameof(_edges.IsDefault)}");