17 instantiations of NotNullWhen
ILLink.RoslynAnalyzer (17)
DataFlow\InterproceduralState.cs (1)
84public bool TryGetHoistedLocal(LocalKey key, [NotNullWhen(true)] out TValue? value)
ISymbolExtensions.cs (5)
29internal static bool TryGetAttribute(this ISymbol member, string attributeName, [NotNullWhen(returnValue: true)] out AttributeData? attribute) 95internal static bool TryGetReturnAttribute(this IMethodSymbol member, string attributeName, [NotNullWhen(returnValue: true)] out AttributeData? attribute) 113internal static bool TryGetOverriddenMember(this ISymbol? symbol, [NotNullWhen(returnValue: true)] out ISymbol? overriddenMember) 212public static bool IsConstructor([NotNullWhen(returnValue: true)] this ISymbol? symbol) 215public static bool IsStaticConstructor([NotNullWhen(returnValue: true)] this ISymbol? symbol)
RequiresISymbolExtensions.cs (2)
15public static bool DoesMemberRequire(this ISymbol member, string requiresAttribute, [NotNullWhen(returnValue: true)] out AttributeData? requiresAttributeData) 40public static bool IsInRequiresScope(this ISymbol member, string attributeName, [NotNullWhen(true)] out AttributeData? requiresAttribute)
RequiresUnreferencedCodeUtils.cs (3)
14public static bool TryGetRequiresUnreferencedCodeAttribute(this ISymbol member, [NotNullWhen(returnValue: true)] out AttributeData? requiresAttributeData) => 21public static bool DoesMemberRequireUnreferencedCodeAttribute(this ISymbol member, [NotNullWhen(returnValue: true)] out AttributeData? requiresAttributeData) 28public static bool IsInRequiresUnreferencedCodeAttributeScope(this ISymbol member, [NotNullWhen(true)] out AttributeData? requiresAttribute)
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
125public override bool Equals([NotNullWhen(true)] object? value) => value is Index && _value == ((Index)value)._value;
src\tools\illink\src\ILLink.Shared\DataFlow\IControlFlowGraph.cs (3)
117bool TryGetEnclosingTryOrCatchOrFilter(TBlock block, [NotNullWhen(true)] out TRegion? tryOrCatchOrFilterRegion); 119bool TryGetEnclosingTryOrCatchOrFilter(TRegion region, [NotNullWhen(true)] out TRegion? tryOrCatchOrFilterRegion); 121bool TryGetEnclosingFinally(TBlock block, [NotNullWhen(true)] out TRegion? region);
src\tools\illink\src\ILLink.Shared\ParameterIndex.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
1810private partial bool TryGetBaseType(TypeProxy type, [NotNullWhen(true)] out TypeProxy? baseType);