Skip to content

Commit edcb62a

Browse files
Merge pull request #781 from Microsoft/docComments
Propery walk all declarations to find doc comments for a symbol.
2 parents 8714673 + 681c7fe commit edcb62a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ module ts {
256256
var declarations = this.getDeclarations();
257257
if (declarations) {
258258
for (var i = 0, n = declarations.length; i < n; i++) {
259-
this.processDocumentationCommentDeclaration(lines, declarations[0]);
259+
this.processDocumentationCommentDeclaration(lines, declarations[i]);
260260
}
261261
}
262262

@@ -274,7 +274,7 @@ module ts {
274274

275275
for (var i = 0, n = commentRanges.length; i < n; i++) {
276276
this.processDocumentationCommentRange(
277-
lines, sourceFile, commentRanges[0]);
277+
lines, sourceFile, commentRanges[i]);
278278
}
279279
}
280280
}

0 commit comments

Comments
 (0)