19 references to IsUserDefined
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Operators.cs (6)
260
bool isPredefinedOperator = !bestSignature.Kind.
IsUserDefined
();
299
if (!hasError && !bestSignature.Kind.
IsUserDefined
() && leftType.IsVoidPointer())
1007
Debug.Assert(!resultOperatorKind.
IsUserDefined
());
1014
if (!resultOperatorKind.
IsUserDefined
() && (leftType.IsVoidPointer() || rightType.IsVoidPointer()))
1462
if (!bothBool && !signature.Kind.
IsUserDefined
())
1476
if (resultKind.
IsUserDefined
())
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)
2394
Debug.Assert(!node.OperatorKind.
IsUserDefined
());
2436
Debug.Assert(!binOp.OperatorKind.
IsUserDefined
());
2656
&& (!kind.
IsUserDefined
() || kind.IsLifted());
FlowAnalysis\NullableWalker.cs (3)
5055
if (operatorKind.
IsUserDefined
())
5236
if (binary.OperatorKind.
IsUserDefined
())
5306
if (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)
252
if (operatorKind.
IsUserDefined
())
562
operatorKind.
IsUserDefined
() ?