TypeScript/tests/cases/fourslash/syntacticClassificationsForOfKeyword.ts

23 lines
553 B
TypeScript
Raw Normal View History

2015-02-20 02:17:04 +01:00
/// <reference path="fourslash.ts"/>
//// for (var of of of) { }
const c = classification("original");
2015-02-20 02:17:04 +01:00
verify.syntacticClassificationsAre(
c.keyword("for"),
c.punctuation("("),
c.keyword("var"),
2015-07-14 01:57:11 +02:00
c.identifier("of"),
2015-02-20 02:17:04 +01:00
c.keyword("of"),
2015-07-14 01:57:11 +02:00
c.identifier("of"),
2015-02-20 02:17:04 +01:00
c.punctuation(")"),
c.punctuation("{"),
c.punctuation("}")
);
const c2 = classification("2020");
verify.semanticClassificationsAre("2020",
c2.semanticToken("variable.declaration", "of"),
c2.semanticToken("variable", "of"),
);