chore(doc-gen): fix spacing in heritage clauses

This commit is contained in:
Peter Bacon Darwin 2015-07-07 22:04:10 +01:00
parent 9e1158de4f
commit 355ced92eb
1 changed files with 3 additions and 3 deletions

View File

@ -147,14 +147,14 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
decl.heritageClauses.forEach(function(heritage) { decl.heritageClauses.forEach(function(heritage) {
if (heritage.token == ts.SyntaxKind.ExtendsKeyword) { if (heritage.token == ts.SyntaxKind.ExtendsKeyword) {
heritageString += " extends "; heritageString += " extends";
heritage.types.forEach(function(typ, idx) { heritage.types.forEach(function(typ, idx) {
heritageString += (idx > 0 ? ', ' : '') + typ.getFullText(); heritageString += (idx > 0 ? ',' : '') + typ.getFullText();
}); });
} }
if (heritage.token == ts.SyntaxKind.ImplementsKeyword) { if (heritage.token == ts.SyntaxKind.ImplementsKeyword) {
heritageString += " implements "; heritageString += " implements";
heritage.types.forEach(function(typ, idx) { heritage.types.forEach(function(typ, idx) {
heritageString += (idx > 0 ? ', ' : '') + typ.getFullText(); heritageString += (idx > 0 ? ', ' : '') + typ.getFullText();
}); });