57 references to OperatorKind
Microsoft.CSharp (57)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (44)
947
OperatorKind
op = GetOperatorKind(payload.Operation);
951
if (op ==
OperatorKind
.OP_TRUE || op ==
OperatorKind
.OP_FALSE)
956
if (result != null && op ==
OperatorKind
.OP_FALSE)
959
result = _binder.BindStandardUnaryOperator(
OperatorKind
.OP_LOGNOT, result);
963
?? _binder.bindUDUnop(op ==
OperatorKind
.OP_TRUE ? ExpressionKind.True : ExpressionKind.False, arg1)
1004
private static
OperatorKind
GetOperatorKind(ExpressionType p)
1009
private static
OperatorKind
GetOperatorKind(ExpressionType p, bool bIsLogical)
1019
return
OperatorKind
.OP_ADD;
1021
return
OperatorKind
.OP_SUB;
1023
return
OperatorKind
.OP_MUL;
1025
return
OperatorKind
.OP_DIV;
1027
return
OperatorKind
.OP_MOD;
1029
return
OperatorKind
.OP_LSHIFT;
1031
return
OperatorKind
.OP_RSHIFT;
1033
return
OperatorKind
.OP_LT;
1035
return
OperatorKind
.OP_GT;
1037
return
OperatorKind
.OP_LE;
1039
return
OperatorKind
.OP_GE;
1041
return
OperatorKind
.OP_EQ;
1043
return
OperatorKind
.OP_NEQ;
1045
return bIsLogical ?
OperatorKind
.OP_LOGAND :
OperatorKind
.OP_BITAND;
1047
return
OperatorKind
.OP_BITXOR;
1049
return bIsLogical ?
OperatorKind
.OP_LOGOR :
OperatorKind
.OP_BITOR;
1053
return
OperatorKind
.OP_ADDEQ;
1055
return
OperatorKind
.OP_SUBEQ;
1057
return
OperatorKind
.OP_MULEQ;
1059
return
OperatorKind
.OP_DIVEQ;
1061
return
OperatorKind
.OP_MODEQ;
1063
return
OperatorKind
.OP_ANDEQ;
1065
return
OperatorKind
.OP_XOREQ;
1067
return
OperatorKind
.OP_OREQ;
1069
return
OperatorKind
.OP_LSHIFTEQ;
1071
return
OperatorKind
.OP_RSHIFTEQ;
1075
return
OperatorKind
.OP_NEG;
1077
return
OperatorKind
.OP_UPLUS;
1079
return
OperatorKind
.OP_LOGNOT;
1081
return
OperatorKind
.OP_BITNOT;
1083
return
OperatorKind
.OP_TRUE;
1085
return
OperatorKind
.OP_FALSE;
1089
return
OperatorKind
.OP_PREINC;
1091
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)
1076
private static (ExpressionKind, UnaOpKind, EXPRFLAG) CalculateExprAndUnaryOpKinds(
OperatorKind
op, bool bChecked)
1083
case
OperatorKind
.OP_UPLUS:
1088
case
OperatorKind
.OP_NEG:
1097
case
OperatorKind
.OP_BITNOT:
1102
case
OperatorKind
.OP_LOGNOT:
1107
case
OperatorKind
.OP_POSTINC:
1117
case
OperatorKind
.OP_PREINC:
1126
case
OperatorKind
.OP_POSTDEC:
1136
case
OperatorKind
.OP_PREDEC:
1154
public Expr BindStandardUnaryOperator(
OperatorKind
op, Expr pArgument)