57 references to OperatorKind
Microsoft.CSharp (57)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (44)
971
OperatorKind
op = GetOperatorKind(payload.Operation);
975
if (op ==
OperatorKind
.OP_TRUE || op ==
OperatorKind
.OP_FALSE)
980
if (result != null && op ==
OperatorKind
.OP_FALSE)
983
result = _binder.BindStandardUnaryOperator(
OperatorKind
.OP_LOGNOT, result);
987
?? _binder.bindUDUnop(op ==
OperatorKind
.OP_TRUE ? ExpressionKind.True : ExpressionKind.False, arg1)
1029
private static
OperatorKind
GetOperatorKind(ExpressionType p)
1034
private static
OperatorKind
GetOperatorKind(ExpressionType p, bool bIsLogical)
1044
return
OperatorKind
.OP_ADD;
1046
return
OperatorKind
.OP_SUB;
1048
return
OperatorKind
.OP_MUL;
1050
return
OperatorKind
.OP_DIV;
1052
return
OperatorKind
.OP_MOD;
1054
return
OperatorKind
.OP_LSHIFT;
1056
return
OperatorKind
.OP_RSHIFT;
1058
return
OperatorKind
.OP_LT;
1060
return
OperatorKind
.OP_GT;
1062
return
OperatorKind
.OP_LE;
1064
return
OperatorKind
.OP_GE;
1066
return
OperatorKind
.OP_EQ;
1068
return
OperatorKind
.OP_NEQ;
1070
return bIsLogical ?
OperatorKind
.OP_LOGAND :
OperatorKind
.OP_BITAND;
1072
return
OperatorKind
.OP_BITXOR;
1074
return bIsLogical ?
OperatorKind
.OP_LOGOR :
OperatorKind
.OP_BITOR;
1078
return
OperatorKind
.OP_ADDEQ;
1080
return
OperatorKind
.OP_SUBEQ;
1082
return
OperatorKind
.OP_MULEQ;
1084
return
OperatorKind
.OP_DIVEQ;
1086
return
OperatorKind
.OP_MODEQ;
1088
return
OperatorKind
.OP_ANDEQ;
1090
return
OperatorKind
.OP_XOREQ;
1092
return
OperatorKind
.OP_OREQ;
1094
return
OperatorKind
.OP_LSHIFTEQ;
1096
return
OperatorKind
.OP_RSHIFTEQ;
1100
return
OperatorKind
.OP_NEG;
1102
return
OperatorKind
.OP_UPLUS;
1104
return
OperatorKind
.OP_LOGNOT;
1106
return
OperatorKind
.OP_BITNOT;
1108
return
OperatorKind
.OP_TRUE;
1110
return
OperatorKind
.OP_FALSE;
1114
return
OperatorKind
.OP_PREINC;
1116
return
OperatorKind
.OP_PREDEC;
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (3)
119
private static OperatorInfo GetInfo(
OperatorKind
op) => s_operatorInfos[(int)op];
124
public static string GetDisplayName(
OperatorKind
op) => TokenFacts.GetText(GetInfo(op).TokenKind);
126
public static ExpressionKind GetExpressionKind(
OperatorKind
op) => GetInfo(op).ExpressionKind;
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (10)
1100
private static (ExpressionKind, UnaOpKind, EXPRFLAG) CalculateExprAndUnaryOpKinds(
OperatorKind
op, bool bChecked)
1107
case
OperatorKind
.OP_UPLUS:
1112
case
OperatorKind
.OP_NEG:
1121
case
OperatorKind
.OP_BITNOT:
1126
case
OperatorKind
.OP_LOGNOT:
1131
case
OperatorKind
.OP_POSTINC:
1141
case
OperatorKind
.OP_PREINC:
1150
case
OperatorKind
.OP_POSTDEC:
1160
case
OperatorKind
.OP_PREDEC:
1179
public Expr BindStandardUnaryOperator(
OperatorKind
op, Expr pArgument)