129 references to TokenKind
Microsoft.CSharp (129)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (1)
462
ErrAppendString(TokenFacts.GetText(
TokenKind
.ArgList));
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (72)
13
public readonly
TokenKind
TokenKind;
17
public OperatorInfo(
TokenKind
kind, PredefinedName pn, ExpressionKind e)
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 )
109
TokenKind
token = opInfo.TokenKind;
110
if (predefName != PredefinedName.PN_COUNT && token !=
TokenKind
.Unknown)
Microsoft\CSharp\RuntimeBinder\Syntax\TokenFacts.cs (56)
8
internal static string GetText(
TokenKind
kind) =>
11
TokenKind
.ArgList => "__arglist",
12
TokenKind
.MakeRef => "__makeref",
13
TokenKind
.RefType => "__reftype",
14
TokenKind
.RefValue => "__refvalue",
15
TokenKind
.As => "as",
16
TokenKind
.Base => "base",
17
TokenKind
.Checked => "checked",
18
TokenKind
.Explicit => "explicit",
19
TokenKind
.False => "false",
20
TokenKind
.Implicit => "implicit",
21
TokenKind
.Is => "is",
22
TokenKind
.Null => "null",
23
TokenKind
.This => "this",
24
TokenKind
.True => "true",
25
TokenKind
.TypeOf => "typeof",
26
TokenKind
.Unchecked => "unchecked",
27
TokenKind
.Void => "void",
28
TokenKind
.Equal => "=",
29
TokenKind
.PlusEqual => "+=",
30
TokenKind
.MinusEqual => "-=",
31
TokenKind
.SplatEqual => "*=",
32
TokenKind
.SlashEqual => "/=",
33
TokenKind
.PercentEqual => "%=",
34
TokenKind
.AndEqual => "&=",
35
TokenKind
.HatEqual => "^=",
36
TokenKind
.BarEqual => "|=",
37
TokenKind
.LeftShiftEqual => "<<=",
38
TokenKind
.RightShiftEqual => ">>=",
39
TokenKind
.Question => "?",
40
TokenKind
.Colon => ":",
41
TokenKind
.ColonColon => "::",
42
TokenKind
.LogicalOr => "||",
43
TokenKind
.LogicalAnd => "&&",
44
TokenKind
.Bar => "|",
45
TokenKind
.Hat => "^",
46
TokenKind
.Ampersand => "&",
47
TokenKind
.EqualEqual => "==",
48
TokenKind
.NotEqual => "!=",
49
TokenKind
.LessThan => "<",
50
TokenKind
.LessThanEqual => "<=",
51
TokenKind
.GreaterThan => ">",
52
TokenKind
.GreaterThanEqual => ">=",
53
TokenKind
.LeftShift => "<<",
54
TokenKind
.RightShift => ">>",
55
TokenKind
.Plus => "+",
56
TokenKind
.Minus => "-",
57
TokenKind
.Splat => "*",
58
TokenKind
.Slash => "/",
59
TokenKind
.Percent => "%",
60
TokenKind
.Tilde => "~",
61
TokenKind
.Bang => "!",
62
TokenKind
.PlusPlus => "++",
63
TokenKind
.MinusMinus => "--",
64
TokenKind
.Dot => ".",
65
TokenKind
.QuestionQuestion => "??",