68 instantiations of OperatorInfo
Microsoft.CSharp (68)
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (68)
26
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
27
new
OperatorInfo
(TokenKind.Equal, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
28
new
OperatorInfo
(TokenKind.PlusEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.Add ),
29
new
OperatorInfo
(TokenKind.MinusEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.Subtract ),
30
new
OperatorInfo
(TokenKind.SplatEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.Multiply ),
31
new
OperatorInfo
(TokenKind.SlashEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.Divide ),
32
new
OperatorInfo
(TokenKind.PercentEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.Modulo ),
33
new
OperatorInfo
(TokenKind.AndEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.BitwiseAnd ),
34
new
OperatorInfo
(TokenKind.HatEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.BitwiseExclusiveOr),
35
new
OperatorInfo
(TokenKind.BarEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.BitwiseOr ),
36
new
OperatorInfo
(TokenKind.LeftShiftEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.LeftShirt ),
37
new
OperatorInfo
(TokenKind.RightShiftEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.RightShift ),
38
new
OperatorInfo
(TokenKind.Question, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
39
new
OperatorInfo
(TokenKind.QuestionQuestion, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
40
new
OperatorInfo
(TokenKind.LogicalOr, PredefinedName.PN_COUNT, ExpressionKind.LogicalOr ),
41
new
OperatorInfo
(TokenKind.LogicalAnd, PredefinedName.PN_COUNT, ExpressionKind.LogicalAnd ),
42
new
OperatorInfo
(TokenKind.Bar, PredefinedName.PN_OPBITWISEOR, ExpressionKind.BitwiseOr ),
43
new
OperatorInfo
(TokenKind.Hat, PredefinedName.PN_OPXOR, ExpressionKind.BitwiseExclusiveOr ),
44
new
OperatorInfo
(TokenKind.Ampersand, PredefinedName.PN_OPBITWISEAND, ExpressionKind.BitwiseAnd ),
45
new
OperatorInfo
(TokenKind.EqualEqual, PredefinedName.PN_OPEQUALITY, ExpressionKind.Eq ),
46
new
OperatorInfo
(TokenKind.NotEqual, PredefinedName.PN_OPINEQUALITY, ExpressionKind.NotEq ),
47
new
OperatorInfo
(TokenKind.LessThan, PredefinedName.PN_OPLESSTHAN, ExpressionKind.LessThan ),
48
new
OperatorInfo
(TokenKind.LessThanEqual, PredefinedName.PN_OPLESSTHANOREQUAL, ExpressionKind.LessThanOrEqual ),
49
new
OperatorInfo
(TokenKind.GreaterThan, PredefinedName.PN_OPGREATERTHAN, ExpressionKind.GreaterThan ),
50
new
OperatorInfo
(TokenKind.GreaterThanEqual, PredefinedName.PN_OPGREATERTHANOREQUAL, ExpressionKind.GreaterThanOrEqual ),
51
new
OperatorInfo
(TokenKind.Is, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
52
new
OperatorInfo
(TokenKind.As, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
53
new
OperatorInfo
(TokenKind.LeftShift, PredefinedName.PN_OPLEFTSHIFT, ExpressionKind.LeftShirt ),
54
new
OperatorInfo
(TokenKind.RightShift, PredefinedName.PN_OPRIGHTSHIFT, ExpressionKind.RightShift ),
55
new
OperatorInfo
(TokenKind.Plus, PredefinedName.PN_OPPLUS, ExpressionKind.Add ),
56
new
OperatorInfo
(TokenKind.Minus, PredefinedName.PN_OPMINUS, ExpressionKind.Subtract ),
57
new
OperatorInfo
(TokenKind.Splat, PredefinedName.PN_OPMULTIPLY, ExpressionKind.Multiply ),
58
new
OperatorInfo
(TokenKind.Slash, PredefinedName.PN_OPDIVISION, ExpressionKind.Divide ),
59
new
OperatorInfo
(TokenKind.Percent, PredefinedName.PN_OPMODULUS, ExpressionKind.Modulo ),
60
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
61
new
OperatorInfo
(TokenKind.Plus, PredefinedName.PN_OPUNARYPLUS, ExpressionKind.UnaryPlus ),
62
new
OperatorInfo
(TokenKind.Minus, PredefinedName.PN_OPUNARYMINUS, ExpressionKind.Negate ),
63
new
OperatorInfo
(TokenKind.Tilde, PredefinedName.PN_OPCOMPLEMENT, ExpressionKind.BitwiseNot ),
64
new
OperatorInfo
(TokenKind.Bang, PredefinedName.PN_OPNEGATION, ExpressionKind.LogicalNot ),
65
new
OperatorInfo
(TokenKind.PlusPlus, PredefinedName.PN_OPINCREMENT, ExpressionKind.Add ),
66
new
OperatorInfo
(TokenKind.MinusMinus, PredefinedName.PN_OPDECREMENT, ExpressionKind.Subtract ),
67
new
OperatorInfo
(TokenKind.TypeOf, PredefinedName.PN_COUNT, ExpressionKind.TypeOf ),
68
new
OperatorInfo
(TokenKind.Checked, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
69
new
OperatorInfo
(TokenKind.Unchecked, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
70
new
OperatorInfo
(TokenKind.MakeRef, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
71
new
OperatorInfo
(TokenKind.RefValue, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
72
new
OperatorInfo
(TokenKind.RefType, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
73
new
OperatorInfo
(TokenKind.ArgList, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
74
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
75
new
OperatorInfo
(TokenKind.Splat, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
76
new
OperatorInfo
(TokenKind.Ampersand, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
77
new
OperatorInfo
(TokenKind.Colon, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
78
new
OperatorInfo
(TokenKind.This, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
79
new
OperatorInfo
(TokenKind.Base, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
80
new
OperatorInfo
(TokenKind.Null, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
81
new
OperatorInfo
(TokenKind.True, PredefinedName.PN_OPTRUE, ExpressionKind.ExpressionKindCount ),
82
new
OperatorInfo
(TokenKind.False, PredefinedName.PN_OPFALSE, ExpressionKind.ExpressionKindCount ),
83
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
84
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
85
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
86
new
OperatorInfo
(TokenKind.PlusPlus, PredefinedName.PN_COUNT, ExpressionKind.Add ),
87
new
OperatorInfo
(TokenKind.MinusMinus, PredefinedName.PN_COUNT, ExpressionKind.Subtract ),
88
new
OperatorInfo
(TokenKind.Dot, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount ),
89
new
OperatorInfo
(TokenKind.Implicit, PredefinedName.PN_OPIMPLICITMN, ExpressionKind.ExpressionKindCount ),
90
new
OperatorInfo
(TokenKind.Explicit, PredefinedName.PN_OPEXPLICITMN, ExpressionKind.ExpressionKindCount ),
91
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_OPEQUALS, ExpressionKind.ExpressionKindCount ),
92
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_OPCOMPARE, ExpressionKind.ExpressionKindCount ),
93
new
OperatorInfo
(TokenKind.Unknown, PredefinedName.PN_COUNT, ExpressionKind.ExpressionKindCount )
3 references to OperatorInfo
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (3)
25
private static readonly
OperatorInfo
[] s_operatorInfos = {
106
foreach (
OperatorInfo
opInfo in s_operatorInfos)
119
private static
OperatorInfo
GetInfo(OperatorKind op) => s_operatorInfos[(int)op];