9 references to NotNullWhen
Microsoft.AspNetCore.Http.ValidationsGenerator (9)
src\Http\Http.Extensions\gen\Microsoft.AspNetCore.Http.RequestDelegateGenerator\StaticRouteHandlerModel\InvocationOperationExtensions.cs (3)
26
public static bool IsValidOperation(this IOperation? operation, WellKnownTypes wellKnownTypes, [
NotNullWhen
(true)] out IInvocationOperation? invocationOperation)
42
public static bool TryGetRouteHandlerMethod(this IInvocationOperation invocation, SemanticModel semanticModel, [
NotNullWhen
(true)] out IMethodSymbol? method)
53
public static bool TryGetRouteHandlerArgument(this IInvocationOperation invocation, [
NotNullWhen
(true)] out IArgumentOperation? argumentOperation)
src\Shared\RoslynUtils\ParsabilityHelper.cs (2)
23
private static bool IsTypeAlwaysParsable(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [
NotNullWhen
(true)] out ParsabilityMethod? parsabilityMethod)
55
internal static Parsability GetParsability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [
NotNullWhen
(false)] out ParsabilityMethod? parsabilityMethod)
src\Shared\RoslynUtils\SymbolExtensions.cs (3)
70
public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [
NotNullWhen
(true)] out AttributeData? matchedAttribute)
90
public static bool TryGetAttributeImplementingInterface(this ISymbol symbol, INamedTypeSymbol interfaceType, [
NotNullWhen
(true)] out AttributeData? matchedAttribute)
110
public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [
NotNullWhen
(true)] out AttributeData? matchedAttribute)
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
118
public bool IsType(ITypeSymbol type, WellKnownTypeData.WellKnownType[] wellKnownTypes, [
NotNullWhen
(true)] out WellKnownTypeData.WellKnownType? match)