37 instantiations of NotNullWhen
Microsoft.AspNetCore.App.Analyzers (33)
Authorization\AddAuthorizationBuilderAnalyzer.cs (4)
88
private static bool TryGetConfigureArgumentOperation(IInvocationOperation invocation, [
NotNullWhen
(true)] out IArgumentOperation? configureArgumentOperation)
101
private static bool TryGetConfigureDelegateCreationOperation(IArgumentOperation configureArgumentOperation, [
NotNullWhen
(true)] out IDelegateCreationOperation? configureDelegateCreationOperation)
115
private static bool TryGetConfigureAnonymousFunctionOperation(IDelegateCreationOperation configureDelegateCreationOperation, [
NotNullWhen
(true)] out IAnonymousFunctionOperation? configureAnonymousFunctionOperation)
129
private static bool TryGetConfigureBlockOperation(IAnonymousFunctionOperation configureAnonymousFunctionOperation, [
NotNullWhen
(true)] out IBlockOperation? configureBlockOperation)
Infrastructure\RoutePattern\RoutePatternHelpers.cs (1)
22
public 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)
221
public 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)
300
ISymbol? 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)
37
public static bool IsLiteralExpression([
NotNullWhen
(true)] this SyntaxNode? node)
40
public static bool IsBinaryExpression([
NotNullWhen
(true)] this SyntaxNode? node)
54
public static bool IsAnyInitializerExpression([
NotNullWhen
(true)] this SyntaxNode? node, [
NotNullWhen
(true)] out SyntaxNode? creationExpression)
69
public static bool IsSimpleAssignmentStatement([
NotNullWhen
(true)] this SyntaxNode? statement)
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)
Microsoft.AspNetCore.App.CodeFixes (4)
Authorization\AddAuthorizationBuilderFixer.cs (1)
55
private static bool CanReplaceWithAddAuthorizationBuilder(Diagnostic diagnostic, SyntaxNode root, [
NotNullWhen
(true)] out InvocationExpressionSyntax? invocation)
Http\HeaderDictionaryAddFixer.cs (2)
78
private static bool CanReplaceWithAppend(Diagnostic diagnostic, SyntaxNode root, [
NotNullWhen
(true)] out InvocationExpressionSyntax? invocation)
106
private static bool CanReplaceWithIndexer(Diagnostic diagnostic, SyntaxNode root, [
NotNullWhen
(true)] out AssignmentExpressionSyntax? assignment)
WebApplicationBuilderFixer.cs (1)
84
private static bool CanFixWebApplicationBuilder(Diagnostic diagnostic, IdentifierNameSyntax identifierMethod, SyntaxNode root, [
NotNullWhen
(true)] out InvocationExpressionSyntax? invocationName)