2014-10-01 21:44:17 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
2014-10-14 02:29:19 +02:00
|
|
|
//// interface /*0*/Thing {
|
2014-10-01 21:44:17 +02:00
|
|
|
//// toExponential(): number;
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// var Thing = 0;
|
|
|
|
//// Thing.toExponential();
|
|
|
|
|
2020-09-11 21:10:55 +02:00
|
|
|
const c = classification("original");
|
|
|
|
verify.semanticClassificationsAre("original", c.interfaceName("Thing", test.marker("0").position));
|
|
|
|
|
|
|
|
const c2 = classification("2020");
|
|
|
|
verify.semanticClassificationsAre("2020",
|
|
|
|
c2.semanticToken("interface.declaration", "Thing"),
|
|
|
|
c2.semanticToken("member.declaration", "toExponential"),
|
|
|
|
c2.semanticToken("variable.declaration", "Thing"),
|
|
|
|
c2.semanticToken("variable", "Thing"),
|
|
|
|
c2.semanticToken("member.defaultLibrary", "toExponential")
|
|
|
|
);
|