Rename getJSDocComments -> getCommentsFromJSDoc

This commit is contained in:
Nathan Shively-Sanders
2016-11-18 15:10:19 -08:00
parent ab84cd0647
commit 7caee79ce7
2 changed files with 2 additions and 2 deletions

View File

@@ -1416,7 +1416,7 @@ namespace ts {
(<JSDocFunctionType>node).parameters[0].type.kind === SyntaxKind.JSDocConstructorType;
}
export function getJSDocComments(node: Node): string[] {
export function getCommentsFromJSDoc(node: Node): string[] {
return map(getJSDocs(node), doc => doc.comment);
}

View File

@@ -52,7 +52,7 @@ namespace ts.JsDoc {
// from Array<T> - Array<string> and Array<number>
const documentationComment = <SymbolDisplayPart[]>[];
forEachUnique(declarations, declaration => {
const comments = getJSDocComments(declaration);
const comments = getCommentsFromJSDoc(declaration);
if (!comments) {
return;
}