Emit class annotation comment on downlevel classes

This commit is contained in:
Ron Buckton
2017-06-19 14:53:32 -07:00
parent a2776648cd
commit 660a63d82e
3603 changed files with 7534 additions and 7524 deletions
+3 -1
View File
@@ -840,7 +840,7 @@ namespace ts {
outer.end = skipTrivia(currentText, node.pos);
setEmitFlags(outer, EmitFlags.NoComments);
return createParen(
const result = createParen(
createCall(
outer,
/*typeArguments*/ undefined,
@@ -849,6 +849,8 @@ namespace ts {
: []
)
);
addSyntheticLeadingComment(result, SyntaxKind.MultiLineCommentTrivia, "* @class ");
return result;
}
/**