Merge pull request #781 from Microsoft/docComments

Propery walk all declarations to find doc comments for a symbol.
This commit is contained in:
CyrusNajmabadi 2014-09-30 14:47:55 -07:00
commit edcb62ae04

View File

@ -256,7 +256,7 @@ module ts {
var declarations = this.getDeclarations();
if (declarations) {
for (var i = 0, n = declarations.length; i < n; i++) {
this.processDocumentationCommentDeclaration(lines, declarations[0]);
this.processDocumentationCommentDeclaration(lines, declarations[i]);
}
}
@ -274,7 +274,7 @@ module ts {
for (var i = 0, n = commentRanges.length; i < n; i++) {
this.processDocumentationCommentRange(
lines, sourceFile, commentRanges[0]);
lines, sourceFile, commentRanges[i]);
}
}
}