41 references to EatContextualToken
Microsoft.CodeAnalysis.CSharp (41)
Parser\DirectiveParser.cs (14)
54
result = this.ParseIfDirective(hash, this.
EatContextualToken
(contextualKind), isActive);
58
result = this.ParseElifDirective(hash, this.
EatContextualToken
(contextualKind), isActive, endIsActive);
62
result = this.ParseElseDirective(hash, this.
EatContextualToken
(contextualKind), isActive, endIsActive);
66
result = this.ParseEndIfDirective(hash, this.
EatContextualToken
(contextualKind), isActive, endIsActive);
70
result = this.ParseRegionDirective(hash, this.
EatContextualToken
(contextualKind), isActive);
74
result = this.ParseEndRegionDirective(hash, this.
EatContextualToken
(contextualKind), isActive);
79
result = this.ParseDefineOrUndefDirective(hash, this.
EatContextualToken
(contextualKind), isActive, isFollowingToken);
84
result = this.ParseErrorOrWarningDirective(hash, this.
EatContextualToken
(contextualKind), isActive);
88
var lineKeyword = this.
EatContextualToken
(contextualKind);
95
result = this.ParsePragmaDirective(hash, this.
EatContextualToken
(contextualKind), isActive);
99
result = this.ParseReferenceDirective(hash, this.
EatContextualToken
(contextualKind), isActive, isFollowingToken);
103
result = this.ParseLoadDirective(hash, this.
EatContextualToken
(contextualKind), isActive, isFollowingToken);
107
result = this.ParseNullableDirective(hash, this.
EatContextualToken
(contextualKind), isActive);
576
var warning = this.
EatContextualToken
(SyntaxKind.WarningKeyword);
Parser\LanguageParser.cs (26)
936
this.
EatContextualToken
(SyntaxKind.AliasKeyword),
2176
var where = this.
EatContextualToken
(SyntaxKind.WhereKeyword);
2319
var allows = this.
EatContextualToken
(SyntaxKind.AllowsKeyword);
7880
managedSpecifier =
EatContextualToken
(CurrentToken.ContextualKind);
8216
return this.ParseForEachStatement(attributes, this.
EatContextualToken
(SyntaxKind.AwaitKeyword));
8223
return this.ParseUsingStatement(attributes, this.
EatContextualToken
(SyntaxKind.AwaitKeyword));
9143
var whenKeyword = this.
EatContextualToken
(SyntaxKind.WhenKeyword);
10142
awaitKeyword = this.
EatContextualToken
(SyntaxKind.AwaitKeyword);
10246
return this.
EatContextualToken
(SyntaxKind.ScopedKeyword);
10250
var scopedKeyword = this.
EatContextualToken
(SyntaxKind.ScopedKeyword);
10352
? _syntaxFactory.DiscardDesignation(this.
EatContextualToken
(SyntaxKind.UnderscoreToken))
10364
this.
EatContextualToken
(SyntaxKind.WhenKeyword),
10466
mod = this.
EatContextualToken
(k);
11144
this.
EatContextualToken
(SyntaxKind.AwaitKeyword),
11480
return this.
EatContextualToken
(operatorTokenKind);
11565
?
EatContextualToken
(SyntaxKind.ScopedKeyword)
11659
return _syntaxFactory.FieldExpression(this.
EatContextualToken
(SyntaxKind.FieldKeyword));
13398
modifiers.Add(this.
EatContextualToken
(SyntaxKind.AsyncKeyword));
13811
var @from = this.
EatContextualToken
(SyntaxKind.FromKeyword);
13845
joinKeyword: this.
EatContextualToken
(SyntaxKind.JoinKeyword),
13865
this.
EatContextualToken
(SyntaxKind.LetKeyword),
13875
this.
EatContextualToken
(SyntaxKind.WhereKeyword),
13882
var @orderby = this.
EatContextualToken
(SyntaxKind.OrderByKeyword);
13946
this.
EatContextualToken
(SyntaxKind.SelectKeyword),
13954
this.
EatContextualToken
(SyntaxKind.GroupKeyword),
13964
this.
EatContextualToken
(SyntaxKind.IntoKeyword),
Parser\LanguageParser_Patterns.cs (1)
189
return _syntaxFactory.DiscardPattern(this.
EatContextualToken
(SyntaxKind.UnderscoreToken));