37 references to NotNullWhen
Microsoft.AspNetCore.App.Analyzers (33)
Authorization\AddAuthorizationBuilderAnalyzer.cs (4)
88private static bool TryGetConfigureArgumentOperation(IInvocationOperation invocation, [NotNullWhen(true)] out IArgumentOperation? configureArgumentOperation) 101private static bool TryGetConfigureDelegateCreationOperation(IArgumentOperation configureArgumentOperation, [NotNullWhen(true)] out IDelegateCreationOperation? configureDelegateCreationOperation) 115private static bool TryGetConfigureAnonymousFunctionOperation(IDelegateCreationOperation configureDelegateCreationOperation, [NotNullWhen(true)] out IAnonymousFunctionOperation? configureAnonymousFunctionOperation) 129private static bool TryGetConfigureBlockOperation(IAnonymousFunctionOperation configureAnonymousFunctionOperation, [NotNullWhen(true)] out IBlockOperation? configureBlockOperation)
Infrastructure\RoutePattern\RoutePatternHelpers.cs (1)
22public static bool TryGetNode<TSyntaxKind, TSyntaxNode>(this EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode> nodeOrToken, TSyntaxKind kind, [NotNullWhen(true)] out TSyntaxNode? node)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (2)
35[NotNullWhen(true)] out string? identifier, 36[NotNullWhen(true)] out IEnumerable<string>? options)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (15)
60[NotNullWhen(true)] out string? identifier, 144[NotNullWhen(true)] out string? identifier, 145[NotNullWhen(true)] out IEnumerable<string>? options) 184[NotNullWhen(true)] out string? identifier, 185[NotNullWhen(true)] out IEnumerable<string>? options) 202[NotNullWhen(true)] out string? identifier, 203[NotNullWhen(true)] out IEnumerable<string>? options) 221public static bool IsStatement([NotNullWhen(true)] SyntaxNode? node) 243[NotNullWhen(true)] out string? identifier) 275[NotNullWhen(true)] out string? identifier) 285[NotNullWhen(true)] out string? identifier) 300ISymbol? symbol, [NotNullWhen(true)] out string? identifier) 308[NotNullWhen(true)] ISymbol? symbol, 309[NotNullWhen(true)] out string? identifier) 328[NotNullWhen(true)] out string? identifier)
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (5)
37public static bool IsLiteralExpression([NotNullWhen(true)] this SyntaxNode? node) 40public static bool IsBinaryExpression([NotNullWhen(true)] this SyntaxNode? node) 54public static bool IsAnyInitializerExpression([NotNullWhen(true)] this SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? creationExpression) 69public static bool IsSimpleAssignmentStatement([NotNullWhen(true)] this SyntaxNode? statement)
src\Shared\RoslynUtils\ParsabilityHelper.cs (2)
23private static bool IsTypeAlwaysParsable(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [NotNullWhen(true)] out ParsabilityMethod? parsabilityMethod) 55internal static Parsability GetParsability(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, [NotNullWhen(false)] out ParsabilityMethod? parsabilityMethod)
src\Shared\RoslynUtils\SymbolExtensions.cs (3)
70public static bool TryGetAttribute(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol attributeType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 90public static bool TryGetAttributeImplementingInterface(this ISymbol symbol, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute) 110public static bool TryGetAttributeImplementingInterface(this ImmutableArray<AttributeData> attributes, INamedTypeSymbol interfaceType, [NotNullWhen(true)] out AttributeData? matchedAttribute)
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
118public bool IsType(ITypeSymbol type, WellKnownTypeData.WellKnownType[] wellKnownTypes, [NotNullWhen(true)] out WellKnownTypeData.WellKnownType? match)
Microsoft.AspNetCore.App.CodeFixes (4)
Authorization\AddAuthorizationBuilderFixer.cs (1)
55private static bool CanReplaceWithAddAuthorizationBuilder(Diagnostic diagnostic, SyntaxNode root, [NotNullWhen(true)] out InvocationExpressionSyntax? invocation)
Http\HeaderDictionaryAddFixer.cs (2)
78private static bool CanReplaceWithAppend(Diagnostic diagnostic, SyntaxNode root, [NotNullWhen(true)] out InvocationExpressionSyntax? invocation) 106private static bool CanReplaceWithIndexer(Diagnostic diagnostic, SyntaxNode root, [NotNullWhen(true)] out AssignmentExpressionSyntax? assignment)
WebApplicationBuilderFixer.cs (1)
84private static bool CanFixWebApplicationBuilder(Diagnostic diagnostic, IdentifierNameSyntax identifierMethod, SyntaxNode root, [NotNullWhen(true)] out InvocationExpressionSyntax? invocationName)