mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-02 06:35:09 -05:00
Add test for jsdoc syntactic classification for function declaration
This commit is contained in:
24
tests/cases/fourslash/syntacticClassificationsDocComment4.ts
Normal file
24
tests/cases/fourslash/syntacticClassificationsDocComment4.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
//// /** @param {number} p1 */
|
||||
//// function foo(p1) {}
|
||||
|
||||
var c = classification;
|
||||
verify.syntacticClassificationsAre(
|
||||
c.comment("/** "),
|
||||
c.punctuation("@"),
|
||||
c.docCommentTagName("param"),
|
||||
c.comment(" "),
|
||||
c.punctuation("{"),
|
||||
c.keyword("number"),
|
||||
c.punctuation("}"),
|
||||
c.comment(" "),
|
||||
c.parameterName("p1"),
|
||||
c.comment(" */"),
|
||||
c.keyword("function"),
|
||||
c.identifier("foo"),
|
||||
c.punctuation("("),
|
||||
c.parameterName("p1"),
|
||||
c.punctuation(")"),
|
||||
c.punctuation("{"),
|
||||
c.punctuation("}"));
|
||||
Reference in New Issue
Block a user