Extract function: render local class with debug name only in debug mode

This commit is contained in:
Natalia Ukhorskaya
2015-09-28 13:48:10 +03:00
parent 881f1fd75e
commit 58796da453
@@ -81,7 +81,7 @@ fun ExtractionGeneratorConfiguration.getDeclarationText(
)
fun JetType.typeAsString(): String {
return if (isSpecial()) DEBUG_TYPE_REFERENCE_STRING else descriptorRenderer.renderType(this)
return if (descriptor.extractionData.options.allowSpecialClassNames && isSpecial()) DEBUG_TYPE_REFERENCE_STRING else descriptorRenderer.renderType(this)
}
descriptor.receiverParameter?.let {