17 references to IsUserDefined
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Operators.cs (3)
195
bool isPredefinedOperator = !bestSignature.Kind.
IsUserDefined
();
992
if (!bothBool && !signature.Kind.
IsUserDefined
())
1006
if (resultKind.
IsUserDefined
())
BoundTree\Constructors.cs (1)
513
Debug.Assert(operatorKind.
IsUserDefined
() && operatorKind.IsLogical());
BoundTree\TupleBinaryOperatorInfo.cs (1)
73
Debug.Assert(Kind.
IsUserDefined
() == (MethodSymbolOpt is { }));
CodeGen\EmitExpression.cs (2)
2154
Debug.Assert(!b.OperatorKind.
IsUserDefined
());
2156
if (b.OperatorKind.
IsUserDefined
() || !isSafeToDereferenceReceiverRefAfterEvaluatingArgument(b.Right))
FlowAnalysis\AbstractFlowPass.cs (3)
2388
Debug.Assert(!node.OperatorKind.
IsUserDefined
());
2430
Debug.Assert(!binOp.OperatorKind.
IsUserDefined
());
2625
&& (!kind.
IsUserDefined
() || kind.IsLifted());
FlowAnalysis\NullableWalker.cs (3)
4838
if (operatorKind.
IsUserDefined
())
5089
if (operatorKind.
IsUserDefined
() &&
11364
Debug.Assert(!((BoundBinaryOperator)node).OperatorKind.
IsUserDefined
());
Lowering\DiagnosticsPass_Warnings.cs (2)
818
Error(node.OperatorKind.
IsUserDefined
() ? ErrorCode.WRN_NubExprIsConstBool2 : ErrorCode.WRN_NubExprIsConstBool, node, always, node.Left.Type.GetNullableUnderlyingType(), GetTypeForLiftedComparisonWarning(node.Right));
822
Error(node.OperatorKind.
IsUserDefined
() ? ErrorCode.WRN_NubExprIsConstBool2 : ErrorCode.WRN_NubExprIsConstBool, node, always, node.Right.Type.GetNullableUnderlyingType(), GetTypeForLiftedComparisonWarning(node.Left));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
245
if (operatorKind.
IsUserDefined
())
555
operatorKind.
IsUserDefined
() ?