40 references to EatContextualToken
Microsoft.CodeAnalysis.CSharp (40)
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);
566
var warning = this.
EatContextualToken
(SyntaxKind.WarningKeyword);
Parser\LanguageParser.cs (25)
937
this.
EatContextualToken
(SyntaxKind.AliasKeyword),
2142
var where = this.
EatContextualToken
(SyntaxKind.WhereKeyword);
2285
var allows = this.
EatContextualToken
(SyntaxKind.AllowsKeyword);
7779
managedSpecifier =
EatContextualToken
(CurrentToken.ContextualKind);
8115
return this.ParseForEachStatement(attributes, this.
EatContextualToken
(SyntaxKind.AwaitKeyword));
8122
return this.ParseUsingStatement(attributes, this.
EatContextualToken
(SyntaxKind.AwaitKeyword));
9042
var whenKeyword = this.
EatContextualToken
(SyntaxKind.WhenKeyword);
10041
awaitKeyword = this.
EatContextualToken
(SyntaxKind.AwaitKeyword);
10141
SyntaxToken scopedKeyword = this.
EatContextualToken
(SyntaxKind.ScopedKeyword);
10224
? _syntaxFactory.DiscardDesignation(this.
EatContextualToken
(SyntaxKind.UnderscoreToken))
10236
this.
EatContextualToken
(SyntaxKind.WhenKeyword),
10338
mod = this.
EatContextualToken
(k);
11016
this.
EatContextualToken
(SyntaxKind.AwaitKeyword),
11276
return this.
EatContextualToken
(operatorTokenKind);
11425
?
EatContextualToken
(SyntaxKind.ScopedKeyword)
11519
return _syntaxFactory.FieldExpression(this.
EatContextualToken
(SyntaxKind.FieldKeyword));
13264
modifiers.Add(this.
EatContextualToken
(SyntaxKind.AsyncKeyword));
13677
var @from = this.
EatContextualToken
(SyntaxKind.FromKeyword);
13711
joinKeyword: this.
EatContextualToken
(SyntaxKind.JoinKeyword),
13731
this.
EatContextualToken
(SyntaxKind.LetKeyword),
13741
this.
EatContextualToken
(SyntaxKind.WhereKeyword),
13748
var @orderby = this.
EatContextualToken
(SyntaxKind.OrderByKeyword);
13812
this.
EatContextualToken
(SyntaxKind.SelectKeyword),
13820
this.
EatContextualToken
(SyntaxKind.GroupKeyword),
13830
this.
EatContextualToken
(SyntaxKind.IntoKeyword),
Parser\LanguageParser_Patterns.cs (1)
189
return _syntaxFactory.DiscardPattern(this.
EatContextualToken
(SyntaxKind.UnderscoreToken));