19 instantiations of NotNullWhen
ILLink.RoslynAnalyzer (19)
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) 84 internal static bool TryGetReturnAttribute (this IMethodSymbol member, string attributeName, [NotNullWhen (returnValue: true)] out AttributeData? attribute) 100 internal static bool TryGetOverriddenMember (this ISymbol? symbol, [NotNullWhen (returnValue: true)] out ISymbol? overridenMember) 195 public static bool IsConstructor ([NotNullWhen (returnValue: true)] this ISymbol? symbol) 198 public static bool IsStaticConstructor ([NotNullWhen (returnValue: true)] this ISymbol? symbol)
RequiresAnalyzerBase.cs (2)
139 [NotNullWhen (true)] out Diagnostic? diagnostic) 328 [NotNullWhen (true)] out Diagnostic? diagnostic)
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)
1459 private partial bool TryGetBaseType (TypeProxy type, [NotNullWhen (true)] out TypeProxy? baseType);