15 instantiations of NotNull
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
37
public static void AssertNotNull<T>([
NotNull
] T value)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (6)
16
private static T GetOrStore<T>([
NotNull
] ref T? target, T value) where T : class
33
public static T Initialize<T>([
NotNull
] ref T? target, Func<T> valueFactory) where T : class
46
public static T Initialize<T, TArg>([
NotNull
] ref T? target, Func<TArg, T> valueFactory, TArg arg)
85
public static T? Initialize<T>([
NotNull
] ref StrongBox<T?>? target, Func<T?> valueFactory)
103
public static T? Initialize<T, TArg>([
NotNull
] ref StrongBox<T?>? target, Func<TArg, T?> valueFactory, TArg arg)
119
public static T Initialize<T>([
NotNull
] ref T? target, T value) where T : class
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (2)
37
public static Type? TryGetType([
NotNull
] ref Type? lazyType, string assemblyQualifiedName)
69
public static Type? GetTypeFromEither([
NotNull
] ref Type? lazyType, string contractName, string desktopName)
src\roslyn\src\Dependencies\Contracts\Contract.cs (4)
30
public static void ThrowIfNull<T>([
NotNull
] T value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : class?
43
public static void ThrowIfNull<T>([
NotNull
] T? value, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) where T : struct
56
public static void ThrowIfNull<T>([
NotNull
] T value, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
69
public static void ThrowIfNull<T>([
NotNull
] T value, [InterpolatedStringHandlerArgument("value")] ThrowIfNullInterpolatedStringHandler<T> message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (2)
27
internal static IEnumerable<T> RequireNonNullItems<T>([
NotNull
] IEnumerable<T>? sequence, string argumentName) where T : class
43
internal static void RequireUniqueNonNullItems<T>([
NotNull
] IEnumerable<T>? sequence, string argumentName) where T : class
1 reference to NotNull
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
262
=> compilation.GetTypeByMetadataName(typeof(
NotNullAttribute
).FullName!);