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