2017-11-17 17:04:51 +01:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////export type x = number;
|
|
|
|
////export class y {};
|
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////import { /*0*/x, /*1*/y } from "./a";
|
|
|
|
////const v: /*2*/x = /*3*/y;
|
|
|
|
|
|
|
|
goTo.file("/b.ts");
|
|
|
|
|
|
|
|
const [m0, m1, m2, m3] = test.markers();
|
2020-09-11 21:10:55 +02:00
|
|
|
const c = classification("original");
|
|
|
|
verify.semanticClassificationsAre("original",
|
2017-11-17 17:04:51 +01:00
|
|
|
c.typeAliasName("x", m0.position),
|
|
|
|
c.className("y", m1.position),
|
|
|
|
c.typeAliasName("x", m2.position),
|
|
|
|
c.className("y", m3.position),
|
|
|
|
);
|
2020-09-11 21:10:55 +02:00
|
|
|
|
|
|
|
const c2 = classification("2020");
|
|
|
|
verify.semanticClassificationsAre("2020",
|
|
|
|
|
|
|
|
c2.semanticToken("variable.declaration.readonly", "v"),
|
|
|
|
c2.semanticToken("type", "x"),
|
|
|
|
c2.semanticToken("class", "y"),
|
|
|
|
);
|