Skip to content

Commit 7caee79

Browse files
committed
Rename getJSDocComments -> getCommentsFromJSDoc
1 parent ab84cd0 commit 7caee79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ namespace ts {
14161416
(<JSDocFunctionType>node).parameters[0].type.kind === SyntaxKind.JSDocConstructorType;
14171417
}
14181418

1419-
export function getJSDocComments(node: Node): string[] {
1419+
export function getCommentsFromJSDoc(node: Node): string[] {
14201420
return map(getJSDocs(node), doc => doc.comment);
14211421
}
14221422

src/services/jsDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace ts.JsDoc {
5252
// from Array<T> - Array<string> and Array<number>
5353
const documentationComment = <SymbolDisplayPart[]>[];
5454
forEachUnique(declarations, declaration => {
55-
const comments = getJSDocComments(declaration);
55+
const comments = getCommentsFromJSDoc(declaration);
5656
if (!comments) {
5757
return;
5858
}

0 commit comments

Comments
 (0)