1 implementation of WhenTrue
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5731public IOperation WhenTrue { get; }
29 references to WhenTrue
ILLink.RoslynAnalyzer (1)
IOperationExtensions.cs (1)
145 if (operation == conditionalOperation.WhenTrue
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (2)
41if (ifOperation.WhenTrue == null || ifOperation.WhenFalse != null) 69var trueStatement = UnwrapSingleStatementBlock(ifOperation.WhenTrue);
Microsoft.CodeAnalysis (9)
Generated\Operations.Generated.cs (1)
1146/// <item><description><see cref="WhenTrue" /> operation to be executed when <see cref="Condition" /> is true and</description></item>
Operations\ControlFlowGraphBuilder.cs (7)
1569VisitStatement(operation.WhenTrue); 1607Debug.Assert(operation is { WhenTrue: not null, WhenFalse: not null }); 1619if (operation.WhenTrue is IConversionOperation whenTrueConversion && whenTrueConversion.Operand.Kind == OperationKind.Throw) 1633result = VisitRequired(operation.WhenTrue); 1650VisitAndCapture(operation.WhenTrue, captureId); 2871if (ITypeSymbolHelpers.IsBooleanType(conditional.WhenTrue.Type) && 2876VisitConditionalBranchCore(conditional.WhenTrue, ref dest, jumpIfTrue);
Operations\OperationMapBuilder.cs (1)
63Visit(operation.WhenTrue, argument);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
108return TryAddHashedSymbol(conditional.WhenTrue, seenHash: true);
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
28trueStatement = ifOperation.WhenTrue;
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
28trueStatement = ifOperation.WhenTrue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
187if (operation == conditionalOperation.WhenTrue
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
901WhenTrue: IOperation whenTrue, 971WhenTrue: IOperation whenTrue,
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
901WhenTrue: IOperation whenTrue, 971WhenTrue: IOperation whenTrue,
Microsoft.CodeAnalysis.Features (5)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (2)
104HasUnreachableEndPoint(op.WhenTrue) && 196return new AnalyzedSwitchSection(labels.ToImmutable(), operation.WhenTrue, operation.Syntax);
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
108return TryAddHashedSymbol(conditional.WhenTrue, seenHash: true);
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
28trueStatement = ifOperation.WhenTrue;
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
28trueStatement = ifOperation.WhenTrue;
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1285Visit(operation.WhenTrue, "WhenTrue");
Compilation\TestOperationVisitor.cs (2)
893AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations); 897AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
187if (operation == conditionalOperation.WhenTrue