19 references to IsUserDefined
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Operators.cs (3)
195
bool isPredefinedOperator = !bestSignature.Kind.
IsUserDefined
();
961
if (!bothBool && !signature.Kind.
IsUserDefined
())
975
if (resultKind.
IsUserDefined
())
BoundTree\Constructors.cs (1)
456
Debug.Assert(operatorKind.
IsUserDefined
() && operatorKind.IsLogical());
BoundTree\TupleBinaryOperatorInfo.cs (1)
73
Debug.Assert(Kind.
IsUserDefined
() == (MethodSymbolOpt is { }));
CodeGen\EmitExpression.cs (2)
1934
Debug.Assert(!b.OperatorKind.
IsUserDefined
());
1936
if (b.OperatorKind.
IsUserDefined
() || !isSafeToDereferenceReceiverRefAfterEvaluatingArgument(b.Right))
FlowAnalysis\AbstractFlowPass.cs (3)
2196
Debug.Assert(!node.OperatorKind.
IsUserDefined
());
2238
Debug.Assert(!binOp.OperatorKind.
IsUserDefined
());
2433
&& (!kind.
IsUserDefined
() || kind.IsLifted());
FlowAnalysis\NullableWalker.cs (5)
4411
if (operatorKind.
IsUserDefined
())
4592
if (binary.OperatorKind.
IsUserDefined
())
4646
if (binary.OperatorKind.
IsUserDefined
() &&
9667
if (node.Operator.Kind.
IsUserDefined
() && (object)node.Operator.Method != null && node.Operator.Method.ParameterCount == 2)
10446
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)
243
if (operatorKind.
IsUserDefined
())
553
operatorKind.
IsUserDefined
() ?