2015-06-23 20:25:33 +02:00
|
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
|
|
////class A {
|
|
|
|
|
//// a:
|
|
|
|
|
////}
|
|
|
|
|
////c =
|
|
|
|
|
|
2020-09-11 21:10:55 +02:00
|
|
|
|
const c = classification("original")
|
|
|
|
|
|
2015-06-23 20:25:33 +02:00
|
|
|
|
verify.syntacticClassificationsAre(
|
|
|
|
|
c.keyword("class"), c.className("A"), c.punctuation("{"),
|
2015-07-14 01:57:11 +02:00
|
|
|
|
c.identifier("a"), c.punctuation(":"),
|
2015-06-23 20:25:33 +02:00
|
|
|
|
c.punctuation("}"),
|
2015-07-14 01:57:11 +02:00
|
|
|
|
c.identifier("c"), c.operator("=")
|
2020-09-11 21:10:55 +02:00
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const c2 = classification("2020");
|
|
|
|
|
verify.semanticClassificationsAre("2020",
|
|
|
|
|
c2.semanticToken("class.declaration", "A"),
|
|
|
|
|
c2.semanticToken("property.declaration", "a"),
|
|
|
|
|
);
|