1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/// <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();
const c = classification("original");
verify.semanticClassificationsAre("original",
c.typeAliasName("x", m0.position),
c.className("y", m1.position),
c.typeAliasName("x", m2.position),
c.className("y", m3.position),
);
const c2 = classification("2020");
verify.semanticClassificationsAre("2020",
c2.semanticToken("variable.declaration.readonly", "v"),
c2.semanticToken("type", "x"),
c2.semanticToken("class", "y"),
);
|