43 references to UserDefined
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder_Operators.cs (1)
1106
Debug.Assert(signature.Kind.OperandTypes() == BinaryOperatorKind.
UserDefined
);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
976
operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.
UserDefined
| kind, leftOperandType, rightOperandType, resultType, op, constrainedToTypeOpt));
996
BinaryOperatorKind.Lifted | BinaryOperatorKind.
UserDefined
| kind,
1002
BinaryOperatorKind.Lifted | BinaryOperatorKind.
UserDefined
| kind,
Binder\Semantics\Operators\OperatorKind.cs (36)
364
UserDefinedMultiplication =
UserDefined
| Multiplication,
374
LiftedUserDefinedMultiplication = Lifted |
UserDefined
| Multiplication,
386
UserDefinedDivision =
UserDefined
| Division,
396
LiftedUserDefinedDivision = Lifted |
UserDefined
| Division,
408
UserDefinedRemainder =
UserDefined
| Remainder,
418
LiftedUserDefinedRemainder = Lifted |
UserDefined
| Remainder,
432
UserDefinedAddition =
UserDefined
| Addition,
444
LiftedUserDefinedAddition = Lifted |
UserDefined
| Addition,
472
UserDefinedSubtraction =
UserDefined
| Subtraction,
485
LiftedUserDefinedSubtraction = Lifted |
UserDefined
| Subtraction,
500
UserDefinedLeftShift =
UserDefined
| LeftShift,
507
LiftedUserDefinedLeftShift = Lifted |
UserDefined
| LeftShift,
516
UserDefinedRightShift =
UserDefined
| RightShift,
523
LiftedUserDefinedRightShift = Lifted |
UserDefined
| RightShift,
532
UserDefinedUnsignedRightShift =
UserDefined
| UnsignedRightShift,
539
LiftedUserDefinedUnsignedRightShift = Lifted |
UserDefined
| UnsignedRightShift,
553
UserDefinedEqual =
UserDefined
| Equal,
565
LiftedUserDefinedEqual = Lifted |
UserDefined
| Equal,
584
UserDefinedNotEqual =
UserDefined
| NotEqual,
596
LiftedUserDefinedNotEqual = Lifted |
UserDefined
| NotEqual,
613
UserDefinedLessThan =
UserDefined
| LessThan,
624
LiftedUserDefinedLessThan = Lifted |
UserDefined
| LessThan,
638
UserDefinedGreaterThan =
UserDefined
| GreaterThan,
649
LiftedUserDefinedGreaterThan = Lifted |
UserDefined
| GreaterThan,
663
UserDefinedLessThanOrEqual =
UserDefined
| LessThanOrEqual,
674
LiftedUserDefinedLessThanOrEqual = Lifted |
UserDefined
| LessThanOrEqual,
688
UserDefinedGreaterThanOrEqual =
UserDefined
| GreaterThanOrEqual,
699
LiftedUserDefinedGreaterThanOrEqual = Lifted |
UserDefined
| GreaterThanOrEqual,
711
UserDefinedAnd =
UserDefined
| And,
720
LiftedUserDefinedAnd = Lifted |
UserDefined
| And,
725
LogicalUserDefinedAnd =
UserDefined
| LogicalAnd,
736
UserDefinedOr =
UserDefined
| Or,
745
LiftedUserDefinedOr = Lifted |
UserDefined
| Or,
750
LogicalUserDefinedOr =
UserDefined
| LogicalOr,
761
UserDefinedXor =
UserDefined
| Xor,
770
LiftedUserDefinedXor = Lifted |
UserDefined
| Xor,
Binder\Semantics\Operators\OperatorKindExtensions.cs (1)
327
return (kind & BinaryOperatorKind.TypeMask) == BinaryOperatorKind.
UserDefined
;
Compilation\CSharpSemanticModel.cs (2)
3846
if (operandType == 0 || operandType == BinaryOperatorKind.
UserDefined
|| binaryOperator.ResultKind != LookupResultKind.Viable || binaryOperator.OperatorKind.IsLogical())
3919
if (operandType == 0 || operandType == BinaryOperatorKind.
UserDefined
|| compoundAssignment.ResultKind != LookupResultKind.Viable)