1 implementation of WhenNotNull
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6507public IOperation WhenNotNull { get; }
14 references to WhenNotNull
Microsoft.CodeAnalysis (10)
Generated\Operations.Generated.cs (2)
1594/// of <see cref="Operation" /> within <see cref="WhenNotNull" />. 1623/// Represents the value of a conditionally-accessed operation within <see cref="IConditionalAccessOperation.WhenNotNull" />.
Operations\ControlFlowGraphBuilder.cs (8)
3385if (!isConditionalAccessInstancePresentInChildren(currentConditionalAccess.WhenNotNull)) 3398if (currentConditionalAccess.WhenNotNull is not IConditionalAccessOperation nested) 3410IOperation result = VisitRequired(currentConditionalAccess.WhenNotNull); 3430if (ITypeSymbolHelpers.IsNullableType(operation.Type) && !ITypeSymbolHelpers.IsNullableType(currentConditionalAccess.WhenNotNull.Type)) 3432IOperation access = VisitRequired(currentConditionalAccess.WhenNotNull); 3433AddStatement(new FlowCaptureOperation(resultCaptureId, currentConditionalAccess.WhenNotNull.Syntax, 3438CaptureResultIfNotAlready(currentConditionalAccess.WhenNotNull.Syntax, resultCaptureId, 3439VisitRequired(currentConditionalAccess.WhenNotNull, resultCaptureId));
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\OperationTreeVerifier.cs (2)
1147Visit(operation.WhenNotNull, header: nameof(operation.WhenNotNull));
Compilation\TestOperationVisitor.cs (1)
730AssertEx.Equal(new[] { operation.Operation, operation.WhenNotNull }, operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (1)
1846if (conditionalAccess.WhenNotNull != null && conditionalAccess.Operation != null)