92 instantiations of DoesNotReturnIf
Microsoft.Build (20)
ErrorUtilities.cs (20)
53
internal static void VerifyThrowInternalErrorUnreachable([
DoesNotReturnIf
(false)] bool condition)
108
internal static void VerifyThrow([
DoesNotReturnIf
(false)] bool condition, string message)
113
[
DoesNotReturnIf
(false)] bool condition,
131
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName)
143
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
158
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
173
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
188
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
236
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName)
244
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
252
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
260
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
268
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
280
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName)
292
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0)
305
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1)
318
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2)
331
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
354
internal static void VerifyThrowArgumentOutOfRange([
DoesNotReturnIf
(false)] bool condition, [CallerArgumentExpression(nameof(condition))] string? parameterName = null)
460
internal static void VerifyThrowObjectDisposed([
DoesNotReturnIf
(false)] bool condition, string objectName)
Microsoft.Build.Framework (12)
Contract.cs (6)
82
public static void ThrowIfFalse([
DoesNotReturnIf
(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
95
public static void ThrowIfFalse([
DoesNotReturnIf
(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
108
public static void ThrowIfFalse([
DoesNotReturnIf
(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
121
public static void ThrowIfTrue([
DoesNotReturnIf
(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
134
public static void ThrowIfTrue([
DoesNotReturnIf
(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
147
public static void ThrowIfTrue([
DoesNotReturnIf
(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
ErrorUtilities.cs (3)
73
public static void VerifyThrow([
DoesNotReturnIf
(false)] bool condition, string message)
82
[
DoesNotReturnIf
(false)] bool condition,
224
public static void VerifyThrowInternalErrorUnreachable([
DoesNotReturnIf
(false)] bool condition)
FailFast.cs (1)
98
internal static void Assert([
DoesNotReturnIf
(false)] bool condition, string? message = null)
Polyfills\ArgumentExceptionExtensions.cs (2)
316
public static void ThrowIf([
DoesNotReturnIf
(true)] bool condition, object instance)
336
public static void ThrowIf([
DoesNotReturnIf
(true)] bool condition, Type type)
Microsoft.Build.Tasks.Core (20)
ErrorUtilities.cs (20)
53
internal static void VerifyThrowInternalErrorUnreachable([
DoesNotReturnIf
(false)] bool condition)
108
internal static void VerifyThrow([
DoesNotReturnIf
(false)] bool condition, string message)
113
[
DoesNotReturnIf
(false)] bool condition,
131
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName)
143
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
158
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
173
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
188
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
236
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName)
244
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
252
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
260
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
268
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
280
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName)
292
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0)
305
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1)
318
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2)
331
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
354
internal static void VerifyThrowArgumentOutOfRange([
DoesNotReturnIf
(false)] bool condition, [CallerArgumentExpression(nameof(condition))] string? parameterName = null)
460
internal static void VerifyThrowObjectDisposed([
DoesNotReturnIf
(false)] bool condition, string objectName)
Microsoft.Build.Utilities.Core (20)
ErrorUtilities.cs (20)
53
internal static void VerifyThrowInternalErrorUnreachable([
DoesNotReturnIf
(false)] bool condition)
108
internal static void VerifyThrow([
DoesNotReturnIf
(false)] bool condition, string message)
113
[
DoesNotReturnIf
(false)] bool condition,
131
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName)
143
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
158
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
173
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
188
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
236
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName)
244
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
252
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
260
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
268
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
280
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName)
292
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0)
305
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1)
318
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2)
331
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
354
internal static void VerifyThrowArgumentOutOfRange([
DoesNotReturnIf
(false)] bool condition, [CallerArgumentExpression(nameof(condition))] string? parameterName = null)
460
internal static void VerifyThrowObjectDisposed([
DoesNotReturnIf
(false)] bool condition, string objectName)
MSBuild (20)
ErrorUtilities.cs (20)
53
internal static void VerifyThrowInternalErrorUnreachable([
DoesNotReturnIf
(false)] bool condition)
108
internal static void VerifyThrow([
DoesNotReturnIf
(false)] bool condition, string message)
113
[
DoesNotReturnIf
(false)] bool condition,
131
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName)
143
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
158
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
173
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
188
internal static void VerifyThrowInvalidOperation([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
236
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName)
244
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0)
252
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1)
260
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2)
268
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3)
280
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName)
292
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0)
305
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1)
318
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2)
331
internal static void VerifyThrowArgument([
DoesNotReturnIf
(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
354
internal static void VerifyThrowArgumentOutOfRange([
DoesNotReturnIf
(false)] bool condition, [CallerArgumentExpression(nameof(condition))] string? parameterName = null)
460
internal static void VerifyThrowObjectDisposed([
DoesNotReturnIf
(false)] bool condition, string objectName)