17 references to NotNullWhen
ILLink.RoslynAnalyzer (17)
DataFlow\InterproceduralState.cs (1)
84 public bool TryGetHoistedLocal (LocalKey key, [NotNullWhen (true)] out TValue? value)
ISymbolExtensions.cs (5)
29 internal static bool TryGetAttribute (this ISymbol member, string attributeName, [NotNullWhen (returnValue: true)] out AttributeData? attribute) 90 internal static bool TryGetReturnAttribute (this IMethodSymbol member, string attributeName, [NotNullWhen (returnValue: true)] out AttributeData? attribute) 106 internal static bool TryGetOverriddenMember (this ISymbol? symbol, [NotNullWhen (returnValue: true)] out ISymbol? overriddenMember) 201 public static bool IsConstructor ([NotNullWhen (returnValue: true)] this ISymbol? symbol) 204 public static bool IsStaticConstructor ([NotNullWhen (returnValue: true)] this ISymbol? symbol)
RequiresISymbolExtensions.cs (2)
15 public static bool DoesMemberRequire (this ISymbol member, string requiresAttribute, [NotNullWhen (returnValue: true)] out AttributeData? requiresAttributeData) 40 public static bool IsInRequiresScope (this ISymbol member, string attributeName, [NotNullWhen (true)] out AttributeData? requiresAttribute)
RequiresUnreferencedCodeUtils.cs (3)
14 public static bool TryGetRequiresUnreferencedCodeAttribute (this ISymbol member, [NotNullWhen (returnValue: true)] out AttributeData? requiresAttributeData) => 21 public static bool DoesMemberRequireUnreferencedCodeAttribute (this ISymbol member, [NotNullWhen (returnValue: true)] out AttributeData? requiresAttributeData) 28 public 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)
117 bool TryGetEnclosingTryOrCatchOrFilter (TBlock block, [NotNullWhen (true)] out TRegion? tryOrCatchOrFilterRegion); 119 bool TryGetEnclosingTryOrCatchOrFilter (TRegion region, [NotNullWhen (true)] out TRegion? tryOrCatchOrFilterRegion); 121 bool TryGetEnclosingFinally (TBlock block, [NotNullWhen (true)] out TRegion? region);
src\tools\illink\src\ILLink.Shared\ParameterIndex.cs (1)
43 public override bool Equals ([NotNullWhen (true)] object? obj)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (1)
1491 private partial bool TryGetBaseType (TypeProxy type, [NotNullWhen (true)] out TypeProxy? baseType);