91 references to ControlKeyword
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (91)
Classification\SyntacticClassifierTests.cs (69)
192
ControlKeyword
("yield"),
193
ControlKeyword
("return"),
225
ControlKeyword
("yield"),
226
ControlKeyword
("return"),
236
ControlKeyword
("yield"),
237
ControlKeyword
("return"),
250
ControlKeyword
("yield"),
251
ControlKeyword
("return"),
259
ControlKeyword
("yield"),
260
ControlKeyword
("break"),
307
ControlKeyword
("await"),
1744
isControlKeyword ?
ControlKeyword
(langword) : Keyword(langword),
2449
ControlKeyword
("return"),
2542
ControlKeyword
("yield"),
2543
ControlKeyword
("return"),
3322
ControlKeyword
("try"),
3324
ControlKeyword
("while"),
3329
ControlKeyword
("continue"),
3331
ControlKeyword
("break"),
3334
ControlKeyword
("switch"),
3339
ControlKeyword
("case"),
3342
ControlKeyword
("break"),
3344
ControlKeyword
("default"),
3346
ControlKeyword
("break"),
3350
ControlKeyword
("catch"),
3358
ControlKeyword
("finally"),
3372
ControlKeyword
("do"),
3375
ControlKeyword
("while"),
3380
ControlKeyword
("if"),
3386
ControlKeyword
("else"),
3413
ControlKeyword
("for"),
3445
ControlKeyword
("foreach"),
3449
ControlKeyword
("in"),
3481
ControlKeyword
("return"),
3497
ControlKeyword
("return"),
3515
ControlKeyword
("return"),
3538
ControlKeyword
("if"),
3544
ControlKeyword
("goto"),
3547
ControlKeyword
("if"),
3553
ControlKeyword
("return"),
3555
ControlKeyword
("else"),
3556
ControlKeyword
("throw"),
3671
ControlKeyword
("switch"),
3680
ControlKeyword
("when"),
3683
ControlKeyword
("throw"),
4369
ControlKeyword
("return"),
4431
ControlKeyword
("foreach"),
4435
ControlKeyword
("in"),
4583
ControlKeyword
("try"),
4586
ControlKeyword
("catch"),
4587
ControlKeyword
("when"),
4610
ControlKeyword
("try"),
4613
ControlKeyword
("catch"),
4619
ControlKeyword
("when"),
5306
ControlKeyword
("if"),
5334
ControlKeyword
("switch"),
5339
ControlKeyword
("case"),
5343
ControlKeyword
("break"),
5386
ControlKeyword
("switch"),
5395
ControlKeyword
("case"),
5402
ControlKeyword
("break"),
5404
ControlKeyword
("case"),
5413
ControlKeyword
("break"),
5433
ControlKeyword
("switch"),
5501
ControlKeyword
("if"),
5625
ControlKeyword
("foreach"),
5633
ControlKeyword
("in"),
5657
ControlKeyword
("try"),
5660
ControlKeyword
("catch"),
Classification\SyntacticClassifierTests_Preprocessor.cs (3)
1299
ControlKeyword
("if"),
1328
expected: Classifications(
ControlKeyword
("switch"), Punctuation.OpenParen, Number("1"), Punctuation.CloseParen,
1329
Punctuation.OpenCurly,
ControlKeyword
("case"), Keyword("int"), Keyword("_"), Punctuation.Colon, Punctuation.CloseCurly));
Classification\TotalClassifierTests.cs (12)
290
ControlKeyword
("return"),
309
ControlKeyword
("foreach"),
313
ControlKeyword
("in"),
1574
ControlKeyword
("return"),
2038
ControlKeyword
("if"),
2092
ControlKeyword
("if"),
2133
ControlKeyword
("if"),
2213
ControlKeyword
("if"),
2331
ControlKeyword
("foreach"),
2335
ControlKeyword
("in"),
2360
ControlKeyword
("foreach"),
2364
ControlKeyword
("in"),
Classification\TotalClassifierTests_Dynamic.cs (7)
227
ControlKeyword
("return"),
450
ControlKeyword
("return"),
670
ControlKeyword
("return"),
724
ControlKeyword
("foreach"),
728
ControlKeyword
("in"),
839
ControlKeyword
("goto"),
1025
ControlKeyword
("if"),