mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-08 08:14:51 -06:00
Merge pull request #781 from Microsoft/docComments
Propery walk all declarations to find doc comments for a symbol.
This commit is contained in:
commit
edcb62ae04
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user