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"),
1746
isControlKeyword ?
ControlKeyword
(langword) : Keyword(langword),
2451
ControlKeyword
("return"),
2544
ControlKeyword
("yield"),
2545
ControlKeyword
("return"),
3324
ControlKeyword
("try"),
3326
ControlKeyword
("while"),
3331
ControlKeyword
("continue"),
3333
ControlKeyword
("break"),
3336
ControlKeyword
("switch"),
3341
ControlKeyword
("case"),
3344
ControlKeyword
("break"),
3346
ControlKeyword
("default"),
3348
ControlKeyword
("break"),
3352
ControlKeyword
("catch"),
3360
ControlKeyword
("finally"),
3374
ControlKeyword
("do"),
3377
ControlKeyword
("while"),
3382
ControlKeyword
("if"),
3388
ControlKeyword
("else"),
3415
ControlKeyword
("for"),
3447
ControlKeyword
("foreach"),
3451
ControlKeyword
("in"),
3483
ControlKeyword
("return"),
3499
ControlKeyword
("return"),
3517
ControlKeyword
("return"),
3540
ControlKeyword
("if"),
3546
ControlKeyword
("goto"),
3549
ControlKeyword
("if"),
3555
ControlKeyword
("return"),
3557
ControlKeyword
("else"),
3558
ControlKeyword
("throw"),
3673
ControlKeyword
("switch"),
3682
ControlKeyword
("when"),
3685
ControlKeyword
("throw"),
4371
ControlKeyword
("return"),
4433
ControlKeyword
("foreach"),
4437
ControlKeyword
("in"),
4585
ControlKeyword
("try"),
4588
ControlKeyword
("catch"),
4589
ControlKeyword
("when"),
4612
ControlKeyword
("try"),
4615
ControlKeyword
("catch"),
4621
ControlKeyword
("when"),
5308
ControlKeyword
("if"),
5336
ControlKeyword
("switch"),
5341
ControlKeyword
("case"),
5345
ControlKeyword
("break"),
5388
ControlKeyword
("switch"),
5397
ControlKeyword
("case"),
5404
ControlKeyword
("break"),
5406
ControlKeyword
("case"),
5415
ControlKeyword
("break"),
5435
ControlKeyword
("switch"),
5503
ControlKeyword
("if"),
5627
ControlKeyword
("foreach"),
5635
ControlKeyword
("in"),
5659
ControlKeyword
("try"),
5662
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"),