Use getJsDocFromText to get trailing comments

Also update a couple of missed spots in the previous undo commits
This commit is contained in:
Nathan Shively-Sanders committed 2016-09-01 21:39:24 -07:00
1 parent ff9ccc9b05
commit 643cf302c6
3 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -652,7 +652,7 @@ namespace ts {
function addJSDocComment<T extends Node>(node: T): T {
const comments = getLeadingCommentRangesOfNode(node, sourceFile);
const comments = getJsDocCommentsFromText(node, sourceFile.text);
if (comments) {
for (const comment of comments) {
const jsDoc = JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos);