17 references to NotNullWhen
Microsoft.AspNetCore.Http.RequestDelegateGenerator (17)
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)
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (1)
25
public static bool IsSerializableJsonResponse(this EndpointResponse endpointResponse, [
NotNullWhen
(true)] out ITypeSymbol? responseTypeSymbol)
StaticRouteHandlerModel\EndpointParameter.cs (6)
303
private static bool HasBindAsync(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [
NotNullWhen
(true)] out BindabilityMethod? bindMethod, [
NotNullWhen
(true)] out IMethodSymbol? bindMethodSymbol)
309
private static bool TryGetArrayElementType(ITypeSymbol type, [
NotNullWhen
(true)] out ITypeSymbol elementType)
323
private bool TryGetParsability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [
NotNullWhen
(true)] out Func<string, string, string>? preferredTryParseInvocation)
380
private static bool TryGetSpecialTypeAssigningCode(ITypeSymbol type, WellKnownTypes wellKnownTypes, [
NotNullWhen
(true)] out string? callingCode)
457
private static bool TryGetAsParametersConstructor(Endpoint endpoint, INamedTypeSymbol type, out bool? isDefaultConstructor, [
NotNullWhen
(true)] out IEnumerable<ConstructorParameter>? matchedProperties)
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)
StaticRouteHandlerModel\Model\ParameterLookupKey.cs (1)
26
public override bool Equals([
NotNullWhen
(true)] object? obj)