36 instantiations of NotNullIfNotNull
Microsoft.CodeAnalysis.Analyzers (36)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (6)
139[return: NotNullIfNotNull(parameterName: nameof(path))] 152[return: NotNullIfNotNull(nameof(path))] 158[return: NotNullIfNotNull(nameof(path))] 210[return: NotNullIfNotNull(parameterName: nameof(path))] 216[return: NotNullIfNotNull(parameterName: nameof(path))] 486[return: NotNullIfNotNull(nameof(path))]
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (4)
82[return: NotNullIfNotNull(parameterName: nameof(path))] 107[return: NotNullIfNotNull(parameterName: nameof(path))] 140[return: NotNullIfNotNull(parameterName: nameof(path))] 189[return: NotNullIfNotNull(parameterName: nameof(path))]
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (1)
137[return: NotNullIfNotNull(parameterName: nameof(initializedValue))]
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (3)
49[return: NotNullIfNotNull(parameterName: nameof(shortName))] 57[return: NotNullIfNotNull(parameterName: nameof(shortName))] 65[return: NotNullIfNotNull(parameterName: nameof(shortName))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (2)
388[return: NotNullIfNotNull(nameof(operation))] 460[return: NotNullIfNotNull(nameof(value))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (2)
39[return: NotNullIfNotNull(nameof(list1)), NotNullIfNotNull(nameof(list2))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (3)
258[return: NotNullIfNotNull(nameof(node))] 414[return: NotNullIfNotNull(nameof(node))] 484[return: NotNullIfNotNull(nameof(node))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (2)
285[return: NotNullIfNotNull(nameof(node))] 297[return: NotNullIfNotNull(nameof(node))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
51[return: NotNullIfNotNull(nameof(defaultValue))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
359[return: NotNullIfNotNull(parameterName: nameof(symbol))] 409[return: NotNullIfNotNull(parameterName: nameof(symbol))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (7)
769[return: NotNullIfNotNull(parameterName: nameof(symbol))] 803[return: NotNullIfNotNull(parameterName: nameof(type))] 812[return: NotNullIfNotNull(parameterName: nameof(type))] 821[return: NotNullIfNotNull(parameterName: nameof(type))] 829[return: NotNullIfNotNull(parameterName: nameof(type))] 866[return: NotNullIfNotNull(parameterName: nameof(type))] 877[return: NotNullIfNotNull(parameterName: nameof(type))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
37[return: NotNullIfNotNull(nameof(syntax))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
384[return: NotNullIfNotNull(nameof(fallback))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)