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