91 references to ControlKeyword
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (91)
Classification\SyntacticClassifierTests.cs (69)
193
ControlKeyword
("yield"),
194
ControlKeyword
("return"),
226
ControlKeyword
("yield"),
227
ControlKeyword
("return"),
237
ControlKeyword
("yield"),
238
ControlKeyword
("return"),
251
ControlKeyword
("yield"),
252
ControlKeyword
("return"),
260
ControlKeyword
("yield"),
261
ControlKeyword
("break"),
308
ControlKeyword
("await"),
1824
isControlKeyword ?
ControlKeyword
(langword) : Keyword(langword),
2529
ControlKeyword
("return"),
2622
ControlKeyword
("yield"),
2623
ControlKeyword
("return"),
3402
ControlKeyword
("try"),
3404
ControlKeyword
("while"),
3409
ControlKeyword
("continue"),
3411
ControlKeyword
("break"),
3414
ControlKeyword
("switch"),
3419
ControlKeyword
("case"),
3422
ControlKeyword
("break"),
3424
ControlKeyword
("default"),
3426
ControlKeyword
("break"),
3430
ControlKeyword
("catch"),
3438
ControlKeyword
("finally"),
3452
ControlKeyword
("do"),
3455
ControlKeyword
("while"),
3460
ControlKeyword
("if"),
3466
ControlKeyword
("else"),
3493
ControlKeyword
("for"),
3525
ControlKeyword
("foreach"),
3529
ControlKeyword
("in"),
3561
ControlKeyword
("return"),
3577
ControlKeyword
("return"),
3595
ControlKeyword
("return"),
3618
ControlKeyword
("if"),
3624
ControlKeyword
("goto"),
3627
ControlKeyword
("if"),
3633
ControlKeyword
("return"),
3635
ControlKeyword
("else"),
3636
ControlKeyword
("throw"),
3751
ControlKeyword
("switch"),
3760
ControlKeyword
("when"),
3763
ControlKeyword
("throw"),
4449
ControlKeyword
("return"),
4511
ControlKeyword
("foreach"),
4515
ControlKeyword
("in"),
4663
ControlKeyword
("try"),
4666
ControlKeyword
("catch"),
4667
ControlKeyword
("when"),
4690
ControlKeyword
("try"),
4693
ControlKeyword
("catch"),
4699
ControlKeyword
("when"),
5386
ControlKeyword
("if"),
5414
ControlKeyword
("switch"),
5419
ControlKeyword
("case"),
5423
ControlKeyword
("break"),
5466
ControlKeyword
("switch"),
5475
ControlKeyword
("case"),
5482
ControlKeyword
("break"),
5484
ControlKeyword
("case"),
5493
ControlKeyword
("break"),
5513
ControlKeyword
("switch"),
5581
ControlKeyword
("if"),
5705
ControlKeyword
("foreach"),
5713
ControlKeyword
("in"),
5737
ControlKeyword
("try"),
5740
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)
292
ControlKeyword
("return"),
311
ControlKeyword
("foreach"),
315
ControlKeyword
("in"),
1576
ControlKeyword
("return"),
2040
ControlKeyword
("if"),
2094
ControlKeyword
("if"),
2135
ControlKeyword
("if"),
2215
ControlKeyword
("if"),
2333
ControlKeyword
("foreach"),
2337
ControlKeyword
("in"),
2362
ControlKeyword
("foreach"),
2366
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"),