98 references to NotEqual
Microsoft.CodeAnalysis.CSharp (98)
Binder\Binder_Operators.cs (8)
539bool isEquality = kind == BinaryOperatorKind.Equal || kind == BinaryOperatorKind.NotEqual; 546(kind == BinaryOperatorKind.Equal || kind == BinaryOperatorKind.NotEqual)) 730(signature.Kind.Operator() == BinaryOperatorKind.Equal || signature.Kind.Operator() == BinaryOperatorKind.NotEqual) && 1295case BinaryOperatorKind.NotEqual: 1397bool isEquality = kind == BinaryOperatorKind.Equal || kind == BinaryOperatorKind.NotEqual; 1760case BinaryOperatorKind.NotEqual: 1944if (op == BinaryOperatorKind.Equal || op == BinaryOperatorKind.NotEqual) 2243case SyntaxKind.NotEqualsExpression: return BinaryOperatorKind.NotEqual;
Binder\Binder_TupleOperators.cs (1)
151case BinaryOperatorKind.NotEqual:
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (10)
311case BinaryOperatorKind.NotEqual: 352case BinaryOperatorKind.NotEqual: 379case BinaryOperatorKind.NotEqual: 441bool useIdentityConversion = kind == BinaryOperatorKind.Equal || kind == BinaryOperatorKind.NotEqual; 455if ((kind == BinaryOperatorKind.Equal || kind == BinaryOperatorKind.NotEqual) 522case BinaryOperatorKind.NotEqual: 577case BinaryOperatorKind.NotEqual: 647case BinaryOperatorKind.NotEqual: 712bool isEquality = kind == BinaryOperatorKind.Equal || kind == BinaryOperatorKind.NotEqual; 1037case BinaryOperatorKind.NotEqual:
Binder\Semantics\Operators\OperatorFacts.cs (1)
203case BinaryOperatorKind.NotEqual: return WellKnownMemberNames.InequalityOperatorName;
Binder\Semantics\Operators\OperatorKind.cs (30)
572IntNotEqual = Int | NotEqual, 573UIntNotEqual = UInt | NotEqual, 574LongNotEqual = Long | NotEqual, 575ULongNotEqual = ULong | NotEqual, 576NIntNotEqual = NInt | NotEqual, 577NUIntNotEqual = NUInt | NotEqual, 578FloatNotEqual = Float | NotEqual, 579DoubleNotEqual = Double | NotEqual, 580DecimalNotEqual = Decimal | NotEqual, 581BoolNotEqual = Bool | NotEqual, 582EnumNotEqual = Enum | NotEqual, 583NullableNullNotEqual = NullableNull | NotEqual, 584UserDefinedNotEqual = UserDefined | NotEqual, 585LiftedIntNotEqual = Lifted | Int | NotEqual, 586LiftedUIntNotEqual = Lifted | UInt | NotEqual, 587LiftedLongNotEqual = Lifted | Long | NotEqual, 588LiftedULongNotEqual = Lifted | ULong | NotEqual, 589LiftedNIntNotEqual = Lifted | NInt | NotEqual, 590LiftedNUIntNotEqual = Lifted | NUInt | NotEqual, 591LiftedFloatNotEqual = Lifted | Float | NotEqual, 592LiftedDoubleNotEqual = Lifted | Double | NotEqual, 593LiftedDecimalNotEqual = Lifted | Decimal | NotEqual, 594LiftedBoolNotEqual = Lifted | Bool | NotEqual, 595LiftedEnumNotEqual = Lifted | Enum | NotEqual, 596LiftedUserDefinedNotEqual = Lifted | UserDefined | NotEqual, 597ObjectNotEqual = Object | NotEqual, 598StringNotEqual = String | NotEqual, 599DelegateNotEqual = Delegate | NotEqual, 600PointerNotEqual = Pointer | NotEqual, 601DynamicNotEqual = Dynamic | NotEqual,
Binder\Semantics\Operators\OperatorKindExtensions.cs (2)
205case BinaryOperatorKind.NotEqual: 366case BinaryOperatorKind.NotEqual: return ExpressionType.NotEqual;
CodeGen\EmitOperators.cs (2)
353case BinaryOperatorKind.NotEqual: 819case BinaryOperatorKind.NotEqual:
CodeGen\EmitStatement.cs (4)
233opKind == BinaryOperatorKind.NotEqual); 274if (opKind == BinaryOperatorKind.NotEqual) 309case BinaryOperatorKind.NotEqual: 499case BinaryOperatorKind.NotEqual:
Compilation\BuiltInOperators.cs (1)
728case BinaryOperatorKind.NotEqual:
Compilation\CSharpCompilation.cs (4)
4267if (binaryKind is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual && 4284if (binaryKind is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual && 4308BinaryOperatorKind.NotEqual or 4363BinaryOperatorKind.NotEqual or
Compilation\CSharpSemanticModel.cs (1)
3858(op == BinaryOperatorKind.Equal || op == BinaryOperatorKind.NotEqual) &&
FlowAnalysis\AbstractFlowPass.cs (1)
2624return kind.Operator() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual
FlowAnalysis\NullableWalker.cs (4)
4892&& binary.OperatorKind.Operator() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual) 4995if (binary.OperatorKind.Operator() is not (BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual)) 5222if (op == BinaryOperatorKind.Equal || op == BinaryOperatorKind.NotEqual) 5270case BinaryOperatorKind.NotEqual:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
457case BinaryOperatorKind.NotEqual:
Lowering\DiagnosticsPass_Warnings.cs (4)
759case BinaryOperatorKind.NotEqual: 765string always = node.OperatorKind.Operator() == BinaryOperatorKind.NotEqual ? "true" : "false"; 808case BinaryOperatorKind.NotEqual: 814string always = node.OperatorKind.Operator() == BinaryOperatorKind.NotEqual ? "true" : "false";
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
344return MakeNullCheck(d.Syntax, input, input.Type.IsNullableType() ? BinaryOperatorKind.NullableNullNotEqual : BinaryOperatorKind.NotEqual);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (14)
487BinaryOperatorKind.NotEqual : 502BinaryOperatorKind.NotEqual : 566if (operatorKind.Operator() == BinaryOperatorKind.NotEqual || 843BoundExpression result = MakeLiteral(syntax, ConstantValue.Create(operatorKind == BinaryOperatorKind.NotEqual), boolType); 870if (operatorKind == BinaryOperatorKind.Equal || operatorKind == BinaryOperatorKind.NotEqual) 880BoundExpression falseExpr = MakeBooleanConstant(syntax, operatorKind == BinaryOperatorKind.NotEqual); 1000if (kind.Operator() is BinaryOperatorKind.Equal or BinaryOperatorKind.NotEqual) 1044case BinaryOperatorKind.NotEqual: 1087if (operatorKind == BinaryOperatorKind.NotEqual) 1216case BinaryOperatorKind.NotEqual: 1246if (operatorKind == BinaryOperatorKind.Equal || operatorKind == BinaryOperatorKind.NotEqual) 1274BoundExpression alternative = MakeBooleanConstant(syntax, operatorKind == BinaryOperatorKind.NotEqual); 2071Debug.Assert((operatorKind == BinaryOperatorKind.Equal) || (operatorKind == BinaryOperatorKind.NotEqual) || 2092case BinaryOperatorKind.NotEqual:
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
473BoundExpression notNullCheck = _factory.MakeNullCheck(factory.Syntax, factory.Local(localSymbol), BinaryOperatorKind.NotEqual); 527BoundExpression notNullCheck = _factory.MakeNullCheck(factory.Syntax, arrayTempInit, BinaryOperatorKind.NotEqual);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
452operatorKind: BinaryOperatorKind.NotEqual, // reference equality
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
73return _factory.MakeNullCheck(syntax, rewrittenOperand, BinaryOperatorKind.NotEqual);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
163BoundExpression nullCheck = _factory.MakeNullCheck(syntax, boundTemp, BinaryOperatorKind.NotEqual);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
392ifCondition = _factory.MakeNullCheck(resourceSyntax, local, BinaryOperatorKind.NotEqual);
Lowering\SyntheticBoundNodeFactory.cs (2)
1743Debug.Assert((operatorKind == BinaryOperatorKind.Equal) || (operatorKind == BinaryOperatorKind.NotEqual) || 1764case BinaryOperatorKind.NotEqual:
Operations\CSharpOperationFactory_Methods.cs (1)
593case CSharp.BinaryOperatorKind.NotEqual: