34 references to TokenKind
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (34)
CSharp\MemberSignatureParser.cs (27)
26
} while (token.Kind !=
TokenKind
.End);
52
Debug.Assert(token.Kind !=
TokenKind
.End);
61
if (CurrentToken.Kind ==
TokenKind
.OpenParen)
65
if (CurrentToken.Kind !=
TokenKind
.End)
77
if (CurrentToken.Kind !=
TokenKind
.Identifier)
83
if (CurrentToken.Kind ==
TokenKind
.LessThan)
88
if (CurrentToken.Kind !=
TokenKind
.Dot)
98
Debug.Assert(CurrentToken.Kind ==
TokenKind
.LessThan);
103
if (CurrentToken.Kind !=
TokenKind
.Identifier)
111
case
TokenKind
.GreaterThan:
114
case
TokenKind
.Comma:
130
case
TokenKind
.Identifier:
137
case
TokenKind
.Keyword:
158
if (CurrentToken.Kind ==
TokenKind
.LessThan)
163
if (CurrentToken.Kind !=
TokenKind
.Dot)
173
Debug.Assert(CurrentToken.Kind ==
TokenKind
.LessThan);
182
case
TokenKind
.GreaterThan:
185
case
TokenKind
.Comma:
201
case
TokenKind
.OpenBracket:
204
while (CurrentToken.Kind ==
TokenKind
.Comma)
209
if (CurrentToken.Kind !=
TokenKind
.CloseBracket)
216
case
TokenKind
.Asterisk:
220
case
TokenKind
.QuestionMark:
256
Debug.Assert(CurrentToken.Kind ==
TokenKind
.OpenParen);
258
if (CurrentToken.Kind ==
TokenKind
.CloseParen)
271
case
TokenKind
.CloseParen:
274
case
TokenKind
.Comma:
CSharp\Scanner.cs (7)
37
internal readonly
TokenKind
Kind;
41
internal Token(
TokenKind
kind, string text = null, SyntaxKind keywordKind = SyntaxKind.None)
73
if (_currentToken.Kind ==
TokenKind
.Start)
96
return new Token(
TokenKind
.End);
110
return new Token((
TokenKind
)c);
132
return new Token(
TokenKind
.Identifier, text);
134
return new Token(
TokenKind
.Keyword, text, keywordKind);