12 instantiations of DoesNotReturnIf
Microsoft.CodeAnalysis.Analyzers (12)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (4)
19
public static void Assert([
DoesNotReturnIf
(false)] bool condition) => Debug.Assert(condition);
23
public static void Assert([
DoesNotReturnIf
(false)] bool condition, string message)
28
public static void Assert([
DoesNotReturnIf
(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message)
53
internal static void AssertOrFailFast([
DoesNotReturnIf
(false)] bool condition, string? message = null)
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
55
private static void ThrowIfTrue([
DoesNotReturnIf
(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\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)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
100
internal static void Assert([
DoesNotReturnIf
(false)] bool condition, string? message = null)