1 implementation of Condition
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5357public IOperation Condition { get; }
27 references to Condition
Microsoft.CodeAnalysis (9)
Generated\Operations.Generated.cs (5)
1068/// (1) <see cref="Condition" /> to be tested, 1069/// (2) <see cref="WhenTrue" /> operation to be executed when <see cref="Condition" /> is true and 1070/// (3) <see cref="WhenFalse" /> operation to be executed when the <see cref="Condition" /> is false. 1092/// Operation to be executed if the <see cref="Condition" /> is true. 1096/// Operation to be executed if the <see cref="Condition" /> is false.
Operations\ControlFlowGraphBuilder.cs (4)
1551VisitConditionalBranch(operation.Condition, ref afterIf, jumpIfTrue: false); 1572VisitConditionalBranch(operation.Condition, ref whenFalse, jumpIfTrue: false); 1606VisitConditionalBranch(operation.Condition, ref whenFalse, jumpIfTrue: false); 2858VisitConditionalBranchCore(conditional.Condition, ref whenFalse, jumpIfTrue: false);
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
215var condition = ifStatement.Condition;
HashCodeAnalyzer.OperationDeconstructor.cs (1)
104if (conditional.Condition is IBinaryOperation binary &&
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
AbstractUseConditionalExpressionCodeFixProvider.cs (1)
107var condition = ifOperation.Condition.Syntax;
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
246return !ReferencesLocalVariable(ifOperation.Condition, variable);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ConvertToRecordHelpers.cs (2)
898Condition: IOperation condition, 968Condition: IOperation condition,
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertToRecordHelpers.cs (2)
898Condition: IOperation condition, 968Condition: IOperation condition,
Microsoft.CodeAnalysis.Features (7)
AbstractUseConditionalExpressionCodeFixProvider.cs (1)
107var condition = ifOperation.Condition.Syntax;
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
246return !ReferencesLocalVariable(ifOperation.Condition, variable);
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
215var condition = ifStatement.Condition;
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
184if (!ParseSwitchLabels(operation.Condition, labels))
HashCodeAnalyzer.OperationDeconstructor.cs (1)
104if (conditional.Condition is IBinaryOperation binary &&
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
216var condition = ifStatement.Condition; 462if (ContainsParameterReference(semanticModel, ifStatement.Condition, parameterSymbol, cancellationToken))
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1275Visit(operation.Condition, "Condition");
Compilation\TestOperationVisitor.cs (2)
875AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations); 879AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);