40 references to EatContextualToken
Microsoft.CodeAnalysis.CSharp (40)
Parser\DirectiveParser.cs (14)
54result = this.ParseIfDirective(hash, this.EatContextualToken(contextualKind), isActive); 58result = this.ParseElifDirective(hash, this.EatContextualToken(contextualKind), isActive, endIsActive); 62result = this.ParseElseDirective(hash, this.EatContextualToken(contextualKind), isActive, endIsActive); 66result = this.ParseEndIfDirective(hash, this.EatContextualToken(contextualKind), isActive, endIsActive); 70result = this.ParseRegionDirective(hash, this.EatContextualToken(contextualKind), isActive); 74result = this.ParseEndRegionDirective(hash, this.EatContextualToken(contextualKind), isActive); 79result = this.ParseDefineOrUndefDirective(hash, this.EatContextualToken(contextualKind), isActive, isFollowingToken); 84result = this.ParseErrorOrWarningDirective(hash, this.EatContextualToken(contextualKind), isActive); 88var lineKeyword = this.EatContextualToken(contextualKind); 95result = this.ParsePragmaDirective(hash, this.EatContextualToken(contextualKind), isActive); 99result = this.ParseReferenceDirective(hash, this.EatContextualToken(contextualKind), isActive, isFollowingToken); 103result = this.ParseLoadDirective(hash, this.EatContextualToken(contextualKind), isActive, isFollowingToken); 107result = this.ParseNullableDirective(hash, this.EatContextualToken(contextualKind), isActive); 566var warning = this.EatContextualToken(SyntaxKind.WarningKeyword);
Parser\LanguageParser.cs (25)
937this.EatContextualToken(SyntaxKind.AliasKeyword), 2142var where = this.EatContextualToken(SyntaxKind.WhereKeyword); 2285var allows = this.EatContextualToken(SyntaxKind.AllowsKeyword); 7779managedSpecifier = EatContextualToken(CurrentToken.ContextualKind); 8115return this.ParseForEachStatement(attributes, this.EatContextualToken(SyntaxKind.AwaitKeyword)); 8122return this.ParseUsingStatement(attributes, this.EatContextualToken(SyntaxKind.AwaitKeyword)); 9042var whenKeyword = this.EatContextualToken(SyntaxKind.WhenKeyword); 10041awaitKeyword = this.EatContextualToken(SyntaxKind.AwaitKeyword); 10141SyntaxToken scopedKeyword = this.EatContextualToken(SyntaxKind.ScopedKeyword); 10224? _syntaxFactory.DiscardDesignation(this.EatContextualToken(SyntaxKind.UnderscoreToken)) 10236this.EatContextualToken(SyntaxKind.WhenKeyword), 10338mod = this.EatContextualToken(k); 11016this.EatContextualToken(SyntaxKind.AwaitKeyword), 11276return this.EatContextualToken(operatorTokenKind); 11425? EatContextualToken(SyntaxKind.ScopedKeyword) 11519return _syntaxFactory.FieldExpression(this.EatContextualToken(SyntaxKind.FieldKeyword)); 13264modifiers.Add(this.EatContextualToken(SyntaxKind.AsyncKeyword)); 13677var @from = this.EatContextualToken(SyntaxKind.FromKeyword); 13711joinKeyword: this.EatContextualToken(SyntaxKind.JoinKeyword), 13731this.EatContextualToken(SyntaxKind.LetKeyword), 13741this.EatContextualToken(SyntaxKind.WhereKeyword), 13748var @orderby = this.EatContextualToken(SyntaxKind.OrderByKeyword); 13812this.EatContextualToken(SyntaxKind.SelectKeyword), 13820this.EatContextualToken(SyntaxKind.GroupKeyword), 13830this.EatContextualToken(SyntaxKind.IntoKeyword),
Parser\LanguageParser_Patterns.cs (1)
189return _syntaxFactory.DiscardPattern(this.EatContextualToken(SyntaxKind.UnderscoreToken));