23 references to Or
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
186 operation.OperatorKind == BinaryOperatorKind.Or &&
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (1)
3531/// Kind of binary pattern; either <see cref="BinaryOperatorKind.And" /> or <see cref="BinaryOperatorKind.Or" />.
Operations\ControlFlowGraphBuilder.cs (4)
2539new BinaryOperation(isAndAlso ? BinaryOperatorKind.And : BinaryOperatorKind.Or, 2629new BinaryOperation(isAndAlso ? BinaryOperatorKind.And : BinaryOperatorKind.Or, 5151eitherLimitOrControlVariableIsNull = new BinaryOperation(BinaryOperatorKind.Or, 5333IOperation condition = new BinaryOperation(BinaryOperatorKind.Or,
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (2)
66if (binaryPattern?.OperatorKind == BinaryOperatorKind.Or) 98BinaryOperatorKind.Or => IsDefault(binaryPattern.LeftPattern) || IsDefault(binaryPattern.RightPattern),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (4)
29{ BinaryOperatorKind.Or, BinaryOperatorKind.And }, 30{ BinaryOperatorKind.And, BinaryOperatorKind.Or }, 167if (binaryOperation.OperatorKind is BinaryOperatorKind.Or or 397BinaryOperatorKind.Or => generator.BitwiseOrExpression(leftOperand, rightOperand),
Microsoft.CodeAnalysis.CSharp (2)
Operations\CSharpOperationFactory.cs (1)
2673boundBinaryPattern.Disjunction ? BinaryOperatorKind.Or : BinaryOperatorKind.And,
Operations\CSharpOperationFactory_Methods.cs (1)
579return BinaryOperatorKind.Or;
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (2)
66if (binaryPattern?.OperatorKind == BinaryOperatorKind.Or) 98BinaryOperatorKind.Or => IsDefault(binaryPattern.LeftPattern) || IsDefault(binaryPattern.RightPattern),
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\ControlFlowGraphVerifier.cs (2)
947(binOp.OperatorKind == Operations.BinaryOperatorKind.And || binOp.OperatorKind == Operations.BinaryOperatorKind.Or) && 980binOp.OperatorKind == Operations.BinaryOperatorKind.Or &&
Compilation\TestOperationVisitor.cs (1)
1389Assert.True(operation.OperatorKind switch { Operations.BinaryOperatorKind.Or => true, Operations.BinaryOperatorKind.And => true, _ => false });
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (4)
29{ BinaryOperatorKind.Or, BinaryOperatorKind.And }, 30{ BinaryOperatorKind.And, BinaryOperatorKind.Or }, 167if (binaryOperation.OperatorKind is BinaryOperatorKind.Or or 397BinaryOperatorKind.Or => generator.BitwiseOrExpression(leftOperand, rightOperand),