1 implementation of WhenNotNull
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6507
public 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)
3385
if (!isConditionalAccessInstancePresentInChildren(currentConditionalAccess.
WhenNotNull
))
3398
if (currentConditionalAccess.
WhenNotNull
is not IConditionalAccessOperation nested)
3410
IOperation result = VisitRequired(currentConditionalAccess.
WhenNotNull
);
3430
if (ITypeSymbolHelpers.IsNullableType(operation.Type) && !ITypeSymbolHelpers.IsNullableType(currentConditionalAccess.
WhenNotNull
.Type))
3432
IOperation access = VisitRequired(currentConditionalAccess.
WhenNotNull
);
3433
AddStatement(new FlowCaptureOperation(resultCaptureId, currentConditionalAccess.
WhenNotNull
.Syntax,
3438
CaptureResultIfNotAlready(currentConditionalAccess.
WhenNotNull
.Syntax, resultCaptureId,
3439
VisitRequired(currentConditionalAccess.
WhenNotNull
, resultCaptureId));
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\OperationTreeVerifier.cs (2)
1147
Visit(operation.
WhenNotNull
, header: nameof(operation.
WhenNotNull
));
Compilation\TestOperationVisitor.cs (1)
730
AssertEx.Equal(new[] { operation.Operation, operation.
WhenNotNull
}, operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (1)
1846
if (conditionalAccess.
WhenNotNull
!= null && conditionalAccess.Operation != null)