1 implementation of Condition
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5730public IOperation Condition { get; }
30 references to Condition
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
88if (!IsModelStateIsValidCheck(symbolCache, ifOperation.Condition))
Microsoft.CodeAnalysis (9)
Generated\Operations.Generated.cs (5)
1145/// <item><description><see cref="Condition" /> to be tested</description></item> 1146/// <item><description><see cref="WhenTrue" /> operation to be executed when <see cref="Condition" /> is true and</description></item> 1147/// <item><description><see cref="WhenFalse" /> operation to be executed when the <see cref="Condition" /> is false</description></item> 1172/// Operation to be executed if the <see cref="Condition" /> is true. 1176/// Operation to be executed if the <see cref="Condition" /> is false.
Operations\ControlFlowGraphBuilder.cs (3)
1567VisitConditionalBranch(operation.Condition, ref whenFalse, jumpIfTrue: false); 1612VisitConditionalBranch(operation.Condition, ref whenFalse, jumpIfTrue: false); 2875VisitConditionalBranchCore(conditional.Condition, ref whenFalse, jumpIfTrue: false);
Operations\OperationMapBuilder.cs (1)
62Visit(operation.Condition, argument);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
95if (conditional.Condition is IBinaryOperation binary &&
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
74if (ReferencesDeclaredVariableInAssignment(ifOperation.Condition, trueAssignment?.Target, falseAssignment?.Target))
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
214var condition = ifStatement.Condition;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
126=> operation.Condition.Syntax;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
244return !ReferencesLocalVariable(ifOperation.Condition, variable);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
899Condition: IOperation condition, 969Condition: IOperation condition,
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
899Condition: IOperation condition, 969Condition: IOperation condition,
Microsoft.CodeAnalysis.Features (8)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
191if (!ParseSwitchLabels(operation.Condition, labels))
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
215var condition = ifStatement.Condition; 470if (ContainsParameterReference(semanticModel, ifStatement.Condition, parameterSymbol, cancellationToken))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
95if (conditional.Condition is IBinaryOperation binary &&
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
74if (ReferencesDeclaredVariableInAssignment(ifOperation.Condition, trueAssignment?.Target, falseAssignment?.Target))
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
214var condition = ifStatement.Condition;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
126=> operation.Condition.Syntax;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
244return !ReferencesLocalVariable(ifOperation.Condition, variable);
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
1284Visit(operation.Condition, "Condition");
Compilation\TestOperationVisitor.cs (2)
893AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations); 897AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);