mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Use getJsDocFromText to get trailing comments
Also update a couple of missed spots in the previous undo commits
This commit is contained in:
1 parent
ff9ccc9b05
commit
643cf302c6
3 files changed
+3
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user