2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
2014-10-13 23:32:04 +02:00
|
|
|
|
2014-10-14 02:29:19 +02:00
|
|
|
////module /*0*/M {
|
2014-10-13 23:32:04 +02:00
|
|
|
//// export var v;
|
2014-10-14 02:29:19 +02:00
|
|
|
//// export interface /*1*/I {
|
2014-10-13 23:32:04 +02:00
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
2014-10-14 02:29:19 +02:00
|
|
|
////var x: /*2*/M./*3*/I = /*4*/M.v;
|
|
|
|
////var y = /*5*/M;
|
2014-10-13 23:32:04 +02:00
|
|
|
|
2020-09-11 21:10:55 +02:00
|
|
|
const c = classification("original");
|
|
|
|
verify.semanticClassificationsAre("original",
|
2014-10-14 02:29:19 +02:00
|
|
|
c.moduleName("M", test.marker("0").position),
|
|
|
|
c.interfaceName("I", test.marker("1").position),
|
|
|
|
c.moduleName("M", test.marker("2").position),
|
|
|
|
c.interfaceName("I", test.marker("3").position),
|
|
|
|
c.moduleName("M", test.marker("4").position),
|
2020-09-11 21:10:55 +02:00
|
|
|
c.moduleName("M", test.marker("5").position));
|
|
|
|
|
|
|
|
const c2 = classification("2020");
|
|
|
|
verify.semanticClassificationsAre("2020",
|
|
|
|
c2.semanticToken("namespace.declaration", "M"),
|
|
|
|
c2.semanticToken("variable.declaration.local", "v"),
|
|
|
|
c2.semanticToken("interface.declaration", "I"),
|
|
|
|
c2.semanticToken("variable.declaration", "x"),
|
|
|
|
c2.semanticToken("namespace", "M"),
|
|
|
|
c2.semanticToken("interface", "I"),
|
|
|
|
c2.semanticToken("namespace", "M"),
|
|
|
|
c2.semanticToken("variable.local", "v"),
|
|
|
|
c2.semanticToken("variable.declaration", "y"),
|
|
|
|
c2.semanticToken("namespace", "M"),
|
|
|
|
);
|