1 implementation of WhenTrue
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5358public IOperation WhenTrue { get; }
26 references to WhenTrue
Microsoft.CodeAnalysis (9)
Generated\Operations.Generated.cs (1)
1069/// (2) <see cref="WhenTrue" /> operation to be executed when <see cref="Condition" /> is true and
Operations\ControlFlowGraphBuilder.cs (8)
1552VisitStatement(operation.WhenTrue); 1574VisitStatement(operation.WhenTrue); 1601Debug.Assert(operation is { WhenTrue: not null, WhenFalse: not null }); 1613if (operation.WhenTrue is IConversionOperation whenTrueConversion && whenTrueConversion.Operand.Kind == OperationKind.Throw) 1627result = VisitRequired(operation.WhenTrue); 1644VisitAndCapture(operation.WhenTrue, captureId); 2854if (ITypeSymbolHelpers.IsBooleanType(conditional.WhenTrue.Type) && 2859VisitConditionalBranchCore(conditional.WhenTrue, ref dest, jumpIfTrue);
Microsoft.CodeAnalysis.CodeStyle (4)
HashCodeAnalyzer.OperationDeconstructor.cs (1)
117return TryAddHashedSymbol(conditional.WhenTrue, seenHash: true);
OperationExtensions.cs (1)
181if (operation == conditionalOperation.WhenTrue
UseConditionalExpressionForAssignmentHelpers.cs (1)
25trueStatement = ifOperation.WhenTrue;
UseConditionalExpressionForReturnHelpers.cs (1)
28trueStatement = ifOperation.WhenTrue;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ConvertToRecordHelpers.cs (2)
899WhenTrue: IOperation whenTrue, 969WhenTrue: IOperation whenTrue,
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertToRecordHelpers.cs (2)
899WhenTrue: IOperation whenTrue, 969WhenTrue: IOperation whenTrue,
Microsoft.CodeAnalysis.Features (5)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (2)
107HasUnreachableEndPoint(op.WhenTrue) && 189return new AnalyzedSwitchSection(labels.ToImmutable(), operation.WhenTrue, operation.Syntax);
HashCodeAnalyzer.OperationDeconstructor.cs (1)
117return TryAddHashedSymbol(conditional.WhenTrue, seenHash: true);
UseConditionalExpressionForAssignmentHelpers.cs (1)
25trueStatement = ifOperation.WhenTrue;
UseConditionalExpressionForReturnHelpers.cs (1)
28trueStatement = ifOperation.WhenTrue;
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1276Visit(operation.WhenTrue, "WhenTrue");
Compilation\TestOperationVisitor.cs (2)
875AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations); 879AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);
Microsoft.CodeAnalysis.Workspaces (1)
OperationExtensions.cs (1)
181if (operation == conditionalOperation.WhenTrue