263 references to EatToken
Microsoft.CodeAnalysis.CSharp (263)
Parser\DirectiveParser.cs (2)
113
result = this.ParseShebangDirective(hash, this.
EatToken
(SyntaxKind.ExclamationToken), isActive);
796
var close = this.
EatToken
(SyntaxKind.CloseParenToken);
Parser\DocumentationCommentParser.cs (21)
86
var eoc = this.
EatToken
(SyntaxKind.EndOfDocumentationCommentToken);
204
var lessThan = this.
EatToken
(SyntaxKind.LessThanToken); // guaranteed
267
greaterThan = this.
EatToken
(SyntaxKind.GreaterThanToken);
525
SyntaxToken openQuote =
EatToken
(this.CurrentToken.Kind == SyntaxKind.SingleQuoteToken
683
var id = this.
EatToken
(SyntaxKind.IdentifierToken);
701
id = this.
EatToken
(SyntaxKind.IdentifierToken);
722
var lessThanExclamationMinusMinusToken = this.
EatToken
(SyntaxKind.XmlCommentStartToken);
742
var minusMinusGreaterThanToken = this.
EatToken
(SyntaxKind.XmlCommentEndToken);
749
var startCDataToken = this.
EatToken
(SyntaxKind.XmlCDataStartToken);
758
var endCDataToken = this.
EatToken
(SyntaxKind.XmlCDataEndToken);
765
var startProcessingInstructionToken = this.
EatToken
(SyntaxKind.XmlProcessingInstructionStartToken);
785
var endProcessingInstructionToken = this.
EatToken
(SyntaxKind.XmlProcessingInstructionEndToken);
908
SyntaxToken dot =
EatToken
(SyntaxKind.DotToken);
1145
SyntaxToken operatorKeyword =
EatToken
(SyntaxKind.OperatorKeyword);
1184
SyntaxToken open =
EatToken
(openKind);
1195
SyntaxToken comma =
EatToken
(SyntaxKind.CommaToken);
1212
SyntaxToken close =
EatToken
(closeKind);
1286
SyntaxToken identifierToken =
EatToken
(SyntaxKind.IdentifierToken);
1316
list.AddSeparator(
EatToken
(SyntaxKind.CommaToken));
1324
SyntaxToken close =
EatToken
(SyntaxKind.GreaterThanToken);
1491
var close = this.
EatToken
(SyntaxKind.CloseBracketToken);
Parser\LanguageParser.cs (228)
190
var eof = this.
EatToken
(SyntaxKind.EndOfFileToken);
253
var namespaceToken = this.
EatToken
(SyntaxKind.NamespaceKeyword);
267
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
273
openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
321
this.
EatToken
(SyntaxKind.CloseBraceToken),
527
?
EatToken
(SyntaxKind.CloseBraceToken)
936
this.
EatToken
(SyntaxKind.ExternKeyword),
939
this.
EatToken
(SyntaxKind.SemicolonToken));
947
this.
EatToken
(SyntaxKind.EqualsToken));
963
var usingToken = this.
EatToken
(SyntaxKind.UsingKeyword);
1014
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
1123
var openBracket = this.
EatToken
(SyntaxKind.OpenBracketToken);
1127
? _syntaxFactory.AttributeTargetSpecifier(ConvertToKeyword(this.EatToken()), this.
EatToken
(SyntaxKind.ColonToken))
1140
var closeBracket = this.
EatToken
(SyntaxKind.CloseBracketToken);
1211
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
1227
this.
EatToken
(SyntaxKind.CloseParenToken));
1275
this.
EatToken
(SyntaxKind.EqualsToken));
1281
this.
EatToken
(SyntaxKind.ColonToken));
1766
semicolon =
EatToken
(SyntaxKind.SemicolonToken);
1772
openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
1830
closeBrace = this.
EatToken
(SyntaxKind.CloseBraceToken);
2083
list.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
2102
list.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
2147
var colon = this.
EatToken
(SyntaxKind.ColonToken);
2175
SyntaxToken separatorToken = this.
EatToken
(SyntaxKind.CommaToken);
2243
this.
EatToken
(SyntaxKind.OpenParenToken),
2244
this.
EatToken
(SyntaxKind.CloseParenToken)),
2293
this.
EatToken
(SyntaxKind.RefKeyword),
2294
this.
EatToken
(SyntaxKind.StructKeyword)));
2298
bounds.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
3328
var colon = this.
EatToken
(SyntaxKind.ColonToken);
3361
var tilde = this.
EatToken
(SyntaxKind.TildeToken);
3365
this.
EatToken
(SyntaxKind.OpenParenToken),
3367
this.
EatToken
(SyntaxKind.CloseParenToken));
3390
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
3406
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
3637
: this.
EatToken
(SyntaxKind.ExplicitKeyword);
3651
opKeyword = this.
EatToken
(SyntaxKind.OperatorKeyword);
3671
opKeyword = this.
EatToken
(SyntaxKind.OperatorKeyword);
3825
var opKeyword = this.
EatToken
(SyntaxKind.OperatorKeyword);
3987
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
4005
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
4062
var equals = this.
EatToken
(SyntaxKind.EqualsToken);
4070
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
4116
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
4148
this.
EatToken
(SyntaxKind.CloseBraceToken));
4154
this.
EatToken
(SyntaxKind.EqualsGreaterThanToken),
4590
open = this.
EatToken
(openKind);
4606
close = this.
EatToken
(closeKind);
4696
attributes, modifiers.ToList(), type: null, this.
EatToken
(SyntaxKind.ArgListKeyword), @default: null);
4796
this.
EatToken
(SyntaxKind.SemicolonToken));
4882
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
4936
this.
EatToken
(SyntaxKind.SemicolonToken));
4971
this.
EatToken
(SyntaxKind.SemicolonToken));
5073
variables.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
5481
modifiers.Add(this.
EatToken
(SyntaxKind.ConstKeyword));
5490
this.
EatToken
(SyntaxKind.SemicolonToken));
5497
var delegateToken = this.
EatToken
(SyntaxKind.DelegateKeyword);
5523
this.
EatToken
(SyntaxKind.SemicolonToken));
5530
var enumToken = this.
EatToken
(SyntaxKind.EnumKeyword);
5545
var colon = this.
EatToken
(SyntaxKind.ColonToken);
5561
semicolon =
EatToken
(SyntaxKind.SemicolonToken);
5567
openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
5585
closeBrace = this.
EatToken
(SyntaxKind.CloseBraceToken);
5624
this.
EatToken
(SyntaxKind.EqualsToken),
5785
var open = this.
EatToken
(SyntaxKind.LessThanToken);
5801
this.
EatToken
(SyntaxKind.GreaterThanToken));
6188
greaterThanToken = this.
EatToken
(SyntaxKind.GreaterThanToken);
6197
greaterThanToken = this.
EatToken
(SyntaxKind.GreaterThanToken);
6222
open = this.
EatToken
(SyntaxKind.LessThanToken);
6232
types.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
6236
close = this.
EatToken
(SyntaxKind.GreaterThanToken);
6280
types.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
6289
close = this.
EatToken
(SyntaxKind.GreaterThanToken);
6588
: this.
EatToken
(SyntaxKind.DotToken);
6607
separator = this.
EatToken
(SyntaxKind.DotToken);
7093
_ =
EatToken
(SyntaxKind.DelegateKeyword);
7094
lastTokenOfType =
EatToken
(SyntaxKind.AsteriskToken);
7118
lastTokenOfType =
EatToken
(SyntaxKind.OpenBracketToken);
7176
_ =
EatToken
(SyntaxKind.CommaToken);
7192
lastTokenOfType =
EatToken
(SyntaxKind.GreaterThanToken);
7542
var open = this.
EatToken
(SyntaxKind.OpenBracketToken);
7564
list.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
7599
this.
EatToken
(SyntaxKind.CloseBracketToken));
7604
var open = this.
EatToken
(SyntaxKind.OpenParenToken);
7613
list.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
7633
this.
EatToken
(SyntaxKind.CloseParenToken));
7689
var @delegate =
EatToken
(SyntaxKind.DelegateKeyword);
7690
var asterisk =
EatToken
(SyntaxKind.AsteriskToken);
7738
types.AddSeparator(
EatToken
(SyntaxKind.CommaToken));
7750
:
EatToken
(SyntaxKind.GreaterThanToken)));
7801
var openBracket =
EatToken
(SyntaxKind.OpenBracketToken);
7810
callingConventionModifiers.Add(SyntaxFactory.FunctionPointerUnmanagedCallingConvention(
EatToken
(SyntaxKind.IdentifierToken)));
7818
callingConventionModifiers.AddSeparator(
EatToken
(SyntaxKind.CommaToken));
7821
var closeBracket =
EatToken
(SyntaxKind.CloseBracketToken);
8682
: this.
EatToken
(SyntaxKind.OpenBraceToken);
8694
this.
EatToken
(SyntaxKind.CloseBraceToken));
8713
CSharpSyntaxNode openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
8722
this.
EatToken
(SyntaxKind.CloseBraceToken));
8854
var @fixed = this.
EatToken
(SyntaxKind.FixedKeyword);
8855
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
8867
this.
EatToken
(SyntaxKind.CloseParenToken),
8893
return SyntaxFactory.EmptyStatement(attributeLists: default,
EatToken
(SyntaxKind.SemicolonToken));
8922
this.
EatToken
(SyntaxKind.BreakKeyword),
8923
this.
EatToken
(SyntaxKind.SemicolonToken));
8930
this.
EatToken
(SyntaxKind.ContinueKeyword),
8931
this.
EatToken
(SyntaxKind.SemicolonToken));
8939
var @try = this.
EatToken
(SyntaxKind.TryKeyword);
9033
var closeParen = this.
EatToken
(SyntaxKind.CloseParenToken);
9054
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
9058
var closeParen = this.
EatToken
(SyntaxKind.CloseParenToken);
9113
var @do = this.
EatToken
(SyntaxKind.DoKeyword);
9115
var @while = this.
EatToken
(SyntaxKind.WhileKeyword);
9116
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
9130
this.
EatToken
(SyntaxKind.CloseParenToken),
9131
this.
EatToken
(SyntaxKind.SemicolonToken));
9179
var forToken = this.
EatToken
(SyntaxKind.ForKeyword);
9180
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
9269
: this.
EatToken
(SyntaxKind.SemicolonToken);
9278
var result = this.
EatToken
(SyntaxKind.CloseParenToken);
9337
@foreach = this.
EatToken
(SyntaxKind.ForEachKeyword);
9340
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
9350
var closeParen = this.
EatToken
(SyntaxKind.CloseParenToken);
9537
var @goto = this.
EatToken
(SyntaxKind.GotoKeyword);
9563
kind, attributes, @goto, caseOrDefault, arg, this.
EatToken
(SyntaxKind.SemicolonToken));
9575
var ifKeyword = this.
EatToken
(SyntaxKind.IfKeyword);
9576
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
9578
var closeParen = this.
EatToken
(SyntaxKind.CloseParenToken);
9583
this.
EatToken
(SyntaxKind.ElseKeyword);
9638
this.
EatToken
(SyntaxKind.OpenParenToken),
9640
this.
EatToken
(SyntaxKind.CloseParenToken),
9650
this.
EatToken
(SyntaxKind.ElseKeyword),
9659
this.
EatToken
(SyntaxKind.LockKeyword),
9660
this.
EatToken
(SyntaxKind.OpenParenToken),
9662
this.
EatToken
(SyntaxKind.CloseParenToken),
9671
this.
EatToken
(SyntaxKind.ReturnKeyword),
9673
this.
EatToken
(SyntaxKind.SemicolonToken));
9693
returnOrBreak = this.
EatToken
(SyntaxKind.ReturnKeyword);
9710
this.
EatToken
(SyntaxKind.SemicolonToken));
9731
this.
EatToken
(SyntaxKind.CloseBraceToken));
9744
switchKeyword =
EatToken
(SyntaxKind.SwitchKeyword);
9752
switchKeyword = this.
EatToken
(SyntaxKind.SwitchKeyword);
9778
openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
9809
this.
EatToken
(SyntaxKind.ColonToken));
9828
this.
EatToken
(SyntaxKind.ColonToken));
9835
this.
EatToken
(SyntaxKind.ColonToken));
9843
this.
EatToken
(SyntaxKind.DefaultKeyword),
9844
this.
EatToken
(SyntaxKind.ColonToken));
9866
this.
EatToken
(SyntaxKind.ThrowKeyword),
9868
this.
EatToken
(SyntaxKind.SemicolonToken));
9876
this.
EatToken
(SyntaxKind.UnsafeKeyword),
9882
var @using = this.
EatToken
(SyntaxKind.UsingKeyword);
9883
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
9899
this.
EatToken
(SyntaxKind.CloseParenToken),
10012
this.
EatToken
(SyntaxKind.WhileKeyword),
10013
this.
EatToken
(SyntaxKind.OpenParenToken),
10015
this.
EatToken
(SyntaxKind.CloseParenToken),
10028
this.
EatToken
(SyntaxKind.ColonToken),
10029
this.ParsePossiblyAttributedStatement() ?? SyntaxFactory.EmptyStatement(attributeLists: default,
EatToken
(SyntaxKind.SemicolonToken)));
10127
this.
EatToken
(SyntaxKind.SemicolonToken));
10174
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
10185
listOfDesignations.AddSeparator(
EatToken
(SyntaxKind.CommaToken));
10195
listOfDesignations.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
10207
this.
EatToken
(SyntaxKind.CloseParenToken));
10225
: _syntaxFactory.SingleVariableDesignation(this.
EatToken
(SyntaxKind.IdentifierToken));
10580
semicolon = this.
EatToken
(SyntaxKind.SemicolonToken);
11341
this.
EatToken
(SyntaxKind.ColonToken),
11437
this.
EatToken
(SyntaxKind.ThrowKeyword),
11935
: this.
EatToken
(openKind);
11986
: this.
EatToken
(closeKind);
12031
this.
EatToken
(SyntaxKind.ColonToken))
12073
this.
EatToken
(SyntaxKind.OpenParenToken),
12075
this.
EatToken
(SyntaxKind.CloseParenToken));
12085
this.
EatToken
(SyntaxKind.OpenParenToken),
12087
this.
EatToken
(SyntaxKind.CloseParenToken));
12099
this.
EatToken
(SyntaxKind.OpenParenToken),
12101
this.
EatToken
(SyntaxKind.CloseParenToken));
12108
this.
EatToken
(SyntaxKind.OpenParenToken),
12110
this.
EatToken
(SyntaxKind.CloseParenToken));
12117
this.
EatToken
(SyntaxKind.OpenParenToken),
12119
this.
EatToken
(SyntaxKind.CloseParenToken));
12131
this.
EatToken
(SyntaxKind.OpenParenToken),
12133
this.
EatToken
(SyntaxKind.CloseParenToken));
12139
this.
EatToken
(SyntaxKind.RefValueKeyword),
12140
this.
EatToken
(SyntaxKind.OpenParenToken),
12142
this.
EatToken
(SyntaxKind.CommaToken),
12144
this.
EatToken
(SyntaxKind.CloseParenToken));
12334
this.
EatToken
(SyntaxKind.OpenParenToken),
12336
this.
EatToken
(SyntaxKind.CloseParenToken),
12343
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
12368
this.
EatToken
(SyntaxKind.CloseParenToken));
12378
list.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
12402
this.
EatToken
(SyntaxKind.CloseParenToken));
12739
var openBracket = this.
EatToken
(SyntaxKind.OpenBracketToken);
12753
this.
EatToken
(SyntaxKind.CloseBracketToken));
12785
var @new = this.
EatToken
(SyntaxKind.NewKeyword);
12789
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
12804
this.
EatToken
(SyntaxKind.CloseBraceToken));
12839
SyntaxToken @new = this.
EatToken
(SyntaxKind.NewKeyword);
12914
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
12932
this.
EatToken
(SyntaxKind.CloseBraceToken)));
12939
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
12957
this.
EatToken
(SyntaxKind.CloseBraceToken));
13027
this.
EatToken
(SyntaxKind.EqualsToken),
13038
this.
EatToken
(SyntaxKind.EqualsToken),
13046
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
13062
this.
EatToken
(SyntaxKind.CloseBraceToken));
13073
var @new = this.
EatToken
(SyntaxKind.NewKeyword);
13074
var openBracket = this.
EatToken
(SyntaxKind.OpenBracketToken);
13107
this.
EatToken
(SyntaxKind.CloseBracketToken),
13113
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
13128
this.
EatToken
(SyntaxKind.CloseBraceToken));
13149
var @stackalloc = this.
EatToken
(SyntaxKind.StackAllocKeyword);
13150
var openBracket = this.
EatToken
(SyntaxKind.OpenBracketToken);
13174
this.
EatToken
(SyntaxKind.CloseBracketToken),
13181
this.
EatToken
(SyntaxKind.StackAllocKeyword),
13208
var @delegate = this.
EatToken
(SyntaxKind.DelegateKeyword);
13227
var openBrace = this.
EatToken
(SyntaxKind.OpenBraceToken);
13257
modifiers.Add(this.
EatToken
(SyntaxKind.StaticKeyword));
13348
var arrow = this.
EatToken
(SyntaxKind.EqualsGreaterThanToken);
13363
var arrow = this.
EatToken
(SyntaxKind.EqualsGreaterThanToken);
13381
var openParen = this.
EatToken
(SyntaxKind.OpenParenToken);
13400
this.
EatToken
(SyntaxKind.CloseParenToken));
13703
this.
EatToken
(SyntaxKind.InKeyword),
13716
inKeyword: this.
EatToken
(SyntaxKind.InKeyword),
13733
this.
EatToken
(SyntaxKind.EqualsToken),
13763
list.AddSeparator(this.
EatToken
(SyntaxKind.CommaToken));
13984
: this.
EatToken
(separatorTokenKind));
Parser\LanguageParser_InterpolatedString.cs (1)
416
this.
EatToken
(SyntaxKind.CommaToken),
Parser\LanguageParser_Patterns.cs (10)
289
var openParenToken = this.
EatToken
(SyntaxKind.OpenParenToken);
299
var closeParenToken = this.
EatToken
(SyntaxKind.CloseParenToken);
486
var openBraceToken = this.
EatToken
(SyntaxKind.OpenBraceToken);
500
this.
EatToken
(SyntaxKind.CloseBraceToken));
576
this.
EatToken
(SyntaxKind.OpenBraceToken),
578
this.
EatToken
(SyntaxKind.CloseBraceToken));
611
: this.
EatToken
(SyntaxKind.EqualsGreaterThanToken),
626
: this.
EatToken
(SyntaxKind.CommaToken);
637
var openBracket = this.
EatToken
(SyntaxKind.OpenBracketToken);
651
this.
EatToken
(SyntaxKind.CloseBracketToken),
Parser\SyntaxParser.cs (1)
580
return
EatToken
(kind);