From 0efda36cc309e117641f2226a451cf98e42c421e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 28 Oct 2015 11:38:40 +0100 Subject: exclude 'inline', 'noinline' and 'crossinline' from summary report; fix tests --- src/Formats/StructuredFormatService.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/Formats') diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 5a8109dc..8473ccd5 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -259,10 +259,8 @@ public abstract class StructuredFormatService(locationService: LocationService, private fun appendSummarySignatures(items: List, location: Location, to: StringBuilder) { val summarySignature = languageService.summarizeSignatures(items) if (summarySignature != null) { - val signatureAsCode = ContentCode() - signatureAsCode.append(summarySignature) - appendAsSignature(to, signatureAsCode) { - appendLine(to, signatureAsCode.signatureToText(location)) + appendAsSignature(to, summarySignature) { + appendLine(to, summarySignature.signatureToText(location)) } return } @@ -271,7 +269,6 @@ public abstract class StructuredFormatService(locationService: LocationService, appendAsSignature(to, it) { appendLine(to, it.signatureToText(location)) } - appendLine(to) } appendAsSignature(to, renderedSignatures.last()) { to.append(renderedSignatures.last().signatureToText(location)) -- cgit