2015-06-03 00:00:39 +02:00
|
|
|
/// <reference path="fourslash.ts"/>
|
|
|
|
|
|
|
|
//// /** @param foo { function(x): string } */
|
|
|
|
//// var v;
|
|
|
|
|
|
|
|
|
2020-09-11 21:10:55 +02:00
|
|
|
const c = classification("original");
|
2015-06-03 00:00:39 +02:00
|
|
|
verify.syntacticClassificationsAre(
|
|
|
|
c.comment("/** "),
|
|
|
|
c.punctuation("@"),
|
|
|
|
c.docCommentTagName("param"),
|
|
|
|
c.comment(" "),
|
|
|
|
c.parameterName("foo"),
|
|
|
|
c.comment(" "),
|
|
|
|
c.punctuation("{"),
|
|
|
|
c.keyword("function"),
|
|
|
|
c.punctuation("("),
|
2015-07-14 01:57:11 +02:00
|
|
|
c.identifier("x"),
|
2015-06-03 00:00:39 +02:00
|
|
|
c.punctuation(")"),
|
|
|
|
c.punctuation(":"),
|
|
|
|
c.keyword("string"),
|
|
|
|
c.punctuation("}"),
|
|
|
|
c.comment(" */"),
|
|
|
|
c.keyword("var"),
|
2015-07-14 01:57:11 +02:00
|
|
|
c.identifier("v"),
|
2015-06-03 00:00:39 +02:00
|
|
|
c.punctuation(";"));
|
2020-09-11 21:10:55 +02:00
|
|
|
|
|
|
|
const c2 = classification("2020");
|
|
|
|
verify.semanticClassificationsAre("2020",
|
|
|
|
c2.semanticToken("variable.declaration", "v"),
|
|
|
|
);
|