mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Adding tests.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
//// /** @param foo { function(x): string } */
|
||||
//// var v;
|
||||
|
||||
|
||||
var c = classification;
|
||||
verify.syntacticClassificationsAre(
|
||||
c.comment("/** "),
|
||||
c.punctuation("@"),
|
||||
c.docCommentTagName("param"),
|
||||
c.comment(" "),
|
||||
c.parameterName("foo"),
|
||||
c.comment(" "),
|
||||
c.punctuation("{"),
|
||||
c.keyword("function"),
|
||||
c.punctuation("("),
|
||||
c.text("x"),
|
||||
c.punctuation(")"),
|
||||
c.punctuation(":"),
|
||||
c.keyword("string"),
|
||||
c.punctuation("}"),
|
||||
c.comment(" */"),
|
||||
c.keyword("var"),
|
||||
c.text("v"),
|
||||
c.punctuation(";"));
|
||||
@@ -0,0 +1,20 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
//// /** @param foo { number /* } */
|
||||
//// var v;
|
||||
|
||||
var c = classification;
|
||||
verify.syntacticClassificationsAre(
|
||||
c.comment("/** "),
|
||||
c.punctuation("@"),
|
||||
c.docCommentTagName("param"),
|
||||
c.comment(" "),
|
||||
c.parameterName("foo"),
|
||||
c.comment(" "),
|
||||
c.punctuation("{"),
|
||||
c.keyword("number"),
|
||||
c.comment(" /* } */"),
|
||||
c.comment("/* } */"),
|
||||
c.keyword("var"),
|
||||
c.text("v"),
|
||||
c.punctuation(";"));
|
||||
Reference in New Issue
Block a user