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"),
1613
isControlKeyword ?
ControlKeyword
(langword) : Keyword(langword),
2247
ControlKeyword
("return"),
2328
ControlKeyword
("yield"),
2329
ControlKeyword
("return"),
3076
ControlKeyword
("try"),
3078
ControlKeyword
("while"),
3083
ControlKeyword
("continue"),
3085
ControlKeyword
("break"),
3088
ControlKeyword
("switch"),
3093
ControlKeyword
("case"),
3096
ControlKeyword
("break"),
3098
ControlKeyword
("default"),
3100
ControlKeyword
("break"),
3104
ControlKeyword
("catch"),
3112
ControlKeyword
("finally"),
3126
ControlKeyword
("do"),
3129
ControlKeyword
("while"),
3134
ControlKeyword
("if"),
3140
ControlKeyword
("else"),
3167
ControlKeyword
("for"),
3199
ControlKeyword
("foreach"),
3203
ControlKeyword
("in"),
3235
ControlKeyword
("return"),
3251
ControlKeyword
("return"),
3269
ControlKeyword
("return"),
3292
ControlKeyword
("if"),
3298
ControlKeyword
("goto"),
3301
ControlKeyword
("if"),
3307
ControlKeyword
("return"),
3309
ControlKeyword
("else"),
3310
ControlKeyword
("throw"),
3425
ControlKeyword
("switch"),
3434
ControlKeyword
("when"),
3437
ControlKeyword
("throw"),
4107
ControlKeyword
("return"),
4167
ControlKeyword
("foreach"),
4171
ControlKeyword
("in"),
4307
ControlKeyword
("try"),
4310
ControlKeyword
("catch"),
4311
ControlKeyword
("when"),
4331
ControlKeyword
("try"),
4334
ControlKeyword
("catch"),
4340
ControlKeyword
("when"),
4972
ControlKeyword
("if"),
4998
ControlKeyword
("switch"),
5003
ControlKeyword
("case"),
5007
ControlKeyword
("break"),
5046
ControlKeyword
("switch"),
5055
ControlKeyword
("case"),
5062
ControlKeyword
("break"),
5064
ControlKeyword
("case"),
5073
ControlKeyword
("break"),
5091
ControlKeyword
("switch"),
5153
ControlKeyword
("if"),
5257
ControlKeyword
("foreach"),
5265
ControlKeyword
("in"),
5287
ControlKeyword
("try"),
5290
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"),