27 references to UserDefined
Microsoft.CodeAnalysis.CSharp (27)
Binder\Semantics\Operators\OperatorKind.cs (19)
89
UserDefinedPostfixIncrement =
UserDefined
| PostfixIncrement,
105
LiftedUserDefinedPostfixIncrement = Lifted |
UserDefined
| PostfixIncrement,
124
UserDefinedPrefixIncrement =
UserDefined
| PrefixIncrement,
140
LiftedUserDefinedPrefixIncrement = Lifted |
UserDefined
| PrefixIncrement,
159
UserDefinedPostfixDecrement =
UserDefined
| PostfixDecrement,
175
LiftedUserDefinedPostfixDecrement = Lifted |
UserDefined
| PostfixDecrement,
194
UserDefinedPrefixDecrement =
UserDefined
| PrefixDecrement,
210
LiftedUserDefinedPrefixDecrement = Lifted |
UserDefined
| PrefixDecrement,
223
UserDefinedUnaryPlus =
UserDefined
| UnaryPlus,
233
LiftedUserDefinedUnaryPlus = Lifted |
UserDefined
| UnaryPlus,
242
UserDefinedUnaryMinus =
UserDefined
| UnaryMinus,
249
LiftedUserDefinedUnaryMinus = Lifted |
UserDefined
| UnaryMinus,
253
UserDefinedLogicalNegation =
UserDefined
| LogicalNegation,
255
LiftedUserDefinedLogicalNegation = Lifted |
UserDefined
| LogicalNegation,
265
UserDefinedBitwiseComplement =
UserDefined
| BitwiseComplement,
273
LiftedUserDefinedBitwiseComplement = Lifted |
UserDefined
| BitwiseComplement,
277
UserDefinedTrue =
UserDefined
| True,
278
UserDefinedFalse =
UserDefined
| False,
326
UserDefined = UnaryOperatorKind.
UserDefined
,
Binder\Semantics\Operators\OperatorKindExtensions.cs (1)
46
return (kind & UnaryOperatorKind.TypeMask) == UnaryOperatorKind.
UserDefined
;
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
528
operators.Add(new UnaryOperatorSignature(UnaryOperatorKind.
UserDefined
| kind, operandType, resultType, op, constrainedToTypeOpt));
559
UnaryOperatorKind.Lifted | UnaryOperatorKind.
UserDefined
| kind,
Compilation\CSharpSemanticModel.cs (2)
3798
if (operandType == 0 || operandType == UnaryOperatorKind.
UserDefined
|| unaryOperator.ResultKind != LookupResultKind.Viable)
3821
if (operandType == 0 || operandType == UnaryOperatorKind.
UserDefined
|| increment.ResultKind != LookupResultKind.Viable)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
577
if (node.OperatorKind.OperandTypes() == UnaryOperatorKind.
UserDefined
)
957
case UnaryOperatorKind.
UserDefined
:
1057
case UnaryOperatorKind.
UserDefined
: