91 references to ControlKeyword
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (91)
Classification\SyntacticClassifierTests.cs (69)
176
ControlKeyword
("yield"),
177
ControlKeyword
("return"),
207
ControlKeyword
("yield"),
208
ControlKeyword
("return"),
216
ControlKeyword
("yield"),
217
ControlKeyword
("return"),
228
ControlKeyword
("yield"),
229
ControlKeyword
("return"),
237
ControlKeyword
("yield"),
238
ControlKeyword
("break"),
283
ControlKeyword
("await"),
1684
isControlKeyword ?
ControlKeyword
(langword) : Keyword(langword),
2303
ControlKeyword
("return"),
2384
ControlKeyword
("yield"),
2385
ControlKeyword
("return"),
3132
ControlKeyword
("try"),
3134
ControlKeyword
("while"),
3139
ControlKeyword
("continue"),
3141
ControlKeyword
("break"),
3144
ControlKeyword
("switch"),
3149
ControlKeyword
("case"),
3152
ControlKeyword
("break"),
3154
ControlKeyword
("default"),
3156
ControlKeyword
("break"),
3160
ControlKeyword
("catch"),
3168
ControlKeyword
("finally"),
3182
ControlKeyword
("do"),
3185
ControlKeyword
("while"),
3190
ControlKeyword
("if"),
3196
ControlKeyword
("else"),
3223
ControlKeyword
("for"),
3255
ControlKeyword
("foreach"),
3259
ControlKeyword
("in"),
3291
ControlKeyword
("return"),
3307
ControlKeyword
("return"),
3325
ControlKeyword
("return"),
3348
ControlKeyword
("if"),
3354
ControlKeyword
("goto"),
3357
ControlKeyword
("if"),
3363
ControlKeyword
("return"),
3365
ControlKeyword
("else"),
3366
ControlKeyword
("throw"),
3481
ControlKeyword
("switch"),
3490
ControlKeyword
("when"),
3493
ControlKeyword
("throw"),
4163
ControlKeyword
("return"),
4223
ControlKeyword
("foreach"),
4227
ControlKeyword
("in"),
4363
ControlKeyword
("try"),
4366
ControlKeyword
("catch"),
4367
ControlKeyword
("when"),
4387
ControlKeyword
("try"),
4390
ControlKeyword
("catch"),
4396
ControlKeyword
("when"),
5028
ControlKeyword
("if"),
5054
ControlKeyword
("switch"),
5059
ControlKeyword
("case"),
5063
ControlKeyword
("break"),
5102
ControlKeyword
("switch"),
5111
ControlKeyword
("case"),
5118
ControlKeyword
("break"),
5120
ControlKeyword
("case"),
5129
ControlKeyword
("break"),
5147
ControlKeyword
("switch"),
5209
ControlKeyword
("if"),
5313
ControlKeyword
("foreach"),
5321
ControlKeyword
("in"),
5343
ControlKeyword
("try"),
5346
ControlKeyword
("catch"),
Classification\SyntacticClassifierTests_Preprocessor.cs (3)
1021
ControlKeyword
("if"),
1046
expected: Classifications(
ControlKeyword
("switch"), Punctuation.OpenParen, Number("1"), Punctuation.CloseParen,
1047
Punctuation.OpenCurly,
ControlKeyword
("case"), Keyword("int"), Keyword("_"), Punctuation.Colon, Punctuation.CloseCurly));
Classification\TotalClassifierTests.cs (12)
268
ControlKeyword
("return"),
285
ControlKeyword
("foreach"),
289
ControlKeyword
("in"),
1480
ControlKeyword
("return"),
1916
ControlKeyword
("if"),
1968
ControlKeyword
("if"),
2007
ControlKeyword
("if"),
2083
ControlKeyword
("if"),
2191
ControlKeyword
("foreach"),
2195
ControlKeyword
("in"),
2218
ControlKeyword
("foreach"),
2222
ControlKeyword
("in"),
Classification\TotalClassifierTests_Dynamic.cs (7)
202
ControlKeyword
("return"),
403
ControlKeyword
("return"),
605
ControlKeyword
("return"),
655
ControlKeyword
("foreach"),
659
ControlKeyword
("in"),
756
ControlKeyword
("goto"),
918
ControlKeyword
("if"),